Show HN: The Taka Programming Language
codeberg.org
Show HN: The Taka Programming Language
1–5 of 5 posts
Re: Show HN: The Taka Programming Language
#2Re: Show HN: The Taka Programming Language
#3Is there an advantage to using PN as opposed to RPN? Those of us used to Forth, PostScript, dc, might find it difficult to switch paradigms.
Re: Show HN: The Taka Programming Language
#4Forward polish notation + multi-line programs is _weird_ though. It means you read tokens _right-to-left_ and then top to bottom. Readme gives good example in [0]:
The long form (same in Taka or Forth) of
4
3
2
+
is equivalent in Taka to 3 4
+ 2
(and both leave 5 on top of stack, and 4 underneath it)[0] https://codeberg.org/marton/taka#basic-syntax-and-execution
Re: Show HN: The Taka Programming Language
#5Neat! Forward polish notation + multi-line programs is _weird_ though. It means you read tokens _right-to-left_ and then top to bottom. Readme gives good example in [0]: The long form (same in Taka or Forth) of 4 3 2 + is equivalent in Taka to 3 4 + 2 (and both leave 5 on top of stack, and 4 underneath it) [0] https://codeberg.org/marton/taka#basic-syntax-and-execution
list [
1
2
3
]
creates the list [3 2 1]. (When indexing, the first item of the list is the one on top of the stack.) This has tripped me up several times.