4 ms·
> GIMP even respects the order of operations, so if you go for something like 600 - 2 * 5, the answer will be 590. I mean, what else could it do? That this nee
by ggambetta 6y ago
> GIMP even respects the order of operations, so if you go for something like 600 - 2 * 5, the answer will be 590.
I mean, what else could it do? That this needs to be said makes me strangely sad :(
- altern8 6y agoLeft to right..?
- kevin_thibedeau 6y agoMany older languages evaluated expressions left to right. For assemblers this saves you from managing intermediate values and you can spit out ALU instructions in order without need for register assignment magic.
- bobbiechen 6y agoVisiCalc [1], the first spreadsheet program and the "killer app" for business on the Apple II, also used left-to-right evaluation. Dan Bricklin said he needed people to be able to quickly enter equations as they did on a cheap (non-RPN) calculator [2, at around 35:10]. [1] https://en.wikipedia.org/wiki/VisiCalc https://en.wikipedia.org/wiki/VisiCalc [2] https://scs.hosted.panopto.com/Panopto/Pages/Viewer.aspx?id=d129250d-7c28-45f5-874b-a9fa01542afb https://scs.hosted.panopto.com/Panopto/Pages/Viewer.aspx?id=...
- ggambetta 6y agoThat's not the tone in this article, though. It's not "the input field is not in RPN", it's "OMG CAN DO THE BASICEST OF BASIC MATH, HOW CLEVER!!!"
- yjftsjthsd-h 6y agoObvious thought: reverse Polish notation. It'd be a little surprising from GIMP, but not unthinkable.
- bbotond 6y agoIt needs to be said because not every user is a programmer and things like this aren’t obvious to them.
- ggambetta 6y agoThis is primary school arithmetic, not programming :(