[Chicken-users] Problem with sxml-transforms html:begin translation rule

2019-09-13 Thread Scott Williams
$ grep -i version * sxml-transforms.setup: `((version "1.4.1") $ csi -version ... Version 4.11.0 (rev ce980c4) linux-unix-gnu-x86-64 [ 64bit manyargs dload ptables ] compiled 2016-05-28 on yves.more-magic.net (Linux) To reproduce: $ csi #;1> (use sxml-transforms) #;2> (SXML->HTML '(html:begin "

Re: [Chicken-users] Problem with deploy - executable complains it cannot load type-errors

2014-04-02 Thread Matt Welland
Thanks. Using the master fixed it! Is there a way to specify both the directory name and the executable name to be created when using -deploy? Running: csc -deploy histstore.scm -o target will create target/target which I then have to rename. While not a big deal if there is a better way I'd l

Re: [Chicken-users] Problem with deploy - executable complains it cannot load type-errors

2014-04-01 Thread Christian Kellermann
* Christian Kellermann [140401 10:16]: > * Matt Welland [140401 08:17]: > > I have made a deployable exe (chicken 4.8.0.5, Ubuntu 32bit) but get the > > following when I try to run it: > > > > Error: (require) cannot load extension: type-errors > > > > Call history: > > > > histstore.s

Re: [Chicken-users] Problem with deploy - executable complains it cannot load type-errors

2014-04-01 Thread Christian Kellermann
* Matt Welland [140401 08:17]: > I have made a deployable exe (chicken 4.8.0.5, Ubuntu 32bit) but get the > following when I try to run it: > > Error: (require) cannot load extension: type-errors > > Call history: > > histstore.scm:5: ##sys#require <-- > > ==The Make Lines

[Chicken-users] Problem with deploy - executable complains it cannot load type-errors

2014-03-31 Thread Matt Welland
I have made a deployable exe (chicken 4.8.0.5, Ubuntu 32bit) but get the following when I try to run it: Error: (require) cannot load extension: type-errors Call history: histstore.scm:5: ##sys#require <-- ==The Make Lines=== histstore/histstore : histstore.scm ../marg

Re: [Chicken-users] Problem with (fold)

2014-03-11 Thread Peter Bex
On Tue, Mar 11, 2014 at 03:47:53PM +0100, Daniel Carrera wrote: > On 11 March 2014 15:41, Peter Bex wrote: > > > To avoid such mistakes, it's helpful to use mnemonic names: > > > > (fold (lambda (item result) (+ (* result 10) item)) 0 '(1 2 3)) > > > > > Thanks. I was mentally reading from left t

Re: [Chicken-users] Problem with (fold)

2014-03-11 Thread Daniel Carrera
On 11 March 2014 15:41, Peter Bex wrote: > To avoid such mistakes, it's helpful to use mnemonic names: > > (fold (lambda (item result) (+ (* result 10) item)) 0 '(1 2 3)) > > Thanks. I was mentally reading from left to right, so I ended up assuming that it was (result item). Cheers, Daniel. --

Re: [Chicken-users] Problem with (fold)

2014-03-11 Thread Peter Bex
On Tue, Mar 11, 2014 at 03:30:56PM +0100, Daniel Carrera wrote: > Hello, > > I'm having a problem with (fold): > > > (use srfi-1) ; List library. > > (fold (lambda (a b) (+ (* a 10) b)) 0 '(1 2 3)) > > I was expecting this to return 123, but it returns 60. I'm confused. In my > mind, at each

Re: [Chicken-users] Problem with (fold)

2014-03-11 Thread Daniel Carrera
I think I've answered my own question: I have to switch the "a" and the "b". I guess I was confused as to how parameters are sent into the lambda. Cheers, Daniel. On 11 March 2014 15:30, Daniel Carrera wrote: > Hello, > > I'm having a problem with (fold): > > > (use srfi-1) ; List library. >

[Chicken-users] Problem with (fold)

2014-03-11 Thread Daniel Carrera
Hello, I'm having a problem with (fold): (use srfi-1) ; List library. (fold (lambda (a b) (+ (* a 10) b)) 0 '(1 2 3)) I was expecting this to return 123, but it returns 60. I'm confused. In my mind, at each step I shift the current value to the left (i.e. multiply by 10) and add the new digi

Re: [Chicken-users] Problem with read-line

2013-12-04 Thread John Cowan
Matt Gushee scripsit: > It's not a bug, but rather a peculiarity of the Chicken > implementation: most of the libraries that come with the distribution > (I think it's everything that is not standard R5RS, or in the > 'library' unit) need to be specifically included in compiled code but > not in t

Re: [Chicken-users] Problem with read-line

2013-12-04 Thread Matt Gushee
Hi, Dan-- I believe you need to add (use extras) to your code. It's not a bug, but rather a peculiarity of the Chicken implementation: most of the libraries that come with the distribution (I think it's everything that is not standard R5RS, or in the 'library' unit) need to be specifically in

Re: [Chicken-users] Problem with read-line

2013-12-04 Thread Evan Hanson
Hi Dan, `read-line` is provided by the extras unit, which is implicitly available in csi but not so in compiled code. To load it, try adding a "(use extras)" to your program. (Obviously, also let us know if this doesn't work.) Cheers, Evan ___ Chicken

[Chicken-users] Problem with read-line

2013-12-04 Thread Dan Wilckens
Hi, I built Chicken 4.8.0.5 from source on the mingw-msys platform (under windows vista). After attempting to port and debug a program I wrote originally for Gambit scheme it seems that I've run into an issue with the read-line command. Specifically, if I type (display read-line) in the i

Re: [Chicken-users] Problem with creating extensions

2013-10-18 Thread Matt Gushee
Hi, Christian-- On Wed, Oct 16, 2013 at 12:51 PM, Christian Kellermann wrote: > * Matt Gushee [131016 19:03]: >> If so, I think the documentation for 'require-extension' needs an >> update. The manual states: >> >> [(require-extension ID ...)] is equivalent to (require-library ID >> ...) but

Re: [Chicken-users] Problem with creating extensions

2013-10-16 Thread Christian Kellermann
Hi Matt! * Matt Gushee [131016 19:03]: > On Wed, Oct 16, 2013 at 10:21 AM, Thomas Hintz wrote: > > Greetings Pluijzer, > > > > I think you need to put your hello.scm code in a module. > > I suspected that was the case, but I wasn't sure and didn't have time > to test it. > > If so, I think the

Re: [Chicken-users] Problem with creating extensions

2013-10-16 Thread Matt Gushee
On Wed, Oct 16, 2013 at 10:21 AM, Thomas Hintz wrote: > Greetings Pluijzer, > > I think you need to put your hello.scm code in a module. I suspected that was the case, but I wasn't sure and didn't have time to test it. If so, I think the documentation for 'require-extension' needs an update. The

Re: [Chicken-users] Problem with creating extensions

2013-10-16 Thread Thomas Hintz
Greetings Pluijzer, I think you need to put your hello.scm code in a module. You can do something like this: in hello.scm: (module hello (hello) (define (hello name) (print "Hello, " name " !")) ) You can find more info on modules here: All the best,

[Chicken-users] Problem with creating extensions

2013-10-16 Thread pluijzer .
Hello everybody, I fail to get extensions that I have created and installed via 'chicken-install' to load. For example (using the example from the documentation): */tmp/hello $ cat hello.scm* (define (hello name) (print "Hello, " name " !")) */tmp/hello $ cat hello.setup* (compile -s hello.

Re: [Chicken-users] Problem with installing spock egg on Ubuntu 12.04

2013-09-02 Thread Panicz Maciej Godek
2013/9/2 Mario Domenech Goulart [...] > Are you by any chance using a CHICKEN version older than 4.8.0? I think > foldl has been added to CHICKEN in 4.8.0. > > Yes, you were right, the version from the ubuntu package was 4.7. I've installed the latest release from the source and now it works. Th

Re: [Chicken-users] Problem with installing spock egg on Ubuntu 12.04

2013-09-02 Thread Mario Domenech Goulart
Hi, On Mon, 2 Sep 2013 14:17:17 +0200 Panicz Maciej Godek wrote: > I've been trying to install the spock scheme to javascript > compiler from chicken repository on ubuntu 12.04 using > the following command. > However, the > $ sudo chicken-install spock > command fails with the following error

[Chicken-users] Problem with installing spock egg on Ubuntu 12.04

2013-09-02 Thread Panicz Maciej Godek
Hello, I've been trying to install the spock scheme to javascript compiler from chicken repository on ubuntu 12.04 using the following command. However, the $ sudo chicken-install spock command fails with the following error message: --8<---cut here---start->8--

Re: [Chicken-users] Problem with uuid-lib egg

2012-08-20 Thread John Maxwell
On Sun, 2012-08-19 at 13:36 -0700, Kon Lovett wrote: > Please try uuid-lib 1.4.1 > > It passes the Linux platform Salmonella run. > > On Aug 17, 2012, at 7:11 PM, Kon Lovett wrote: > Works like a charm. Thanks, and sorry for the delay checking it; the problem was showing up on my work machine,

Re: [Chicken-users] Problem with uuid-lib egg

2012-08-19 Thread Kon Lovett
Please try uuid-lib 1.4.1 It passes the Linux platform Salmonella run. On Aug 17, 2012, at 7:11 PM, Kon Lovett wrote: > > On Aug 17, 2012, at 1:47 PM, John Maxwell wrote: > >> Hi all- >> >> I'm writing some code which needs to generate uuids, so naturally I >> turned to the uuid-lib egg. My p

Re: [Chicken-users] Problem with uuid-lib egg

2012-08-17 Thread John Maxwell
On 08/17/2012 09:18:30 PM, Mario Domenech Goulart wrote: > Hi John, > [snip] > If you intend to take a deeper look at that issue, maybe you can take > a > look at the egg's source. You can obtain it with chicken-install or > with svn (includes VCS history): > > - with chicken-install > $ chic

Re: [Chicken-users] Problem with uuid-lib egg

2012-08-17 Thread Kon Lovett
On Aug 17, 2012, at 1:47 PM, John Maxwell wrote: > Hi all- > > I'm writing some code which needs to generate uuids, so naturally I > turned to the uuid-lib egg. My problem is, the egg needs libuuid.so > (since the egg is basically a thin wrapper around that library), and > this is causing me hea

Re: [Chicken-users] Problem with uuid-lib egg

2012-08-17 Thread Mario Domenech Goulart
Hi John, On Fri, 17 Aug 2012 16:47:12 -0400 John Maxwell wrote: > I'm writing some code which needs to generate uuids, so naturally I > turned to the uuid-lib egg. My problem is, the egg needs libuuid.so > (since the egg is basically a thin wrapper around that library), and > this is causing me

Re: [Chicken-users] Problem with uuid-lib egg

2012-08-17 Thread John Maxwell
On Fri, 2012-08-17 at 17:14 -0400, John Maxwell wrote: > On Fri, 2012-08-17 at 22:53 +0200, Peter Bex wrote: > > > > hm, what platform are you on? Which version of Chicken? > > > > Cheers, > > Peter > > Gentoo Linux, Chicken 4.7.3 > Sorry; should've added: x86_64 -John -- John Maxwell

Re: [Chicken-users] Problem with uuid-lib egg

2012-08-17 Thread John Maxwell
On Fri, 2012-08-17 at 22:53 +0200, Peter Bex wrote: > > hm, what platform are you on? Which version of Chicken? > > Cheers, > Peter Gentoo Linux, Chicken 4.7.3 -- John Maxwell john.maxw...@openamplify.com Software Developer, OpenAmplify __

Re: [Chicken-users] Problem with uuid-lib egg

2012-08-17 Thread Peter Bex
On Fri, Aug 17, 2012 at 04:47:12PM -0400, John Maxwell wrote: > Hi all- > > When I compile my code, I add -luuid to the csc link command, like so: > > csc -o my-app my-app.o more-code.o -luuid > > and all is well. However, I also need to run the same code using csi > (for unit testing purpos

[Chicken-users] Problem with uuid-lib egg

2012-08-17 Thread John Maxwell
Hi all- I'm writing some code which needs to generate uuids, so naturally I turned to the uuid-lib egg. My problem is, the egg needs libuuid.so (since the egg is basically a thin wrapper around that library), and this is causing me headaches. When I compile my code, I add -luuid to the csc link c

Re: [Chicken-users] Problem with http-client egg sample code

2012-05-24 Thread Ulas Türkmen
Hi Mario, Thanks a lot for you quick response. This solved the problem. Cheers, Ulas On Thu, May 24, 2012 at 1:59 PM, Mario Domenech Goulart wrote: > Hi Ulas, > > On Thu, 24 May 2012 13:40:43 +0200 Ulas Türkmen > wrote: > >> For my next side project, I wanted to use Chicken to improve my >> kn

Re: [Chicken-users] Problem with http-client egg sample code

2012-05-24 Thread Mario Domenech Goulart
Hi Ulas, On Thu, 24 May 2012 13:40:43 +0200 Ulas Türkmen wrote: > For my next side project, I wanted to use Chicken to improve my > knowledge of Scheme, and to see how fast Chicken scheme can get. I > installed Chicken on my Mac (Snow Leopard) by compiling from source, > since the Macports vers

[Chicken-users] Problem with http-client egg sample code

2012-05-24 Thread Ulas Türkmen
Hi guys, For my next side project, I wanted to use Chicken to improve my knowledge of Scheme, and to see how fast Chicken scheme can get. I installed Chicken on my Mac (Snow Leopard) by compiling from source, since the Macports version gave segmentation faults on installing eggs. Afterwards, I inst

Re: [Chicken-users] Problem with chicken-install on cygwin

2011-01-04 Thread Mario Domenech Goulart
Hi Luis On Tue, 28 Dec 2010 20:35:12 + Luis Rosso wrote: > I have installed chicken 4.6.0 on Cygwin (on Windows XP) with its > default PREFIX: > > 1) I first built it: > make PLATFORM=cygwin > > 2) then, I installed it: > make PLATFORM=cygwin install > > I am trying to install defstruct by m

Re: [Chicken-users] Problem with chicken-install on cygwin

2010-12-29 Thread Felix
From: Luis Rosso Subject: [Chicken-users] Problem with chicken-install on cygwin Date: Tue, 28 Dec 2010 20:35:12 + > > Hi > I am a Chicken newby. > I have installed chicken 4.6.0 on Cygwin (on Windows XP) with its default > PREFIX: > 1) I first built it:make PLATFORM=c

[Chicken-users] Problem with chicken-install on cygwin

2010-12-28 Thread Luis Rosso
Hi I am a Chicken newby. I have installed chicken 4.6.0 on Cygwin (on Windows XP) with its default PREFIX: 1) I first built it:make PLATFORM=cygwin 2) then, I installed it:make PLATFORM=cygwin install I am trying to install defstruct by means of chicken-install and get the following error report

Re: [Chicken-users] Problem with threads

2010-11-21 Thread F. Wittenberger
or with "print"? Am Samstag, den 20.11.2010, 16:12 +0100 schrieb Felix: > From: Jeronimo Pellegrini > Subject: [Chicken-users] Problem with threads > Date: Fri, 19 Nov 2010 15:10:28 -0200 > > > > > (use srfi-18) > > > > (define looping-thread

Re: [Chicken-users] Problem with threads

2010-11-20 Thread Felix
From: Jeronimo Pellegrini Subject: [Chicken-users] Problem with threads Date: Fri, 19 Nov 2010 15:10:28 -0200 > > (use srfi-18) > > (define looping-thread > (let ((loop (lambda () (do ((i 0 (add1 i))) > (#f) > (print &#x

Re: [Chicken-users] Problem with threads

2010-11-19 Thread F. Wittenberger
Am Freitag, den 19.11.2010, 15:10 -0200 schrieb Jeronimo Pellegrini: > Hello, > > I'm using Chicken from git/master branch (commit > ddaacdfdb11a0a1c0d1e6363b1af3af78746575c). > > I recently noticed a change in the behavior of Chicken's > scheduler. See this program: > > (use srfi-18) > > (defi

[Chicken-users] Problem with threads

2010-11-19 Thread Jeronimo Pellegrini
Hello, I'm using Chicken from git/master branch (commit ddaacdfdb11a0a1c0d1e6363b1af3af78746575c). I recently noticed a change in the behavior of Chicken's scheduler. See this program: (use srfi-18) (define looping-thread (let ((loop (lambda () (do ((i 0 (add1 i))) (#f

Re: [Chicken-users] Problem with flatten

2010-06-15 Thread Felix
From: Moritz Heidkamp Subject: Re: [Chicken-users] Problem with flatten Date: Sun, 13 Jun 2010 11:54:50 +0200 > Hi Emmanuel, > > Emmanuel Boudreault writes: >> (flatten '(a b c (1 2 3)) works fine under csi but when compiled with csc, it >> doesn't find the var

Re: [Chicken-users] Problem with flatten

2010-06-13 Thread Moritz Heidkamp
Hi Emmanuel, Emmanuel Boudreault writes: > (flatten '(a b c (1 2 3)) works fine under csi but when compiled with csc, it > doesn't find the variable flatten. Is this expected behavior? If I am missing > an import, why doesn't it warn me under csi? You are missing an (import data-structures) ther

[Chicken-users] Problem with flatten

2010-06-13 Thread Emmanuel Boudreault
Hello, (flatten '(a b c (1 2 3)) works fine under csi but when compiled with csc, it doesn't find the variable flatten. Is this expected behavior? If I am missing an import, why doesn't it warn me under csi? Thank you for your time, Emmanuel ___ Chick

Re: [Chicken-users] Problem with chicken-install -p

2010-04-23 Thread Jeronimo Pellegrini
Hi, On Fri, Apr 23, 2010 at 02:13:25PM +0200, Felix wrote: > You have to pass the make-configuration to every invocation: > > make PLATFORM=linux CHICKEN=./chicken-boot- > make PLATFORM=linux CHICKEN=./chicken-boot- uninstall > make PLATFORM=linux CHICKEN=./chicken-boot- install I checked out a

Re: [Chicken-users] Problem with chicken-install -p

2010-04-23 Thread Felix
From: Jeronimo Pellegrini Subject: Re: [Chicken-users] Problem with chicken-install -p Date: Thu, 22 Apr 2010 13:21:43 -0300 > Hi, > > On Thu, Apr 22, 2010 at 04:41:57PM +0200, Felix wrote: >> Do "make confclean clean" and rebuild. This should work. > > I

Re: [Chicken-users] Problem with chicken-install -p

2010-04-22 Thread Jeronimo Pellegrini
Hi, On Thu, Apr 22, 2010 at 04:41:57PM +0200, Felix wrote: > Do "make confclean clean" and rebuild. This should work. I did: make confclean clean . scripts/build-boot-chicken.sh chicken linux bunzip chicken-boot-.gz2 make PLATFORM=linux CHICKEN=./chicken-boot- make uninstall make install But "

Re: [Chicken-users] Problem with chicken-install -p

2010-04-22 Thread Felix
From: Jeronimo Pellegrini Subject: [Chicken-users] Problem with chicken-install -p Date: Wed, 21 Apr 2010 20:49:32 -0300 > Hello, > > After this changeset: > 098a8b9a626ce58f0f8f5d8c7c85889df04604fb > "added destination-prefix to make installation-prefix > compatible agai

[Chicken-users] Problem with chicken-install -p

2010-04-21 Thread Jeronimo Pellegrini
Hello, After this changeset: 098a8b9a626ce58f0f8f5d8c7c85889df04604fb "added destination-prefix to make installation-prefix compatible again" I can no longer use "chicken-install -p ~/chicken/" from the directory in which where an egg's source is. I'm not sure if there's some detail missing from

Re: [Chicken-users] Problem with http-client in chicken 4.2.0

2009-11-01 Thread Peter Bex
On Sun, Nov 01, 2009 at 07:01:07PM +0100, Colin Fleming wrote: > I now appear to have the first suspected problem, case normalisation of > cookies. Previously I sent a SID cookie, but intarweb seems to convert it to > Sid, and Google refuses it. Is there any way to control this behaviour? Unfortun

Re: [Chicken-users] Problem with http-client in chicken 4.2.0

2009-11-01 Thread Colin Fleming
I now appear to have the first suspected problem, case normalisation of cookies. Previously I sent a SID cookie, but intarweb seems to convert it to Sid, and Google refuses it. Is there any way to control this behaviour? Cheers, Colin 2009/11/1 Colin Fleming > Unbelievably enough, that was the

Re: [Chicken-users] Problem with http-client in chicken 4.2.0

2009-11-01 Thread Colin Fleming
Unbelievably enough, that was the problem. Thank you all for the help, that would have taken me forever to figure out. Cheers, Colin 2009/11/1 Colin Fleming > Good catch indeed! I'll try this when I get home. > > Thanks! > Colin > > 2009/11/1 Peter Bex > >> On Sun, Nov 01, 2009 at 03:36:42PM

Re: [Chicken-users] Problem with http-client in chicken 4.2.0

2009-11-01 Thread Colin Fleming
Good catch indeed! I'll try this when I get home. Thanks! Colin 2009/11/1 Peter Bex > On Sun, Nov 01, 2009 at 03:36:42PM +0100, Jörg F. Wittenberger wrote: > > I've got no idea what's going on here at all, but > > to me the second request looks wrong in any case. > > > > Shouldn't those paramet

Re: [Chicken-users] Problem with http-client in chicken 4.2.0

2009-11-01 Thread Peter Bex
On Sun, Nov 01, 2009 at 03:36:42PM +0100, Jörg F. Wittenberger wrote: > I've got no idea what's going on here at all, but > to me the second request looks wrong in any case. > > Shouldn't those parameter field separators be "&" and never ";" ??? Good catch. It's possible that Google doesn't allo

Re: [Chicken-users] Problem with http-client in chicken 4.2.0

2009-11-01 Thread F. Wittenberger
I've got no idea what's going on here at all, but to me the second request looks wrong in any case. Shouldn't those parameter field separators be "&" and never ";" ??? Am Sonntag, den 01.11.2009, 12:53 +0100 schrieb Colin Fleming: > Using netcat and stunnel to see what's going on, it's very stran

Re: [Chicken-users] Problem with http-client in chicken 4.2.0

2009-11-01 Thread Colin Fleming
Hi Peter, Thanks for the suggestion - there doesn't seem to be any redirect involved, I just get a 403 back. I'm not near my project right now, but I just tried with curl and I get a 200 directly from that request with the information. It's very strange. I'll try tcpdump this evening. Cheers, Col

Re: [Chicken-users] Problem with http-client in chicken 4.2.0

2009-11-01 Thread Peter Bex
On Sun, Nov 01, 2009 at 12:53:06PM +0100, Colin Fleming wrote: > Using netcat and stunnel to see what's going on, it's very strange, I can > make the exact same request with http-client and curl, curl works but > http-client returns a 403: > > GET > /accounts/ClientLogin?Email=&Passwd=&source=Goog

Re: [Chicken-users] Problem with http-client in chicken 4.2.0

2009-11-01 Thread Colin Fleming
Using netcat and stunnel to see what's going on, it's very strange, I can make the exact same request with http-client and curl, curl works but http-client returns a 403: GET /accounts/ClientLogin?Email=&Passwd=&source=Google-cURL-Example&service=reader HTTP/1.1 User-Agent: curl/7.19.6 (i386-apple

Re: [Chicken-users] Problem with http-client in chicken 4.2.0

2009-11-01 Thread Colin Fleming
I assume so - it doesn't explicitly say so in the doc, but the previous version did and this version requires openssl. I'm assuming it must be something that's changed in the way the request is constructed - the user agent, maybe? Cheers, Colin 2009/11/1 John Cowan > Colin Fleming scripsit: > >

Re: [Chicken-users] Problem with http-client in chicken 4.2.0

2009-10-31 Thread John Cowan
Colin Fleming scripsit: > #;4> (call-with-input-request " > https://www.google.com/accounts/ClientLogin?Email=&Passwd=&source=GooglecURL-Example&service=reader" That's an https: URL. Does http-client support those? -- Híggledy-pìggledy / XML programmersJohn Cowan Try to escape thos

[Chicken-users] Problem with http-client in chicken 4.2.0

2009-10-31 Thread Colin Fleming
Hi all, I just reinstalled my computer, and as part of that I upgraded from Chicken 3 to 4.2.0. I'm having some problems with the new http-client interface and I'm not sure if I'm just doing something daft. When trying to use the Google Reader API I always get a 403: #;4> (call-with-input-request

[Chicken-users] Problem with define-values

2009-06-14 Thread Jack Trades
I'm trying to use define-values inside a module. define-values doesn't seem to work when the chicken module is prefixed but works fine when chicken is imported without a prefix. Version 4.0.7 - SVN rev. 14991 ;; This works (module test (a b) (import scheme chicken) (define-values (a b) (values

Re: [Chicken-users] Problem with (symbol->string) in Chicken 4.0

2009-05-01 Thread William Ramsay
That looks like it did the trick. Thanks a million Bill Jim Ursetto wrote: On Thu, Apr 30, 2009 at 2:59 PM, William Ramsay wrote: Can you be a little more explicit in what you mean? Adding that just produces more errors. John Cowan wrote: (lambda body rename compare)

Re: [Chicken-users] Problem with (symbol->string) in Chicken 4.0

2009-04-30 Thread Jim Ursetto
On Thu, Apr 30, 2009 at 2:59 PM, William Ramsay wrote: > Can you be a little more explicit in what you mean?   Adding that just > produces more errors. > John Cowan wrote: >>   (lambda body rename compare) >>     (define s (car body)) >>     (define ff (cdr body)) Change this: (define-syntax de

Re: [Chicken-users] Problem with (symbol->string) in Chicken 4.0

2009-04-30 Thread William Ramsay
Can you be a little more explicit in what you mean? Adding that just produces more errors. John Cowan wrote: William Ramsay scripsit: I've recently moved from Chicken-3.4.0 to Chicken-4.0.0. I've been using a structure macro I got from /Teach Yourself Scheme in Fixnum Days/ by Dorai

Re: [Chicken-users] Problem with (symbol->string) in Chicken 4.0

2009-04-30 Thread John Cowan
William Ramsay scripsit: > I've recently moved from Chicken-3.4.0 to Chicken-4.0.0. > > I've been using a structure macro I got from /Teach Yourself Scheme in > Fixnum Days/ by Dorai Sitaram.It's worked fine in 3.4 but fails in > 4.0 and I can figure out why. It fails on line 4 of (defin

[Chicken-users] Problem with (symbol->string) in Chicken 4.0

2009-04-30 Thread William Ramsay
Hi, I've recently moved from Chicken-3.4.0 to Chicken-4.0.0. I've been using a structure macro I got from /Teach Yourself Scheme in Fixnum Days/ by Dorai Sitaram.It's worked fine in 3.4 but fails in 4.0 and I can figure out why. It fails on line 4 of (define-syntax define-structure) wi

[Chicken-users] Problem with index files in svnwiki

2009-04-07 Thread Peter Bex
Hi all, I've noticed there's currently two problems with index files (files named 'index', which should normally be displayed when you request a directory like man/3) on the wiki: 1) If you have dir/a/index and dir/b is a symlink to dir/a, the URL http://example.com/dir/b does not show the

Re: [Chicken-users] Problem with amb - or nice bug?

2008-11-04 Thread Brown Dragon
John Cowan said: >JRM's Syntax-rules Primer For The Mildly Eccentric is your friend when >it comes to syntax-rules. Just keep reading till it stops making sense, >then put it down. You probably know all you need to know at that point. >When you run into roadblocks, pick it up again and reread fr

Re: [Chicken-users] Problem with amb - or nice bug?

2008-11-03 Thread John Cowan
Brown Dragon scripsit: > I am planning to learn syntax-rules soon. I did some initial reading > when I started but it was a bit confusing so I decided to put it off > till I had a better handle on things. JRM's Syntax-rules Primer For The Mildly Eccentric is your friend when it comes to syntax-ru

Re: [Chicken-users] Problem with amb - or nice bug?

2008-11-03 Thread Brown Dragon
Hello Tobia, >Let me start with a piece of advice: consider learning syntax-rules, or >hygienic, new-style macros instead of the old-style define-macro. Besides >being Scheme's standard macro >system, syntax-rules is much more friendly, >readable and safe to use. The next version of Chicken (Ch

Re: [Chicken-users] Problem with amb - or nice bug?

2008-11-03 Thread Alaric Snell-Pym
On 1 Nov 2008, at 2:39 am, Tobia Conforto wrote: I got the same results with all these (amb) implementations: - the one in the amb egg; - the define-macro in the OP; - my hygienic one above, both in Chicken 3 with alexpander and in Chicken svn head; so it's not a problem in the specific macro.

Re: [Chicken-users] Problem with amb - or nice bug?

2008-10-31 Thread Tobia Conforto
Hello, I am learning scheme and am trying to implement the "amb" operator. Hi. That's great! Let me start with a piece of advice: consider learning syntax-rules, or hygienic, new-style macros instead of the old-style define-macro. Besides being Scheme's standard macro system, syntax-rules

[Chicken-users] Problem with amb

2008-10-30 Thread Brown Dragon
Hello, I am learning scheme and am trying to implement the "amb" operator. The version I have implemented works fine in Gambit-C but does not work in Chicken. Could someone tell me what's wrong? ; Defining the amb operator (from Teach yourself Scheme in Fixum days) (define call/cc call-with-cur

Re: [Chicken-users] Problem with ~?

2008-03-16 Thread Robin Lee Powell
On Sat, Mar 15, 2008 at 10:13:52AM -0700, Kon Lovett wrote: > > > Fixed in chicken/trunk. > > This was a holdover from a previous incarnation of fprintf which > didn't use a string buffer but wrote directly to the port. Not all > ramifications of the change were investigated. Fix confirmed. Thank

Re: [Chicken-users] Problem with ~?

2008-03-15 Thread Kon Lovett
On Mar 15, 2008, at 10:08 AM, Robin Lee Powell wrote: On Sat, Mar 15, 2008 at 10:07:57AM -0700, Kon Lovett wrote: On Mar 15, 2008, at 1:32 AM, Robin Lee Powell wrote: csi -e ' (define (spiffy-debug fstr . args) (printf "~%[SPIFFY: ~?]~%~!" fstr args) ) (spiffy-debug "set-header: ~S ->

Re: [Chicken-users] Problem with ~?

2008-03-15 Thread Kon Lovett
On Mar 15, 2008, at 1:32 AM, Robin Lee Powell wrote: csi -e ' (define (spiffy-debug fstr . args) (printf "~%[SPIFFY: ~?]~%~!" fstr args) ) (spiffy-debug "set-header: ~S -> ~S" "wee" "bar") ' Gives: [SPIFFY: set-header: "wee" -> "bar"#] The # isn't causing me serious problems, but it su

[Chicken-users] Problem with ~?

2008-03-15 Thread Robin Lee Powell
csi -e ' (define (spiffy-debug fstr . args) (printf "~%[SPIFFY: ~?]~%~!" fstr args) ) (spiffy-debug "set-header: ~S -> ~S" "wee" "bar") ' Gives: [SPIFFY: set-header: "wee" -> "bar"#] The # isn't causing me serious problems, but it sure is annoying. -Robin -- Lojban Reason #17: http://en

[Chicken-users] Problem with sqlite3 egg

2007-08-08 Thread Alejandro Forero Cuervo
Hello. I've been having some problems getting the sqlite3:for-each-row procedure from the sqlite3 egg to play along nicely with the iterator->stream procedure from the stream-ext egg. The iterator->stream procedure uses continuations to turn an iteration inside out: to build a lazy (srfi-40) stre

Re: [Chicken-users] Problem with sqlite3 egg on MinGW Chicken 2.6

2007-03-09 Thread Ian Oversby
Hi Thomas and Kon, Thanks for the info. I've managed to install it in a 2.5 version of chicken so I'm just waiting to get back to my other PC to try it there. Cheers, Ian On 09/03/07, Thomas Chust <[EMAIL PROTECTED]> wrote: Ian Oversby wrote: >> The sqlite3 egg 1.5.6+ requires the synch egg

Re: [Chicken-users] Problem with sqlite3 egg on MinGW Chicken 2.6

2007-03-09 Thread Thomas Chust
Ian Oversby wrote: >> The sqlite3 egg 1.5.6+ requires the synch egg 1.0+. > > Unfortunately, I couldn't figure out how to do this, and it seems I've made > it worse :-/ I added (require-at-runtime synch) to the setup file and now > it no longer even finds sqlite3:open. [...] Hello Ian, if I int

Re: [Chicken-users] Problem with sqlite3 egg on MinGW Chicken 2.6

2007-03-08 Thread Ian Oversby
The sqlite3 egg 1.5.6+ requires the synch egg 1.0+. (At some point the .setup files for the eggs will be changed to state the required versions but for now you must do it manually.) Sorry, Kon Unfortunately, I couldn't figure out how to do this, and it seems I've made it worse :-/ I added (re

Re: [Chicken-users] Problem with sqlite3 egg on MinGW Chicken 2.6

2007-03-07 Thread Kon Lovett
On Mar 7, 2007, at 2:02 PM, Ian Oversby wrote: Hi, I'm trying to use the sqlite3 egg on a brand new Windows Chicken 2.6 build. So far in my basic tests it is running okay, but I am getting an error when finalising the db handle. This is the code: (require-extension synch) (require-extension

[Chicken-users] Problem with sqlite3 egg on MinGW Chicken 2.6

2007-03-07 Thread Ian Oversby
Hi, I'm trying to use the sqlite3 egg on a brand new Windows Chicken 2.6 build. So far in my basic tests it is running okay, but I am getting an error when finalising the db handle. This is the code: (require-extension synch) (require-extension sqlite3) (define *db-handle* (sqlite3:open "c:/d

Re: [Chicken-users] Problem with srfi-42 egg

2007-01-09 Thread felix winkelmann
On 1/9/07, Ian Oversby <[EMAIL PROTECTED]> wrote: I'm getting errors when trying to use the srfi-42 egg on chicken 2.5. The usage is fairly basic, and it is complaining about an unbound variable - :-dispatch Here is the code: (require "syntax-case") (require "srfi-42") (list-ec (: i 5) (* i i)

RE: [Chicken-users] Problem with srfi-42 egg

2007-01-09 Thread Ian Oversby
Actually, never mind me, I'm failing to read the documentation again! (require-extension syntax-case) (require-extension srfi-42) (list-ec (: i 5) (* i i)) this works fine. Ian From: "Ian Oversby" <[EMAIL PROTECTED]> To: chicken-users@nongnu.org Subject: [Chicken-users]

[Chicken-users] Problem with srfi-42 egg

2007-01-09 Thread Ian Oversby
I'm getting errors when trying to use the srfi-42 egg on chicken 2.5. The usage is fairly basic, and it is complaining about an unbound variable - :-dispatch Here is the code: (require "syntax-case") (require "srfi-42") (list-ec (: i 5) (* i i)) And these are the error messages: Version 2.5

[Chicken-users] problem with --enable-extra-symbol-slot

2006-07-28 Thread felix winkelmann
Hi! In case anybody tried the `--enable-extra-symbol-slot' configuration option, it's broken: % diff runtime.c ~/stuff/chicken/runtime.c 7596d7595 < *(a++) = name; 7598c7597 < *a = C_SCHEME_UNDEFINED; --- *(a++) = C_SCHEME_UNDEFINED; 7599a7599 *a = name; cheers, felix -- http://g

