manipulating continuations

2011-02-12 Thread Thomas Girod
Hello list I'm new to scheme and guile - started using them a few days ago for a project. So here we go: this is the bit of code that causing me troubles: (define (foo) (call/cc (lambda (return) (display "first part") (newline) (call/cc (lambda (cont) (return co

Re: Memory leak with threads + guile 1.8.7 ?

2011-02-12 Thread Andy Wingo
Hi Cedric, You posted a mail to the list some months ago: On Wed 15 Sep 2010 15:47, Cedric Cellier writes: > I'm using guile in an C program that spawn a lot of short lived > threads, each of which passing in guile mode (guile 1.8.7), and I'm > facing a memory leak even when the threads does no

Re: manipulating continuations

2011-02-12 Thread Andy Wingo
Hi Thomas, On Sat 12 Feb 2011 15:10, Thomas Girod writes: > (define (foo) > (call/cc >(lambda (return) > (display "first part") > (newline) > (call/cc > (lambda (cont) > (return cont))) > (display "second part") > (newline > > guile> (define c (foo)

Re: manipulating continuations

2011-02-12 Thread Keith Wright
> From: Andy Wingo > Cc: guile-user@gnu.org > > Hi Thomas, > > In this expression, `foo' has returned twice. The first time it > returned a continuation, which was applied. The second time it returned > whatever `newline' returned: the unspecified value. Applying the > unspecified value faile

Re: manipulating continuations

2011-02-12 Thread Andy Wingo
On Sat 12 Feb 2011 17:40, Keith Wright writes: > What is (% ...)? What is a "partial continuation"? % sets up a prompt. http://www.gnu.org/software/guile/docs/master/guile.html/Prompts.html http://en.wikipedia.org/wiki/Delimited_continuation http://www.ccs.neu.edu/scheme/pubs/pldi93-sit

manipulating continuations

2011-02-12 Thread Tomtom
Hello list First of all, I'm new to scheme and guile - started using them a few days ago for a project. So here we go: this is the bit of code that causing me troubles: (define (foo) (call/cc (lambda (return) (display "first part") (newline) (call/cc (lambda (cont)

Re: manipulating continuations

2011-02-12 Thread Thien-Thi Nguyen
() Andy Wingo () Sat, 12 Feb 2011 18:16:20 +0100 R5RS and R6RS's continuations are not generally useful for making abstractions that compose well together. I would not recommend them to anyone. Are you saying Guile 2.0 breaks code that uses these traditional continuations (successfully

Re: manipulating continuations

2011-02-12 Thread Andy Wingo
On Sat 12 Feb 2011 21:56, Thien-Thi Nguyen writes: > () Andy Wingo > () Sat, 12 Feb 2011 18:16:20 +0100 > >R5RS and R6RS's continuations are not generally useful for making >abstractions that compose well together. I would not recommend them to >anyone. > > Are you saying Guile 2.0

Guile-WWW 2.30 available

2011-02-12 Thread Thien-Thi Nguyen
release notes: Thanks to Mike Gran, Guile-WWW 2.30 should be usable on Guile 1.9.x. thi README excerpt: This is the Guile WWW library, a set of Guile Scheme modules to facilitate HTTP, URL and CGI programming. NEWS excerpt: - 2.30 | 2011-02-12 - portability fix for Guile 1.9.1