Re: Making every goops object applicable

2012-05-15 Thread Ludovic Courtès
Hi, Krister Svanlund krister.svanl...@gmail.com skribis: Apparently this works by some flag being set by applicable-strukt in libguile for the object and that flag is checked during application, calling the 'procedure slot if it's set with some optimization assuming that 'procedure is the

Re: Making every goops object applicable

2012-05-15 Thread Mark H Weaver
Krister Svanlund krister.svanl...@gmail.com writes: For example an instance of a class inheriting a class that inherits applicable-struct that defines 'procedure is not applicable. Looking at the code, it is clear that in order for a GOOPS instance to be applicable, it is not enough for

Re: terribly complex syntax objects in syntax parse

2012-05-15 Thread Stefan Israelsson Tampe
I wish I had a better answer for you, but unfortunately these enormous syntax-objects are a core part of the 'syntax-case' system. I see no way to eliminate this bloat without moving to a different macro system. Hey one can do what one can do. 1000rows of scheme results currently in 500kB go

Re: Empty entries in $GUILE_LOAD_PATH

2012-05-15 Thread Ludovic Courtès
Hi Mark, Mark H Weaver m...@netris.org skribis: l...@gnu.org (Ludovic Courtès) writes: Try something like: $ GUILE_LOAD_PATH=/foo/bar: make check … and see the LALR tests fail with: ERROR: In procedure primitive-load-path: Unable to find file

Re: how to implement mutual recursive parsers in syntax-parse

2012-05-15 Thread Andy Wingo
On Mon 14 May 2012 21:13, Stefan Israelsson Tampe stefan.ita...@gmail.com writes: (begin    (define parser-a code-a ...)    (define-syntax a spec-a)) (begin    (define parser-b code-b ...)    (define-syntax b spec-b)) In racket they manage to evaluate the define-syntax forms before the

Re: terribly complex syntax objects in syntax parse

2012-05-15 Thread Andy Wingo
On Tue 15 May 2012 17:10, Stefan Israelsson Tampe stefan.ita...@gmail.com writes: Hey one can do what one can do. 1000rows of scheme results currently in 500kB go file mainly due to these syntax objects. That's terrible... On the other hand does the compiler create object data intelligently

Re: Empty entries in $GUILE_LOAD_PATH

2012-05-15 Thread Andy Wingo
Heya, On Tue 15 May 2012 00:30, Mark H Weaver m...@netris.org writes: It seems to me that a valid load path should never contain empty entries, because the empty string is not a valid path. Traditionally empty path components indicate the current directory, AFAIK. I think they're valid, and

Re: Register VM WIP

2012-05-15 Thread Andy Wingo
On Mon 14 May 2012 23:28, Andrew Gwozdziewycz apg...@gmail.com writes: On Mon, May 14, 2012 at 5:09 PM, Ludovic Courtès l...@gnu.org wrote: Presumably the tricky part will be the register allocator, right? The register based VMs I've seen ignore this issue by allowing for an infinite set of

Re: Register VM WIP

2012-05-15 Thread Andy Wingo
Heya Ludovic, On Mon 14 May 2012 23:09, l...@gnu.org (Ludovic Courtès) writes: 6(local-ref 1) 8(make-int8:0) 9(ee?) 10(local-set 2) ;; 12(local-ref 2) ;; → use ‘local-set* 2’, which doesn’t pop 14

Re: GOOPs, MOP and slots

2012-05-15 Thread Andy Wingo
Hi David, A pleasure to get such nice questions about GOOPS :) I have a love/hate relationship with the thing; I've spent a lot of time hacking it but I don't really use it these days. On Fri 11 May 2012 14:19, David Spångberg da...@tunna.org writes: In the CLOS-like language Closette

Re: Do we have a guile-1.8 branch?

2012-05-15 Thread Andy Wingo
On Thu 03 May 2012 00:04, Noah Lavine noah.b.lav...@gmail.com writes: Yes, please remove the ‘release-1.8’ branch. Something like ‘git push origin :release-1.8’ should work (search for “delete” in git-push(1).) Thanks, Ludo’. Oh, I never knew how to do that. It's done now. Cool. It's

Re: Making every goops object applicable

2012-05-15 Thread Neil Jerram
Mark H Weaver m...@netris.org writes: Krister Svanlund krister.svanl...@gmail.com writes: For example an instance of a class inheriting a class that inherits applicable-struct that defines 'procedure is not applicable. Looking at the code, it is clear that in order for a GOOPS instance to

Re: Do you recognize these modules?

2012-05-15 Thread Andy Wingo
Heya TTN, Great to have your hack-power here. On Mon 14 May 2012 19:00, Thien-Thi Nguyen t...@gnuvola.org writes: Also, i can either add a file to branch_release-1-8 (exercising my regained write privs :-D), or post it. What's best? 2.0 is the current stable branch, so any changes should go

Re: [PATCH] Turn on more documentation