[Chicken-users] Problem with -DPIC When Building with MinGw

2006-02-24 Thread Patrick Brannan
I have a question about building chicken 2.3 with mingw. Why does -DPIC cause mingw to fail while linking the dll? Everything works fine without -DPIC except for the dynamic extensions. I probably missed something simple, but I don't see what it is. I'm definitely operating at the outer edges of my

Re: [Chicken-users] Problem with static compile

2005-08-29 Thread felix winkelmann
On 8/28/05, Eric Merritt <[EMAIL PROTECTED]> wrote: > Felix, > > Thanks for the quick response, I still have a few questions, > however, I can wait a few days. I expect that the example will > probably answer most of my questions. Don't put yourself out to much > though. I only worked on this p

Re: [Chicken-users] Problem with static compile

2005-08-28 Thread Eric Merritt
Felix, Thanks for the quick response, I still have a few questions, however, I can wait a few days. I expect that the example will probably answer most of my questions. Don't put yourself out to much though. I only worked on this particular problem to learn about static compilation with chicken

Re: [Chicken-users] Problem with static compile

2005-08-28 Thread felix winkelmann
On 8/28/05, Eric Merritt <[EMAIL PROTECTED]> wrote: > I am having a problem trying to get a small example program to compile > statically. This seems to follow the what is shown in the wiki. This > is just a simple test program, I am more interested in how to > statically compile a program that mak

