Re: [Chicken-users] newbie: using hart- unbound variable: hart-parse

2008-12-16 Thread Graham Fawcett
Hi folks, Thanks, Felix, for answering this one. Is there a directive we could add to hart itself, to automate the require-for-syntax? Basile, I hope you enjoy using Hart! Best, Graham On Mon, Dec 15, 2008 at 2:29 AM, felix winkelmann bunny...@gmail.com wrote: On Sat, Dec 13, 2008 at 12:05

[Chicken-users] current base64 on chicken 3 incorrect?

2008-10-31 Thread Graham Fawcett
Hi folks, The current base64 egg for Chicken 3 builds, but gives me incorrect results. The non-working version is by Bailey, ported by Felix. (I found an older version in Scheme by Felix that works correctly.) Sorry for not debugging the problem, but attached is a test program that runs

[Chicken-users] base64 import problem with chicken-hygienic

2008-08-27 Thread Graham Fawcett
Hi folks, it looks like base64 under chicken-hygienic doesn't import properly -- I get the import.so but not the real one. I used the new chicken-install to fetch base64, though I don't think that's relevant. Best, Graham CHICKEN (c)2008 The Chicken Team (c)2000-2007 Felix L. Winkelmann Version

Re: [Chicken-users] base64 import problem with chicken-hygienic

2008-08-27 Thread Graham Fawcett
On Wed, Aug 27, 2008 at 1:33 PM, Peter Bex [EMAIL PROTECTED] wrote: On Wed, Aug 27, 2008 at 12:11:02PM -0400, Graham Fawcett wrote: Hi folks, it looks like base64 under chicken-hygienic doesn't import properly -- I get the import.so but not the real one. (import) is a statement that imports

Re: [Chicken-users] pretty-print

2008-08-27 Thread Graham Fawcett
On Wed, Aug 27, 2008 at 5:52 PM, Daishi Kato [EMAIL PROTECTED] wrote: Hi, This is more like a general scheme or lisp question, but does anybody know how I can get a formal rule for pretty print? I want to implement pretty print in non-scheme programming language. Not Scheme at all, but

Re: [Chicken-users] chicken on linux64

2008-08-21 Thread Graham Fawcett
On Thu, Aug 21, 2008 at 3:39 AM, felix winkelmann [EMAIL PROTECTED] wrote: On Wed, Aug 20, 2008 at 10:15 PM, Graham Fawcett [EMAIL PROTECTED] wrote: I know I'll need to recompile Chicken and any shared libraries. Are there other things I should be concerned about, e.g. surprising differences

[Chicken-users] chicken on linux64

2008-08-20 Thread Graham Fawcett
Hi folks, I have some Chicken 2.x and 3.x Web applications in production on a 32-bit Intel Linux server. We may be upgrading to a new 64-bit Intel machine, and I'm wondering what kind of Chicken-specific road-bumps I might encounter when I try to migrate the apps. I know I'll need to recompile

Re: [Chicken-users] egg announcement: remote-repl

2008-08-19 Thread Graham Fawcett
On Tue, Aug 19, 2008 at 9:36 AM, Tobia Conforto [EMAIL PROTECTED] wrote: Jörg F. Wittenberger wrote: are dynamic-wind pre/post-thunks by chicken executed upon each thread switch? Why would they? It's not a bad question. When threads are implemented using continuations, it is reasonable to

Re: [Chicken-users] egg announcement: remote-repl

2008-08-19 Thread Graham Fawcett
On Tue, Aug 19, 2008 at 10:02 AM, Graham Fawcett [EMAIL PROTECTED] wrote: On Tue, Aug 19, 2008 at 9:36 AM, Tobia Conforto [EMAIL PROTECTED] wrote: Jörg F. Wittenberger wrote: are dynamic-wind pre/post-thunks by chicken executed upon each thread switch? Why would they? It's not a bad

Re: [Chicken-users] An alternative thread system?

2008-08-18 Thread Graham Fawcett
On Sun, Aug 10, 2008 at 9:42 PM, Vincent Manis [EMAIL PROTECTED] wrote: CPython uses a Global Interpreter Lock (GIL) to implement critical sections in the interpreter, thus rendering native threads in that system impossible. Some version of the Python interpreter (I think it was 1.6) was

Re: [Chicken-users] Anyone up for porting Termite to Chicken?

2008-05-21 Thread Graham Fawcett
On Wed, May 21, 2008 at 9:39 AM, Mark Fredrickson [EMAIL PROTECTED] wrote: I do believe that one can start a new Erlang VM and add it to the cloud at any time, but I get the impression this is actually rare. With n cores, why not just start a VM on each core to begin with? A year or two ago,

Re: [Chicken-users] Cyclic lists and the Interpreter

