Re: summer of code ideas

2011-03-07 Thread Mike Gran
From: Mark H Weaver >To: Jose A. Ortega Ruiz >Cc: guile-devel@gnu.org >Sent: Monday, March 7, 2011 5:10 PM >Subject: Re: summer of code ideas > >>"Jose A. Ortega Ruiz" writes: >>>    (use-modules (url://a-url.com library module #:optional a-rev-number)) >> >> FWIW, i think this is a bad idea.  I

Re: summer of code ideas

2011-03-07 Thread Mark H Weaver
"Jose A. Ortega Ruiz" writes: >>    (use-modules (url://a-url.com library module #:optional a-rev-number)) > > FWIW, i think this is a bad idea. It intermingles two concerns that are > othogonal, namely installing a package and using it. I very strongly agree with jao. Systems like this, e.g. P

Re: [PATCH] Several tweaks for R6RS ports

2011-03-07 Thread Andreas Rottmann
Andreas Rottmann writes: > Hi! > > Here's a few patches related to R6RS port support, in short: > > - Add missing `get-string-n!' and `get-string-n' > - Fix a few missing exports > - A bit of work on transcoder-related stuff > Attached is an updated version of the "rnrs-transcoders" patch; relati

Re: [PATCH] Don't mix definitions and expressions in SRFI-9

2011-03-07 Thread Andreas Rottmann
l...@gnu.org (Ludovic Courtès) writes: > Hi, > > Andy Wingo writes: > >> On Sun 06 Mar 2011 23:26, l...@gnu.org (Ludovic Courtès) writes: >> >>> Andreas Rottmann writes: >>> The expansion of `define-inlinable' contained an expression, which made SRFI-9's `define-record-type' fail in no

Re: summer of code ideas

2011-03-07 Thread Noah Lavine
Hello, >> We talked about having a Scheme-based language that could compile to >> both plain C and JIT, but decided that would make the VM too >> complicated, > > Maybe I forgot to feed that thread, but I think it might be easier to > have a high-level representation the VM opcodes as sexps (possi

Re: summer of code ideas

2011-03-07 Thread Ludovic Courtès
Hi! Noah Lavine writes: > Yes, it's been a while since we talked about that :-). I still want to > do it, though. The current status as I see it is that I have a > prototype JIT that works, and a plausible way to integrate it into > Guile's VM. What needs to happen now is to write all of the opc

Re: summer of code ideas

2011-03-07 Thread Noah Lavine
Hello, > Really?  I thought you were toying with JIT.  :-) Yes, it's been a while since we talked about that :-). I still want to do it, though. The current status as I see it is that I have a prototype JIT that works, and a plausible way to integrate it into Guile's VM. What needs to happen now

Re: summer of code ideas

2011-03-07 Thread Jose A. Ortega Ruiz
On Mon, Mar 07 2011, Mike Gran wrote: [...] > A similar idea. > > Define a syntax for use-modules to pull modules off the net, something > like > >    (use-modules (url://a-url.com library module #:optional a-rev-number)) > FWIW, i think this is a bad idea. It intermingles two concerns that ar

Re: summer of code ideas

2011-03-07 Thread Ludovic Courtès
Hi! Noah Lavine writes: > I've been toying with the idea of an AOT compiler for Guile, and I > think that would make a good summer project. Really? I thought you were toying with JIT. :-) > I think you'd want to compile from Tree-IL to GCC's GIMPLE format (the > highest-level intermediate re

Re: summer of code ideas

2011-03-07 Thread Ludovic Courtès
Hello! Actually, a fun project would be to implement Nix storage model, its build primitive (‘derivation’), and assorted tools (garbage collector, etc.) in Guile Scheme. It doesn’t seem unrealistic, though it’s perhaps another project; OTOH you mentioned rollback so it’s not completely irrelevant

Re: Error in make check building guile-lib for guile 2.0. trap-enable unbound

2011-03-07 Thread Ludovic Courtès
Hi Dale, writes: [...] > /home/dsmith/src/guile-lib/doc//guile-library.texi:2204: Cross reference to > nonexistent node `SRFI-1 Fold and Map' (perhaps incorrect sectioning?). > makeinfo: Removing output file `guile-library.info' due to errors; use > --force to preserve. [...] > FAIL: api.sc

Re: CPAN for Guile

2011-03-07 Thread Andy Wingo
On Mon 07 Mar 2011 21:13, Andreas Rottmann writes: > I'm (very slowly) working on getting dorodango[0] to work on Guile. In > principle, nothing in Dorodango is inherently tied to R6RS -- it should > very reasonably be possible to use it for Guile-specific packages as > well. > > [0] http://home

Re: summer of code ideas

2011-03-07 Thread Mike Gran
>Hey all, > >We need to get together a few Guile-proposed projects for SoC students >to hack on.  How about we collect them here in this thread.  I'll kick >it off with one idea: > >  * A CPAN for Guile.  A similar idea. Define a syntax for use-modules to pull modules off the net, something lik

Re: summer of code ideas

2011-03-07 Thread Andy Wingo
On Mon 07 Mar 2011 21:40, Noah Lavine writes: > Also, about your CPAN for guile (CGAN?) idea - it seems like with what > you said about stowfs that what you're looking for is similar to Nix, > but used to install Guile packages. (www.nixos.org) Yes indeed! > Do you think it would be useful to j

Re: summer of code ideas

2011-03-07 Thread Noah Lavine
Also, about your CPAN for guile (CGAN?) idea - it seems like with what you said about stowfs that what you're looking for is similar to Nix, but used to install Guile packages. (www.nixos.org) Do you think it would be useful to just compile a version of Nix with a different root directory, make so

CPAN for Guile

2011-03-07 Thread Andreas Rottmann
Andy Wingo writes: > Hey all, > > We need to get together a few Guile-proposed projects for SoC students > to hack on. How about we collect them here in this thread. I'll kick > it off with one idea: > > * A CPAN for Guile. My initial thoughts are that you want a > combination of APT-lik

Re: summer of code ideas

2011-03-07 Thread Noah Lavine
I've been toying with the idea of an AOT compiler for Guile, and I think that would make a good summer project. I think you'd want to compile from Tree-IL to GCC's GIMPLE format (the highest-level intermediate representation they have, I think). One interesting possibility would be basing it on St

summer of code ideas

2011-03-07 Thread Andy Wingo
Hey all, We need to get together a few Guile-proposed projects for SoC students to hack on. How about we collect them here in this thread. I'll kick it off with one idea: * A CPAN for Guile. My initial thoughts are that you want a combination of APT-like discovery and download of sources

Re: [PATCH] Don't mix definitions and expressions in SRFI-9

2011-03-07 Thread Ludovic Courtès
Hi, Andy Wingo writes: > On Sun 06 Mar 2011 23:26, l...@gnu.org (Ludovic Courtès) writes: > >> Andreas Rottmann writes: >> >>> The expansion of `define-inlinable' contained an expression, which made >>> SRFI-9's `define-record-type' fail in non-toplevel contexts ("definition >>> used in express

Re: [PATCH] Don't mix definitions and expressions in SRFI-9

2011-03-07 Thread Andy Wingo
On Mon 07 Mar 2011 01:31, Andreas Rottmann writes: > I have a testing framework (built upon Riastradh's trc-testing), which > uses R6RS `eval' to load testcases. Since `eval' does not allow for > the code to be evaluated to be in a top-level context, I'm using this: > > (eval `(let () ,@code-to-

Re: [PATCH] Don't mix definitions and expressions in SRFI-9

2011-03-07 Thread Andy Wingo
On Sun 06 Mar 2011 23:26, l...@gnu.org (Ludovic Courtès) writes: > Andreas Rottmann writes: > >> The expansion of `define-inlinable' contained an expression, which made >> SRFI-9's `define-record-type' fail in non-toplevel contexts ("definition >> used in expression context"). > > SRFI-9 says “Re

Re: proposal: scm_c_public_ref et al

2011-03-07 Thread Andy Wingo
On Sun 06 Mar 2011 23:22, l...@gnu.org (Ludovic Courtès) writes: > Hi! > > Andy Wingo writes: > >> SCM scm_public_lookup (SCM module_name, SCM sym); >> SCM scm_private_lookup (SCM module_name, SCM sym); >> >> Look up a variable bound to SYM in the module named MODULE_NAME. If >>

Re: [PATCH] Miscellaneous for 2.0

2011-03-07 Thread Daniel Llorens
Hello list, Any chance these patches could be committed? they seem to have been lost in the stream… Thanks, Daniel On Mar 2, 2011, at 18:00, guile-devel-requ...@gnu.org wrote: > 1. [PATCH] Miscellaneous for 2.0 (Mark H Weaver) > 2. [PATCH 1/4] Fix bytevectors VALIDATE_REAL to tes