Ministry of Thought

Invoking, Promoting, and Provoking Thoughts since sometime 2011.

Think of a stack-based language as operating on a stack of paper plates with a sharpie in hand.

Each operation has some effect on the stack, for example, ADD (and other two-input or binary operations), generally takes off the top two paper plates (permanently), ADDs them, and writes a new paper plate and puts it on the stack. A Stack of two elements (the operands) will have just one (the result) after said operation.

The INPUT operation might take input, then write that to the stack.

Simply putting a ‘thing’ like 5 or “Hello, World!” as an operation will write that to a new paper plate, and put it on the stack. Generally, there are utility instructions like DUP for duplicating the element at the top, or SWAP for swapping the top two elements.

Anyway, to the point. Multiplying two inputs would go something like this (for some reason, most stack based languages are in caps):

INPUT INPUT MUL OUTPUT

I guess that’s readable. But once you start getting more complex things going…

INPUT DUP INPUT ADD OUTPUT ADD

In the end, they make you want to fix the writers Enter key. He could have written:

x = Input( )
y = Input( )

output( x + y )
output( x + x + y )

But there are some good things about stack based languages. For one, they are amazingly well suited for designing simple hardware.

Anonymous asked: NO U

Y U ABUSE MEMES?

Anonymous asked: Is it down, down, derpfag is going down?

Yes, your forums are down.

Anonymous asked: is this joe? 8D

Probably.

Anonymous asked: CAN YOU HALP ME FIX MAH CARPSLOCH?

Nope.

Anonymous asked: NEVER GONNA GIVE YOU UP, NEVER GONNA CHOCOLATE PAIN?

Hi Steven

Anonymous asked: ARE YOU WATCHING GRUEN NOW?

Nope

Anonymous asked: Y U PING OVER 9000?

Because your server with 2GB of RAM can’t handle a couple of clients

Anonymous asked: Y U NO POST?

Because your forums are down so much.

A large Minecraftian farm that has taken quite a while to set up.

Now, if we turn 180 degrees, there is a house. The following is looking out of the house, on the second floor, away from the farm. If you look closely, there is another house of mine on the land mass opposite. There is an island in the middle.

A friend of mine has a house on (or, rather, in) the island visible to the right. He has described graphically how he would burn my houses down, but he hasn’t done it yet. This I find strange, because while exploring his house, I found all of the necessary ingredients to craft a lighter. Not sure if he’s been stealing wheat to make bread to sustain himself, or whether he will begin to soon. Perhaps he will try a protection racket.

Having 6GBs of RAM makes me feel as though my computer is much more powerful, even though there was no noticable increase in performance.