Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

Janin posted:

this is easily solved by spending more than like twenty minutes learning the language

pffff. pass.

Adbot
ADBOT LOVES YOU

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome
main = do

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome
lmao

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome
I mean honestly

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome
main = doo-doo imo

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

Luigi Thirty posted:

main = pee
main = pee
main = do
main = do

putStrLn "it is a bad language"

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome
UML is great if your handing off a spec to unwashed jabbering foreigners who don't speak english and not a goddamn thing else

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

BonzoESC posted:

UML sequence diagrams are unironically great for explaining how REST APIs work

(goatse.cx is great for explaining the bad xml kind shaggar likes)

why would you need a loving diagram to explain how a rest api works

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome
if java had function primitives i'd probably still be doin java.

great libraries, works everywhere if you're not a dumbass, but goddamn i got tired of jumping through a bunch of gay hoops to implement a loving callback

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

Shaggar posted:

either us an anonymous class or make an object like ur supposed to.

these are the gay hoops i was speaking of previously

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

Shaggar posted:

OO only in my OO language please. garbage "functional" code stay out.

In Java, everything is an object well ok except for these primitives like ints and chars and booleans and stuff

In Java, operator overloading is not allowed well ok except for strings

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

My Linux Rig posted:

shagger was right?

lol no

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome
c# owns tho

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome
please, can we try to maintain a level of decorum and civility here? This isn't the schoolyard, lets try to act like we understand that.

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome
pascal never caught on because it was designed as a teaching language. Scheme never caught on either.

also lol @ 1 based arrays

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome
people got too many fuckin degrees imho

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

HORATIO HORNBLOWER posted:

if you don't have a degree you're a worthless sack of crap imb (in my book)

if i see a guy with no degree and a guy with two bachelor degrees, its a safe bet the guy with no degrees is the smarter of the two.

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

HORATIO HORNBLOWER posted:

what does smarter mean exactly

smart enough not to waste a bunch of time and money on a second bachelors degree.

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

kwinkles posted:


i guess for someone who goes back for one like a decade later yeah maybe but it seems like that's probably someone who wasted time and money on their first bachelors degree when they were young dumb and full of cum, then wised up and did something they like more or that is more useful in the second one

i mean, right?

getting a second bachelors degree is a waste of time and money, typically done when you can afford it least.

if you're talking about a double major keeping you in school another semester, well ok fine.

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome
man, classics.

I'm glad someone studies them, but they're a rich mans vanity, something to study in between visits to the country club while dad preens you to take over the family business.

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

kwinkles posted:

I sometimes want to to go back to school to just read the classics and learn another language and yell at 18-22 year olds for not "knowing what the real world is like" does anyone else get that itch

this, along with sittin in the workshop makin stuff out of wood & metal while i'm drunk, is my retirement plan.

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome
but i'm drat sure not gonna jump through whatever bullshit hoops they want you to jump through for another dumbass degree

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome
ok so quick summary for those of you just joining us: tbc is always wrong, internaut doesn't know wtf, janin, well, janin is janin, spiders is mostly right and jawn and tef are always right. now, back to the thread, already in progress.

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

Tiny Bug Child posted:

unironically this

the old-school beardo attitude of crash-and-burning whenever there is the tiniest recoverable error is so stupid

a post by tiny bug child

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

rotor posted:

ok so quick summary for those of you just joining us: tbc is always wrong, internaut doesn't know wtf, janin, well, janin is janin, spiders is mostly right and jawn and tef are always right. now, back to the thread, already in progress.

...


ALREADY IN PROGRESS!

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome
has anyone ever written forth? it seems so neat.

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome
I mean anyone in this thread you oaf

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

Ronald Raiden posted:

im going to write something called espressoscript where its just javascript but I hosed around with the syntax a bit.

too late, that's coffeescript

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome
if you're the one writing it, call it "weak drip"

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

Gazpacho posted:

it's a neat idea but i've met some of chuck moore's clique and they're pretty cultish, always talking about the great things that could be done with forth except that the "forth philosophy" says you shouldn't

i suppose if you wants to write actual programs in 100% continuation passing style by hand that's the language to do it in

brb downloading forth compiler

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

Gazpacho posted:

I thought i'd put in a little :effort: and write up what I mean. I've had this in the back of my mind for a few weeks but I've never seen it discussed online because Forth is a kind of ghetto language to academics. Take your naive Fibonacci in Javascript.
code:
function fib(n) {
  if(n < 2)
    return 1;
  else {
    return fib(n - 1) + fib(n - 2);
}
Next transform just the fib function to continuation style. Note that it's starting to look like postfix because you have the two recursive fibs first then the addition.
code:
function fib(n, cont) {
  if(n < 2)
    cont(1);
  else {
    fib(n - 1, function(x) {
      fib(n - 2, function(y) {
        cont(x + y);
      });
    });
  }
}
Now go all out and transform the operators and control statements as well.
code:
function fib(n, cont) {
  op<(n, 2, function(x0) {
    ifelse(x0,
      function() { cont(1); },
      function() {
        op-(n, 1, function(x1) {
          fib(x1, function(x2) {
            op-(n, 2, function(x3) {
              fib(x3, function(x4) {
                op+(x2, x4, cont);
              });
            });
          });
        });
      });
    });
}
From this you can read off the corresponding Forth code line by line.
code:
// ": fib" (define fib)
function fib(n, cont) {
  // "dup" (preserve n for later use) "2 <"
  op<(n, 2, function(x0) {
    // "if"
    ifelse(x0,
      // "drop" (n not used on this branch) "1"
      function() { cont(1); },
      // "else"
      function() {
        // "dup" (preserve n) "1 -"
        op-(n, 1, function(x1) {
          // "fib"
          fib(x1, function(x2) {
            // "swap" (reach up the stack past x2 to get n for last use) "2 -"
            op-(n, 2, function(x3) {
              // "fib"
              fib(x3, function(x4) {
                // "+ then" (end of false branch) ";" (call cont)
                op+(x2, x4, cont);
...
Result:
code:
: fib dup 2 < if drop 1 else dup 1 - fib swap 2 - fib + then ;
There's a quirk here that the second cont call translates to ; but the first doesn't. colorForth actually handles this consistently so "else" becomes ";".

a good post

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

tef posted:

why not learn postscript instead of forth rotor

fun rotor fact: postscript was the first language I learned as an adult

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

ahhh spiders posted:

because it shields you from having to learn electronics

basically that. invert icabus could have just made a timer to turn the entire thing on for 2 minutes every half hour but, well, there were volts involved soooooo

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

Nomnom Cookie posted:

tbqh I would loving love to work with a good front-end dev and IMO if you need real programming on the client side you hosed up bad. Just want someone to worry about W3C poo poo and Ajax call my code to get the heavy lifting done

lmao


yeah, just flop some text into a div. that's all the gui you need. heh. *adjusts belt*

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

ahhh spiders posted:

it's because javascript blows

javascript is fine, it's browsers that suck

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

ahhh spiders posted:

javascript is a terrible language

nope, its fine

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

ahhh spiders posted:

trolling? really

twice in a row? come on man

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

Gentle Autist posted:

These threads are always really bad

'these' threads? you mean the threads you post in? I agree.

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

ahhh spiders posted:

slap a node on it

YOSPOS: slap a node on it

Adbot
ADBOT LOVES YOU

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

My Linux Rig posted:

no it really isn't

the subject really isnt open for debate. its fine. end of story.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply