... Yes, that is the conclusion I reached when writing my previous note. The "structured flow of control" patterns IF, WHILE, REPEAT, CASE LOOP-and-a-half...
On Mon, 28 Apr 2003, Nick Forde wrote: [..] ... I found the specification of the problem quite inscrutable, and eventually understood it only when I read some...
... Yes, me too. Looking at some of the other solutions I now think my initial attempt was over engineered. ... Looking at some of the other solutions the...
... Here's a slightly better description of the problem: http://www.paulgraham.com/accgensub.html 1. Takes, and returns functions that take, exactly one...
... The problem statement is still opaque to me so I've probably misunderstood. Below is a solution (?) in Monkey (my Joy-alike) but the Joy version...
Hi Martin, ... Nice! I think this _is_ a valid solution. I've also just noticed that my solution returns i incremented by n rather than n incremented by i....
On Fri, 2 May 2003, Nick Forde wrote: [.. a propos solutions to the "accumulator challenge" ..] ... No, I think you were exactly right. Over the weekend I did...
paul should get an award for writing the most baffling specification of a simple problem ever. i think what he's after is a function which takes a number,...
sa@...
May 5, 2003 3:17 pm
1412
On Thu, 24 Apr 2003 phimvt@... wrote: [...] ... [...] ... 07-MAY On the Joy page, NEW: A (longish) note on nested recursion, several...
Hello, I'm new to this group. I've skimmed most of the early messages (the first 800 or so), as well as a few of the more recent ones. Anyway, regarding the...
although [[+ foo]cons] meets the "acc" part of the spec, i think the explicit reference to "foo" means that you can't satisfy the "gen" part. in some other...
Stevan Apter
sa@...
May 8, 2003 12:11 pm
1415
... Hi Stevan, In the previous example the foo definition was the "gen" part. i.e. DEFINE gen == [+ gen] cons. Calling "gen" returns a quotation, which we can...
From: "Stevan Apter" <sa@...> ... I'm going to put my foot in my mouth here -- but how about this? foo = [[+ foo i]cons]; gen = foo i. To generate an...
... Very cool stuff. I am now beginning to play around with a Joy implementation in Scheme. The current C implementation is usable, but it is not beautiful...
... It was pointed out to me that the top-of-page banner and the botton-of-page banner make some of my web pages hard to read. History: For years I have been...
I think we should first specify what an accumulator is supposed to do. Here is an all too vague attempt: An accumulator "contains" a current value, and it ...
On Thu, 8 May 2003, John Cowan wrote: [...] ... Alas, yes. I have on occasions thought about a cleaner and more flexible implementation, but it is all rather...
dear colleagues is there a joy .exe for windows? at work, and at home, i'm running NT. as things stand, i don't have a c compiler (and even if i did, i...
Stevan Apter
sa@...
May 9, 2003 2:08 pm
1422
... Someone sent me an executable, dated 5 June 2001, so it does not have the latest fixes. The URL is http://www.ccil.org/~cowan/joy1.exe ; feel free to copy...
thanks john. finally, i'm able to actually run joy ... ... From: "John Cowan" <cowan@...> To: <concatenative@yahoogroups.com> Sent: Friday, May 09, 2003...
Stevan Apter
sa@...
May 9, 2003 4:07 pm
1424
From: phimvt@... ... I think the specification was pretty clear that every accumulator has to be a function; quotations are arguably...
... I agree. I'm still getting my head around it! ... Great. A Scheme implementation would be much more elegant than the current C interpreter, although...
... Well, it depends on your environment: Unixes tend to come with gcc but not Scheme, so there is that hurdle to get over; still, the RPM package and the...
... to C ... more ... but not ... and ... [snip] Have you checked out Bigloo Scheme? I believe it is compiled directly into C. It's free, has .rpm's for...
... Excellent point. When I get the implemention done in Petite, I'll grab Bigloo and generate myself some C. ... Exactly what I have in mind: (j 32 45 +) ...
... [snip] ... Ah, finally something I'm qualified to speak about around here ;) (1996) http://www.cs.indiana.edu/scheme-repository/imp/siod.html (1997)...
... grab ... that ... to ... Great! The chapter on embedding Prolog is toward the back of the book ;) Amazingly, Graham implements the entire language in a...
... I sure don't see any way to do it using only R5RS hygienic macros. So far my only deviation from R5RS is that in the Chez implementation symbols have...
... know ... Pretty sure the most up-to-date page is http://people.delphiforums.com/gjc/siod.html. Another Scheme implementation in a similar vein is Gauche....