Re: why guile is so slow?

2009-12-27 Thread Neil Jerram
Chengqi Song son...@gmail.com writes: Guile 1.9.6 improves speed a lot That is good news! however guile-gtk can not be compiled anymore. Is there any gtk binding for guile 1.9.x? No, guile-gtk is unmaintained now, so hasn't been updated for Guile 1.9.x. Please take a look at guile-gnome

Re: Wanna hacking into Guile

2009-12-20 Thread Neil Jerram
Yi DAI plm@gmail.com writes: Hi, Hi there! I've been using Guile for a while. And now I wanna learn things under the hook and wish someday I could contribute some code to the base also. I haven't finished reading the manual yet. I think it would be a good combination to read the

Re: Is Guile Useful to a Scheme Noob

2009-12-17 Thread Neil Jerram
Andrew C. Suttles andrew.sutt...@gmail.com writes: I know this is going to sound troll-ish, but I really don't mean for it to be. I have been an Emacs user for quite some time and I've learned to hack my way around ELSIP some. I'd like to make a structured attempt to learn LISP(ish)

Debugging infrastructure (was Re: racing srfi-18 threads)

2009-12-12 Thread Neil Jerram
Andy Wingo wi...@pobox.com writes: Hi Neil, On Wed 02 Dec 2009 22:46, Neil Jerram n...@ossau.uklinux.net writes: Neil Jerram n...@ossau.uklinux.net writes: I now have it down to this: a program compiled inside the RHS of a define-syntax form apparently has no meta; whereas the same

Re: A variable that holds a string which may be the name of a variable.

