Re: User perception on backward compatibility

2010-01-21 Thread Kjetil S. Matheussen
Thien-Thi Nguyen: I think the next big task will be to list and try to reduce incompatibilities compared to 1.8. Yes, please. At the moment, i would ask you to look at the guile-user message w/ subject "(define ((f a) b) ...)". I agree about this. IMO it's very elegant, and also (proba

Re: Segfault with do (Re: [CM] funny scheme code (fwd))

2009-07-22 Thread Kjetil S. Matheussen
Ludovic Court?s: Hello Kjetil, "Kjetil S. Matheussen" writes: Guile 1.8.0 segfaults as well. Here's the code ready for pasting: (let ((j (lambda () 0)) (k 0)) (do ((i (j) (j)) (l (lambda () 1) (lambda () (+ i 1 ((= i 3) k) (set! k (+

Segfault with do (Re: [CM] funny scheme code (fwd))

2009-07-22 Thread Kjetil S. Matheussen
On Mon, 20 Jul 2009, Kjetil S. Matheussen wrote: A slight modifications makes Guile (the one included with fedora 11) crash: [kje...@ttleon bin]$ guile guile> (let ((j (lambda () 0)) ... (k 0)) ... (do ((i (j) ... (j)) ...(l (lambda () ...

Re: [CM] funny scheme code (fwd)

2009-07-20 Thread Kjetil S. Matheussen
-- Forwarded message -- Date: Mon, 20 Jul 2009 21:02:38 +0200 (CEST) From: Kjetil S. Matheussen To: Bill Schottstaedt Cc: cmd...@ccrma.stanford.edu, guile-devel-requ...@gnu.org Subject: Re: [CM] funny scheme code On Mon, 20 Jul 2009, Bill Schottstaedt wrote: For some

Re: A bug, unless I'm mistaken

2009-02-11 Thread Kjetil S. Matheussen
On Wed, 11 Feb 2009, Kjetil S. Matheussen wrote: But it segfaults for me on linux. Gentoo here as well. Both 1.8.6 and 1.8.4 behave similarly: kje...@ttleush ~ $ /usr/bin/guile guile> (use-modules (oop goops)) guile> (define-class () name) guile> (make )guile> guile> (+ 3

Re: A bug, unless I'm mistaken

2009-02-11 Thread Kjetil S. Matheussen
"Marijn Schouten (hkBst)": Hash: SHA1 Michael Burschik wrote: (use-modules (oop goops)) (define-class () name) (make ) This makes guile 1.8.5 crash with a segmentation fault on Linux. I don't think it should. Regards Michael Works for me with 1.8.6 on linux. But it segfaults

Re: Passing C pointers through guile

2008-07-11 Thread Kjetil S. Matheussen
Ludovic Court?s: "Kjetil S. Matheussen" <[EMAIL PROTECTED]> writes: The code in question doesn't run on those platforms anyway, since there's a lot of strict linux stuff. You are certainly aware that GNU/Linux *is* available on sparc64, alpha, etc. Well, ye

Re: Passing C pointers through guile

2008-07-11 Thread Kjetil S. Matheussen
On Fri, 11 Jul 2008, Greg Troxel wrote: "Kjetil S. Matheussen" <[EMAIL PROTECTED]> writes: Also, various types of non-gc pointers are stored in integers in all of the rt-*.scm files in http://snd.cvs.sourceforge.net/snd/cvs-snd/ and many others (xg.c, etc.). It would be hor

Re: Passing C pointers through guile

2008-07-10 Thread Kjetil S. Matheussen
Ludovic Court?s: Well, `configure.in' has an `AC_PREREQ' call, 1.10(.1) is the latest Automake, and 1.5.26 is the latest Libtool of the 1.x series, it's easy. Thanks, I didn't know that. No. `configure' checks the size of a number of (integer) types. The idea here would be to have a chec

Re: Passing C pointers through guile

2008-07-09 Thread Kjetil S. Matheussen
Ludovic Court?s: >> I gave it a try. Unfortunately, I was completely unable to create >> the configure file right now, so the patch is against 1.8.5 (sorry >> if this creats trouble against git repository), and >> it's also untested, since I couldn't build configure. > >You have to make sure you a

Re: Passing C pointers through guile

2008-07-09 Thread Kjetil S. Matheussen
Ludovic Courtès: >> kjetil ttleush ~/guile-1.8.5 $ gcc -Iinclude/ -Llib lib/libguile.a >> test.c > > /tmp/ccMcEAxd.o: In function `main': > > test.c:(.text+0x1b): undefined reference to `scm_from_uintptr' > > test.c:(.text+0x2c): undefined reference to `scm_to_uintptr' > > collect2: ld returned

Re: Passing C pointers through guile

2008-07-09 Thread Kjetil S. Matheussen
On Wed, 9 Jul 2008, Kjetil S. Matheussen wrote: > > Ludovic Court?s: > > scenes. > > > > > I agree with Maciek that it would at least be mind-comforting to have > > > functions like scm_to_ptr/etc, although not strictly necessary, > > > since usin

Re: Passing C pointers through guile

2008-07-09 Thread Kjetil S. Matheussen
Ludovic Court?s: > scenes. > > > I agree with Maciek that it would at least be mind-comforting to have > > functions like scm_to_ptr/etc, although not strictly necessary, > > since using integers works just fine. > > `scm_{to,from}_uintptr ()' could be handy (patches welcome!). > I gave it a t

Re: scm_i_* in Snd

2008-06-03 Thread Kjetil S. Matheussen
Clinton Ebadi; Clinton Ebadi <[EMAIL PROTECTED]> writes: Is this okay, and in case not, is there a better way to convert a char* into a guile string? SCM_API SCM scm_from_locale_string (const char *str); SCM_API SCM scm_from_locale_stringn (const char *str, size_t len); SCM_API SCM scm_tak

Re: scm_i_* in Snd

2008-06-01 Thread Kjetil S. Matheussen
Bill Schottstaedt: `scm_i_string_chars ()' is used by Mailutils, Lilypond, AutoGen, SND I'm not knowingly using any scm_i_* entities in Snd. I removed the scm_i_procedure_arity use, and I think the SCM_STRING_CHARS macro is only used if it is defined. Well, I'm using scm_i_string_chars i

Re: Fwd: Bug#481378: Guile-1.8 FTBFS on mips (and other architectures)

2008-06-01 Thread Kjetil S. Matheussen
"Neil Jerram": > >> > >> What exactly do you mean here? (My guess: that you compiled and ran > >> the test program by hand, and that the exit status was 1 in each > >> case?) > > > > Yes, that's what I meant. > > Thanks. So, do you agree that my interpretation of what _should_ > happen is corre

Re: Guile Summer of Code project

2008-03-27 Thread Kjetil S. Matheussen
On Thu, 27 Mar 2008, Kjetil S. Matheussen wrote: Ludovic Court?s: > Therefore, being able to parse and access C code from Scheme/Guile > itself, > and handling such a code like any other Scheme object would clearly > benefit the community opening many new p

Re: Guile Summer of Code project

2008-03-27 Thread Kjetil S. Matheussen
Ludovic Court?s: Therefore, being able to parse and access C code from Scheme/Guile itself, and handling such a code like any other Scheme object would clearly benefit the community opening many new possibilities. For example, creating Guile bindings through a foreign function gener

Re: Guile Summer of Code project

2008-03-25 Thread Kjetil S. Matheussen
On Tue, 25 Mar 2008, Kjetil S. Matheussen wrote: Neil Jerram: Luis Araujo <[EMAIL PROTECTED]> writes: > Hello everyone , how are you? Hi Luis! Thanks for posting this proposal. I haven't read every detail yet, but have one initial query, and would be interested in

Re: Guile Summer of Code project

2008-03-25 Thread Kjetil S. Matheussen
Neil Jerram: Luis Araujo <[EMAIL PROTECTED]> writes: Hello everyone , how are you? Hi Luis! Thanks for posting this proposal. I haven't read every detail yet, but have one initial query, and would be interested in your thoughts. It seems like it would be a big job to write a C parser in

Re: Extending Snd with Eval-C and Snd-Rt

2008-01-12 Thread Kjetil S. Matheussen
On Fri, 11 Jan 2008, Andy Wingo wrote: Hi Kjetil, On Fri 11 Jan 2008 00:29, "Kjetil S. Matheussen" <[EMAIL PROTECTED]> writes: This is my paper for the linux audio conference 2008: http://www.notam02.no/~kjetism/sndrt_lac2008.pdf Its a plain presentation of eval-c, snd-r

Re: [CM] Extending Snd with Eval-C and Snd-Rt

2008-01-10 Thread Kjetil S. Matheussen
On Thu, 10 Jan 2008, Bill Schottstaedt wrote: This is my paper for the linux audio conference 2008: Very interesting! Can we include it in the Snd tarball? Its okay by me. I wonder what the history of Guile was -- I had not associated it with Jaffer, but with Tom Lord. I'll have to

Extending Snd with Eval-C and Snd-Rt

2008-01-10 Thread Kjetil S. Matheussen
Hi, This is my paper for the linux audio conference 2008: http://www.notam02.no/~kjetism/sndrt_lac2008.pdf Its a plain presentation of eval-c, snd-rt, san dysth and snd/pd, plus a discussion about soft realtime in guile.

Re: [patch] subordinate SMOBs with GOOPS superclasses

2007-12-15 Thread Kjetil S. Matheussen
Clinton Ebadi: Neil Jerram <[EMAIL PROTECTED]> writes: [EMAIL PROTECTED] (Ludovic Courtès) writes: Hi Andreas, Andreas Rottmann <[EMAIL PROTECTED]> writes: You should probably also have a look at the Scheme-Level FFI of PLT Scheme[1], and my reimplementation for Scheme 48[2]. Thanks f

Re: Injecting variables into closures.

2007-11-29 Thread Kjetil S. Matheussen
On Thu, 29 Nov 2007, Kjetil S. Matheussen wrote: (let () (display (defined? 'gakk)) (inject-variable gakk 90) gakk) => #f90 By the way. I'm quite surprised the environments consist of linked lists. Wouldn't it be much faster using hash tables instead? Perhaps

Re: Experience with guile + Boehm GC in SND (Re: New versions of rt-compiler.scm, rt-examples.scm and rt.tex

2007-06-04 Thread Kjetil S. Matheussen
On Mon, 4 Jun 2007, Kjetil S. Matheussen wrote: (benchmark 20) in Guile: Guile: 4.4mb / 277s / 149mb Boehm: 4.4mb / 243s / 148mb Unfortunately, that one was probably wrong. Here is the retest result with the Boehm GC guile: Boehm: 5.2mb / 380s / 164mb

Re: Experience with guile + Boehm GC in SND (Re: New versions of rt-compiler.scm, rt-examples.scm and rt.tex

2007-06-04 Thread Kjetil S. Matheussen
On Mon, 4 Jun 2007, Ludovic Courtès wrote: Hi, "Kjetil S. Matheussen" <[EMAIL PROTECTED]> writes: libgc (v6.8) was compiled with the --enable-threads=posix only. So `THREAD_LOCAL_ALLOC' was defined in your libgc build, right? Yes: -DTHREAD_LOCAL_ALLOC=1

Re: Experience with guile + Boehm GC in SND (Re: New versions of rt-compiler.scm, rt-examples.scm and rt.tex

2007-06-04 Thread Kjetil S. Matheussen
On Mon, 4 Jun 2007, Ludovic Courtès wrote: Actually, I haven't used guile for other interactive stuff than snd. And snd is huge. It could be that the boehm gc works a lot lot better for really large programs than guile's gc. I'll try to run the gc benchmark program inside snd (with lots of sch

Re: Experience with guile + Boehm GC in SND (Re: New versions of rt-compiler.scm, rt-examples.scm and rt.tex

2007-06-04 Thread Kjetil S. Matheussen
On Mon, 4 Jun 2007, Kjetil S. Matheussen wrote: The main thing that needs to be done before we can consider this solution now is to compare both memory usage _and_ execution time of the two Guiles. Yes, but for some kinds of software, like programs with custom gui's, sound proce

Re: Experience with guile + Boehm GC in SND (Re: New versions of rt-compiler.scm, rt-examples.scm and rt.tex

2007-06-04 Thread Kjetil S. Matheussen
On Mon, 4 Jun 2007, Ludovic Courtès wrote: Hi, Kjetil Svalastog Matheussen <[EMAIL PROTECTED]> writes: [2] tla my-default-archive [EMAIL PROTECTED] tla get guile-core--boehm-gc So that's the one you've been using and referring to as "Guile + Boehm GC"? Glad to hear it! ;-) Sorry