... Fascinating exercise. The XY implementation essentially used a Lispish Lambda to temporarily bind parts of the stack to names. The Joy and Factor...
... or ... stack. ... *snip* ... This inspired me to implement the thread combinator and rewrite the implementation of the quadratic function in Joy: ...
... Well, given that John (me) wasn't sure what he (I) was talking about anyway... I would call that a very good go. I'm pretty sure that any 2D or N-D...
I've been watching this thread with interest, but I think you guys are taking the wrong approach. Instead of asking "how can I make a complex stack effect...
Slava Pestov
slava@...
Feb 6, 2005 9:22 pm
2187
... The reason why I'm going through these contortions is to try somehow keep the nifty concatenative property that makes rewriting Joy such an, umm, Joy, and...
From: "Slava Pestov" <slava@...> ... me too, but i've drawn a different conclusion. the computation, written in "math", is clear and easy to understand,...
stevan apter
sa@...
Feb 6, 2005 10:19 pm
2189
... What about having objects on the stack, where an object contains several named fields, as in Factor? Slava...
Slava Pestov
slava@...
Feb 6, 2005 10:19 pm
2190
In that case, if you're dealing with extremely complicated formulas, why not just embed a domain-specific language that parses infix? Most code does not...
Slava Pestov
slava@...
Feb 6, 2005 10:22 pm
2191
From: "Slava Pestov" <slava@...> ... in my opinion, too much setup is required. the quadratic algorithm takes three numbers, not an object containing ...
stevan apter
sa@...
Feb 6, 2005 10:22 pm
2192
From: "Slava Pestov" <slava@...> ... the quadratic formula isn't extremely complicated. besides, it's not the infix/postfix difference which is causing ...
stevan apter
sa@...
Feb 6, 2005 10:27 pm
2193
... I wasn't suggesting it for the quadratic algorithm, just in general. BTW Why don't we see you in #concatenative anymore? Slava...
Slava Pestov
slava@...
Feb 6, 2005 10:29 pm
2194
I agree. My feeling is that if the convatenative approach ever takes off then it will be as a "bottom layer" language which is suitable for analysis,...
From: "Slava Pestov" <slava@...> ... ok. ... just taking a holiday. i'll be back....
stevan apter
sa@...
Feb 6, 2005 10:35 pm
2196
... I think the concatenative approach works well for many problems. The only difficulty I've found is with mathematical formulas; everything else seems to...
Slava Pestov
slava@...
Feb 6, 2005 10:43 pm
2197
... Please excuse my perversity, I have been reading XSLT manuals all day so my brain is sore... ... I read that as what I call "compile time lambda" creating...
... Provided it is a reversible transformation from the high level to low level and back again. That Algebra on Joy is just too sweet to lose. John Carter...
... This particular example does not use objects on the stack. I was just pointing out that a general way to reduce stack noise is to group values inside...
Slava Pestov
slava@...
Feb 7, 2005 1:22 am
2200
... Already true, I think: assembly language is concatenative, with the store and registers taking the place of the stack. -- John Cowan...
... First a context Question, which came first, the Factor developer's guide or Manfred's annoying Quadratic question? I see the Factor developer guide uses...
... The Factor developer's guide has sadly not been updated for quite a while ;) ... Namespaces are one way; a more recent development is tuples, which I ...
Slava Pestov
slava@...
Feb 7, 2005 3:33 am
2203
... Ah! So I assume Manfred got the vexing question from you then. ... So am I far more concerned with practicality, but it is that purity that makes easy...
... Yes.. sorry about that, I forgot whom I was replying to so it came out a bit weird - I didn't even notice until now. ... programs simultaneously, ... ...
... I agree. I'd even more like to figure out how to express the properties of some of the extensions to the concatenative languages we've been looking at --...
"William Tanksley, Jr" <wtanksleyjr@...> wrote on 02/07/2005 10:57:30 ... downside of ... i'm not sure i understand what you mean by "local variable"....
sa@...
Feb 7, 2005 5:37 pm
2207
... Not really, it just means you have to execute one operator from each program in each time step, and you have to cache what is on top of all stacks before...
... I agree. I can't think of any situation where an immutable stack reference couldn't be replaced by a series of equivalent stack operators. As I said in an...
... I'm trying hard to figure out whether what Manfred has done is something deep, profound and fundamental about the universe.... Or whether it is a mere...
... more ... between ... and arrange these coincidences in order to maximize the number of useful operations on combinations involving the fewest number of...
sa@...
Feb 7, 2005 8:44 pm
2211
... Ah, that's the bit I object to. Minimizing keystrokes. I feel then I'm giving into "Optimizing for the current technology" rather than "There is something...
... In case the tone got lost in translation to ASCII text format, I was joking and certainly not referring to anybody present. Well mostly joking. A certain...