Forth thread
https://www.youtube.com/watch?v=6g4dkBF5anU [Embed] [Embed]
Official forth waifu: Rei Ayanami
https://www.forth.com/starting-forth/
https://repl.it/languages/forth
>This shit is easy as fuck to learn
>This shit is fast as fuck
>This shit can run on any computer, even old computers from the 1980's. You can get it down to less than a kilobyte.
This is some zen monk shit I pulled from the mountains,
Google is your friend
https://kiwiirc.com/client/irc.freenode.net/?nick=newuser%7C?#forth
>1 2 + 3 *
>9
>operators at the end of the expression
why
>>56666451
It makes it easy to read.
1 2 + 3 =
3 3
I think what you were trying to do was a something longer and more apparently weird looking like
1 3 + 3 - 4 4 + -
again we go left to right
1 3 + 3 - 4 4 + - =
4 3 - 4 4 + - =
1 4 4 + - =
1 8 - =
-7
It is a weird rule to learn but when you get the hang of it you can do math really quickly.
>>56666561
i give up with this
>>56666625
Let me break it down forther
1 3 + 3 - 4 4 + 3 =
we read the leftmost symbol. That's a 1
We read the next symbol. That's a 3
We read the next symbol, that's a +
+ takes two things from the left and adds them
1 3 + =
4
Now we edit the above equation to fit the new value.
4 3 - 4 4 + - =
We read the symbol on the left. That's a 4.
We read the next symbol. That's a 3.
Next is -.
Minus takes two items from the left and subtracts one from the other.
4 3 - =
1
Now we edit the above equation to fit our new value
1 4 4 + -
This is a little tricky thing.
+ only takes two thingies not three. So in this case it just takes the last 2 which are 4 and 4.
4 4 + =
8
1 8 -=
-7
It is weird to get used to but once you learn this syntactic rule basically you know 50% of the language's syntax
>>56666726
Haha, I get the joke now, thanks for explaining it
>>56666802
let me break it down forther...
>forther
>FORTHER
>FORTHER!!!!!!!!!!!!!!!!!!!!!!!!
>>56666373
> Official forth waifu: Rei Ayanami
It means she'll fuck up the world on the Apocalypse day?
>>56666561
You understand this is literally autism right?
You literally dont have the right to resyntax math.
this is supposed to be a bridge to learn assembly?