2012-05-15 Thread Andy Wingo
Howdy, On Sun 06 May 2012 12:14, l...@gnu.org (Ludovic Courtès) writes: The problem is that the auto-generated “Standard Library” section looks very poor in comparison to the rest of the manual. So we should really try hard to write good doc by hands for these, and come up with a handy

Re: [PATCH] Turn on more documentation

2012-05-15 Thread Andy Wingo
On Mon 14 May 2012 17:14, Noah Lavine noah.b.lav...@gmail.com writes: I think of our current situation as having three top-level lists of functionality, in API Reference, Guile Modules, and Standard Library. How about just merging them into one list? It would be quite a big list. Would that

Re: Our temporary guildhall package repository down?

2012-05-15 Thread Andy Wingo
On Fri 04 May 2012 10:25, Nala Ginrut nalagin...@gmail.com writes: http://rotty.yi.org/doro/experimental is unavailable for me. And ijp said it's the same for him. But Rottmann's site is OK. Well, if there's some trouble with his site to put guildhall package repository, I can provide a

Re: syntax parse link

2012-05-15 Thread Andy Wingo
On Tue 08 May 2012 17:46, Stefan Israelsson Tampe stefan.ita...@gmail.com writes: I would like to add a link to the syntax-parse repo from guile's home page. I was told to try get the rights to do this myself. If that doesn't work I will need help from any of the maintainers to make the

Re: stack closures for guile-log

2012-05-15 Thread Andy Wingo
On Tue 08 May 2012 21:16, Stefan Israelsson Tampe stefan.ita...@gmail.com writes: I have three stacks 1. a control stack that stores undo information scheme hooks aka dynamic-wind and stack references to the other stacks. Have you seen dynstack.[ch] on master? 2. stack from which data is

Re: patch to guile to allow c-code closure interaction for logic programming

2012-05-15 Thread Andy Wingo
On Wed 09 May 2012 18:07, Stefan Israelsson Tampe stefan.ita...@gmail.com writes: I post here a directory of patches and code that can be used to enhance guile to interact nicely with logic programming code written in C. I can reach very good performance using this tool please have a look

Re: our benchmark-suite

2012-05-15 Thread Andy Wingo
Heya Neil, On Fri 04 May 2012 23:43, Neil Jerram n...@ossau.homelinux.net writes: It turns out I'm already scaling by iteration count - in fact since November 2009. :-) Excellent, so we can scale iteration counts in Guile's git with impunity :) It would be nice for the graphs for individual

Re: Functional record setters, a different approach

2012-05-15 Thread Ludovic Courtès
Hi Mark, Mark H Weaver m...@netris.org skribis: l...@gnu.org (Ludovic Courtès) writes: Mark H Weaver m...@netris.org skribis: l...@gnu.org (Ludovic Courtès) writes: I’ll let you see whether/how you can borrow from this in your code, if that’s fine with you. Okay, will do. Any progress

Re: [PATCH] Turn on more documentation

2012-05-15 Thread Ludovic Courtès
Hi, Andy Wingo wi...@pobox.com skribis: What if we merge Guile Modules and Standard Library into one Standard Library node, and keep API Reference as it is? Sounds good to me. Perhaps “Standard Library” could have sub-sections, like “Data Structures”, “Web”, “XML”, “Texinfo”, etc. Ludo’.

Re: Patches for module/ice-9/occam-channel.scm

2012-05-15 Thread Mark H Weaver
Noah Lavine noah.b.lav...@gmail.com writes: Since these are relatively large changes, you'll also need to do a copyright assignment. We assign the copyright on Guile to the Free Software Foundation because under US law, the owner of a copyrighted work is sometimes the only person with the

Re: Register VM WIP

2012-05-15 Thread Noah Lavine
Hello, The register based VMs I've seen ignore this issue by allowing for an infinite set of registers. :) Indeed, that's the plan :)  The first shot at an allocator will look a lot like the one in (language tree-il analyze). That was a bit surprising to me. Do you mean that the register

Re: Our temporary guildhall package repository down?

2012-05-15 Thread Nala Ginrut
OK, if there's no anyone interested in it, I'll take it. Guildhall is very important for building more powerful Guile community. I wish it wake up soon. At least we can do some test then contribute to it. On Wed, May 16, 2012 at 4:25 AM, Andy Wingo wi...@pobox.com wrote: On Fri 04 May 2012

Re: Register VM WIP

2012-05-15 Thread Mark H Weaver
Noah Lavine noah.b.lav...@gmail.com writes: The register based VMs I've seen ignore this issue by allowing for an infinite set of registers. :) Indeed, that's the plan :)  The first shot at an allocator will look a lot like the one in (language tree-il analyze). That was a bit surprising to

Re: Making every goops object applicable

2012-05-15 Thread Mark H Weaver
Hi Neil! Neil Jerram n...@ossau.homelinux.net writes: Mark H Weaver m...@netris.org writes: Krister Svanlund krister.svanl...@gmail.com writes: For example an instance of a class inheriting a class that inherits applicable-struct that defines 'procedure is not applicable. Looking at the