2009-12-03 Thread Neil Jerram
Linas Vepstas linasveps...@gmail.com writes: 2009/12/2 Neil Jerram n...@ossau.uklinux.net: Neil, For my own edification -- is tehre any difference between  (let ((sym (with-input-from-string mything read))) and (let ((sym (string-symbol mything))) In the case where mything is a string

Re: A variable that holds a string which may be the name of a variable.

2009-12-02 Thread Neil Jerram
Richard Shann richard.sh...@virgin.net writes: I am stuck on one of those symbol/variable-name-in-a-string things again: (define mything display) (display (eval-string mything)) that's fine. But can I test that the string in mything is the name of a variable before doing the eval-string

Re: Creating a list of procedures in a file.

2009-11-19 Thread Neil Jerram
Richard Shann richard.sh...@virgin.net writes: Thanks for this: the only problem might be that it is the top-level definitions in Denemo's initialization script that I want to list. I haven't created a module for it (I wouldn't know how! But as it is very much an end user, I suppose there is

Re: racing srfi-18 threads

2009-11-19 Thread Neil Jerram
Andy Wingo wi...@pobox.com writes: On Mon 16 Nov 2009 23:16, Neil Jerram n...@ossau.uklinux.net writes: It seems that when run under the VM, (thunk? thunk) = #f. Ugly. Thanks for debugging this, Neil. I now have it down to this: a program compiled inside the RHS of a define-syntax form

Re: racing srfi-18 threads

2009-11-16 Thread Neil Jerram
Neil Jerram n...@ossau.uklinux.net writes: Tristan Colgate tcolg...@gmail.com writes: A similar, though much simpler, test case exhibits the same problem. I'll raise a bug. report and include a log of the issue. Hi Tristan, Thanks for reporting this. FWIW I've checked that it still

Re: Need help with a macro

2009-11-15 Thread Neil Jerram
Josef Wolf j...@raven.inka.de writes: Hello, I am trying to work through the little schemer book. In order to make it easier to go through the examples, I've come up with the following macro: ;;; Helper to visualize (define-macro (disp exp) (display exp) (newline)

Re: Guile/Tk?

2009-11-15 Thread Neil Jerram
Josef Wolf j...@raven.inka.de writes: Hello, I would like to try some GUI stuff with guile. Since I have some experience with Tk (with perl and ruby), I tried Tk following http://www.galassi.org/mark/mydocs/guile-programmer_2.html: (require 'Gwish) (use-library tcl) (use-interface

Re: Libguile printer for ports on ttys.

2009-11-14 Thread Neil Jerram
dskr d...@mac.com writes: The default libguile printer for port objects attempts to print TTY names for fds for which are ttys. This printer fails when ttyname returns null. This is the case, at least, on Mac OS X for master ptys. So isatty() returns TRUE, but ttyname() returns NULL (for the

Re: racing srfi-18 threads

2009-11-08 Thread Neil Jerram
Tristan Colgate tcolg...@gmail.com writes: A similar, though much simpler, test case exhibits the same problem. I'll raise a bug. report and include a log of the issue. Hi Tristan, Thanks for reporting this. FWIW I've checked that it still happens (exactly as you've described) with the

Re: Guile web page docs

2009-10-27 Thread Neil Jerram
Neil Jerram n...@ossau.uklinux.net writes: Cool, I'll sort out a 1.9/2.0 set of docs later. This is up now. Neil

Re: Guile web page docs

2009-10-24 Thread Neil Jerram
Roberto Rosetti rob.rose...@gmail.com writes: Thanks Neil, Concerning your question: it was my mistake. I've not built the pre-release yet... Didn't know about the included docs. My fault.. No prob. At the moment I'm working on a little project, Geany, trying to integrate Guile 1.8.x

Re: Guile web page docs

2009-10-23 Thread Neil Jerram
l...@gnu.org (Ludovic Courtès) writes: Neil Jerram n...@ossau.uklinux.net writes: I noticed that the docs on the Guile web pages are a bit out of date. The 1.8 ones are behind those in 1.8.7 (the latest release). http://www.gnu.org/software/guile/manual/html_node/index.html appears

Re: Guile web page docs

2009-10-23 Thread Neil Jerram
Roberto Rosetti rob.rose...@gmail.com writes: Hi all, Maybe I'm a little OT, but recently I've made some experiments with the last build of guile-gnome-platform (2.16.1, right?). I was surprised about the continuosly warnings about deprecated functions of the libs. I've started with the last

Re: Guile web page docs

2009-10-23 Thread Neil Jerram
Neil Jerram n...@ossau.uklinux.net writes: but you might have more luck with 1.8.7 than with a 1.9.x release. Just to be clear: I mean because 1.8.x was what was current when Andy was working on guile-gnome; not because there's anything badly wrong with 1.9.x! Neil

Guile web page docs

2009-10-21 Thread Neil Jerram
I noticed that the docs on the Guile web pages are a bit out of date. The 1.8 ones are behind those in 1.8.7 (the latest release). I'm not sure about the 1.6 ones, but will check. And there aren't any docs for 1.9/2.0 at all - which I think would be useful. Would anyone object if we added a

Re: scm_shell in C-Thread - Quit vs. Terminal Corruption

2009-10-18 Thread Neil Jerram
kai.selg...@web.de writes: Hej linas, thanks for your reply. application and guile). When I enter        (quit) in the terminal scm_shell calls exit(), which does not care much for my application cleanup. wouldn't atexit() solve this problem? Yes, you're right. atexit() would solve

Re: Guile Build Errors

2009-10-04 Thread Neil Jerram
l...@gnu.org (Ludovic Courtès) writes: Note that you can already use (or rather debug ;-)) Guile without `dlpreopen'. You just won't be able to load modules that call `load-extension'. In 1.8, it means you cannot use SRFI-1 and SRFI-60. What about statically linking all of the necessary

Re: Guile-Syscalls 0.5 available

2009-10-01 Thread Neil Jerram
Thien-Thi Nguyen t...@gnuvola.org writes: As for the connection between Guile-Syscalls and ttn-do, the procs `iovec', `writev' and `readv' are central to the X protocol i/o manager in module (ttn-do zzz x-protocol). I tend to think these should be moved into Guile proper. That

Re: continuation barriers

2009-08-26 Thread Neil Jerram
Linas Vepstas linasveps...@gmail.com writes: i.e. I'd like something like this to work: scm_c_eval_string( ... (call/cc (lambda (k) (set! *myk* k))) ...); ... some_c_code(...); scm_c_eval_string( ... (*myk* 42) ...); I think there are a couple of problems here. The first is as you've

Re: How to flush history ?

2009-08-26 Thread Neil Jerram
Roberto Rosetti rob.rose...@gmail.com writes: Well, thanks for the answer Neil. I know about the existence of ~/.guile_history, but my problem is more complex: I need a hook to the history buffer, like a port or something. A way to flush the history to its file at a given command. Just to

Re: Checking for guile from configure -- forward compat.

2009-08-14 Thread Neil Jerram
Andreas Rottmann a.rottm...@gmx.at writes: Neil Jerram n...@ossau.uklinux.net writes: Peter TB Brett pe...@peter-b.co.uk writes: I'm perfectly aware of how to use pkg-config, and I think I already pointed out that this isn't very useful because Guile provides a 'guile-1.8' pkg-config

Re: Checking for guile from configure -- forward compat.

2009-08-14 Thread Neil Jerram
Peter Brett pe...@peter-b.co.uk writes: We ended up writing a pile of crufty m4/shell, which: - checks for guile-1.8.pc - if that fails, checks for guile-2.0.pc - if that fails, checks for guile-config http://git.gpleda.org/?p=gaf.git;a=blob;f=m4/geda-guile.m4;hb=HEAD Ewww. That looks

Re: Building guile on MSYS/MinGW - issue with pthread use

2009-08-14 Thread Neil Jerram
Gareth Edwards gar...@edwardsfamily.org.uk writes: pthread.h defines timespec like this: #ifndef HAVE_STRUCT_TIMESPEC #define HAVE_STRUCT_TIMESPEC 1 struct timespec { long tv_sec; long tv_nsec; }; #endif /* HAVE_STRUCT_TIMESPEC */ So, presumably, configure tests for

Re: How to flush history ?

2009-08-14 Thread Neil Jerram
Roberto Rosetti rob.rose...@gmail.com writes: Hi all, I'm wondering how to flush the recent readline history to a file. I need this feature for an educational project. The purpose is to permit the REPL user to save his entire history with a simple command. Something like (flush-history

Updated Guile Tutorial

2009-08-13 Thread Neil Jerram
Hi all, I know that by know Daniel has updated the tutorial (and I'll comment on that later), but there are a few points below that I should respond to. Linas Vepstas linasveps...@gmail.com writes: 2009/8/2 Daniel Kraft d...@domob.eu: I also got started using Guile with that turtle package

Re: Guile.el

2009-07-27 Thread Neil Jerram
Dmitry Dzhus d...@sphinx.net.ru writes: Ludovic Courtès wrote: The new debugging support mentioned in 1.8.5's `NEWS' is GDS (info (guile) Using Guile in Emacs), which allows users to evaluate Scheme code, single-step through it, display backtraces, etc. You may also want to look at Geiser,

Re: random number vectors

2009-07-19 Thread Neil Jerram
matt matth...@ifh.ee.ethz.ch writes: Hello, Guile lets me make a single random:uniform or a single random:normal. It also lets me make a random:normal-vector! but doesn't let me make a random:uniform-vector! http://www.gnu.org/software/guile/manual/html_node/Random.html Is the reason for

Re: Guile-PG 0.38 available

2009-06-26 Thread Neil Jerram
J Roberto B A Monteiro bet...@member.fsf.org writes: On Mon, 2009-06-22 at 10:20 +0200, Thien-Thi Nguyen wrote: This is alpha code (pre 1.0 release), tested with Guile 1.4.x and PostgreSQL 7.4, 8.0, 8.1, 8.2, 8.3. It may have bugs, and the interfaces may change from

Re: Newbie early adopter 1.90 autogen error

2009-06-24 Thread Neil Jerram
tbrooke tom.bro...@gmail.com writes: This may go in the dev forum but I get the following in autogen.sh when trying to compile on Fedora 10 configure.in:41: error: possibly undefined macro: AC_LIB_LINKFLAGS If this token and others are legitimate, please use m4_pattern_allow.

Re: Getting the (text) selection from the clipboard

2009-06-17 Thread Neil Jerram
Richard Shann richard.sh...@virgin.net writes: Does anyone know if there is a guile procedure to get the (text) selection? (That is from doing Copy in another application) Richard I assume you mean in the X sense. In core Guile: no. But maybe guile-gtk or guile-gnome might expose an

Re: Guile spb-linux Newbie

2009-06-14 Thread Neil Jerram
tbrooke tom.bro...@gmail.com writes: I want to use guile with ncurses to create a project using spb-linux. I am new to this. Welcome! spb is a modular linux that has addons that are libraries. http://spblinux.sourceforge.net/ I am not sure how compile this I have fedora on my main

Re: Parsing eval errors

2009-06-14 Thread Neil Jerram
Chris Dennis cgden...@btinternet.com writes: Thank you for your reply. I couldn't get handle-system-error to work, but reading about it led me to display-error, which does what I want. Excellent! (If by a roundabout route.) Neil

Re: Parsing eval errors

2009-06-11 Thread Neil Jerram
Chris Dennis cgden...@btinternet.com writes: Hello Guilers Hi Chris, Is there some code anywhere for parsing the error information caught from local-eval? The following code is the best I have come up with so far, but the messages it produces aren't pretty: (define (error-handler key

Re: Guile and ucontext

2009-05-23 Thread Neil Jerram
Fredrik Tolf fred...@dolda2000.com writes: From what I can tell from Guile's threads.c, Guile will just record the top and bottom of a single stack per pthread, and since I'm switching stack pointer between the original stack at the top of the process to heap-allocated stacks, it would try

Re: Guile and ucontext

2009-05-23 Thread Neil Jerram
Fredrik Tolf fred...@dolda2000.com writes: Well, unless I have grossly misunderstood what I read in threads.[ch], Guile records the base and top of the stack per POSIX thread, and doesn't ever change the base unless it is found at a higher address than before. Correct. Thus, to take an

Re: guile-sdl build, SDL_imageFilter.c: Assembler messages:

2009-05-16 Thread Neil Jerram
tantalum m...@thaseph.de writes: Hi, can anyone help me with this build related problem? Is there something I am missing? SDL_imageFilter.c: Assembler messages: SDL_imageFilter.c:85: Error: symbol `.L1010' is already defined SDL_imageFilter.c:162: Error: symbol `.L21011' is already

Re: Guile and ucontext

2009-05-16 Thread Neil Jerram
Fredrik Tolf fred...@dolda2000.com writes: Hi list, Hi Fredrik, I'd really like to use Guile in a program I'm writing, but I'm having a problem in that I'm using the ucontext calls rather heavily to run a great amount of light-weight threads (in only one pthread, that is), and it seems

Re: Replacing substrings in strings

2009-05-01 Thread Neil Jerram
Sebastian Tennant seb...@smolny.plus.com writes: Quoth Linas Vepstas linasveps...@gmail.com: 2009/4/14 Sebastian Tennant seb...@smolny.plus.com: I needed to replace two consecutive spaces in strings with ' nbsp;' so Most programming languages use regex, and so does guile: Of course it can

Re: passing an alist to a procedure without making a copy?

2009-04-20 Thread Neil Jerram
Clinton Ebadi clin...@unknownlamer.org writes: This smells a bit like homework, [...] I personally don't mind if it's homework or not, and in case there are students out there wondering whether to ask questions on this list: please do! (Assuming that there is some connection with Guile/Scheme,

Re: wrapping `define-syntax'

2009-04-13 Thread Neil Jerram
Julian Graham jool...@gmail.com writes: Hi Guilers, Hi! For the purpose of some experiments I've been doing with integrating R6RS libraries, I've been trying to figure out ways to wrap `define-syntax' so that I can do things like add bindings to a module's eval closure before evaluating a

Re: Valgrind warnings with -1.8.6

2009-04-12 Thread Neil Jerram
l...@gnu.org (Ludovic Courtès) writes: Hello, Neil Jerram n...@ossau.uklinux.net writes: That is fundamentally true; however, we have recently addressed some genuine Valgrind warnings in the 1.8.x development branch. These were Helgrind warnings, not Memcheck warnings, right? Yes, good

Re: Valgrind warnings with -1.8.6

2009-04-07 Thread Neil Jerram
Andreas Rottmann a.rottm...@gmx.at writes: Andrew Gaylard a...@computer.org writes: Hi, I'm linking with libguile on Linux, built from source, to extend my C application with Scheme. I'm seeing a lot of warnings from valgrind.  The same warnings appear when using Guile standalone. Should

Re: pipelines

2009-03-30 Thread Neil Jerram
Marijn Schouten (hkBst) hk...@gentoo.org writes: By pipeline I mean for example: echo Hello world | cat | cat | cat | grep world | cat I know how to create such pipelines that contain only a single pipe. My question is about how to do it when there are many pipes. I don't know the answer

Re: bindings for free identifiers in (ice-9 syncase)

2009-03-19 Thread Neil Jerram
Andreas Rottmann a.rottm...@gmx.at writes: Nothing, this is a deficiency in Guile: https://savannah.gnu.org/bugs/?20941. I wonder why it is marked as invalid, though. Regardless of how it's marked, I'm still hoping to get to this soon. Neil

Re: bindings for free identifiers in (ice-9 syncase)

2009-03-19 Thread Neil Jerram
Julian Graham jool...@gmail.com writes: This does strike me as a serious problem (and it's a spanner in the works for implementing R6RS libraries). In effect, isn't the bug saying that Guile's syncase macros aren't totally hygienic? That is, in my example, if you provide your own binding

Re: Thoughts on g-wrap, guile FFI and guile-gnome

2009-03-03 Thread Neil Jerram
Andreas Rottmann a.rottm...@gmx.at writes: * Its code uses syntax-case (as specified in R6RS) in quite a few places. I hope that Guile's macro problems (which currently interact horribly with modules) will be resolved at some point, and that it will gain full syntax-case support. Can

Re: dynamic module creation

2009-02-03 Thread Neil Jerram
Julian Graham jool...@gmail.com writes: Incidentally, my naive attempt to refine the behavior of `beautify-user-module!' straight-up failed: guile (define m (resolve-module '(foo))) guile (let ((interface (make-module 31))) ... (set-module-name! interface (module-name m)) ...

Re: more debugging info needed.

2009-02-02 Thread Neil Jerram
Paul Emsley paul.ems...@bioch.ox.ac.uk writes: I did read the manual. Still I have the same problem, but now it seems clearer to me that I can't catch anything because Greg eats it first. Greg has the unfortunate characteristic of being ungooglable... so I can't immediately tell if it's

Re: dynamic module creation

2009-02-01 Thread Neil Jerram
Andy Wingo wi...@pobox.com writes: On Sun 01 Feb 2009 08:58, Julian Graham jool...@gmail.com writes: Is there some way to get the module-creation behavior of `resolve-module' but also be able to include stuff from other modules in the resulting environment? guile (resolve-module '(foo))

Re: xchat-guile and threads

2009-01-22 Thread Neil Jerram
2009/1/21 Zeeshan Ali (Khattak) zee...@gmail.com: Hi all! I am looking back at the code i wrote[1] some years back and I don't seem to recall why i did somethings the way i did. One thing that i can't remember is why I am doing threads and locking in there. Given some thought, i called

Re: Killing off scm_init_guile for Guile 2.0 ?

2009-01-22 Thread Neil Jerram
2009/1/17 Linas Vepstas linasveps...@gmail.com: 2009/1/16 dsm...@roadrunner.com: Neil Jerram neiljer...@googlemail.com wrote: scm_init_guile has always been a bit problematic, as it requires lots of heuristic and OS-dependent code to try to determine where the base of the stack

Re: How to stay in fixnum range?

2009-01-21 Thread Neil Jerram
2009/1/19 Panicz Maciej Godek godek.mac...@gmail.com: Hi, I've been writing a program that has something to do with time processing. It uses the function get-internal-real-time to measure time in an infinite loop. I haven't been using running the program long enough to experience the

Re: How to stay in fixnum range?

2009-01-21 Thread Neil Jerram
2009/1/21 Panicz Maciej Godek godek.mac...@gmail.com: I expect that, after reaching the maximum count (the range of int), the timer twists back to zero, instead of growing boundlessly. In that case, the following code may fail: (define (for-ticks-pass-time-left ticks operation) (let

Re: Guile module system problem

2009-01-20 Thread Neil Jerram
2009/1/20 Panicz Maciej Godek godek.mac...@gmail.com: Hi, I've been trying to move some of my code into loadable guile modules. I made a directory modules in my project tree and moved the module in there. I ran into some problems. Here's how I load the module: (set! %load-path (cons .

Killing off scm_init_guile for Guile 2.0 ?

2009-01-15 Thread Neil Jerram
scm_init_guile has always been a bit problematic, as it requires lots of heuristic and OS-dependent code to try to determine where the base of the stack is. It's never been formally deprecated, but we have always advised people to use scm_boot_guile or scm_with_guile if they can, and the manual

Re: Killing off scm_init_guile for Guile 2.0 ?

2009-01-15 Thread Neil Jerram
2009/1/15 Neil Jerram neiljer...@googlemail.com: Thoughts? On the other hand, does moving to BDW-GC take a lot of this out of our hands anyway? From a quick look, it seems the answer to that is yes, and hence moving to BDW-GC will mean that we can keep scm_init_guile with no cost. So

Re: Guile licensing and GPL v2-only applications?

2009-01-12 Thread Neil Jerram
, following the 1.8.x series) will be LGPLv3+. Regards, Neil 2008/12/12 Neil Jerram neiljer...@googlemail.com: As Guile maintainers, Ludovic and I have been asked to look at changing Guile's license to LGPLv3. Currently it is LGPLv2.1. If we did this, it would be for the next stable

Re: Dynamic variable binding

2008-12-28 Thread Neil Jerram
2008/12/27 Sebastian Tennant seb...@smolny.plus.com: Quoth Keith Wright kwri...@keithdiane.us: The name of the song is called 'Haddocks' eyes'. Oh, that's the name of the song, is it? Alice said. No, you don't understand, the Knight said, looking a little vexed. That's what the name is

Re: role of guile-lib

2008-12-26 Thread Neil Jerram
2008/12/25 Julian Graham jool...@gmail.com: But it does raise the question of what the proper role for guile-lib is, given that no one seems to have touched it in more than a year. What do you want to do with it? A few different options come to mind: * Include (parts of?) it within Guile

Re: seg fault with repeated function calls from C?

2008-12-17 Thread Neil Jerram
2008/12/17 Anand Dixit anand.di...@sun.com: Hi Ludo, Looks like it accepts a post to guile-user only when you are registered. That would explain why the first post didn't show up. Posts to guile-user from non-subscribers are moderated by a group of GNU project volunteers. So if they all

Re: Bug: Unbound variable:

2008-12-14 Thread Neil Jerram
2008/12/14 Linas Vepstas linasveps...@gmail.com: 2008/12/13 Ludovic Courtès l...@gnu.org: Are you able to get a meaningful backtrace when that exception is raised? Sure .. but its in my code .. for example: guile (doit) Backtrace: In current input: 1: 0* [doit] 1: 1

Guile licensing and GPL v2-only applications?

2008-12-12 Thread Neil Jerram
As Guile maintainers, Ludovic and I have been asked to look at changing Guile's license to LGPLv3. Currently it is LGPLv2.1. If we did this, it would be for the next stable release series (1.10.x, or possibly 2.0.x) and onwards, not for any further 1.8.x releases. Our understanding is that this

Re: Guile release planning

2008-12-08 Thread Neil Jerram
2008/11/18 Ludovic Courtès [EMAIL PROTECTED]: Hi, Andy Wingo [EMAIL PROTECTED] writes: Beating a dead horse, 1.8.5 should be compatible with 1.8.3, via whatever mechanism. (The actual problem in this case was elsewhere.) 1.8.5 *is* compatible with 1.8.x. I am skeptical of pushing

Re: guile history: your input needed!

2008-11-23 Thread Neil Jerram
2008/11/21 Sebastian Tennant [EMAIL PROTECTED]: It will help different people in different ways and no doubt there are some, like yourself, whom it won't help at all. Personally, I appreciate histories most when I'm new to a subject (for obvious reasons) but a good history makes interesting

Re: guile history: your input needed!

2008-11-23 Thread Neil Jerram
2008/11/21 Andy Wingo [EMAIL PROTECTED]: I think that the problem that history addresses is the definition of Guile -- that is, who and what we are. Hi Andy, Following on from my response to Seb... I think this is the key point, the definition of Guile today. If, from this work, we can get

Re: guile history: your input needed!

2008-11-23 Thread Neil Jerram
2008/11/22 Keith Wright [EMAIL PROTECTED]: It can't hurt, can it? That is rarely a good enough argument. What _would_ help us? A better statement of Guile's current purpose. Whatever happened to tcl? Are you joking here? If not, see gitk. Those who do not remember history are doomed to

Re: Error reporting

2008-11-23 Thread Neil Jerram
2008/11/21 Sebastian Tennant [EMAIL PROTECTED]: Hi all, I very much doubt it's possible, but is there any way of getting Guile to include a timestamp in it's error reporting? For example: guile foo 2008-11-20 23:17:11 ERROR: Unbound variable: foo 2008-11-20 23:17:11 ABORT:

Re: `lazy-catch' and `dynamic-wind'

2008-11-23 Thread Neil Jerram
2008/11/23 Ludovic Courtès [EMAIL PROTECTED]: Hello Guilers! I noticed the following subtle difference between fluids and SRFI-39 parameters when accessed from a `lazy-catch' handler: (define fl (make-fluid)) (fluid-set! fl 'outside) (lazy-catch #t (lambda ()

Re: `lazy-catch' and `dynamic-wind'

2008-11-23 Thread Neil Jerram
2008/11/23 Ludovic Courtès [EMAIL PROTECTED]: Exactly, thanks! Now, I was actually using SRFI-34's `with-exception-handler', which I expected to behave like `with-throw-handler'. Should we change `with-exception-handler' to use `with-throw-handler' instead of `lazy-catch'? Yes, I think we

Re: guile history: your input needed!

2008-11-20 Thread Neil Jerram
2008/11/20 Andy Wingo [EMAIL PROTECTED]: Hey Guilers! Many (most?) of you have been at this guile thing for longer than I have, some of you from the very beginning. While doing some reorganizations to the manual to get the VM docs in [0], I realized that a big missing piece of our public

Re: bug: defining things in different threads

2008-11-15 Thread Neil Jerram
2008/11/12 Linas Vepstas [EMAIL PROTECTED]: Yes, of course, the problem remains. Explanation: Thread 1 is the first thread that does any Guile stuff, so it loads boot-9.scm, which means that it ends up in the (guile-user) module. Thread 2 hasn't done any (set-current-module ...), so it stays

Re: Guile release planning

2008-11-15 Thread Neil Jerram
Hi Mike, thanks for your response. 2008/11/11 Mike Gran [EMAIL PROTECTED]: If the base Guile C API remains stable, it doesn't matter to me how the releases occur, because they won't break my libraries or projects. OK. If the Guile C API needs to change, some sort of notification and beta

Re: Guile release planning

2008-11-15 Thread Neil Jerram
2008/11/11 Jon Wilson [EMAIL PROTECTED]: Hi Neil, Thanks for working on this. I'd favor the steady new features model, but I would recommend periodically marking a release as one that will be supported past the next release, similar to Ubuntu's LTS releases. Why? It seems to me that that

Re: Guile release planning

2008-11-15 Thread Neil Jerram
2008/11/11 Linas Vepstas [EMAIL PROTECTED]: Any ideas for binary compatibility for the micro revisions? At our upstream level (i.e. not trying to solve all of the distribution-level issues), I think the theory is that this is covered by library interface numbering. In other words, if a change

Re: Guile release planning

2008-11-15 Thread Neil Jerram
2008/11/11 Ludovic Courtès [EMAIL PROTECTED]: Your note doesn't take binary compatibility into account, and I think it's an important thing, too. I think the ideal is to maintain binary compatibility within a major series, as we've done (or tried to do) in the 1.8.x series. (And Andy wrote

Re: atexit in modules

2008-11-15 Thread Neil Jerram
2008/11/14 Mike Gran [EMAIL PROTECTED]: So I'm back to the idea of creating a module-level variable that exists while the module is in memory, and then calling library_end() when that variable is GC'd. But I can make it more schemey by using guardians and after-gc-hook as you suggested.

Guile release planning

2008-11-10 Thread Neil Jerram
Andy recently wondered - in connection with his VM implementation and docs - about when a 1.9.x or 1.10.x release might happen, and that reminded me about the following thoughts that I've been trying to crystallize for a while. How should we organize future Guile releases? I'm interested to hear

Re: guile interpreter crash in eval

2008-09-23 Thread Neil Jerram
2008/9/23 betoes [EMAIL PROTECTED]: Maybe it was corrected in ealier versions: Indeed: http://git.savannah.gnu.org/gitweb/?p=guile.git;a=commitdiff;h=f9a323f5ee5ba1981aca30937906ee824731f273 Neil

Re: X11 bindings and shell bindings

2008-09-18 Thread Neil Jerram
2008/9/18 [EMAIL PROTECTED]: Ishan Arora [EMAIL PROTECTED] wrote: Hi, Thanks for the reply. I tried system. It calls the code synchronously, and returns a number for success or failure of the command. Is there a way such that the stdout output of the command is returned as a string?

Re: Fail stating a file not in current folder

2008-09-17 Thread Neil Jerram
2008/9/17 zulian jc [EMAIL PROTECTED]: Hello guile list, Hi! I am new to guile and scheme so excuse my poor coding. Anyway I am faced with a little problem with guile 1.8.1. I am writing a function that collects all sub-directory from a given directory. To do this I am using the opendir and

Re: SOS: Simple Object System

2008-09-14 Thread Neil Jerram
Hi Maciek, Thanks for sharing this! 2008/9/14 Maciek Godek [EMAIL PROTECTED]: Hi, Using some hints you gave me, I've implemented a really tiny object system -- and I would like to know your opinion (why it's still better to use goops :D) You have already given a good summary of the pros and

Fwd: guile-1.8 1.8.5+1-4 MIGRATED to testing

2008-09-01 Thread Neil Jerram
FYI, the Debian Lenny release will include Guile 1.8.5. Thanks especially to Rob for making this happen, but also to many others who helped with bug reporting, fixing and advice. Neil -- Forwarded message -- From: Debian testing watch [EMAIL PROTECTED] Date: 2008/8/31

Re: Just in case...

2008-08-13 Thread Neil Jerram
2008/8/13 Rob Browning [EMAIL PROTECTED]: Yes, though I'll have to find out what's appropriate since changes to some control fields can require a manual review by the ftpmasters. As it stands now, I don't think this will affect guile with respect to lenny. [...] Note that if I recall

Re: Just in case...

2008-08-12 Thread Neil Jerram
2008/8/11 Neil Jerram [EMAIL PROTECTED]: 2008/8/11 Rob Browning [EMAIL PROTECTED]: It looks like that (ia64) didn't go well at all... http://buildd.debian.org/fetch.cgi?pkg=guile-1.8;ver=1.8.5%2B1-3;arch=ia64;stamp=1218417608 That doesn't look like a Guile-specific problem, though, does

Re: Me no understand scoping

2008-08-08 Thread Neil Jerram
2008/8/2 Maciek Godek [EMAIL PROTECTED]: 1. IMO this could be really beautifully done in GOOPS, by defining custom metaclasses and slot types. I've been considering that, and I'm still having doubts. The main reason is that there's no documented way of accessing GOOPS objects from C (except

Re: Me no understand scoping

2008-08-02 Thread Neil Jerram
2008/8/1 Maciek Godek [EMAIL PROTECTED]: I can't tell you precisely (because I don't know myself). It's just that whenever I try to do something in scheme, I end up with questions of that sort. (Maybe the thing is that I try to write as little code as possible -- the prettiness and

Re: Just in case...

2008-07-29 Thread Neil Jerram
2008/7/28 Neil Jerram [EMAIL PROTECTED]: 2008/7/25 Jon Wilson [EMAIL PROTECTED]: ...anyone missed the announcement, Debian is going to freeze packages for Lenny quite soon. So, I humbly request that those responsible for such things get the latest and greatest of everything packaged up

Re: Summer holidays

2008-07-25 Thread Neil Jerram
2008/7/20 Ludovic Courtès [EMAIL PROTECTED]: Hello Guilers! FYI, I'll be on vacations and mostly off-line until August, 11th. Happy holidays and happy hacking to everyone! I'm going to be offline for a few days now too... I know there are a few interesting threads pending, and I'm sorry that

Re: srfi-88 keyword / symbol ambiguity

2008-07-21 Thread Neil Jerram
2008/7/20 Julian Graham [EMAIL PROTECTED]: This is particularly bad because it breaks a lot of code that calls `use-modules' with the :prefix or :rename syntax -- from looking at some of the core libraries, it seems like it's pretty common to use rename-prefixes that end in a colon. So, for

Re: [PATCH] Single stepping through code from Emacs

2008-07-17 Thread Neil Jerram
2008/7/15 Ludovic Courtès [EMAIL PROTECTED]: Hi, Neil Jerram [EMAIL PROTECTED] writes: Here is a minor enhancement to Guile's Emacs support. I'll commit in a few days; let me know if you have any comments before that. Looks very nice! Thanks, Ludo'. Thanks, that's in now

Pace is nothing without guile

2008-07-13 Thread Neil Jerram
... That's a comment from coverage of the current England v South Africa cricket match (http://uk.cricinfo.com/talk/content/current/multimedia/360921.html). But is Guile nothing without pace? Well obviously it isn't nothing, but I think Guile is perceived, among both Scheme implementations and

Re: Pace is nothing without guile

2008-07-13 Thread Neil Jerram
2008/7/13 Greg Troxel [EMAIL PROTECTED]: My immediate reaction is that test suites aren't good benchmarks because we will often want to add to test suites, while changing the benchmark invalidates previous data so we will not want to change the benchmark. Yes, but... Now, if you mean to use

Re: Closure?

2008-07-13 Thread Neil Jerram
2008/7/13 Maciek Godek [EMAIL PROTECTED]: except that the last line fails with a Bad define placement error. That's because there are special rules for defines inside lexical scopes. As the practise shows, although guile documentation says something different. In section 3.1.4.7 (A Shared

GNU hackers meeting

2008-07-07 Thread Neil Jerram
Hi all, I'm going to a meeting of GNU hackers in Bristol this week. I don't really have any agenda, other than to mingle, hack and hear what others are doing, but if anyone would like me to raise something specific on behalf of Guile and Guile-related projects, please let me know. For

Re: scheme - (X)HTML

2008-06-16 Thread Neil Jerram
2008/6/13 Sebastian Tennant [EMAIL PROTECTED]: Neil Jerram [EMAIL PROTECTED] writes: As a further option, please see attached [template.scm]. If you're interested in this, please let me know, because I may have a more up to date version somewhere. I'd be interested in getting hold

Re: Can scm_shell be interrupted?

2008-06-01 Thread Neil Jerram
2008/5/16 Remco Bras [EMAIL PROTECTED]: Hello, after the last exchange in this thread, I wrote and tested a prototype of a repl for my app. The code for this is as follows: int exec_guile_shell (void *unused_arg) { scm_init_guile(); [...] This is run when the app starts, after using

<    1   2   3   4   >