TTN's website (and guile-www)?

2007-04-02 Thread Alan Grover
Thien-Thi Nguyen: Will you be bringing your website back on-line, with the www library? -- Alan Grover [EMAIL PROTECTED] +1.734.476.0969 (The "email signature" and/or digital-signature are only for informational and integrity purposes and do not constitute a legal signature) sig

Re: let-syntax Problem, do a binary search

2006-10-18 Thread Alan Grover
Run guile with --debug to give stack-dumps, then peruse for the actual location. However, if the error is during "read", the stack is less useful. It might tell you what module was being loaded (look for "load" or "primitive-load", etc.) The reader should tell use something about the problem. But

Re: modify environments to make sandboxes

2006-06-22 Thread Alan Grover
Ludovic Courtès wrote: > Hi, > > Neil Jerram <[EMAIL PROTECTED]> writes: > > >>[EMAIL PROTECTED] (Ludovic Courtès) writes: >> >> >>>Code confinement is indeed an interesting feature. Fortunately, Guile >>>offers various ways to do it (AFAIK, there's no standard way to do this >>>in R5RS Scheme)

Re: Guile-WWW 2.15 available

2006-04-28 Thread Alan Grover
As part of the install process, he purposefully rips all the whitespace out of his files. Presumably to make them load faster. The match.ss module is like this too (in ice-9). He also drops the extensions, which guile allows/tolerates. And, he tweaks some of the files so they work in 1.4 and 1.6.

Re: Delegation in goops?

2006-03-10 Thread Alan Grover
I had previously asked about delegation in goops, and had proposed an ugly solution. I think I see another solution, since the effect I think I'm looking for is effectively subclassing but using an already allocated object. 1) If I create a subclass of the delegatee, I get the proper GF dispatch.

Re: Delegation in goops?

2006-02-19 Thread Alan Grover
Neil Jerram wrote: > Alan Grover <[EMAIL PROTECTED]> writes: > > >>Does anybody have a solution to implement delegation in goops? >> >>I have an object that implements the full behavior of interest. Say it's >>an employee object. >> >

Delegation in goops?

2006-02-10 Thread Alan Grover
Does anybody have a solution to implement delegation in goops? I have an object that implements the full behavior of interest. Say it's an employee object. For whatever perverse reason, which I assure you is reasonable, I want to wrap the employee in another object. And, for the most part, it wil

Re: Generic-methods from multiple modules should merge

2006-01-10 Thread Alan Grover
Yes, lovely section in the NEWS outlining the exact problem, and the behavior I expect. Though I think that merge-generics should be the default behavior. I suppose I'll have to to try to upgrade. Marius Vollmer wrote: > Alan Grover <[EMAIL PROTECTED]> writes: > > >>

Generic-methods from multiple modules should merge

2006-01-10 Thread Alan Grover
I have 2 goops classes, each in their own module, which happen to have a slot called 'request (with an accessor). Unfortunately, "use-modules" ends up importing the generic-method from only one of the modules (the last, lexically). Thus, I can't call (request first-class). Thus: (use-modules

Re: mod_lisp for guile

2005-12-16 Thread Alan Grover
Neil Jerram wrote: > Alan Grover <[EMAIL PROTECTED]> writes: >>The lazy-ness is really in taking advantage of patterns for list >>processing. Perhaps I didn't give an example like: >> (define list-of-http-transactions (mod_lisp some-port-listener)) >>

Re: mod_lisp for guile

2005-12-05 Thread Alan Grover
azy-list implementation, I was blocked by the fact that I can't do the example I just gave. The standard (and library) functions aren't generic for delay'd values. Thus, if I created a lazy-list, I couldn't use it with libraries (even the basic for-each/map functions)

Re: new slib and guile 1.6.7

2005-10-21 Thread Alan Grover
I have the same problem with 1.6.4 (no surprise) and slib3a2. First, Kevin Ryde once wrote me: > Incidentally, the (ice-9 slib) module which comes with guile probably > doesn't work with the latest slib, running up guile.init as described > in the slib docs is the way to go. I found that ice-9/sl

Using SLIB in 1.6.4

2005-09-23 Thread Alan Grover
I had some difficulty getting SLIB to work in Guile 1.6.4. The Guile documentation is out of date for newer SLIBs. Unpack/Install SLIB (version 3a1 or later). It seems most convenient to move it to a spot in your %load-path. guile> %load-path ("/usr/share/guile/site" "/usr/share/guile/1.6" "/usr/

Re: awg-mod_lisp: mod_lisp for R5RS Scheme

2005-09-20 Thread Alan Grover
R. Mattes wrote: > On Tue, 2005-09-20 at 08:06 -0400, Alan Grover wrote: >>By "fails", I assume you mean because of the awg-debug module. > > > No - since your '(or (and' construct always evaluates to "once" > the server only answers _one_ reque

awg-mod_lisp: mod_lisp for R5RS Scheme Version 0.3

2005-09-20 Thread Alan Grover
Version 0.3 of awg-mod_lisp, an R5RS implementation of the Scheme side of mod_lisp. Includes a Guile test daemon. Available at https://sourceforge.net/project/showfiles.php?group_id=141512&package_id=163742 Fix ARGV handling in the Guile test daemon. Include my debug module for same. --

Re: awg-mod_lisp: mod_lisp for R5RS Scheme

2005-09-20 Thread Alan Grover
e" the default. > Kind of frustrating since the daemon only handles one request > and your suggested test > > ( sleep 1 ; wget -q -t 1 --post-data "post-data&foryou" ... > > fails. By "fails",

Re: Threads

2005-09-20 Thread Alan Grover
Tomas Zerolo wrote: > On Mon, Sep 19, 2005 at 11:24:34PM -0400, Alan Grover wrote: >>Though I read something recently that claimed some thread >>(mis-)implementations are more costly than a fork, and often more costly >>than you'd hope. Apparently, the Linux 2.6 thread i

Re: mod_lisp for guile

2005-09-19 Thread Alan Grover
b-applications. E.g. a web-application skeleton (get request, decode request, change state, decide on html, construct html), and layers of policy to fill it with (e.g. a particular html-template system). Though I've heard about continuation-passing web-frameworks, I'm not currently working on them. Also, since I use Guile, there is the problem that you can't use a continuation in a different thread. > I hope > it's of some interest though. I have been interested. And, I thank you for taking the time. -- Alan Grover ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user

awg-mod_lisp: mod_lisp for R5RS Scheme

2005-09-19 Thread Alan Grover
Announcing the release of awg-mod_lisp-0.2 (recently awg-mod_lisp-for-guile). Implements the elements of the scheme side of the mod_lisp2 protocol. Institutes as little policy as possible. Factored the protocol into a R5RS file. Also a test-daemon and higher-level daemon interface (in Guile). A

Re: mod_lisp for guile

2005-09-19 Thread Alan Grover
Neil Jerram wrote: > Alan Grover <[EMAIL PROTECTED]> writes: >>* Should I remove the thread-creation stuff and stick simply to mod_lisp >>protocol? > > > I don't understand what the mod_lisp protocol is, so can't really > comment. I'm interest

mod_lisp for guile

2005-09-15 Thread Alan Grover
Inspired by Guillaume Germain on the comp.lang.scheme group, I wrote a mod_lisp implementation for Guile. Find it at: https://sourceforge.net/project/showfiles.php?group_id=141512&package_id=163742 I only implemented the mod_lisp protocol, leaving query-string/POST and HTML utilities for an exter

Threads in 1.6.4 hanging: caused by accept?

2005-09-15 Thread Alan Grover
, just call `accept'; if you don't, call `select' first." And some sample code from Christopher Cramer to avoid the block: (define (accept/no-block s) "use me in place of accept" (let ((fd (list (port->fdes s)))) (if (null? (car (select fd '()

Re: Getting scheme error informations when running scheme code from C

2005-09-10 Thread Alan Grover
Christian Mauduit wrote: > ... > Well, using lazy-catch and a handler with the line: > > (display-backtrace (make-stack #t) some-user-string-output-port) > > actually got me very close from solving my problem completely. The only > point is that the stack I obtain contains many useless things (

Re: Getting scheme error informations when running scheme code from C

2005-09-10 Thread Alan Grover
My comments are for Guile version 1.6.4. To get a backtrace, you want something that does the same thing as the --debug option. However: "Using the debugging evaluator will give you better error messages but it will slow down execution." So, you don't want it in production-code. I believe this wi

Re: mkstemp strange behavior

2005-08-10 Thread Alan Grover
call... > before: filename=/tmp/HGLPtZ > ERROR: In procedure mkstemp!: > ERROR: Invalid argument > > I can not figure out why the string is not set to /tmp/XX in the second > call... > > Some help!? > > Regards > Betoes > > > ___ > Guile-user mailing list &

Is ice-9/poe.scm broken?

2005-08-08 Thread Alan Grover
entry))) ... (eq? (car key) (car entry)) I re-wrote enough of poe.scm to get some things working. -- Alan Grover [EMAIL PROTECTED] +1.734.476.0969 signature.asc Description: OpenPGP digital signature ___ Guile-user mailing list Guile-user@g

Re: (net http)

2005-04-06 Thread Alan Grover
_ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user -- Alan Grover [EMAIL PROTECTED] +1.734.476.0969 ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user

Re: Urgent need for solution: guile to serve the web (+ python?)

2005-04-02 Thread Alan Grover
it, I just haven't researched/looked for it. Tell us what you find. I haven't noticed anything about scheme on parrot either. Best regards Roland And, free advice: MVC. Use a templating system (cf. Smarty). Then tell use what you used. -- Alan Grover [EMAIL PROTEC