Re: [Chicken-users] How to do CGI stuffs?

2008-12-21 Thread Peter Bex
On Sat, Dec 20, 2008 at 09:10:56PM -0600, Lam Luu wrote:
> Hello everyone!
> This is the first time I use mailing list, and I hope I have everything 
> correct! Please pardon any mistake I make.

Welcome to the lists :)

> Anyway, I am trying to do CGI with Chicken Scheme. I have been trying to 
> find an egg or something similar to provide basic facilities such as 
> parsing POST and GET arguments and stuffs. So far, I have found only two 
> seemingly useful eggs, web-unity and cgi-stream. However, web-unity (at 
> least in the documentation page on the wiki) seems to require to have a 
> separate load program to load the script, with some more complications. 
> On the other hand, I dislike the way cgi-stream doing its work. Other 
> related eggs (like FastCGI and stuffs) have lost their documentation 
> (When I follow the link from Google, they are all broken).

That's weird. I'm not sure what Google links to, but the Eggs Unlimited 3
page on the wiki points to the correct page:
http://chicken.wiki.br/Eggs%20Unlimited%203

> Is there simple way to do this? I may also want to compile the script 
> (since my private server is very very weak) while keep another debuging 
> version in source form. I can manage what to throw out myself, just need 
> a parser for the stuffs sent by client.

Maybe not very useful for you right this moment, but I'm currently
working on an egg called "intarweb", for Chicken 4. This egg provides
HTTP parsing procedures, which you could use to roll your own CGI parser.

Unfortunately, it's not finished yet. There are some infrastructural
issues I still need to iron out. The work is focused on providing a
good (and I do mean *good*) URI parsing library first.

For the time being, you could run spiffy, optionally behind a proxy
server, because spiffy is probably the quickest and least painful way
to make web applications with Chicken 3.

If you would like to help out with Intarweb, just drop me a note, or
visit the IRC channel.

Cheers,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
-- Donald Knuth


pgpboUqLgB9eA.pgp
Description: PGP signature
___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] newbie: questions about set-finalizer!

2008-12-21 Thread felix winkelmann
On Sat, Dec 20, 2008 at 4:04 PM, Alejandro Forero Cuervo
 wrote:
>
>> Please try attached patch. I have added it to trunk and the chicken-3
>> branch, and did some tests, but testing finalization is always somewhat
>> difficult.
>
> I tried the patch (on 3.4.0) and it did not work.
>
> Running in csi the original code in my report,
>
>  (define x (list 1 2 3))
>  (begin (set-finalizer! x (lambda (o) (format #t "Delete: ~A~%" o))) #t)
>  (define y (list 4 5 6))
>  (begin (set-finalizer! y (let ((p x)) (lambda (o) (format #t "Delete: ~A: 
> ~A~%" o p #t)
>  (gc #t)
>  (set! x #f)
>  (gc #t)
>
> , still produces the "Delete (1 2 3)" message, which it shouldn't.
>

I'm pretty sure it works. Is it possible that you mixed up two different
installations?


cheers,
felix


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] compiling with mingw-msys

2008-12-21 Thread felix winkelmann
On Mon, Dec 15, 2008 at 9:06 AM, felix winkelmann  wrote:
> On Fri, Dec 12, 2008 at 6:13 PM, Wietse Jacobs  wrote:
>> Hello,
>>
>> This time I've tried with Mingw-MSYS and I get a lot further, but
>> again I'm stuck. I did:
>>
>
> Sorry, I can't check this right now. I'll try to address the windows
> builds as soon as possible (a general cleanup has to be done)
>

Hi,

I'm trying to get some of the windows builds working. Which one
do you need most? MSVC or mingw?


cheers,
felix


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users