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 al

Re: [Chicken-users] Expanding ellipsis on lists of different length

2008-08-27 Thread Elf
apparently its neither invalid nor valid. according to riastradh and others, if i understood correctly, such behaviour is not covered in r5rs at all, and some implementations do allow it , and some dont. the untest case is always valid, the test case is only valid when input is of the same leng

[Chicken-users] pretty-print

2008-08-27 Thread Daishi Kato
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. Thanks. Daishi ___ Chicken-users mailing list Chicken-us

Re: [Chicken-users] chicken-setup in the hygienic branch

2008-08-27 Thread Mario Domenech Goulart
On Wed, 27 Aug 2008 19:36:36 +0200 Peter Bex <[EMAIL PROTECTED]> wrote: > On Wed, Aug 27, 2008 at 07:05:35PM +0200, Tobia Conforto wrote: > > I cannot get it to work: > > > > $ chicken-setup.hy utf8 > > Error: unbound variable: ##sys#register-macro-2 > > > > That's the only line of output. > > E

[Chicken-users] starvation in i/o intensive situations

2008-08-27 Thread F. Wittenberger
Hi Felix & All, I observed a starvation of some threads, when there's concurrent i/o going on. The attached patch improves fairness in most cases by eating up the (new) current-ready-queue before refilling it. But it does obviously not fix 100% of possible cases of the starvation problem. I hav

Re: [Chicken-users] chicken-setup in the hygienic branch

2008-08-27 Thread Tobia Conforto
Peter Bex wrote: Tobia Conforto wrote: I cannot get it to work: $ chicken-setup.hy utf8 Error: unbound variable: ##sys#register-macro-2 You must recompile. First you compile Chicken 4 with your old Chicken 3, but then you need to make clean and compile Chicken 4 with Chicken 4 again. Th

Re: [Chicken-users] Expanding ellipsis on lists of different length

2008-08-27 Thread Tobia Conforto
Elf wrote: Tobia Conforto wrote: (define-syntax test (syntax-rules () ((test (a ...) (b ...)) (quote ((a b) ...) i believe that this is an error in chicken. there are two ellipses in the pattern and only one in the output spec, so in both cases it should error with an inva

Re: [Chicken-users] Expanding ellipsis on lists of different length

2008-08-27 Thread Elf
On Wed, 27 Aug 2008, Tobia Conforto wrote: (define-syntax test (syntax-rules () ((test (a ...) (b ...)) (quote ((a b) ...) What happens if one calls this macro on two lists of different lengths? According to various online tutorials, the expansion should abort with an error. In c

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 i

Re: [Chicken-users] Hygienic Chicken's desftruct issue

2008-08-27 Thread Peter Bex
On Mon, Aug 25, 2008 at 05:49:14PM -0300, Alonso Andres wrote: > On Mon, Aug 25, 2008 at 5:14 PM, Peter Bex <[EMAIL PROTECTED]> wrote: > > > Perhaps you (or someone else on the list?) can think of a better name > > that can be prefixed, to remove all confusion? Ideally it'd be something > > which

Re: [Chicken-users] chicken-setup in the hygienic branch

2008-08-27 Thread Peter Bex
On Wed, Aug 27, 2008 at 07:05:35PM +0200, Tobia Conforto wrote: > I cannot get it to work: > > $ chicken-setup.hy utf8 > Error: unbound variable: ##sys#register-macro-2 > > That's the only line of output. > Exit code = 70 > > What am I missing? You must recompile. First you compile Chicken 4 wi

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

2008-08-27 Thread Peter Bex
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 the module into the current module. For that to work, you must have lo

[Chicken-users] chicken-setup in the hygienic branch

2008-08-27 Thread Tobia Conforto
I cannot get it to work: $ make PLATFORM=macosx ARCH=x86-64 \ CHICKEN=/usr/local/bin/chicken \ PREFIX=/Users/toby/bin/hygienic-chicken \ PROGRAM_SUFFIX=.hy (compilation ok) $ make ... install (installation ok) $ csi.hy -n (yase! it works) $ chicken-setup.hy utf8 Error:

[Chicken-users] Expanding ellipsis on lists of different length

2008-08-27 Thread Tobia Conforto
(define-syntax test (syntax-rules () ((test (a ...) (b ...)) (quote ((a b) ...) What happens if one calls this macro on two lists of different lengths? According to various online tutorials, the expansion should abort with an error. In current hygienic Chicken the behaviour

[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: Local documentation [was: Re: [Chicken-users] hygienic egg PORT-A-MANIA!]

2008-08-27 Thread Elf
On Wed, 27 Aug 2008, felix winkelmann wrote: Hi! Ok, how are we going to proceeed? One can convert and install eggdoc-based documentation in the setup script (manually). Or we just handle it like in the old chicken-setup. But we need a new idea for online docs that are based on eggdoc. egg-pos

Local documentation [was: Re: [Chicken-users] hygienic egg PORT-A-MANIA!]

2008-08-27 Thread felix winkelmann
Hi! Ok, how are we going to proceeed? One can convert and install eggdoc-based documentation in the setup script (manually). Or we just handle it like in the old chicken-setup. But we need a new idea for online docs that are based on eggdoc. egg-post-commit should go (or only be kept for pre 4 chi