Re: [ANN] guile-gi 0.0.2 released

2019-06-16 Thread Mark H Weaver
Mike Gran writes: > In short, this library hopes to make GTK3 and WebKit2 available to > Guile. > > This particular library is one of several different attempts and > solving the interface between GTK+3 and Guile. Its differentiating > (mis)feature is that its bindings are created dynamically

Re: Srfi-159/166 - monadic formatting for guile

2019-06-16 Thread Linus Björnstam
Well, in the written-shared/pretty-shared case, Alex Shinn (I just ported his reference implementation) relies on display/write for everything except lists and vectors, and those are, from what I can tell, exhaustively checked for cycles. trimmed/lazy I have to have a read through in some

Re: guile-gi: scancode->keyval?

2019-06-16 Thread Mike Gran
On Fri, Jun 14, 2019 at 01:14:29PM +0200, Jan Nieuwenhuizen wrote: > Mike Gran writes: > > > ...and I found another one, trying to load text in the test/editor.scm example > > (let ((buffer (send editor (get-buffer > (warn 'buffer buffer) ; => ;; WARNING (buffer #< >

Re: Srfi-159/166 - monadic formatting for guile

2019-06-16 Thread Mark H Weaver
Hi John, John Cowan writes: > On Sun, Jun 16, 2019 at 2:47 AM Mark H Weaver wrote: > > >> How do you implement 'written-shared', 'pretty-shared', and >> 'trimmed/lazy'? In particular, how do you avoid non-termination when >> asked to print cyclic data, when the cycle includes a non-standard

[ANN] guile-gi 0.0.2 released

2019-06-16 Thread Mike Gran
Hello. I am announcing guile-gi v0.0.2. guile-gi is a library that autogenerates GNU Guile bindings for GObject libraries that provide typelib files. GNU Guile is an implementation of Scheme, a Lisp-like language. GObject is a standard way of writing C-language libraries with headers and

Re: Srfi-159/166 - monadic formatting for guile

2019-06-16 Thread John Cowan
On Sun, Jun 16, 2019 at 2:47 AM Mark H Weaver wrote: > How do you implement 'written-shared', 'pretty-shared', and > 'trimmed/lazy'? In particular, how do you avoid non-termination when > asked to print cyclic data, when the cycle includes a non-standard data > type printed using a custom

Re: Self-evaluating function and closure

2019-06-16 Thread Mark H Weaver
Hello again, Vladimir Zhbanov writes: > scheme@(guile-user)> (define (function-generator) >(let ((func #f)) > (lambda () (set! func (let a () a)) func))) [...] > - Is there a way to work around this (either using the

Re: Self-evaluating function and closure

2019-06-16 Thread Mark H Weaver
Hi Thomas, Thomas Morley writes: > always interested in guile developments with regard to lilypond I > noticed some inconsistence with my local lilypond-using-guile-2.9.2 > installation. > I think I could break it down to pure guile (no lilypond) > > (1) The already stated behaviour: > ~$ guile

Re: Self-evaluating function and closure

2019-06-16 Thread Mark H Weaver
Hi Vladimir, Vladimir Zhbanov writes: > On Sat, Jun 15, 2019 at 08:36:34PM -0400, Mark H Weaver wrote: >> Vladimir Zhbanov writes: >> >> > I have tried almost a textbook example with Guile 2.2.4: >> > >> > scheme@(guile-user)> (define (function-generator) >> >(let

Re: Self-evaluating function and closure

2019-06-16 Thread Thomas Morley
Am So., 16. Juni 2019 um 11:49 Uhr schrieb Mark H Weaver : > > Hello again Vladimir, > > Vladimir Zhbanov writes: > > - Is there a way to work around this (either using the above 'let' > > construct or anything else)? > > I'm not quite sure how to answer this question because I don't know what

Re: Self-evaluating function and closure

2019-06-16 Thread Mark H Weaver
Hello again Vladimir, Vladimir Zhbanov writes: > - Is there a way to work around this (either using the above 'let' > construct or anything else)? I'm not quite sure how to answer this question because I don't know what your requirements are. If you need to generate unique tags, any mutable

Re: Self-evaluating function and closure

2019-06-16 Thread Vladimir Zhbanov
Mark, On Sat, Jun 15, 2019 at 08:36:34PM -0400, Mark H Weaver wrote: > Hi Vladimir, > > Vladimir Zhbanov writes: > > > Greetings, > > > > I have tried almost a textbook example with Guile 2.2.4: > > > > scheme@(guile-user)> (define (function-generator) > >(let ((func

Re: Srfi-159/166 - monadic formatting for guile

2019-06-16 Thread Mark H Weaver
Hi Linus, Linus Björnstam writes: > I am not sure I understand what you mean, but i suspect it is already > solved, since for simple cases show will use display/write. So unless > you try to do advanced formatting of circular lists it will do > whatever display or write does. The same thing