> Uiua can be embedded in Rust programs as a library.
Cool! I was wondering if there was any viability beyond short scripts.
> Uiua can be embedded in Rust programs as a library.
Cool! I was wondering if there was any viability beyond short scripts.
For example in uiua:
* + 1 2 5
Pushes 5 on the stack, then pushed 2, then pushes 1. Then pops 1 and 2 adds them together and pushes 3, then pops 3 and 5 and multiplies then togetherReverse polish:
5 2 1 + *
EDIT: it does makes sense in the context of an array languageThe latter is kinda like "the old man the boat" where information occurring later in time changes the meaning of what comes prior.
I'm sure once things get complicated enough I would understand neither RtL or LtR with equal confusion, but the smaller cases seem very readable.
(* (+ 1 2) 5)For whatever reason over 90% of them have the same silly design flaw that pressing 'log' just appends 'log(' to whatever is in screen, which makes no sense. It effectively makes it impossible to ever calculate the logarithm of something.
I mostly use the RPN mode though.
In expression mode you're supposed to first enter log and then the inner expression
For now I'm using RealCalc, which is about the only one that I can find that has a 'normal' calculator mode (i.e. infix for binary operators, suffix for unary). Though it also has an RPN mode, which is quite useful.