75
Forth (suppo.fi)
top 8 comments
sorted by: hot top controversial new old
[-] Kojichan@lemmy.world 1 points 3 hours ago

Loved playing with a Forth subset (MUF) in MUD and MUCKs.

[-] otacon239@lemmy.world 8 points 6 hours ago* (last edited 6 hours ago)
[-] davidgro@lemmy.world 2 points 4 hours ago

Thisgreatisone! ?

If the operands go the other way, I suppose:

oneisgreatThis!

[-] Chais@sh.itjust.works 2 points 5 hours ago

But just to nitpick, wouldn't this parse into "Forth ❤️ I"? Which is to say, aren't the operands in the wrong order?

[-] JohnnyCanuck@lemmy.ca 6 points 5 hours ago

But just to nitpick, wouldn't this parse into "Forth ❤️ I"? Which is to say, aren't the operands in the wrong order?

No, they're correct. You're parsing it wrong.

[-] jdnewmil@lemmy.ca 4 points 4 hours ago

RPN

data1 data2 function

Neither Forth nor I are actions.

[-] froh42@lemmy.world 1 points 3 hours ago

That's true, but as the Forth is top of stack I'd read it as the subject and I as the object. OFC that's just how you define the heart-word, but still.

[-] victorz@lemmy.world 2 points 2 hours ago

The operand at the top of the stack is used as the second operand for binary operators. Second from the top is used as the first operand.

Here illustrated using dc, and doing the calculation 3 - 1 and printing the answer with the command p, getting the result of 2. As we can see here with a noncommutative operation (subtraction), in order to illustrate the point, we get 2, rather than -2.

~ dc
3 1 - p
2
this post was submitted on 10 Aug 2026
75 points (100.0% liked)

Programmer Humor

32705 readers
937 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS