Pretty interesting read, especially the historical detour.https://research.swtch.com/fp-knuth
-
Pretty interesting read, especially the historical detour.
https://research.swtch.com/fp-knuth -
Pretty interesting read, especially the historical detour.
https://research.swtch.com/fp-knuthIvy is kinda cryptic though, Python has all the same functionality but in a sensible form
-
Ivy is kinda cryptic though, Python has all the same functionality but in a sensible form
This is just bonkers: "Ivy uses strict right-to-left operator precedence: 1+2*3+4 means (1+(2*(3+4)))"
-
This is just bonkers: "Ivy uses strict right-to-left operator precedence: 1+2*3+4 means (1+(2*(3+4)))"
@vitaut that reminds me how Go tries to gaslight "simple = good" as well. Uniform operator precedence is simpler and thus better amiright
-
This is just bonkers: "Ivy uses strict right-to-left operator precedence: 1+2*3+4 means (1+(2*(3+4)))"
@vitaut As a right-to-left language reader, I still hate it
-
@vitaut that reminds me how Go tries to gaslight "simple = good" as well. Uniform operator precedence is simpler and thus better amiright
@artificialmind @vitaut If you're going for "simple" syntax in that sense, just use Lisp.
Otherwise implement operator precedence.
-
@artificialmind @vitaut If you're going for "simple" syntax in that sense, just use Lisp.
Otherwise implement operator precedence.
@ids1024 @artificialmind I had lisp but after therapy it's better now
-
This is just bonkers: "Ivy uses strict right-to-left operator precedence: 1+2*3+4 means (1+(2*(3+4)))"
@vitaut
It's a choice.
There are tradeoffs.
APL family of languages mades this heretical choice mid last century to simplify parsing and enable higher order operators unambiguously.For purpose of reasoning about a program formally, simple unambiguous grammar helps.
Not going to be popular for real work!
(HP RPN calculators and Forth similarly but for different advantages: no parentheses in artihmetic at all. Lisp takes the opposite extreme, paren all the things.)
-
undefined oblomov@sociale.network shared this topic