Guile 100 Prob #5: PHP-style GUILE

2013-04-08 Thread Mike Gran
It is time for a new theme for Guile 100: Web 1.0. We'll be exploring the web as it existed in the 1990s: CGI, GIFs, Gopher, LAMP. Challenge #5 in the Guile 100 Programs Project is to write a CGI script can serve up HTML pages that have embedded scheme code.

Re: PHP to GUILE

2005-09-27 Thread Vorfeed Canal
On 9/27/05, Kevin Ryde [EMAIL PROTECTED] wrote: Vorfeed Canal [EMAIL PROTECTED] writes: I'm not talking about GUILE libraries. I'm talking about EXTENSIONS libraries. While GUILE libraries for different versions of GUILE can happily live in /usr/lib (they have different API versions) this

Re: PHP to GUILE

2005-09-27 Thread Thien-Thi Nguyen
From: Vorfeed Canal [EMAIL PROTECTED] Date: Tue, 27 Sep 2005 14:11:47 +0400 Too much: we have two distinct things - stand-alone scheme modules and non-stand-alone C glue code (:autoload is deprecated, rememeber?). i'm afraid i can't share in this we. i use standalone shared

Re: PHP to GUILE

2005-09-27 Thread Thien-Thi Nguyen
of problem I'd like to avoid by switching from PHP to GUILE. switching to guile will not help you avoid these problems. I do not like to see situation where this thing works only with PHP 4.4.0 but not with PHP 5.0 while that thing is not compatible with PHP 5.0.0-5.0.4 but still other

Re: PHP to GUILE

2005-09-27 Thread Vorfeed Canal
On 9/27/05, Thien-Thi Nguyen [EMAIL PROTECTED] wrote: compiling scheme to native is part of the original vision. i don't know what scheduled means, but i know that i'm personally interested in it and that it is not out of my reach technically. on the other hand, i'm never sure about other

Re: PHP to GUILE

2005-09-27 Thread Thien-Thi Nguyen
From: Vorfeed Canal [EMAIL PROTECTED] Date: Tue, 27 Sep 2005 21:47:26 +0400 Ok, I still think this message-catalogs idea is needlessly complex, but we can agree to disagree on that issue. ok. i agree to disagree. I think that your solution is too complex for today's needs and

Re: PHP to GUILE

2005-09-26 Thread Zeeshan Ali
Hi, On 9/26/05, Kevin Ryde [EMAIL PROTECTED] wrote: Vorfeed Canal [EMAIL PROTECTED] writes: 1. All C extension files can only be put in /usr/lib - there are no sane way to change libtool's searchpath and there are no sane default. Very annoying. With a full path to `load-extension' you

Re: PHP to GUILE

2005-09-26 Thread Vorfeed Canal
On 9/26/05, Kevin Ryde [EMAIL PROTECTED] wrote: Vorfeed Canal [EMAIL PROTECTED] writes: With a full path to `load-extension' you can put a module anywhere. But you can not give control to user then ! If your code is a package in its own right then this is a good thing, so you can be certain

Re: PHP to GUILE

2005-09-26 Thread Vorfeed Canal
On 9/26/05, Zeeshan Ali [EMAIL PROTECTED] wrote: With a full path to `load-extension' you can put a module anywhere. If your code is a package in its own right then this is a good thing, so you can be certain to get the right file (ie. whatever crazy directory the user might have given).

Re: PHP to GUILE

2005-09-26 Thread Thien-Thi Nguyen
From: Vorfeed Canal [EMAIL PROTECTED] Date: Mon, 26 Sep 2005 11:43:59 +0400 This means I'm not the only one who feel like this hardcoded path is not a good solution. you may be able to get guile 1.4.x[1] to do what you want. all the compiled modules (shared object libraries

Re: PHP to GUILE

2005-09-26 Thread Vorfeed Canal
On 9/26/05, Thien-Thi Nguyen [EMAIL PROTECTED] wrote: From: Vorfeed Canal [EMAIL PROTECTED] Date: Mon, 26 Sep 2005 11:43:59 +0400 This means I'm not the only one who feel like this hardcoded path is not a good solution. you may be able to get guile 1.4.x[1] to do what you want.

Re: PHP to GUILE

2005-09-26 Thread Zeeshan Ali
Hello, Yeah! and you can have a look at the source code of xchat-guile to see how exactly thats done: http://piipiip.net/~zeenix/xchat-guile-0.2.tar.gz I took a look. Conclusion: it's a mess. Your conclusion is based on your ignorance. Why? Easy: guile.so is installed in

Re: PHP to GUILE

2005-09-26 Thread Vorfeed Canal
On 9/26/05, Zeeshan Ali [EMAIL PROTECTED] wrote: I took a look. Conclusion: it's a mess. Your conclusion is based on your ignorance. Possible. Care to enlighten men ? Please at least read the log yourself first, it's not (xchat-guile plugin-system) that guile is unable to find but the

Re: PHP to GUILE

2005-09-26 Thread Vorfeed Canal
static void * sysdep_dynl_link (const char *fname, const char *subr) { - lt_dlhandle handle; - handle = lt_dlopenext (fname); + lt_dlhandle handle = NULL; + SCM scm_search_path = scm_string_join (*scm_loc_load_path, +

PHP to GUILE

2005-09-25 Thread Vorfeed Canal
After latest PHP fiasco (when maintenance release PHP 5.0.5 broke most PHP programs) I decided that enough is enough - I need to change language for future projects. I've checked with few alternatives and found that I like SXML better then other packages (Perl, Python, etc). Thus GUILE - it's

Re: PHP to GUILE

2005-09-25 Thread Kevin Ryde
Vorfeed Canal [EMAIL PROTECTED] writes: 1. All C extension files can only be put in /usr/lib - there are no sane way to change libtool's searchpath and there are no sane default. Very annoying. With a full path to `load-extension' you can put a module anywhere. If your code is a package in