[Chicken-users] Problem with static compile

2005-08-27 Thread Eric Merritt
I am having a problem trying to get a small example program to compile statically. This seems to follow the what is shown in the wiki. This is just a simple test program, I am more interested in how to statically compile a program that makes use of eggs. Following is the output from my attempts.

Re: [Chicken-users] Problem with Syntax Case in 2.0

2005-07-24 Thread felix winkelmann
On 7/21/05, Dale Jordan <[EMAIL PROTECTED]> wrote: > I have been experimenting with the implementation of srfi-57 which uses > syntax-case and its module system. Under Chicken-1.89 I had added (at > toplevel) a procedure definition to srfi-57.scm that was used in most of > the modules. To be prec

Re: [Chicken-users] Problem with Syntax Case in 2.0

2005-07-22 Thread felix winkelmann
On 7/21/05, Dale Jordan <[EMAIL PROTECTED]> wrote: > I have been experimenting with the implementation of srfi-57 which uses > syntax-case and its module system. Under Chicken-1.89 I had added (at > toplevel) a procedure definition to srfi-57.scm that was used in most of > the modules. To be prec

[Chicken-users] Problem with Syntax Case in 2.0

2005-07-21 Thread Dale Jordan
I have been experimenting with the implementation of srfi-57 which uses syntax-case and its module system. Under Chicken-1.89 I had added (at toplevel) a procedure definition to srfi-57.scm that was used in most of the modules. To be precise it was the following: (define symbolic-identifier=

Re: [Chicken-users] Problem with string-match?

2005-05-05 Thread felix winkelmann
On 5/3/05, Alejandro Forero Cuervo <[EMAIL PROTECTED]> wrote: > > Hmm, I am getting strange behaviour in string-match: (string-match > "a|b" "ax") is evaluating to ("a") (rather than #f). Interestingly, > (string-match "a|b" "xb") evaluates to ("b"). However, using "(a|b)" > as the regular expre

[Chicken-users] Problem with string-match?

2005-05-04 Thread Alejandro Forero Cuervo
Hmm, I am getting strange behaviour in string-match: (string-match "a|b" "ax") is evaluating to ("a") (rather than #f). Interestingly, (string-match "a|b" "xb") evaluates to ("b"). However, using "(a|b)" as the regular expression fixes things. It seems string-match turns regexp into (string-app

Re: [Chicken-users] Problem with finalizers?

2005-05-03 Thread felix winkelmann
Hi! As John pointed out, you should try a newer version (darcs repo or the latest snapshot). There still seems to be a problem when finalizers are created faster than they can be processed. Try setting C_MAX_PENDING_FINALIZERS in chicken.h to a higher value (and touch runtime.c and library.c) -

Re: [Chicken-users] Problem with Sandbox egg

2005-05-03 Thread felix winkelmann
This is a bug in the sanbox egg, please find a fixed verison attached (I can't upload it right now). On 4/29/05, Alejandro Forero Cuervo <[EMAIL PROTECTED]> wrote: > Hi. > > I just uploaded my Chicken installation from 1.66 to 1.89. However, > I'm experiencing problems with the sandbox egg (whi

  1   2   >