Re: wip-threads-and-fork

2012-02-23 Thread Nala Ginrut
On Fri, Feb 24, 2012 at 12:13 AM, Andy Wingo wrote: > On Thu 23 Feb 2012 16:49, Nala Ginrut writes: > > > I just want to do my negative vote when I saw "choose thead then fork > > die", but I see "open-process" soon. ;-) So, what's the difference > > between "primitive-fork" and "open-process"?

Re: wip-threads-and-fork

2012-02-23 Thread Andy Wingo
On Thu 23 Feb 2012 16:49, Nala Ginrut writes: > I just want to do my negative vote when I saw "choose thead then fork > die", but I see "open-process" soon. ;-)  So, what's the difference > between "primitive-fork" and "open-process"? If they're different, I > think much code to be modified for m

Re: [PATCH] add web/mime support

2012-02-23 Thread Catonano
Il giorno 23 febbraio 2012 16:39, Nala Ginrut ha scritto: > > And I think "http-get" could get whatever data from remote, so if you're > not writing a web browser, you just store the data to a file or redirect to > player something. In this case, you don't have to detect mime type > automatically

Re: wip-threads-and-fork

2012-02-23 Thread Nala Ginrut
On Thu, Feb 23, 2012 at 11:05 PM, Andy Wingo wrote: > On Wed 22 Feb 2012 22:40, Andy Wingo writes: > > > Obviously we can treat the limited case of (ice-9 popen) in a more > > portable fashion. > > I have now rewritten open-process from ice-9 popen in C, so as to be > sure that only async-signal

Re: [PATCH] add web/mime support

2012-02-23 Thread Nala Ginrut
Well, I'm not sure what you did. And this MIME support is mainly used for a server rather than a client. So your client must know how to deal with the given MIME. I think your client is not going to use my mime.scm, unless you're writing a web browser. If you do, you must have many handlers for t

Re: wip-threads-and-fork

2012-02-23 Thread Andy Wingo
On Wed 22 Feb 2012 22:40, Andy Wingo writes: > Obviously we can treat the limited case of (ice-9 popen) in a more > portable fashion. I have now rewritten open-process from ice-9 popen in C, so as to be sure that only async-signal-safe routines get called. This should make ice-9 popen work reli

Re: [PATCH] add web/mime support

2012-02-23 Thread Catonano
Il giorno 23 febbraio 2012 15:53, Nala Ginrut ha scritto: > There's no mime support in Guile module, so I modified the mime code of my > project Ragnarok and format a patch. > It's easy to use: > (use-modules (web mime)) > (define mime (make )) > (mime:guess mime 'pdf) > ==> application/pdf > (mi

[PATCH] add web/mime support

2012-02-23 Thread Nala Ginrut
There's no mime support in Guile module, so I modified the mime code of my project Ragnarok and format a patch. It's easy to use: (use-modules (web mime)) (define mime (make )) (mime:guess mime 'pdf) ==> application/pdf (mime:guess mime 'php) ==> application/x-httpd-php Maybe useful for some guys~

Re: [PATCH] tree-il->scheme: avoid gensyms and begin; use cond, and, or, and let*

2012-02-23 Thread Andy Wingo
Hi, On Thu 23 Feb 2012 03:50, Mark H Weaver writes: > Here's a preliminary patch that greatly improves our 'tree-il->scheme' > decompiler. Interesting patch! I suppose that readability is really the key thing here, and so we should apply it. A few comments: > I've also disabled the use of pa

[PATCH] add some useful procedures for http client module

2012-02-23 Thread Nala Ginrut
hi guys! I try to write a module for http download tools. When I finished it, I realized some of the procedures could be the part of module/web/client.scm. So I format a patch. The function of these procedures listed below: http-get-uri-head ==> get the response struct under http method 'HEAD', thi