Re: [Chicken-users] two minor tweaks to runtime.c

2011-09-27 Thread Peter Bex
On Tue, Sep 27, 2011 at 03:22:06PM +0200, Jörg F. Wittenberger wrote: > While I've been looking at the code I wondered if the C compiler > will fur sure pull that one test out of the for-loop. > > Maybe it's better no have it there at the first place. > IMHO the code is not more confusing to read

Re: [Chicken-users] a memory issue; mildly scaring to me

2011-09-26 Thread Peter Bex
On Mon, Sep 26, 2011 at 03:16:07PM +0200, Jörg F. Wittenberger wrote: > >While it does not fix the problem at hand: > > > >There is a suspicious line in regex-core.scm : > > > >it reads: > > > > (printing or graphic whitespace) > > > >IMHO it should read: > > > > (printing . (or graphic whi

Re: [Chicken-users] a memory issue; mildly scaring to me

2011-09-25 Thread Peter Bex
On Sun, Sep 25, 2011 at 12:36:23PM +0200, Jörg F. Wittenberger wrote: > I'm still kinda lost. > > Is there any documentation I could read to understand a little more of > irregex code? The source says it should run on any Scheme; just not how. > ;-) The *portable* and upstream version of irrege

Re: [Chicken-users] Compiling modules

2011-09-24 Thread Peter Bex
On Sat, Sep 24, 2011 at 05:48:58PM -0400, Blake Sweeney wrote: > Thanks for the help but I'm still lost. I tried: > > $ csc -J module-a.scm I think there's a -s missing (you want to compile to a shared library object). Sorry, I made this mistake in my second example too. > I read a little and i

Re: [Chicken-users] a memory issue; mildly scaring to me

2011-09-24 Thread Peter Bex
On Sat, Sep 24, 2011 at 06:08:13PM +0200, Jörg F. Wittenberger wrote: > Hi, > > I tried to change the procedure and instead of those 3 lines > I left a "return 1;" there. This seems at least to work well > for some simple checks in csi. But my app will now: a) run > without valgrinds complaint b

Re: [Chicken-users] Compiling modules

2011-09-24 Thread Peter Bex
On Fri, Sep 23, 2011 at 10:43:23PM -0400, blakes...@gmail.com wrote: > I'm having some trouble compiling modules and one main file into a binary. I'm > using 4.7.0. I have 3 modules, a, b and c. Module c depends on b and a while b > depends on a. > > Right now I'm trying: > > $ csc -c -unit modul

Re: [Chicken-users] git rm write-line?

2011-09-21 Thread Peter Bex
On Wed, Sep 21, 2011 at 10:37:51AM +0200, Christian Kellermann wrote: > Well, now the choice is manyfold. One can whine about the slowness > or improve the current situation or something completely different > like shopping... > > I prefer improvement. Who doesn't? > Either way thanks for the ni

Re: [Chicken-users] Chicken vs Perl

2011-09-20 Thread Peter Bex
On Tue, Sep 20, 2011 at 03:54:32PM +0200, Sascha Ziemann wrote: > 2011/9/20 Christian Kellermann : > > > > You can add -profile to csc's options. If you need any eggs and > > want those profiled too, recompile them also with -profile. > > How to do that? > > I have installed them with chicken-ins

Re: [Chicken-users] Chicken vs Perl

2011-09-20 Thread Peter Bex
On Tue, Sep 20, 2011 at 10:08:16PM +0900, Daishi Kato wrote: > Hi, > > My situation is pretty similar to yours, meaning I used to use Perl > and later started using Chicken for my job. > > Running your scripts on my machine produced similar result > (about 10 times difference). > > -unsafe optio

Re: [Chicken-users] Chicken vs Perl

2011-09-20 Thread Peter Bex
On Tue, Sep 20, 2011 at 02:11:41PM +0200, Sascha Ziemann wrote: > The job is: go through a web site mirror and report a unique list of > all domains from all hrefs. Also, you didn't say which site it was. The testset itself may also be an important factor. Cheers, Peter -- http://sjamaan.ath.cx

Re: [Chicken-users] Chicken vs Perl

2011-09-20 Thread Peter Bex
On Tue, Sep 20, 2011 at 02:11:41PM +0200, Sascha Ziemann wrote: > I tried to use Chicken for a job I would use normally Perl for to find > out whether Chicken might be a useful alternative. A great test! > And now hold on tight! It takes more than one minute for the same data: > > real 1m16.540

Re: [Chicken-users] Code for parsing multipart/form-data

2011-09-20 Thread Peter Bex
On Tue, Sep 20, 2011 at 08:49:24AM +0530, Santosh Rajan wrote: > Hi, > > I am looking for chicken code for parsing multipart/form-data. Can anyone > point me to the code please? Sure it must be there somewhere, at least in > the web server code. Unfortunately there isn't any currently because it'

Re: [Chicken-users] [ANN] SRFI-99 record types for CHICKEN

2011-09-15 Thread Peter Bex
On Thu, Sep 15, 2011 at 12:36:02PM +0200, Thomas Chust wrote: > Hello Peter, > > in fact, I think it was always the case, but several aspects of it are > poorly documented in the Fossil manual. For example, you could always > use symbolic tags in any place where a changeset ID was expected, but >

Re: [Chicken-users] [ANN] SRFI-99 record types for CHICKEN

2011-09-15 Thread Peter Bex
On Thu, Sep 15, 2011 at 10:46:30AM +0200, Thomas Chust wrote: > Hello, > > my implementation of SRFI-99 is now available as an egg. Congrats on the release. > The egg is served directly from its Fossil repository (check the > release information file at > http://www.chust.org/fossils/srfi-99/doc

Re: [Chicken-users] wiki pages and h1 title

2011-09-10 Thread Peter Bex
On Sat, Sep 10, 2011 at 06:46:01PM -0400, John Gabriele wrote: > What I want (what I think would benefit the wiki) is this: > > http://www.unexpected-vortices.com/temp/eggs-tutorial-2.html > > instead of this: > > http://www.unexpected-vortices.com/temp/eggs-tutorial.html > > The stopgap measur

Re: [Chicken-users] New project

2011-09-10 Thread Peter Bex
On Sat, Sep 10, 2011 at 01:02:05PM -0700, Steve Graham wrote: > Although I have programmed for decades, I am new to Scheme.  I thought that I > would use a project I've been contemplating as a help in learning the > language. > > There is a website of scriptures which I wish to download.  Some o

Re: [Chicken-users] wiki pages and h1 title

2011-09-10 Thread Peter Bex
On Sat, Sep 10, 2011 at 02:29:13PM -0400, John Gabriele wrote: > On Sat, Sep 10, 2011 at 12:56 PM, John Gabriele wrote: > > {...} > > I think it would make sense for every page to have an h1 ("= Page > > Title") at the top, which would not be part of a toc (if present), > > which would be rendered

Re: [Chicken-users] wiki pages and h1 title

2011-09-10 Thread Peter Bex
On Sat, Sep 10, 2011 at 01:42:51PM -0400, John Gabriele wrote: > I don't understand what you mean. I'd expect this wiki markup: > > > = Title Goes Here > > [[toc:]] > > == Intro > > Some content here. > > > to produce something like: > > > > Title Goes Here - The Chicken Schem

Re: [Chicken-users] wiki pages and h1 title

2011-09-10 Thread Peter Bex
On Sat, Sep 10, 2011 at 12:56:59PM -0400, John Gabriele wrote: > Hi all, > > I've noticed that some of the wiki pages have an h2 title at the top, > some don't. For the ones that have have a table of contents, some have > an h2 above the toc, some have it below. Yeah, this is up to each individua

Re: [Chicken-users] Porting modules to Chicken from other Schemes?

2011-09-10 Thread Peter Bex
On Sat, Sep 10, 2011 at 02:09:22PM +0900, Ivan Raikov wrote: > > Hello, > >It depends on whether the module uses features specific to the other > Scheme implementation. I find that the biggest impediments to porting to > Chicken are non-hygienic macros, object oriented systems (often > implem

Re: [Chicken-users] git build broken?

2011-09-04 Thread Peter Bex
On Sun, Sep 04, 2011 at 08:57:26PM +0200, Jörg F. Wittenberger wrote: > Hi, > > I just did a git pull and found irregex.scm not compiling. > >>wrong argument "(car)" passed to "not"<< or so. > > The quick quess: revert to the old types.db to compile this > single file seems to work out. Did you

Re: [Chicken-users] script to generate html from wiki-formatted text?

2011-09-01 Thread Peter Bex
On Tue, Aug 30, 2011 at 05:35:39PM -0400, John Gabriele wrote: > > Looked like I might need libsvn-dev, so installed that and tried again. > > Success! > > Do egg doc pages generally list external prereqs (such as how qwiki > required libapr1-dev and libsvn-dev)? Should I add a "Prerequisites" >

Re: [Chicken-users] Results of the Chicken survey

2011-08-25 Thread Peter Bex
On Thu, Aug 25, 2011 at 11:24:59AM +0900, Ivan Raikov wrote: > > Dear all, > > Thanks to everybody who responded to the Chicken survey. I have posted > the results here: > > http://wiki.call-cc.org/survey2011 > > Please let me know if you have any comments or suggestions on how to > improve t

Re: [Chicken-users] Egg <-> Chicken version compatibility

2011-08-19 Thread Peter Bex
On Fri, Aug 19, 2011 at 02:08:01PM +0100, Alaric Snell-Pym wrote: > Looks like the message-digest egg passes > - -no-procedure-checks-for-toplevel-bindings to csc, which this old > version of it doesn't like. > > Now, there's several easy fixes to that (I'm compiling a more recent > chicken from g

Re: [Chicken-users] wiki 500

2011-07-08 Thread Peter Bex
On Fri, Jul 08, 2011 at 10:05:14PM +0200, Peter Bex wrote: > > I'm not sure where to direct this to, but entering "io:event-dispatch" > > in the Identifier search field generates a 500 error. The bug itself was a bug in qwiki and has now been fixed in qwiki trunk. &g

Re: [Chicken-users] wiki 500

2011-07-08 Thread Peter Bex
On Thu, Jul 07, 2011 at 11:49:50PM -0400, David N Murray wrote: > Hi, > > I'm not sure where to direct this to, but entering "io:event-dispatch" > in the Identifier search field generates a 500 error. Normally, bugreports can be filed on bugs.call-cc.org, but if you don't have an account this mai

Re: [Chicken-users] Problem w/ a new egg

2011-07-06 Thread Peter Bex
On Wed, Jul 06, 2011 at 07:53:14AM +0200, Felix wrote: > From: Kon Lovett > Subject: [Chicken-users] Problem w/ a new egg > Date: Tue, 5 Jul 2011 20:05:24 -0700 > > > Hi Folks, > > > > Having a "me too stupid" problem: > > > > I added an egg - csv-xml - to the svn repo Sat. Attempts to install

Re: [Chicken-users] reload .so in csi?

2011-07-04 Thread Peter Bex
On Fri, Jul 01, 2011 at 04:21:05PM -0400, David N Murray wrote: > > That is probably the best solution. The other solution is to use (load > > "foo.so") but it may not work on all platforms. (I sent that last bit > > in private mail but forgot to copy the list) > > (load "foo.so") appears to do

Re: [Chicken-users] where move-file is?

2011-06-30 Thread Peter Bex
On Thu, Jun 30, 2011 at 10:04:39AM -0300, Hugo Arregui wrote: > Hi guys, > > I want to use move-file procedure, ( > http://api.call-cc.org/doc/chicken/eggs/move-file ), but i cannot find > it as an egg or as an procedure. I mean, seems an egg, but > chicken-install cannot find it, and doesn't seem

Re: [Chicken-users] Taking the distributed egg repository into production

2011-06-27 Thread Peter Bex
On Sat, Jun 18, 2011 at 08:52:40PM +0200, Peter Bex wrote: > Hello everyone, > > The distributed egg repository system is now ready for production. > We would like to make the switch to this system soon. For users, this > should be a completely transparent change. This has now

Re: [Chicken-users] Should http-client automatically consume unconsumed input? [Was: Re: ssax examples could not run]

2011-06-22 Thread Peter Bex
On Tue, Jun 21, 2011 at 09:53:45PM +0200, Peter Bex wrote: > Hi again, > > Also, about this piece of code: > > > (pp (call-with-input-request > > "http://modis.ispras.ru/Lizorkin/XML/poem.xml"; > > #f (lambda (p) >

[Chicken-users] Should http-client automatically consume unconsumed input? [Was: Re: ssax examples could not run]

2011-06-21 Thread Peter Bex
Hi again, Also, about this piece of code: > (pp (call-with-input-request > "http://modis.ispras.ru/Lizorkin/XML/poem.xml"; > #f (lambda (p) > (let ((sxml (ssax:xml->sxml p '( > ;; Consume the rest of the stream, ssax does not > ;; fully read until t

Re: [Chicken-users] ssax examples could not run

2011-06-21 Thread Peter Bex
On Tue, Jun 21, 2011 at 01:58:08PM -0400, HP wei wrote: > I installed chicken.4.7.0 > and ssax, sxpath > > Then I tried to follow the examples pointed to in the ssax homepage > in > http://modis.ispras.ru/Lizorkin/sxml-tutorial.html Generally, the Chicken documentation takes precedence over the d

[Chicken-users] Taking the distributed egg repository into production

2011-06-18 Thread Peter Bex
Hello everyone, The distributed egg repository system is now ready for production. We would like to make the switch to this system soon. For users, this should be a completely transparent change. For egg authors, this means more freedom to use whatever code hosting site you'd prefer to use. For

Re: [Chicken-users] Chicken segfault

2011-06-16 Thread Peter Bex
On Thu, Jun 16, 2011 at 04:36:16PM +0200, Sven Hartrumpf wrote: > Hi all. > > How should I investigate this problem? Tried gdb? > Or is this a known problem? AFAIK no, but just to chime in and let you know, I've also gotten some "random" segmentation faults in csi which I haven't been able to p

Re: [Chicken-users] still parameterize bug

2011-06-13 Thread Peter Bex
On Mon, Jun 13, 2011 at 09:25:33PM +0900, Joo ChurlSoo wrote: > #;1> (define p (make-parameter 10 number->string)) > #;2> (p) > "10" > #;3> (parameterize ((p 100)) (p)) > > Error: (number->string) bad argument type: "10" Not surprising. The ticket is still open: http://bugs.call-cc.org/ticket/473

Re: [Chicken-users] Chicken logo license

2011-06-06 Thread Peter Bex
On Mon, Jun 06, 2011 at 12:32:44PM -0500, Joshua Griffith wrote: > Peter, > > I used the Creative Commons licensing form that John Cowan suggested and > placed the license texts within the image source directory: > > http://joshuagriffith.com/chicken/logo/license.html > http://joshuagriffith.com

Re: [Chicken-users] Chicken logo license

2011-06-05 Thread Peter Bex
On Sun, Jun 05, 2011 at 03:47:21PM -0500, Joshua Griffith wrote: > Hello Peter, > > I never put much thought into it and simply wanted to give the logo to the > community. > Perhaps it's a good idea to make that explicit. Let me know what license > would be most convenient and I'll release it un

[Chicken-users] Chicken logo license

2011-06-05 Thread Peter Bex
Hi all, I was looking at the wikipedia page on Chicken and noticed the logo is missing. I wanted to upload it but Wikipedia is paranoid about its image uploads and wants absolute clarity about the license on the logo. So here is the question: what license does our logo fall under? Cheers, Peter

Re: [Chicken-users] Different factorial results

2011-06-03 Thread Peter Bex
On Fri, Jun 03, 2011 at 12:49:26PM -0400, John Cowan wrote: > Steve Graham scripsit: > > > Thanks, Mario. Worked like a charm. Why is that not part of the base > > package? > > Licensing. The numbers egg has to be GPL, because it depends on the GMP > (GNU Multi-precision Library) which is GPL.

Re: [Chicken-users] ANN: Test version of new egg release system available

2011-06-02 Thread Peter Bex
On Mon, Apr 04, 2011 at 12:05:01AM +0200, Peter Bex wrote: > > There are still a few rough spots; it would be nice if releasing an > > egg would be more automated (with a shellscript, for example), so you > > don't need to manually maintain the meta-file and release-info

Re: [Chicken-users] Possible numbers bug

2011-06-01 Thread Peter Bex
On Sun, May 29, 2011 at 11:39:31PM +0200, Peter Bex wrote: > On Fri, May 27, 2011 at 10:58:04AM +0200, Dominic Pearson wrote: > > Hello folks, > > > > I am trying to compute the sum i = 0 to n where n = 1000 of n^n, but > > chicken seems to return the incorrect answer.

Re: [Chicken-users] Possible numbers bug

2011-05-29 Thread Peter Bex
On Fri, May 27, 2011 at 10:58:04AM +0200, Dominic Pearson wrote: > Hello folks, > > I am trying to compute the sum i = 0 to n where n = 1000 of n^n, but > chicken seems to return the incorrect answer. > > http://paste.call-cc.org/paste?id=e0884580a684d1220f3dedb819f63201b6f5eb1a > > Racket and s

[Chicken-users] Renamed identifier not imported

2011-05-29 Thread Peter Bex
Hi, When importing a renamed identifier in module A and then loading that library from another module B, I get the following with Chicken 4.7.0: Warning: renamed identifier not imported: (define-external old-define-external) This doesn't seem to be right; module B shouldn't need to know that mod

Re: [Chicken-users] Possible numbers bug

2011-05-28 Thread Peter Bex
On Sat, May 28, 2011 at 11:03:41AM -0700, Matt Welland wrote: > What was the final word on this? Is it a real issue on some platforms? Probably. I will look into it when time allows. > Anyhow, I found this whole exercise pretty interesting and played with > it a bit more and observed a couple cur

Re: [Chicken-users] [wish list] chicken-install: show available eggs, upgrade all installed eggs?

2011-05-09 Thread Peter Bex
On Mon, May 09, 2011 at 10:25:27PM +0900, Alex Shinn wrote: > On Thu, May 5, 2011 at 7:18 PM, Peter Bex wrote: > > > > With Lisp/Scheme code, the only sensible indentation style really is > > spaces.  With braces-like languages like C it makes sense to use tabs > > if

Re: [Chicken-users] [wish list] chicken-install: show available eggs, upgrade all installed eggs?

2011-05-08 Thread Peter Bex
On Sun, May 08, 2011 at 12:52:36PM +0200, Felix wrote: > > > > I'm not crazy at getting bleeding edge eggs.. However, I do like to upgrade > > `chicken' itself whenever a newer release comes out. Only realize that i > > have > > to find out and reinstall all eggs again. (Because at least all the

Re: [Chicken-users] [wish list] chicken-install: show available eggs, upgrade all installed eggs?

2011-05-05 Thread Peter Bex
On Thu, May 05, 2011 at 11:33:54AM -0300, Stephen Eilert wrote: > On Thu, May 5, 2011 at 7:06 AM, Felix > > That is possible, but would require a regularly updated "master" document > > somewhere > > on our server. > > Henrietta already provides a list of eggs to chicken-install. AFAIK it doesn'

Re: [Chicken-users] [wish list] chicken-install: show available eggs, upgrade all installed eggs?

2011-05-05 Thread Peter Bex
On Thu, May 05, 2011 at 06:52:16AM -0400, Felix wrote: > > See also http://emacswiki.org/TabsAreEvil > > It's the default behaviour of my emacs That's *very* easy to fix and I don't understand why emacs has such a silly default for lispy modes: (add-hook 'lisp-mode-hook (lambda () (setq indent-t

Re: [Chicken-users] [wish list] chicken-install: show available eggs, upgrade all installed eggs?

2011-05-05 Thread Peter Bex
On Thu, May 05, 2011 at 06:06:16AM -0400, Felix wrote: > Hello! > > > It would be good to be able to show available eggs when installing an egg, > > such > > that user can grep and find wanted eggs quickly without having to browse at > > http://wiki.call-cc.org/chicken-projects/egg- index-4.html.

Re: [Chicken-users] Fwd: chicken slackbuild issue

2011-04-23 Thread Peter Bex
On Sat, Apr 23, 2011 at 10:01:29AM -0500, Patrick Pippen wrote: > Has anyone encountered this issue with Chicken scheme 4.6.0 on the > x86_64 platform? The apply hack is called apply-hack.x86-64.S so I guess you need to use ARCH=x86-64 Cheers, Peter -- http://sjamaan.ath.cx -- "The process of p

Re: [Chicken-users] spiffy, remote-address, X-Forwarded-For

2011-04-14 Thread Peter Bex
On Wed, Apr 13, 2011 at 10:46:07PM -0400, John J Foerch wrote: > Hello, > > I have a feature request for spiffy. > > The background: I set up an awful-based web app behind an apache2 > reverse proxy. Awful/spiffy is listening locally on port 8080, and > apache2 delivers requests to it via mod_re

Re: [Chicken-users] 4.6.7 development snapshot available

2011-04-10 Thread Peter Bex
On Sun, Apr 10, 2011 at 12:37:33PM +0200, Felix wrote: > >> > - The logo picture isn't installed anymore :) > >> > >> Oops. I'll check that. > > > > It's installed alongside the html-documentation (in "manual-html"). Cool! I'd like to test this. (When) will there be a new snapshot? I also ju

Re: [Chicken-users] 4.6.7 development snapshot available

2011-04-09 Thread Peter Bex
On Sat, Apr 09, 2011 at 08:48:56AM +0200, Felix wrote: > > - There is no plaintext manual installed anymore. There's mention of > >a "manual-labor"-generated HTML manual but that's not installed. > > This is done in the release process, not when a snapshot is > generated. If the snapshots ar

Re: [Chicken-users] 4.6.7 development snapshot available

2011-04-08 Thread Peter Bex
On Fri, Apr 08, 2011 at 08:43:59PM +0200, Felix wrote: > Hello! > > > A development snapshot for CHICKEN 4.6.7 is now available at the usual > place: > > http://code.call-cc.org/dev-snapshots/ > > This will be the last snapshot before the 4.7.0 release, which is > currently being prepared. Wil

Re: [Chicken-users] ANN: Test version of new egg release system available

2011-04-03 Thread Peter Bex
On Tue, Mar 29, 2011 at 03:28:54PM +0200, Peter Bex wrote: > There are still a few rough spots; it would be nice if releasing an > egg would be more automated (with a shellscript, for example), so you > don't need to manually maintain the meta-file and release-info file. > This

Re: [Chicken-users] Generic RDBMS Interface [Was: Re: Creating Windows GUI App]

2011-04-01 Thread Peter Bex
On Fri, Apr 01, 2011 at 12:29:40PM -0700, YC wrote: > URI is definitely an interesting approach. I originally wanted to use a > connection string like ODBC, but realized that since I am using DBI to be > more than just for RDBMS (I have a memcached driver and a filepath driver) > and the key/value

Re: [Chicken-users] ANN: Test version of new egg release system available

2011-03-31 Thread Peter Bex
On Wed, Mar 30, 2011 at 09:03:50PM -0500, Peter Danenberg wrote: > Quoth Peter Bex on Prickle-Prickle, the 16th of Discord: > Fantastic work, guys; I wish I would have been at Köln: it sounds like > it was an orgy of rapid development. It was insanely fun! > Whose responsible for

[Chicken-users] ANN: Test version of new egg release system available

2011-03-29 Thread Peter Bex
Hello everyone, I am pleased to announce that an evaluation version of the distributed system for egg release management has now been implemented. This was done during the Chicken hacking weekend in Cologne, and thanks to the further efforts of Mario and Moritz this week, the system can now be ta

Re: [Chicken-users] Chicken Scheme 3 extension dependency problem

2011-03-20 Thread Peter Bex
On Sun, Mar 20, 2011 at 01:45:22PM -0500, Paul Nelson wrote: > Heya Peter! > > Yep, that seems to have done the trick. I guess I missed that step as it was > not in my install script. It is now! It shouldn't need to be. I suppose there are just a few places where it could go wrong but once I tag

Re: [Chicken-users] Chicken Scheme 3 extension dependency problem

2011-03-19 Thread Peter Bex
On Sat, Mar 19, 2011 at 04:53:41PM -0500, Paul Nelson wrote: > I should've included this in my last message. :-/ Here you go... > [Sat Mar 19 21:50:02 2011] "GET > http://ec2-50-17-97-245.compute-1.amazonaws.com:8080/index HTTP/1.1" Error: > (put-document) > Client error: 404 Not Found (the node d

Re: [Chicken-users] Re: dbus:send bug

2011-03-17 Thread Peter Bex
On Thu, Mar 17, 2011 at 09:17:13AM -0400, John Gabriele wrote: > > You can also make the argument that you're being distracted by the way > > the code is laid out.  If you are documenting completely separately, > > you can think about the flow of text that makes most sense, grouping > > procedures

Re: [Chicken-users] Chicken Scheme 3 extension dependency problem

2011-03-17 Thread Peter Bex
On Wed, Mar 16, 2011 at 10:55:55PM -0500, Paul Nelson wrote: > I'm back! > > Things have been busy for me lately, keeping me from playing with Chicken > Scheme and with qwiki but I finally got a little time tonight. While I have > been able to successfully install qwiki and get the first page

Re: [Chicken-users] Re: dbus:send bug

2011-03-16 Thread Peter Bex
On Wed, Mar 16, 2011 at 04:39:46PM -0400, John Cowan wrote: > Egg documentation should not be documentation of the code (implementation) > of the egg, but of its interface. Thank you for that. You made my point more concisely than I could ever hope to. Cheers, Peter -- http://sjamaan.ath.cx --

Re: [Chicken-users] Re: dbus:send bug

2011-03-16 Thread Peter Bex
On Wed, Mar 16, 2011 at 04:52:45PM -0300, Stephen Eilert wrote: > > Almost all the "extracted" documentation I've seen is of shitty quality; > > people tend to use automatic extraction of docs as an excuse not to > > write proper documentation. > > As opposed to not writing it at all, or having it

Re: [Chicken-users] Re: dbus:send bug

2011-03-16 Thread Peter Bex
On Wed, Mar 16, 2011 at 02:58:59PM -0300, Stephen Eilert wrote: > > Documentation for eggs is usually manually written.  As far as I know, > > nobody uses automatic extraction of comments from code. > > And that's a shame. Why? Almost all the "extracted" documentation I've seen is of shitty qual

Re: [Chicken-users] Big Randoms

2011-03-11 Thread Peter Bex
On Thu, Mar 10, 2011 at 07:44:19PM -0800, Kon Lovett wrote: > > What happens w/ 4.6.0 when you import 'numbers' into the toplevel? i.e. > > (use numbers srfi-27) > (expt 2 32) ;=> ??? > (random-integer (expt 2 32)) ;=> ??? That should not have any effect, unless srfi-27 contains special code to

Re: [Chicken-users] Strange segfaults when linking with pthreads

2011-03-04 Thread Peter Bex
On Fri, Mar 04, 2011 at 01:25:00PM +0100, Felix wrote: > >> --- a/Makefile.bsd > >> +++ b/Makefile.bsd > >> @@ -57,7 +57,7 @@ LINKER_LINK_SHARED_LIBRARY_OPTIONS = -shared > >> LINKER_LINK_SHARED_DLOADABLE_OPTIONS = -shared > >> -Wl,-R"$(RUNTIME_LINKER_PATH)" -Wl,-L. > >> LINKER_LINK_SHARED_PROGR

Re: [Chicken-users] Strange segfaults when linking with pthreads

2011-03-04 Thread Peter Bex
On Fri, Mar 04, 2011 at 10:40:49AM +0100, Felix wrote: > This seems to work. It looks like Aleksej pointed into the right > direction, as insane as this may be. > > diff --git a/Makefile.bsd b/Makefile.bsd > index b818eac..5eab203 100644 > --- a/Makefile.bsd > +++ b/Makefile.bsd > @@ -57,7 +57,7

Re: [Chicken-users] Re: Strange segfaults when linking with pthreads

2011-03-04 Thread Peter Bex
On Fri, Mar 04, 2011 at 03:18:35AM +0300, Aleksej Saushev wrote: > Peter Bex writes: > > > I've been observing something really strange for a while and decided to > > finally dig a little deeper. It appears that when I link to libpthread, > > even if I do

Re: [Chicken-users] Strange segfaults when linking with pthreads

2011-03-03 Thread Peter Bex
On Thu, Mar 03, 2011 at 10:48:01PM +0100, Felix wrote: > > I've been observing something really strange for a while and decided to > > finally dig a little deeper. It appears that when I link to libpthread, > > even if I don't use it, Chicken segfaults. > > > > What does "LD_DEBUG=all csi ..." s

[Chicken-users] Strange segfaults when linking with pthreads

2011-03-03 Thread Peter Bex
Hello there, I've been observing something really strange for a while and decided to finally dig a little deeper. It appears that when I link to libpthread, even if I don't use it, Chicken segfaults. To reproduce this, put the following in a file called "foo.scm": (module foo * (import chicken

Re: [Chicken-users] scheduling and coroutines

2011-02-27 Thread Peter Bex
On Sat, Feb 26, 2011 at 01:50:10PM +0100, Tomtom wrote: > Now, how should I change the code in the routine ? > > Buf if I change the routine by adding one argument to call/cc > > (define (routine cont) > (let loop ((n 10)) > (set! cont (call/cc cont n)) > (if (> n 0) > (loop (- n

Re: [Chicken-users] scheduling and coroutines

2011-02-26 Thread Peter Bex
On Fri, Feb 25, 2011 at 06:06:59PM +0100, Tomtom wrote: > Hi list. Hi Tom! > First of all, I'm new here and new to scheme too. So please bear with me. Welcome. I hope you're enjoying Scheme so far :) > it should also give a "sleep duration" after which the scheduler will have to > resume the c

Re: [Chicken-users] Chicken Scheme 3 extension dependency problem

2011-02-24 Thread Peter Bex
On Wed, Feb 23, 2011 at 07:42:49PM -0600, Paul Nelson wrote: > Success! WooHoo!!! :-D Yay! Congratulations! > The patch definitely did the trick. Thanks so much for hanging in there with > me to get this figured out. Thank *you* for being so persistent. Most people would've given up after a few

Re: [Chicken-users] Safely holding on to a reference in C

2011-02-23 Thread Peter Bex
On Wed, Feb 23, 2011 at 05:55:29AM -0500, Felix wrote: > Procedures may refer to shared boxes for assigned lexically referenced > variables. Eviction will break that sharing. Ah, of course, that makes sense. Thanks for the explanation! Cheers, Peter -- http://sjamaan.ath.cx -- "The process of pr

Re: [Chicken-users] Chicken Scheme 3 extension dependency problem

2011-02-23 Thread Peter Bex
On Tue, Feb 22, 2011 at 09:39:19PM -0600, Paul Nelson wrote: > Finally, I run this last script by typing "sudo /etc/init.d/spiffy" and the > web server starts up on port 8080 as expected, but I get a 500 error when > attempting to access qwiki from a browser. Spiffy gives the following error: > >

Re: [Chicken-users] Safely holding on to a reference in C

2011-02-23 Thread Peter Bex
On Tue, Feb 22, 2011 at 09:00:13AM +0100, Felix wrote: > > I think you can use object-evict for that. It's from unit lolevel, see > > http://wiki.call-cc.org/man/4/Unit%20lolevel#object-evict > > I'm not sure eviction is the right thing to do here. Interesting. Care to explain the reason that th

Re: [Chicken-users] Safely holding on to a reference in C

2011-02-21 Thread Peter Bex
On Sun, Feb 20, 2011 at 08:55:24PM -0800, Naitik Shah wrote: > Hi, > > I'm experimenting with Chicken and libevent using the bind extension to > build a event based webserver. I'm trying to figure out if there's a way to > have C code hold on to a in a GC safe manner. The implementation > I have

Re: [Chicken-users] Chicken Scheme 3 extension dependency problem

2011-02-16 Thread Peter Bex
On Tue, Feb 15, 2011 at 05:28:13PM -0600, Jim Ursetto wrote: > I looked into it some more and it appears that simple-logging is indeed > present in the chicken 3 repository, but for some reason, chicken-setup > claims it cannot be found. I have never seen this before, any ideas anyone? It was p

Re: [Chicken-users] Help solving this phasing problem.

2011-02-13 Thread Peter Bex
On Sun, Feb 13, 2011 at 01:59:47PM +0100, Felix wrote: > > This imports module-a (which can be internal and nobody has to know it's > > there) both for syntax and normally, and then re-exports the convenience > > function. > > > > Yes, this is ugly. > > Well, is it? Not having an alternative doe

Re: [Chicken-users] Help solving this phasing problem.

2011-02-12 Thread Peter Bex
On Sat, Feb 12, 2011 at 04:35:23PM -0500, Patrick Li wrote: > > I have a *very* ugly workaround right now. > I define the convenience function twice. Once normally. And again within a > begin-for-syntax form. You can do the same trick as before: (module module-a (convenience-function) (import

Re: [Chicken-users] Implementing a macroexpand-all

2011-02-12 Thread Peter Bex
On Sat, Feb 12, 2011 at 12:18:30PM -0500, Patrick Li wrote: > Ah I'm using Chicken 4.4.0. > I'm a beginner to Chicken and just typed "port install chicken" into my > MacOSX terminal. > I'll figure out how to upgrade Chicken. If you have more questions, it may be more efficient to continue the conv

Re: [Chicken-users] Implementing a macroexpand-all

2011-02-12 Thread Peter Bex
On Sat, Feb 12, 2011 at 11:52:40AM -0500, Patrick Li wrote: > I didn't understand what you mean by this part. How do I perform a "full > expansion"? > eg. > (define-syntax mymacro (syntax-rules () ((mymacro) (lambda () 3 > > (expand '(mymacro)) > => (lambda1020 () 3) What version of Chicken a

Re: [Chicken-users] Implementing a macroexpand-all

2011-02-12 Thread Peter Bex
On Sat, Feb 12, 2011 at 11:15:31AM -0500, Patrick Li wrote: > Thanks for the help Felix! > > There's one more question I stumbled upon actually. Do you know of some way > I can tell if a symbol *actually* refers to lambda or let? > > eg. after some macro expansions, a form might look like (lambda

Re: [Chicken-users] Using a macro definition within a explicit renaming macro.

2011-02-11 Thread Peter Bex
On Fri, Feb 11, 2011 at 03:13:36PM -0500, Patrick Li wrote: > Hello, > I'm working with explicit renaming macros, and I'm having a lot of trouble > using macros within them. > > (define-syntax say-hi > (syntax-rules () > ((say-hi) (display "Hello!" > > (define-syntax my-renaming-macro >

Re: [Chicken-users] Implementing a macroexpand-all

2011-02-11 Thread Peter Bex
On Fri, Feb 11, 2011 at 02:46:58PM -0500, Patrick Li wrote: > > The "when" should not be macroexpanded because it is a local binding > introduced by the let form. In that context, it is actually *not* a macro. > > Does anyone know which forms introduce new bindings? How can I check this > up? I'

Re: [Chicken-users] Amazon S3

2011-02-10 Thread Peter Bex
On Wed, Feb 09, 2011 at 07:17:23PM -0500, Thomas Hintz wrote: > Hello, > > Has anyone used Amazon S3 with Chicken? I can't seem to find any libs built > for handling the request authentication, particularly the HMAC-SHA1 > signature... I really don't want to develop something that has been already

Re: [Chicken-users] http-client doesn't handle closed persistent connections

2011-02-01 Thread Peter Bex
On Tue, Feb 01, 2011 at 06:58:23AM +0900, Daishi Kato wrote: > Tried the trunk, working fine. > I don't see any problems now. > Thank you! Thank you for reporting this and the fine testcase! I've now tagged a new 0.4.1 release with this bugfix. Cheers, Peter -- http://sjamaan.ath.cx -- "The pro

Re: [Chicken-users] http-client doesn't handle closed persistent connections

2011-01-31 Thread Peter Bex
On Mon, Jan 31, 2011 at 09:43:45PM +0900, Daishi Kato wrote: > > Crap, you're right. I have no idea how to fix this properly right now > > though. I'll need to think about it some more. > > How about raising an i/o exception(condition) when > it detects #!eof in read-response in intarweb.scm? > I

Re: [Chicken-users] http-client doesn't handle closed persistent connections

2011-01-31 Thread Peter Bex
On Mon, Jan 31, 2011 at 09:10:14PM +0900, Daishi Kato wrote: > Hm, it avoids the problem, which is good. > However, it now doesn't keep connections. > In the case of www.apache.org, if you call http requests > twice in 5sec, the connection should be reused. > This was working with the released egg,

Re: [Chicken-users] http-client doesn't handle closed persistent connections

2011-01-30 Thread Peter Bex
On Sun, Jan 30, 2011 at 09:57:47PM +0900, Daishi Kato wrote: > > A test case would be welcome. > > Here is how to reproduce the problem. > > #;2> (string-length (with-input-from-request "http://www.apache.org/"; #f > read-string)) > 44138 > > This apache server is probably configured to keep co

Re: [Chicken-users] http-client doesn't handle closed persistent connections

2011-01-29 Thread Peter Bex
On Sat, Jan 29, 2011 at 11:57:27PM +0900, Daishi Kato wrote: > After a quick look in the code, one suspect is that port-closed? > can't check a closed port, but not really sure. If that's the case, it's a bug in Chicken because http-client simply used the definition from library.scm, and provides

Re: [Chicken-users] Need help on sxpath/txpath

2011-01-29 Thread Peter Bex
On Sat, Jan 29, 2011 at 09:32:10PM +0900, Daishi Kato wrote: > And, found it! Yes, Peter. > > In release/3/sxml-tools/extras/string-utils.scm, > (define (substring? pattern str) (string-contains str pattern)) > > However, in release/4/sxpath/trunk/chicken/[st]xpath.scm, > (define substring? strin

Re: [Chicken-users] Need help on sxpath/txpath

2011-01-28 Thread Peter Bex
On Sat, Jan 29, 2011 at 12:11:26AM +0900, Daishi Kato wrote: > > It probably is not a chicken-specific problem because the sxpath > > egg includes an unmodified copy of SSAX. > > Looked at: > diff -rw release/3/sxml-tools/sxml-tools/ release/4/sxpath/trunk/sxml-tools/ > > but, I'm not sure is the

Re: [Chicken-users] Need help on sxpath/txpath

2011-01-28 Thread Peter Bex
On Fri, Jan 28, 2011 at 11:27:26PM +0900, Daishi Kato wrote: > Hi, > > I digged into the problem a little more and found something. > > In 4.6.0, this is somewhat working: > #;24> ((sxpath "//table/tr[td[a[contains(href,'&abc=123&')]]]") > (html->sxml " href=\"/xxx/yyy/?zzz&abc=123&\">yyy")) > (

Re: [Chicken-users] readline egg (OS X 10.6.6 / Chicken 4.6.0)

2011-01-26 Thread Peter Bex
On Wed, Jan 26, 2011 at 06:02:12AM -0500, David Dreisigmeyer wrote: > Using Macports, I had to do the following in order to get the readline > egg to install: > > $ sudo ln -s /opt/local/lib/libreadline.dylib /usr/local/lib/ > $ sudo ln -s /opt/local/include/readline/ /usr/local/include/readline >

Re: [Chicken-users] chicken+iup+sql-de-lite installer for windows available

2011-01-26 Thread Peter Bex
On Tue, Jan 25, 2011 at 11:58:46PM -0700, Matt Welland wrote: > My goal is to eventually have a chicken installer for windows that includes > a good range of eggs so that people can give chicken a go without having to > wade though the install process. I guess this could be seen as either a good >

Re: [Chicken-users] http-client and set-cookie

2011-01-16 Thread Peter Bex
On Sun, Jan 16, 2011 at 11:29:16AM +0900, Daishi Kato wrote: > It worked. Thanks so much. You're welcome, and thanks for reporting this! I've tagged a new http-client version (0.4) containing several other bugfixes as well. > So, (get-param 'path c) actually returns a uri-common object. I see.

Re: [Chicken-users] Need help on sxpath/txpath

2011-01-16 Thread Peter Bex
On Sun, Jan 16, 2011 at 03:49:41PM +0900, Daishi Kato wrote: > Hi, > > I'm porting one of my projects from chicken-3.2.0 to chicken-4.6.0. > (And thus found a bug in http-client.) > > It seems like the previous sxpath doesn't work on the new one. > Could anybody help how I can fix this? > > The

<    3   4   5   6   7   8   9   10   11   12   >