News for hackers. Stuff that matters.
Re:Clac – A command-line, stack-based calculator with postfi... by protomyth on Thursday April 13, 2017 @02:11PM (#14109477)
Nice. I did one in Perl a long while back. I added sum to sum the contents of the stack (good for bill paying day) and pt for Pythagorean theorem because I was doing a lot of cable distances.

Is there a command line Forth interpreter out there that can save words or load a startup dictionary each use?

Re:Clac – A command-line, stack-based calculator with postfi... by soveran on Thursday April 13, 2017 @02:20PM (#14109567)
That's interesting: commands that consume everything in the stack. About saving/loading words: I have plans to work on that, it could be a very useful feature.
Re:Clac – A command-line, stack-based calculator with postfi... by protomyth on Thursday April 13, 2017 @03:34PM (#14110243)
Postscript had the concept of dropping a mark on the stack that allowed commands that would consume the whole stack to also stop at a mark if encountered.

  5 4 mark 3 2 1 sum -> 5 4 6
Re:Clac – A command-line, stack-based calculator with postfi... by soveran on Thursday April 13, 2017 @03:54PM (#14110398)
I love the idea, thanks for the tip!