Re: `include' relative to current file

2013-01-21 Thread Andy Wingo
Hi Jay, On Mon 21 Jan 2013 07:08, Jay Sulzberger j...@panix.com writes: /usr/share/slib/guile-2.init and made a symlink from /usr/share/slib/guile.init pointing to above file. FWIW if you use slib from CVS, the included guile.init will include the guile-2.init transparently if you are on

Re: Guile build failure

2013-01-21 Thread Andy Wingo
On Thu 09 Aug 2012 15:57, l...@gnu.org (Ludovic Courtès) writes: Hi David, and sorry for the delay, David Pirotte da...@altosw.be skribis: ;;; (remaining /mnt/galia/linux/64/local/src/guile/guile-2.0.6/load-test.dir (. .. .nfs121e01b20019 .nfs121e01b3001a))

Re: Guile build failure

2013-01-21 Thread Ludovic Courtès
Hi, Andy Wingo wi...@pobox.com skribis: On Thu 09 Aug 2012 15:57, l...@gnu.org (Ludovic Courtès) writes: Hi David, and sorry for the delay, David Pirotte da...@altosw.be skribis: ;;; (remaining /mnt/galia/linux/64/local/src/guile/guile-2.0.6/load-test.dir (. ..

Re: Running non-scheme scripts: some thoughts

2013-01-21 Thread Andy Wingo
On Sun 26 Aug 2012 23:16, l...@gnu.org (Ludovic Courtès) writes: Ian Price ianpric...@googlemail.com skribis: tl;dr +1 to add a --language switch to guile :P Seems like a good start; one would need to make sure ‘--language’ interacts usefully with ‘-c’ and ‘-e’, for instance. Perhaps

Re: Guile build failure

2013-01-21 Thread Andy Wingo
Hi David, On Mon 21 Jan 2013 11:47, l...@gnu.org (Ludovic Courtès) writes: ‘load.test’ uses ‘compile-file’, and it seems that ‘compile-file’ does an ‘open-input-file’ with no corresponding ‘close-port’. That may be the problem. Can you try the following patch? ./check-guile load.test on

Re: ffi for glutInit

2013-01-21 Thread Andy Wingo
On Thu 26 Jul 2012 00:19, Aleix Conchillo Flaqué aconchi...@gmail.com writes: I have started working on bindings for OpenGL and GLUT. https://github.com/aconchillo/guile-gl This looks really neat :) You know, I was thinking of generating a binding based on the XML documentation that they

Re: Patch for printing of system-error exceptions

2013-01-21 Thread Andy Wingo
Hi Krister, On Sat 28 Jul 2012 16:39, Krister Svanlund krister.svanl...@gmail.com writes: + (define (system-error-printer port key args default-printer) +(apply (case-lambda + ((func fmt reasons _) + (format port System error:\n) + (apply format

Re: git config receive.denyNonFastForwards true on server?

2013-01-21 Thread Andy Wingo
On Wed 16 Jan 2013 13:13, l...@gnu.org (Ludovic Courtès) writes: Hi, Andy Wingo wi...@pobox.com skribis: I was about to ask the savannah folks / gnu admins if they could change the configuration for guile's repo to allow non-fast-forward pushes (obviously with the --force or + flag). This

Re: wip-rtl native patch

2013-01-21 Thread Andy Wingo
On Thu 09 Aug 2012 20:59, Stefan Israelsson Tampe stefan.ita...@gmail.com writes: DO you think that this will do as an initial patch to wip-rtl in order to introduce the possibility to execute native code or JIT:ed code. We reserve the first two indexes in the ip text area to fit a pointer

Re: [PATCH] guile-gnome corba change scm_vtable_index_printer to scm_vtable_index_instance_printer

2013-01-21 Thread Andy Wingo
On Thu 13 Sep 2012 08:51, nalaginrut nalagin...@gmail.com writes: The patch to fix the error while compiling the corba module. Thanks. There was only an error in master, no? I added a #define that ensured support of 1.8, AFAIK. Andy -- http://wingolog.org/

Re: [PATCH] Colorized REPL

2013-01-21 Thread Nala Ginrut
hi folks! test-case is ready. I've tested, it works and passed all items. Please review it. I'll work on manual for it ASAP. Thanks! On Fri, Jan 11, 2013 at 10:33 PM, Ludovic Courtès l...@gnu.org wrote: Hi Nala, Thanks for the update. Nala Ginrut nalagin...@gmail.com skribis: On Fri,

Re: propose deprecation of generalized-vector-*

2013-01-21 Thread Andy Wingo
Hi, Sorry for the long delay. Deprecating the generalized-vector functions sounds mostly sensible to me, and the proposed semantics of array-length sound fine. Attached is a first patch in that direction. However, before going further, some thoughts. Firstly, array-set! has a different

Re: Running non-scheme scripts: some thoughts

2013-01-21 Thread Ludovic Courtès
Hello! Andy Wingo wi...@pobox.com skribis: On Sun 26 Aug 2012 23:16, l...@gnu.org (Ludovic Courtès) writes: [...] guile -c '(display good)' --language=ecmascript -c '2 + 2;' A first patch is attached. It depends on fluid-parameter and current-language being a parameter, patches I will

Re: native compilers

2013-01-21 Thread Andy Wingo
On Sat 22 Sep 2012 23:28, Stefan Israelsson Tampe stefan.ita...@gmail.com writes: I've now coded two version of native compilers for x86-64 linux compiling either the old guile-2.0 VM language or guile-2.2 RTL VM language. This is pretty crazy and wonderful stuff, Stefan.

Re: Loading a module before and after adding a load path

2013-01-21 Thread Ludovic Courtès
Andy Wingo wi...@pobox.com skribis: On Sat 19 Jan 2013 05:32, Noah Lavine noah.b.lav...@gmail.com writes: In the long term, Andy and Ludo, what is the right way to fix this? This bug was introduced here: commit 0fb81f95b0222c5ba49efd3e36cf797df54c0863 Author: Andy Wingo

Re: compile-rtl

2013-01-21 Thread Andy Wingo
On Sun 14 Oct 2012 17:13, Stefan Israelsson Tampe stefan.ita...@gmail.com writes: potential memory leaks. To let it be as it is designed right now, will mean that it is very difficult looking at the scheme code to see what will be protected from gc or not. Explicit clearing is much better

Re: compile-rtl, II

2013-01-21 Thread Andy Wingo
On Mon 15 Oct 2012 16:05, Stefan Israelsson Tampe stefan.ita...@gmail.com writes: (arg1, return-address, old-frame, program, arg2 ...) This way we do not need to copy the program field at a tail call What would you do for 0 arguments? Also another kind of difficulty will arise, many

Re: Fixing the slib mess

2013-01-21 Thread Andy Wingo
Hello Mikael, A pleasure to see you around! On Mon 22 Oct 2012 01:11, Mikael Djurfeldt mik...@djurfeldt.com writes: When trying to use guile 2 for logic programming I discovered that the slib interface is again broken (and has been for quite some time). I am very sorry that I did not see

Re: Fixing the slib mess

2013-01-21 Thread Mikael Djurfeldt
Hi Andy, No problem at all! In fact, apologies are entirely on my side: I thought I would get time to hack on this before and during Christmas, but this turned out not to be true. Great that you fixed it! If I have anything to add, I will of course bring that up. Now, I'm looking into porting

Re: Loading a module before and after adding a load path

2013-01-21 Thread Andy Wingo
On Mon 21 Jan 2013 18:20, l...@gnu.org (Ludovic Courtès) writes: Subject: [PATCH] fix try-module-autoload, which did not detect failure to find the file Looks good to me. Pushed, thanks. Andy -- http://wingolog.org/

Re: wip-rtl native patch

2013-01-21 Thread Stefan Israelsson Tampe
Hi, As I understood my reason for doing this was that many closures point to the same code fragment and If we compile one of those closures the others will not benefit. So therefore I stored the native code at the beginning of the rtl code fragment and used this mechanism. I have not gotten this

Re: native compilers

2013-01-21 Thread Stefan Israelsson Tampe
Yeah, this is pretty crazy stuff. But crazy fun stuff! 1. Anyway I think that I could just do away with two table lookups to reach both c-function pointers and the goto gosub stuff generated from assembler. 2. A think more work is needed of the extra layer to allow for correct continuation

Re: Making libunistring optional

2013-01-21 Thread Andy Wingo
On Sat 17 Nov 2012 23:21, l...@gnu.org (Ludovic Courtès) writes: Here’s an attempt to “reduce the number of dependencies” of Guile. The approach, as suggested by Bruno Haible, uses Gnulib’s ‘libunistring-optional’ module, along with the 22 (!) unistring modules that provide the functionality

Re: Fixing the slib mess

2013-01-21 Thread Andy Wingo
Howdy :) On Mon 21 Jan 2013 19:09, Mikael Djurfeldt mik...@djurfeldt.com writes: Now, I'm looking into porting Gerald Sussman's scmutils to Guile-2.0. I'm aware of an older port by Daniel Gildea but I don't think that uses GOOPS: Neat; GOOPS is definitely the way to go there ;-) I'm

Re: wip-rtl native patch

2013-01-21 Thread Andy Wingo
On Mon 21 Jan 2013 19:28, Stefan Israelsson Tampe stefan.ita...@gmail.com writes: As I understood my reason for doing this was that many closures point to the same code fragment Ah, I see. Yes indeed this may make sense. I'll keep it in mind. Andy -- http://wingolog.org/

Re: compile-rtl, II

2013-01-21 Thread Stefan Israelsson Tampe
On Mon, Jan 21, 2013 at 6:39 PM, Andy Wingo wi...@pobox.com wrote: On Mon 15 Oct 2012 16:05, Stefan Israelsson Tampe stefan.ita...@gmail.com writes: (arg1, return-address, old-frame, program, arg2 ...) This way we do not need to copy the program field at a tail call What would you do

Re: Thread-unsafe initialization problems in Guile

2013-01-21 Thread Andy Wingo
Hi, On Thu 29 Nov 2012 23:42, Mark H Weaver m...@netris.org writes: SCM scm_local_eval (SCM exp, SCM env) { static SCM local_eval_var = SCM_BOOL_F; if (scm_is_false (local_eval_var)) local_eval_var = scm_c_public_variable (ice-9 local-eval, local-eval); return scm_call_2

Re: native compilers

2013-01-21 Thread Stefan Israelsson Tampe
I guess I need to consolidate the RTL branch now, and we need to make sure that we can plug in a JIT. I don't want to incorporate all of this code at once, so ideally we can make it so that you can load your code as a module and Guile will have the needed hooks to run JITted code if it is

Re: [PATCH] Colorized REPL

2013-01-21 Thread Andy Wingo
On Wed 05 Dec 2012 10:50, Daniel Llorens daniel.llor...@bluewin.ch writes: On 5 December 2012 15:21, Nala Ginrut nalagin...@gmail.com wrote: I don't think it's proper to use (ansi term-color) purposely, since it's not in Guile. Maybe we should start moving a few things from guile-lib into

Re: Why 'inexact' and 'exact' doesn't check 'number?' first?

2013-01-21 Thread Andy Wingo
On Wed 12 Dec 2012 04:21, Nala Ginrut nalagin...@gmail.com writes: It's weird to see that: (exact? 'a) err msg=== ERROR: In procedure exact?: ERROR: In procedure exact?: Wrong type argument in position 1: a ==end=

Re: [PATCH 2/3] Add internal API to specify reader options at reader invocation

2013-01-21 Thread Andy Wingo
On Sun 09 Dec 2012 13:47, Andreas Rottmann a.rottm...@gmx.at writes: * libguile/private-options.h: Introduce a new enum indexing the read options, and use its values as indices for scm_read_opts. Seems to define struct scm_read_opts as well? +SCM scm_i_read (SCM port, const scm_t_read_opts

Re: A discussion about with-fluids in tail positions

2013-01-21 Thread Andy Wingo
On Mon 31 Dec 2012 13:59, Stefan Israelsson Tampe stefan.ita...@gmail.com writes: Going through the compile-rtl stuff I realized that the handling of dynlet in tail call position is not as good as one could do or? Yes, Racket guarantees asymptotic tail recursion here but Guile does not. To

Re: A proper tail version of with-fluids

2013-01-21 Thread Andy Wingo
On Fri 04 Jan 2013 00:36, l...@gnu.org (Ludovic Courtès) writes: Hmm, I can’t see how ‘with-fluids’ or ‘parameterize’ could be tail-recursive given that it uses ‘dynamic-wind’. Am I missing something? It doesn't use dynamic-wind. scheme@(guile-user) ,x (lambda () (with-fluids ((foo 1)) 2))

Re: [Guile-commits] GNU Guile annotated tag, trunk, created. trunk

2013-01-21 Thread Andy Wingo
On Tue 08 Jan 2013 19:25, Mark H Weaver m...@netris.org writes: * [new tag] trunk - trunk Can any git masters tell me how this happened and/or what I did wrong? No idea. git push :trunk, I think, to remove. You might want to remove the tag or branch or whatever locally as well.

Re: [PATCH] byacc: fix potential parallel build issue

2013-01-21 Thread Andy Wingo
On Wed 09 Jan 2013 13:45, Bogdan Marinescu bogdan.a.marine...@intel.com writes: Add explicit dependency for libpath.h on dynl.x which fixes a potential parallel build issue. The other file that includes libguile/libpath.h (libguile/load.c) already has an explicit dependency on libpath.h

Re: ‘http-get*’ and all that

2013-01-21 Thread Andy Wingo
On Sat 12 Jan 2013 05:09, Daniel Hartwig mand...@gmail.com writes: Looks like the copy-pasta left an inappropriate “(when extra-headers …)” around the deprecation warning in http-get*. Fixed, thanks. Andy -- http://wingolog.org/

Re: [PATCH] md5: fix errors when input size modulo 64 is 55 bytes

2013-01-21 Thread Andy Wingo
Any chance on getting a test case as well? :-) -- http://wingolog.org/

Re: `include' relative to current file

2013-01-21 Thread Jay Sulzberger
On Mon, 21 Jan 2013, Andy Wingo wi...@pobox.com wrote: Hi Jay, Hi, Andy! On Mon 21 Jan 2013 07:08, Jay Sulzberger j...@panix.com writes: /usr/share/slib/guile-2.init and made a symlink from /usr/share/slib/guile.init pointing to above file. FWIW if you use slib from CVS, the