News for hackers. Stuff that matters.
Re:Stack-Oriented Programming by xiphias2 on Tuesday January 14, 2020 @05:09PM (#22049745)
Bitcoin also uses stack oriented language, and the interpreter is actually very short and simple:

https://en.bitcoin.it/wiki/Script

https://github.com/bitcoin/bitcoin/blob/master/src/script/sc...

Re:Stack-Oriented Programming by triska on Tuesday January 14, 2020 @05:38PM (#22049977)
Yes! Stack-based abstract machines are often used because they allow compact code that is very easy to create and interpret.

As another example, Pascal p-code (UCSD p-code) is also stack-based:

https://en.wikipedia.org/wiki/P-code_machine

The Java Virtual Machine (JVM) also uses an operand stack:

https://en.wikipedia.org/wiki/Java_virtual_machine

Re:Stack-Oriented Programming by jacobush on Wednesday January 15, 2020 @04:33AM (#22052896)
That P-code was not (quite!) portable between computers, was a lost opportunity. How cool it would have been.