2008-04-08 Thread Graham Fawcett
On Mon, Apr 7, 2008 at 3:24 PM, Alex Rozenshteyn [EMAIL PROTECTED] wrote: (define a (list 'a)) (set-cdr! a a) ;a is now a cyclic list (pair? a) ; - #t (list? a) ; - #f (length a) and now the interpreter gets stuck. control-c does not break (this is because I have the readline egg

Re: [Chicken-users] DBI

2008-04-07 Thread Graham Fawcett
On Sun, Apr 6, 2008 at 1:46 PM, Matthew Welland [EMAIL PROTECTED] wrote: What is the status of this effort? I have written a *very* simplistic DBI which supports lowest common demoninator access to sqlite3 and postgresql. It is only 90 or so lines of code but so far seems enough to let me

Re: [Chicken-users] DBI

2008-04-07 Thread Graham Fawcett
On Mon, Apr 7, 2008 at 9:51 AM, Graham Fawcett [EMAIL PROTECTED] wrote: Matthew, you just reminded me that I never made a release for the Postgres change I made, that allows for (optional) query parameters. I'll find a minute today to release it. Ah, it looks like Kon moved postgresql

Re: [Chicken-users] http cookie order

2008-03-31 Thread Graham Fawcett
On Mon, Mar 31, 2008 at 1:40 PM, Tony Sidaway [EMAIL PROTECTED] wrote: Thanks for a very informative analysis. Of course this whole problem only cropped up because we Schemers like to build up lists by consing new elements to the front. I would probably have included a reverse in the

Re: [Chicken-users] http cookie order

2008-03-28 Thread Graham Fawcett
On Thu, Mar 27, 2008 at 9:07 PM, Tony Sidaway [EMAIL PROTECTED] wrote: Using http.egg to write a bot that has to login to a ubb forum, I discovered that the cookie processing order of that egg resulted in login failure. When I tweaked http:read-request-attributes to reverse the order of

Re: [Chicken-users] Win32 Threading Issue

2008-03-28 Thread Graham Fawcett
On Thu, Mar 27, 2008 at 6:12 PM, Raymond Medeiros [EMAIL PROTECTED] wrote: can someone give me a reasonable explanation as to why this would not work on Win32 but works properly on Linux? what am i missing here? Just curious, in what way doesn't it work? Graham (use tcp-server)

Re: [Chicken-users] http cookie order

2008-03-28 Thread Graham Fawcett
On Fri, Mar 28, 2008 at 8:31 PM, Drake Wilson [EMAIL PROTECTED] wrote: [RFC excerpts snipped] My interpretation of this is: - Forwarders are not permitted to rearrange multiple Set-Cookie headers. HTTP client and server libraries have the same constraint. - Origin servers

Re: [Chicken-users] ditching syntax-case modules for the utf8 egg

2008-03-18 Thread Graham Fawcett
On Tue, Mar 18, 2008 at 7:05 AM, Alex Shinn [EMAIL PROTECTED] wrote: Tobia == Tobia Conforto [EMAIL PROTECTED] writes: Tobia Graham Fawcett wrote: Here's another thought. It seems to me that if we were to represent strings as composite values, e.g. a two-slot record

Re: [Chicken-users] ditching syntax-case modules for the utf8 egg

2008-03-18 Thread Graham Fawcett
On Tue, Mar 18, 2008 at 10:01 AM, John Cowan [EMAIL PROTECTED] wrote: Graham Fawcett scripsit: So, a byte string would simply be a string with a null auxilliary vector. That doesn't work. A byte-string is not a sequence of characters from the ASCII repertoire, it's a sequence

Re: [Chicken-users] ditching syntax-case modules for the utf8 egg

2008-03-18 Thread Graham Fawcett
On Tue, Mar 18, 2008 at 12:22 PM, John Cowan [EMAIL PROTECTED] wrote: It wouldn't solve the data-punning problem. As long as the same object can be seen one way by one module and another way by another, problems will continue to be endemic. To fix that, we need two run-time types, which

[Chicken-users] shootout benchmark: ring

2008-03-18 Thread Graham Fawcett
Hi folks, Last night I worked on a submission for the 'ring' benchmark in the Shootout: http://shootout.alioth.debian.org/sandbox/benchmark.php?test=threadringlang=all After a couple different approaches, the one that worked best by far was to use the 'mailbox' egg, which we cannot do in the

Re: [Chicken-users] ditching syntax-case modules for the utf8 egg

2008-03-17 Thread Graham Fawcett
On Mon, Mar 17, 2008 at 11:22 AM, Kon Lovett [EMAIL PROTECTED] wrote: Summary: I want a byte-string API. I want string integrations. I want global UTF8 strings. The Factor language borrowed from Larceny a clever mechanism for representing Unicode strings efficiently. Perhaps such a system is

Re: [Chicken-users] ditching syntax-case modules for the utf8 egg

2008-03-17 Thread Graham Fawcett
On Mon, Mar 17, 2008 at 10:29 PM, Alex Shinn [EMAIL PROTECTED] wrote: Graham == Graham Fawcett [EMAIL PROTECTED] writes: Graham On Mon, Mar 17, 2008 at 11:22 AM, Kon Lovett [EMAIL PROTECTED] wrote: Graham The Factor language borrowed from Larceny a Graham clever mechanism

Re: Spiffy relies on content-length (was Re: [Chicken-users] Spiffy relies on removed proc.)

2008-03-16 Thread Graham Fawcett
On Sun, Mar 16, 2008 at 6:06 PM, Peter Bex [EMAIL PROTECTED] wrote: On Sun, Mar 16, 2008 at 02:56:11PM -0700, Robin Lee Powell wrote: With define-http-resource, *Spiffy* defines the headers, and it never asks the body. In fact, the headers are sent before the body is run. That's not

Re: [Chicken-users] hart and syntax-case won't play nice. :(

2008-03-15 Thread Graham Fawcett
On Sat, Mar 15, 2008 at 1:26 PM, Kon Lovett [EMAIL PROTECTED] wrote: hart uses low-level macros only. Is there a way I can alter hart so that it will play better with code that uses higher-level macro systems? I'd rather not rewrite it in syntax-case (though it's really not very much macro code;

Re: [Chicken-users] web-scheme hart

2008-03-15 Thread Graham Fawcett
On Sat, Mar 15, 2008 at 2:42 AM, Robin Lee Powell [EMAIL PROTECTED] wrote: On Thu, Mar 06, 2008 at 09:37:42AM -0500, Graham Fawcett wrote: Hope this helps. Comments and suggestions are always welcome. I'd really like a way to call my i18n code with a minimum of fuss. This led me

Re: [Chicken-users] hart and syntax-case won't play nice. :(

2008-03-15 Thread Graham Fawcett
On Sat, Mar 15, 2008 at 2:49 PM, Robin Lee Powell [EMAIL PROTECTED] wrote: On Sat, Mar 15, 2008 at 02:48:01PM -0400, Graham Fawcett wrote: On Sat, Mar 15, 2008 at 1:26 PM, Kon Lovett [EMAIL PROTECTED] wrote: hart uses low-level macros only. Is there a way I can alter hart so

Re: [Chicken-users] hart and syntax-case won't play nice. :(

2008-03-15 Thread Graham Fawcett
On Sat, Mar 15, 2008 at 3:24 PM, Graham Fawcett [EMAIL PROTECTED] wrote: The main macro in Hart is ridiculously small. Hart-support (the non-macro code) does all the work: (define-macro (hart . forms) `(noop ,(apply hart-parse forms))) That should be trivial to translate into any

Re: [chicken-users] (declare (uses ...)) causing grief

2008-03-14 Thread Graham Fawcett
(declare (uses ...)) doesn't do what you think it does. :-) It's for specifying relationships between compilation units, not modules (eggs). I usually do csc -X module1 -R module2 myfile.scm (where module1 is needed at compilation, and module2 is needed at runtime). Graham

Re: [Chicken-users] Hang problem with the http egg.

2008-03-12 Thread Graham Fawcett
On Wed, Mar 12, 2008 at 11:22 AM, Robin Lee Powell [EMAIL PROTECTED] wrote: Could it be that the body is the string OK,585562 with no terminating newline, and read-line hangs on it? Possible. If that's really the issue, you could try using read-lines or read-all. But if so, it's

Re: [Chicken-users] Hang problem with the http egg.

2008-03-12 Thread Graham Fawcett
On Wed, Mar 12, 2008 at 3:47 PM, Hans Bulfone [EMAIL PROTECTED] wrote: hi, What's happening is that eof never returns true, even though the port is closed. ready returns #f, and the next operation (either peek-char or read-char, I've tried both) hangs. eof-object? is imho not meant

[Chicken-users] salmonella reports broken?

2008-03-10 Thread Graham Fawcett
Hi Mario, It looks like the salmonella scheduled task is choking on something. Recently the eggs are failing to build, showing this error text: Error: unbound variable: -script Not the end of the world, but I wasn't sure if you were aware of the problem. Best, Graham

[Chicken-users] Re: Chicken MPI

2008-03-08 Thread Graham Fawcett
On Sat, Mar 8, 2008 at 9:02 AM, Ivan Raikov [EMAIL PROTECTED] wrote: Well, the mailbox protocol is rather limited; I think you are much better off learning at least some of the group communication semantics of MPI, because they make a lot of sense to a practitioner of functional

Re: [Chicken-users] google summer of code

2008-03-07 Thread Graham Fawcett
On Thu, Mar 6, 2008 at 6:27 AM, Alaric Snell-Pym [EMAIL PROTECTED] wrote: I wrote an efficient shared-memory lock-free queue system for a client once. They own the copyright, but I would happily mentor a student to build a somewhat more general and portable (this was specific to a few

Re: [Chicken-users] macrolet

2008-03-07 Thread Graham Fawcett
On Fri, Mar 7, 2008 at 1:11 PM, Lui Fungsin [EMAIL PROTECTED] wrote: Hi, Is there a macrolet (CL style old school lexically scoped macro) for chicken? No macrolet, but you can use CL-style macros in Chicken. They just have to be defined at the toplevel, not in a macrolet. You can do variable

Re: [Chicken-users] macrolet

2008-03-07 Thread Graham Fawcett
On Fri, Mar 7, 2008 at 3:56 PM, Lui Fungsin [EMAIL PROTECTED] wrote: Hi Graham, Thanks for the reply. But it wouldn't do it for me because I'm trying to capture a binding at macro expansion time, not run runtime. Use case : (to support CL like (return-from) clause with call/cc)

Re: [Chicken-users] google summer of code

2008-03-07 Thread Graham Fawcett
On Fri, Mar 7, 2008 at 6:48 PM, Ivan Raikov [EMAIL PROTECTED] wrote: Graham Fawcett [EMAIL PROTECTED] writes: On reflection, I'd much rather see a really efficient IPC system like this, rather than having a native-threaded Chicken. Try the MPI egg! (Yet another shameless plug, I know

Re: [Chicken-users] web-scheme hart

2008-03-06 Thread Graham Fawcett
On 05 Mar 2008 23:29:19 -0300, Mario Domenech Goulart [EMAIL PROTECTED] wrote: On Wed, 5 Mar 2008 17:45:42 -0800 Robin Lee Powell [EMAIL PROTECTED] wrote: It seems to me that web-scheme and hart do more-or-less the same thing. 2. What's the difference between web-scheme and hart? Do

Re: [Chicken-users] readline blocks threads

2008-03-04 Thread Graham Fawcett
On Tue, Mar 4, 2008 at 5:50 PM, Shawn Rutledge [EMAIL PROTECTED] wrote: On Tue, Mar 4, 2008 at 3:47 PM, Elf [EMAIL PROTECTED] wrote: there is a way to do this. its just very painful. im working on a readline-ng egg with the changes, as the existing readline wont work. OK. I hope

Re: chicken literary spoofs (was: Re: argument against using '() for null values? ([Chicken-users] DBI))

2008-03-03 Thread Graham Fawcett
On Mon, Mar 3, 2008 at 4:00 PM, Shawn Rutledge [EMAIL PROTECTED] wrote: Chicken Literary is all in a panic that the stacks are falling. lol! Fortunately, Chicken Literary and his friends visited the fox, Henry Baker, who reminded them that their stacks are GC'd frequently. All was well again in

Re: [Chicken-users] New immediate values

2008-03-01 Thread Graham Fawcett
On Fri, Feb 29, 2008 at 4:02 PM, Ozzi Lee [EMAIL PROTECTED] wrote: I don't see that anyone's mentioned the existing sql-null egg yet. Is there anything wrong with it? http://chicken.wiki.br/sql-null I didn't know that existed. Thanks Ozzi. There are just too many damn eggs these days...

Re: [Chicken-users] New immediate values (was: DBI)

2008-02-29 Thread Graham Fawcett
On Fri, Feb 29, 2008 at 7:57 AM, felix winkelmann [EMAIL PROTECTED] wrote: On Fri, Feb 29, 2008 at 1:41 PM, Tobia Conforto [EMAIL PROTECTED] wrote: felix winkelmann wrote: Would a db interface include symbols as output? Would it? I honestly don't know. I haven't seen it in practice, and

Re: [Chicken-users] DBI

2008-02-29 Thread Graham Fawcett
On Fri, Feb 29, 2008 at 10:41 AM, felix winkelmann [EMAIL PROTECTED] wrote: On Thu, Feb 28, 2008 at 4:02 PM, Graham Fawcett [EMAIL PROTECTED] wrote: It would be a smart idea to change the implementation, then, so that the unspecified value could not be tested with (eq?). That would

Re: [Chicken-users] New immediate values (was: DBI)

2008-02-29 Thread Graham Fawcett
On Fri, Feb 29, 2008 at 2:57 PM, Tobia Conforto [EMAIL PROTECTED] wrote: So, to recap: Perfect recap! :-) (define-record-type sql-null (sql-null) sql-null?) Not too bad. Any piece of code could create null values with (sql- null), even in different compilation units. People

Re: argument against using '() for null values? ([Chicken-users] DBI)

2008-02-28 Thread Graham Fawcett
On Wed, Feb 27, 2008 at 10:53 PM, Ozzi [EMAIL PROTECTED] wrote: How is (sql-null?) harder or less intuitive? It's not harder, but not being able to use null? to test for NULL is counterintuitive in my eyes. I know what you're saying. I guess I just like to keep my different types of nulls

Re: [Chicken-users] Unfair question: best Lisp for web development?

2008-02-28 Thread Graham Fawcett
Hi Daishi, On Thu, Feb 28, 2008 at 1:28 AM, Daishi Kato [EMAIL PROTECTED] wrote: Graham Fawcett wrote: Sure. My first version was an SCGI server, but later I switched to HTTP. I usually host behind Apache, and moving from mod_scgi to mod_proxy was pretty straightforward, and in return

[Chicken-users] Re: postgresql: support for query parameters

2008-02-28 Thread Graham Fawcett
On Thu, Feb 28, 2008 at 2:43 AM, felix winkelmann [EMAIL PROTECTED] wrote: On Wed, Feb 27, 2008 at 3:47 AM, Graham Fawcett [EMAIL PROTECTED] wrote: Felix, I believe that Johannes is no longer maintaining the postgresql egg. I would be happy to maintain it if no one objects. Cool

Re: [Chicken-users] DBI

2008-02-28 Thread Graham Fawcett
On Thu, Feb 28, 2008 at 2:40 AM, felix winkelmann [EMAIL PROTECTED] wrote: On Wed, Feb 27, 2008 at 10:31 PM, Peter Bex [EMAIL PROTECTED] wrote: On Wed, Feb 27, 2008 at 04:23:37PM -0500, Graham Fawcett wrote: Can you even check for void? Afaik there's no VOID? procedure. You

Re: [Chicken-users] DBI

2008-02-28 Thread Graham Fawcett
On Thu, Feb 28, 2008 at 9:54 AM, Peter Bex [EMAIL PROTECTED] wrote: On Thu, Feb 28, 2008 at 09:47:08AM -0500, Graham Fawcett wrote: Yes, input port was what I was thinking. Thanks. The input port would return the body of the LOB and return #!eof when it's consumed. The Chicken blob

Re: [Chicken-users] New immediate values (was: DBI)

2008-02-28 Thread Graham Fawcett
On Thu, Feb 28, 2008 at 7:31 PM, Tobia Conforto [EMAIL PROTECTED] wrote: Graham Fawcett wrote: There does seem to be a good case for an immediate value that *can* be tested this way, though. John et. al. wouldn't have used (void) in eggs if there weren't. What about providing

Re: [Chicken-users] DBI

2008-02-27 Thread Graham Fawcett
On Wed, Feb 27, 2008 at 4:04 PM, Peter Bex [EMAIL PROTECTED] wrote: I've tended to let null be '(), but that partly comes from liking the look of (null? (alist-ref 'field result)) I'm not entirely comfortable with leaving the value entirely absent simply because the mapping I

Re: [Chicken-users] DBI

2008-02-27 Thread Graham Fawcett
On Wed, Feb 27, 2008 at 4:04 PM, Peter Bex [EMAIL PROTECTED] wrote: On Wed, Feb 27, 2008 at 02:47:14PM -0600, Jeremy Sydik wrote: dbi:query-fold, dbi:query-map, query-for-each. I thought about implementing these, but I haven't been able to think of the use case that makes them

Re: argument against using '() for null values? ([Chicken-users] DBI)

2008-02-27 Thread Graham Fawcett
On Wed, Feb 27, 2008 at 6:33 PM, Jeremy Sydik [EMAIL PROTECTED] wrote: Thinking more about it, I'm leaning MORE toward '() than before. I also like relying on a representation that's standard scheme rather than one that's specifically part of Chicken if we have the choice (and we do)

Re: argument against using '() for null values? ([Chicken-users] DBI)

2008-02-27 Thread Graham Fawcett
On Wed, Feb 27, 2008 at 8:29 PM, Ozzi [EMAIL PROTECTED] wrote: Three that I can think of: 1) It would make alist representations ugly: (query select foo, NULL as bar, baz from stuff) = ((foo . 1) (bar) (baz . a string)) This doesn't bother me. 2) It is not a disjoint type.

Re: [Chicken-users] What's the current version of eggs?

2008-02-26 Thread Graham Fawcett
On Tue, Feb 26, 2008 at 9:29 AM, felix winkelmann [EMAIL PROTECTED] wrote: On Tue, Feb 26, 2008 at 3:19 PM, Alejandro Forero Cuervo [EMAIL PROTECTED] wrote: No. Look, I didn't change anything. It has grown that way and I know it's fscking broken. Ahh, alright, I guess I was

Re: [Chicken-users] What's the current version of eggs?

2008-02-26 Thread Graham Fawcett
On Tue, Feb 26, 2008 at 10:18 AM, Alejandro Forero Cuervo [EMAIL PROTECTED] wrote: For tagged eggs, the version number is the name of the most recently-added tag (correct)? No. The version number is the greatest string sorting them as a human would compare version numbers... [snip] Ah,

[Chicken-users] Re: postgresql: support for query parameters

2008-02-26 Thread Graham Fawcett
On Tue, Feb 26, 2008 at 9:47 PM, Graham Fawcett [EMAIL PROTECTED] wrote: Hi folks, I've just checked in a patch to the trunk of the release/3/postgresql egg, providing support for query parameters. If anyone else is using this egg, I'd appreciate your checking out this version and testing

Re: [Chicken-users] two procedures looking for a good home

2008-02-24 Thread Graham Fawcett
On Sun, Feb 24, 2008 at 1:16 PM, Alejandro Forero Cuervo [EMAIL PROTECTED] wrote: If redundancy were a reason for deleting egg functionality, we have about seven object systems to get rid of. ;-) Ah, but if you pick any two of those, they will have their differences! In this case,

Re: [Chicken-users] two procedures looking for a good home

2008-02-24 Thread Graham Fawcett
On Sun, Feb 24, 2008 at 1:55 PM, Alejandro Forero Cuervo [EMAIL PROTECTED] wrote: I'd like to add a (sort/decorated lst cmp key) proc to your orders egg, that calculates the key values only once; this can be more efficient than (sort ... (cmp-key ...)) for cases where key generation is

Re: [Chicken-users] Chicken For Ruby Programmers

2008-02-23 Thread Graham Fawcett
On Sat, Feb 23, 2008 at 4:52 PM, Peter Bex [EMAIL PROTECTED] wrote: Today during the hackathon I've created an initial document at http://chicken.wiki.br/chicken-for-ruby-programmers I'm not a Ruby user, but this looks pretty good. I just committed an edit (r8734) to your discussion of

Re: [Chicken-users] egg documentation

2008-02-21 Thread Graham Fawcett
On Thu, Feb 21, 2008 at 1:55 PM, Alejandro Forero Cuervo [EMAIL PROTECTED] wrote: Given the following SQL table: CREATE TABLE symbols ( symbol varchar, file varchar, line integer ); could someone create a function that receives (1) a base path containing a checkout of the

Re: [Chicken-users] two procedures looking for a good home

2008-02-21 Thread Graham Fawcett
On Thu, Feb 21, 2008 at 3:26 PM, Kon Lovett [EMAIL PROTECTED] wrote: I find that I use these two procedures frequently, and I'd love to see them in an egg so I don't need to keep including them locally. Perhaps is someone interested in working on a shared misc-combinators egg, to store

Re: [Chicken-users] egg documentation

2008-02-21 Thread Graham Fawcett
On Thu, Feb 21, 2008 at 3:09 PM, Kon Lovett [EMAIL PROTECTED] wrote: Some day, we might want to offer an alternate way of marking which procs should be indexed, or providing a formal exports list, like the (declare ) form but for interpreted files as well. That would cover the cases

Re: [Chicken-users] ANN: new egg, Stacktor

2008-02-19 Thread Graham Fawcett
On Feb 19, 2008 9:21 AM, Graham Fawcett [EMAIL PROTECTED] wrote: What I was trying to work out, personally, was a nice way of transforming a postfix, fixed-arity language into decent lexically-scoped expressions, e.g.: 20 dup print + 30 * might translate into (lambda (b) (let ((a 20

Re: [Chicken-users] ANN: new egg, Stacktor

2008-02-19 Thread Graham Fawcett
Neat! Mark, you may not believe this, but a few months ago I started writing a stack-based language in Chicken, and the first name I chose for it was 'Quacktor'. Great minds think alike, and fools seldom differ... Also, John Cowan has worked on a Joy egg, if I'm not mistaken; you might find that

Re: [Chicken-users] Re: YADT: yet another documentation thread

2008-02-18 Thread Graham Fawcett
On Feb 18, 2008 1:45 PM, Peter Bex [EMAIL PROTECTED] wrote: On Sat, Feb 16, 2008 at 05:03:47PM -0500, Graham Fawcett wrote: The CL community has a My Road to Lisp meme, where CL users write up a quick story on how they arrived. I'd *love* to hear people's My Road to Chicken stories

Re: [Chicken-users] My language trajectory

2008-02-18 Thread Graham Fawcett
On Feb 16, 2008 9:05 PM, Kon Lovett [EMAIL PROTECTED] wrote: @ University: (Algol W Snobol 4 360 BAL Fortran 4 - course work, not too serious) [snip] No Work: Python (minor, just to learn) Io (minor, just to learn) Chicken Scheme C Strange road it has been, Kon Impressive

Re: [Chicken-users] domain query

2008-02-16 Thread Graham Fawcett
On Feb 16, 2008 3:53 PM, Toby Butzon [EMAIL PROTECTED] wrote: +1 chickenscheme.org for me too. +1 from me too. I like cleverness of call-with-current-continuation.org. But it seems as if Chicken is growing up, and a boring-but-descriptive domain name is a good idea to welcome and retain new

Re: [Chicken-users] Re: YADT: yet another documentation thread

2008-02-16 Thread Graham Fawcett
On Feb 16, 2008 8:11 AM, Hans Nowak [EMAIL PROTECTED] wrote: Mark Fredrickson wrote: I suggest we draft Hans (http://4.flowsnake.org/) for the Python doc. :-) I was actually going to write such a document last year... the Python programmer's guide to Chicken, or something. As it turns out,

[Chicken-users] new egg etiquette

2008-02-15 Thread Graham Fawcett
Hi folks, I just started a new egg in the svn repo. It's nothing worth looking at yet, I just want to make sure I didn't do something stupid that would break anything. Here's what I did: cd release/3/ svn mkdir locality svn mkdir locality/trunk cp files locality/trunk svn commit locality This

Re: [Chicken-users] documentation issues...

2008-02-14 Thread Graham Fawcett
On Thu, Feb 14, 2008 at 6:07 PM, Daishi Kato [EMAIL PROTECTED] wrote: Is it true that if you have svn write access, you can just edit the wiki/* files and commit them, which reflects to the web pages? My understanding is that this is a nice feature of svnwiki. Yes, you're correct on this.

Re: [Chicken-users] proposed change to http-client

2008-02-13 Thread Graham Fawcett
On Feb 13, 2008 10:41 AM, Elf [EMAIL PROTECTED] wrote: It would be nice if the handling of Connection: close is consistent with http:POST and http:GET. how is it inconsistent? http posts should close connect afterwards, its not a continuable operation, from my understandings. That's

Re: [Chicken-users] proposed change to http-client

2008-02-13 Thread Graham Fawcett
On Feb 13, 2008 12:17 PM, Elf [EMAIL PROTECTED] wrote: Right. It takes a lot more work to write a correct HTTP 1.1 client; there are many new issues that are considered MUSTs in RFC-speak: 307 redirects, transfer encoding, etc. hm, this is offtopic of course, but methinks it would be

Re: [Chicken-users] proposed change to http-client

2008-02-13 Thread Graham Fawcett
On Feb 13, 2008 12:45 PM, Elf [EMAIL PROTECTED] wrote: aye, i wasnt trying to say or imply that we should be concerned with a full-fledged 1.1 client, i just wanted to know if there are problems with the changes i made this morning :) Nope, personally I don't mind the change. G (Where the

Re: [Chicken-users] Comprehensive documentation rewrite

2008-02-13 Thread Graham Fawcett
On Feb 13, 2008 8:46 PM, Leonardo Valeri Manera [EMAIL PROTECTED] wrote: We don't have license limitations on gentoo, but I still have to specify what license each package is under... since we're on the subject, exactly what version of the LGPL are 'awk' and 'make' under? They are under the

Re: [Chicken-users] Comprehensive documentation rewrite

2008-02-13 Thread Graham Fawcett
On Feb 13, 2008 9:01 PM, Elf [EMAIL PROTECTED] wrote: On Wed, 13 Feb 2008, Graham Fawcett wrote: On Feb 13, 2008 8:46 PM, Leonardo Valeri Manera [EMAIL PROTECTED] wrote: We don't have license limitations on gentoo, but I still have to specify what license each package is under... since

Re: [Chicken-users] on the note of documentation...

2008-02-12 Thread Graham Fawcett
On Feb 12, 2008 2:12 PM, Elf [EMAIL PROTECTED] wrote: and given that there will be an influx of people working on lots of stuff... what do people think about setting some style/indent rules/suggestions for code? For me, it's Emacs' (indent-sexp), with scheme-mode's adjustments for Scheme

Re: [Chicken-users] Comprehensive documentation rewrite

2008-02-12 Thread Graham Fawcett
On 12 Feb 2008 15:54:32 -0200, Mario Domenech Goulart [EMAIL PROTECTED] wrote: Hi Tobia, On Tue, 12 Feb 2008 18:37:36 +0100 Tobia Conforto [EMAIL PROTECTED] wrote: Mario Domenech Goulart wrote: Would it be integrated to the wiki system? How much and what kind of integration do we

Re: [Chicken-users] Comprehensive documentation rewrite

2008-02-12 Thread Graham Fawcett
On Feb 12, 2008 1:28 PM, Mark Fredrickson [EMAIL PROTECTED] wrote: Perhaps before we decide where data should live, what format, etc, we should come up with a list of requirements that we want to meet? Here's my attempt at cataloging what I've heard so far: 4. Users should be able to update

Re: [Chicken-users] Hackathon!

2008-02-12 Thread Graham Fawcett
It turns out that (doc-from-wiki #t) is also a valid form, so there are a few false matches in my list. I leave the grep fix as an exercise for the reader; I'm going to get caffeinated now. G ___ Chicken-users mailing list Chicken-users@nongnu.org

Re: [Chicken-users] Hackathon!

2008-02-12 Thread Graham Fawcett
On Feb 12, 2008 9:43 AM, Graham Fawcett [EMAIL PROTECTED] wrote: Looking at the trunk for each egg, that gives us the following eggs which do not have Wiki docs. Not all of these eggs have actually been published though. Argh, ignore that last script. I really need coffee. $ find . -name

Re: [Chicken-users] Hackathon!

2008-02-12 Thread Graham Fawcett
On Feb 12, 2008 3:19 AM, Peter Bex [EMAIL PROTECTED] wrote: On Mon, Feb 11, 2008 at 08:50:02PM -0500, Raymond Medeiros wrote: is it possible to get a list of all eggs which do not currently have their documentation in the wiki? then we could start migrating the doc to the wiki. Yeah, it's

[Chicken-users] egg documentation

2008-02-12 Thread Graham Fawcett
Ivan raised a good point on the Hackathon1 page (where he asks that people don't move his egg documentation out of the egg and into the wiki, because it's a pain to deal with eggs that don't have a copy of their docs in the egg directory itself). It's good to have the wiki docs, and especially so

Re: [Chicken-users] i7on

2008-02-11 Thread Graham Fawcett
On Feb 11, 2008 8:26 AM, Alejandro Forero Cuervo [EMAIL PROTECTED] wrote: I just wanted to show you a simple project I made using Chicken, i7on: http://i7on.com/ Neat! I can't help myself... $ egrep -i ^i.{7}on$ /usr/share/dict/words | xargs echo imposition impression incubation

Re: [Chicken-users] passing on of chicken maintainership

2008-02-11 Thread Graham Fawcett
On Feb 11, 2008 5:45 AM, felix winkelmann [EMAIL PROTECTED] wrote: Dear chicken users and hackers, I have decided to quit being chief maintainer of this project. Various developments have lead to this step which I don't take lightheartedly. Bravo, Felix, for making a good but difficult choice.

Re: [Chicken-users] Hackathon!

2008-02-11 Thread Graham Fawcett
On Feb 11, 2008 5:37 PM, Peter Bex [EMAIL PROTECTED] wrote: Hello everyone, In light of the recent announcement by Felix and some people's concerns that the project may get into a bit of a slump with a lack of a single Benevolent Dictator, I decided that it would be a good idea to organize a

[Chicken-users] egg update: hart 1.1.2

2008-02-06 Thread Graham Fawcett
Hi folks, I've just committed a new release (1.1.2) of the 'hart' HTML-generation egg on the release/3 branch. The egg itself should be available the next time the egg-post-commit job runs. This is a bugfix release to correct an error in the evaluation of attribute expressions. For example, in

Re: [Chicken-users] hash-table-ref Error: (apply) bad argument type: #procedure (f_10741)

2008-02-06 Thread Graham Fawcett
On Feb 6, 2008 4:42 PM, Andre Kuehne [EMAIL PROTECTED] wrote: CHICKEN Version 3.0.1 - linux-unix-gnu-x86 [ manyargs dload ptables applyhook ] (c)2000-2008 Felix L. Winkelmanncompiled 2008-02-05 on disko (Linux) SVN rev. 8157 #;1 (define x (make-hash-table)) #;2 (hash-table-set!

[Chicken-users] critical-section not in Chicken 3?

2008-02-05 Thread Graham Fawcett
Hi folks, I'm porting some old code that had a (critical-section) in it, to ensure that a set of instructions was completed atomically with respect to the rest of the program. But it looks like critical-section is no longer supported in Chicken 3. I could move to mutexes, but it will be a bit of

Re: [Chicken-users] critical-section not in Chicken 3?

2008-02-05 Thread Graham Fawcett
On Feb 5, 2008 12:30 PM, Elf [EMAIL PROTECTED] wrote: im pretty sure you need mutexes. its pretty easy though... Are you saying this because you know (critical-section) behaviour is no longer available in the Chicken runtime? Note that (critical-section) is not a mutex-synchronizing form:

Re: [Chicken-users] critical-section not in Chicken 3?

2008-02-05 Thread Graham Fawcett
On Feb 5, 2008 1:11 PM, Kon Lovett [EMAIL PROTECTED] wrote: Hi Graham, I don't know why Felix deprecated 'critical-section'. I to had a couple of uses for it. ...You might want to ask the reason. Thanks, Kon. Felix, please consider it asked! Graham

Re: [Chicken-users] multiple values in chicken

2008-02-04 Thread Graham Fawcett
On Feb 4, 2008 12:13 PM, John Cowan [EMAIL PROTECTED] wrote: felix winkelmann scripsit: This is why I'm proposing a simple extension to lambda-lists: a fixnum in a lambda-list declares that the procedure returns exactly that many values. Sorry, too ugly. :-) What about (declare

Re: [Chicken-users] can not coerce inexact literal - coerced inexact literal - benchmarks game

2008-01-31 Thread Graham Fawcett
On Jan 31, 2008 11:41 AM, Elf [EMAIL PROTECTED] wrote: i've been working on some revised shootout progs for a while, but never bothered submitting. should i? Why not? G ___ Chicken-users mailing list Chicken-users@nongnu.org

Re: [Chicken-users] Re: A few questions

2008-01-31 Thread Graham Fawcett
On Jan 31, 2008 8:51 PM, Elf [EMAIL PROTECTED] wrote: On Thu, 31 Jan 2008, John Cowan wrote: Elf scripsit: (define (foo . rest) (if (= 1 (random 1)) (car rest) #f) in this case, 0. this entire expression should have been removed by the compiler and replaced by #f, though.

Re: [Chicken-users] static lib of chicken for windows?

2008-01-30 Thread Graham Fawcett
On Jan 30, 2008 8:14 AM, Heinrich Taube [EMAIL PROTECTED] wrote: does anyone have a win32 static lib of chicken 3.0 that they would be willing to email me? I only have limited access to a windows machine that doesnt have mingw or cygwin compilers installed, just the microsoft one. There's a

Re: [Chicken-users] can not coerce inexact literal - coerced inexact literal - benchmarks game

2008-01-30 Thread Graham Fawcett
Hi folks, Here's a revised nbody program (based on the current Shootout version) that actually compiles and runs. (Did the current version *ever* compile in Chicken?) With Kon's compiler flags, it does N=2e7 in 270 seconds on my crusty old laptop. $ ./nbody 1000 -0.169075164 -0.169087605 $ time

Re: [Chicken-users] can not coerce inexact literal - coerced inexact literal - benchmarks game

2008-01-30 Thread Graham Fawcett
On Jan 30, 2008 11:00 PM, Isaac Gouy [EMAIL PROTECTED] wrote: --- Graham Fawcett [EMAIL PROTECTED] wrote: Here's a revised nbody program (based on the current Shootout version) that actually compiles and runs. Thanks. However we only accept source code files attached to a tracker item

Re: [Chicken-users] choosing right timezone for future date

2008-01-29 Thread Graham Fawcett
On Jan 28, 2008 5:27 PM, John Cowan [EMAIL PROTECTED] wrote: Graham Fawcett scripsit: Here's a demo program that does work: [snip] However, this doesn't really solve your problem, because it sets the offset and tzname to the current values, not to the values in effect at the time. I think

Re: [Chicken-users] Runtime arity?

2008-01-29 Thread Graham Fawcett
On Jan 29, 2008 11:28 AM, Mark Fredrickson [EMAIL PROTECTED] wrote: Is it possible to determine at run time the arity of function? I'm thinking something like (arity (lambda (x y z) (* x y z))) = 3 You can use 'procedure-information': (procedure-information (lambda (x y z) (* x y z))) = (?

  1   2   3   >