> <i>In our notation, it's just drop dup (^2) + (^2) - abs. Simple, readable, beautiful.</i><p>Considering how the author is not presenting a language for stack manipulation, but for defining functions of fixed arity, I fail to see how that style is supposed to be simpler or more readable than the usual formulation, in the syntax of your choice, for example: fun x y z -> x^2 + y^2 - abs y<p>> <i>programming is finally liberated from von-Neumann style</i><p>No, it's not.<p>Not until you show me how a sorting algorithm (say) written in that FP/FL (J?)-inspired style is just as readable, but with less potential bugs.<p>Also, not until you show me how a complex algorithm written in that style can be more easily synthesized to a FPGA or some other non-von Neumann computing platform.<p>I will agree that ';' is a nice idea, but extraordinary claims require extraordinary evidence.<p>In particular, the article fails to explain what device is supposed to replace recursion or unbounded iteration, that allow Turing-completeness (and modern software as a consequence) to exist in the first place.
I feel like the syntax could do with bit more explanation. For example in "(* ) + (* )" the use of parenthesis is not explained anywhere as far as I can tell. Also, shouldn't it be "(* ) `+` (* )" instead if "+" is used as an infix function instead of postfix, i.e. so that the expression desugars into "(* ) ; (* ) +"
Since nobody else seems to care, I'll just put this out here: "arited" is really rather weird. I would say "aritied" instead (pronounced "ari-teed", not "ari-tied").<p>Does anyone know of a parallel construction turning any word ending in "-ity" into a past participle?
Author's implementation in rust: <a href="https://github.com/suhr/esobsc" rel="nofollow">https://github.com/suhr/esobsc</a><p>The parser and AST have tests, which clear up some of the syntax confusion, but it doesn't have the function definitions used in the last code example.
The main invention here is being able to write a function as drop dup (^2) + (^2) - abs, meaning the same as fn(x,y,z)=>( x * x + y * y - abs(y)).<p>But, it does not read at all naturally for a concatenative language. The first two atoms (drop, dup) work in the usual fashion (directly and immediately affecting the stack). Then, the (^2) is just a syntactic input for the + after it, which is now an infix operator, also consuming the (^2) after it. But these _still_ don't yet affect the stack, as the - is also consuming atoms and it consumes the final abs. Then, the expression so built is run against the current stack. It gives the impression of elegance and flexibility by throwing away the very thing that makes concatenative languages what they are.<p>There are better solutions, like using a scratch space (like the return stack, given in another comment) or otherwise explicitly making given atoms input or output from/to a non-default location.
<rant><p>The "why concatenative programming matters" example is a strawman to begin with. The correct solution in standard Forth is "DUP >R DUP * SWAP * + R> ABS -" not the rot3 garbage they exhibit (yes, I ignored the useless z parameter because it's beyond the idiocy I can deal with).<p>Same goes for the (ab+cd) example, that simply writes "* >R * R> +".<p>Two stacks, problem solved. Forth lets you use the return stack for a reason. If you're a chicken, just provide a second user stack and hide the return stack. Problem solved.<p>But I guess that introducing and writing about the <i>powerful</i> (this word, really, should be treated as an intellectual smell) ";" operator is more fun. The only problem is that this operator actually doesn't work on stacks but arrays. Oops.<p>But, hey, can have infix notation!<p></rant>
Posted 20 days or so ago but did not find many upvotes. My comments on the original post are still relevant:<p>-----<p>1 point by drallison 20 days ago [-]<p>Interesting but incomplete paper, apparently cited in from Redit although located on github.<p>Sadly, there is no information about who the author might be. One of the redit comments suggests that the author is gopher9.<p>The paper does cite as examples several of James Purdy's lanugage experiments. He is evincarofactum@github.
I only recently found out about J and had never heard about APL before. Is the dc (predecessor of the bc cli calculator) syntax in the same family here?