News for hackers. Stuff that matters.
Re:Reversing Sinclair's amazing 1974 calculator hack - half ... by revelation on Friday August 30, 2013 @02:10PM (#6303266)
The joke has been going on for quite some time now - Lisp and related languages use Polish Notation everywhere.

(The main benefit is that (R)PN is parenthesis-free, so it makes it easier for a calculator to process expressions with multiple operators. The use in programming languages is nonexistent but to make clear that +, *, .. are just like any other function call, where you would naturally use polish notation.)

Re:Reversing Sinclair's amazing 1974 calculator hack - half ... by Scaevolus on Friday August 30, 2013 @02:22PM (#6303349)
Not nonexistent-- there are many stack-oriented programming languages[1], of which Forth is the most famous.

There's even a "Reverse Polish Lisp" on HP calculators!

[1] http://en.wikipedia.org/wiki/List_of_programming_languages_b...

Re:Reversing Sinclair's amazing 1974 calculator hack - half ... by nealabq on Friday August 30, 2013 @02:30PM (#6303400)
Re:Reversing Sinclair's amazing 1974 calculator hack - half ... by revelation on Friday August 30, 2013 @02:25PM (#6303367)
Sorry, I meant there is no benefit to using it in programming languages.
Re:Reversing Sinclair's amazing 1974 calculator hack - half ... by Scaevolus on Friday August 30, 2013 @02:39PM (#6303455)
Forth is arguably the best language in terms of expressive power/language complexity, though that's largely due to the denominator.

It's a great choice for tightly constrained devices, though far fewer devices have such constraints now. The mental overhead of having to track stack-effects for each function makes it difficult to scale to large systems and maintain productivity, but if you're trying to eke every iota of power out of a chip with a tiny amount of ROM, it's hard to beat a direct-threaded (or token-threaded...) Forth.

Re:Reversing Sinclair's amazing 1974 calculator hack - half ... by orclev on Friday August 30, 2013 @07:07PM (#6304742)
> Lisp and related languages use Polish Notation everywhere.

> The main benefit is that (R)PN is parenthesis-free

... so what you're saying is Lisp has all those parenthesis just to troll us?

Seriously though, using PN can make implementing parsers a lot simpler as it makes the grammar less ambiguous.

Re:Reversing Sinclair's amazing 1974 calculator hack - half ... by anaphor on Friday August 30, 2013 @11:30PM (#6305654)
I don't know about less ambiguous, it can still require only single token lookahead and be context-free without any parentheses, but Lisp-ish languages are easier to parse because you have fewer productions to worry about compared to more complex languages.