Re: Shell commands with output to string

2022-02-22 Thread Neil Jerram
On Tue, 22 Feb 2022 at 10:23, Alex Sassmannshausen wrote: > > Hi Zelphir, > > I think you want to be using the popen / pipe procedures for this. See > https://www.gnu.org/software/guile/docs/docs-2.2/guile-ref/Pipes.html > for the chapter in the manual. Another example, for reading transactions o

Re: Proposal: Deep Dive into the Guile Docs & Makeover Proposal

2022-02-19 Thread Neil Jerram
extension language for lots of GNU programs that already exist. I think expressing that dichotomy, and arranging the docs as clearly as possible while still allowing for both sides, is still our number 1 problem. Best wishes, Neil

Re: Proposal: Deep Dive into the Guile Docs & Makeover Proposal

2022-02-08 Thread Neil Jerram
ill > undertake the effort to implement the makeover proposal. Speaking as one of the past authors of the manual, I look forward to hearing your thoughts. It is genuinely challenging to present this amount of material and explain its complexity, and there is no reason at all to consider any current arrangement as cast in stone. Thanks for thinking about this. Best wishes, Neil

Re: Question about data structures

2020-11-23 Thread Neil Jerram
On Sun, 22 Nov 2020 at 18:49, Zelphir Kaltstahl wrote: > Hello Guile Users! > > I have a question about data structures. > > Recently I read a file and the lines in the file would become a list in > my Guile program. The file was not super big or anything. However, I > usually try to avoid having

Re: Questions about (open-input-output-pipe

2020-11-10 Thread Neil Jerram
ding the "wg pubkey" output from it. Alternatively, it might be buffering, i.e. the private key hasn't yet reached "wg pubkey". In that case (force-output port) might help. Best wishes, Neil On Tue, 10 Nov 2020 at 08:51, luhux wrote: > Hello everyone > > I am a

Re: Need help starting a project in Guile - distributed DE / GUI toolkit using Wayland

2020-03-23 Thread Neil Jerram
ace [1]. For an example, see [2], although that particular code might be outdated as I haven't run it for a while. [1] https://www.gnu.org/software/guile/manual/html_node/Foreign-Function-Interface.html#Foreign-Function-Interface [2] http://git.savannah.nongnu.org/cgit/ossaulib.git/tree/glib/dbus.scm Best wishes, Neil

Re: Stepping back up as a co-maintainer

2019-10-17 Thread Neil Jerram
I'm afraid arguing by analogy or proverb rarely helps, because the analogy is usually inaccurate in some way. Also, what about Horchata? :-) On Thu, 17 Oct 2019 at 11:53, zx spectrumgomas wrote: > Let's hope so. But in Spain we have a proverb: "Blanco y en botella, > leche". "White and bottle -

Re: Weird Guile Scheme Behaviour

2019-09-13 Thread Neil Jerram
Correct usage of append! usually requires (set! x (append! x )), despite what you might think from the !. I haven't read the rest of your email carefully, but I wonder if that will make a difference? Best wishes, Neil On Fri, 13 Sep 2019 at 13:39, Philip K. wrote: > > Hi

Re: Using shtml with htmlprag - output of shtml->html is different to some given HTML

2019-09-06 Thread Neil Van Dyke
Kenan Toker wrote on 9/6/19 12:09 AM: > With that in mind, if I were to choose one of the 'distributions' of htmlprag, is there one you yourself would pick? I suspect that the version in guile-lib (plus the patch I sent yesterday) is best. (Realistically, I probably can't work on anything be

Re: Using shtml with htmlprag - output of shtml->html is different to some given HTML

2019-09-05 Thread Neil Van Dyke
st breaking changes to it.) (Historical note: htmlprag was mostly written 18 years ago, when HTML was different in both standards and practice.  Today, I'd write the parser very differently, though I think there's a good chance that htmlprag will still work for one's purpose, with this change

Re: Using shtml with htmlprag - output of shtml->html is different to some given HTML

2019-09-04 Thread Neil Van Dyke
atop RnRS again, and hopefully advancing it.  `htmlprag` was the very first Scheme code I ever wrote, and was tested on many Scheme implementations, so porting `html-parsing` back from Racket first seems suiting, and probably very easy.) Neil V.

Re: shell script to start guile w/ repl

2019-03-06 Thread Neil Jerram
ge* (lookup-language 'nx-tcl)) >(top-repl) > > But this fails. Any hints? Just guessing, but perhaps: (fluid-set! *current-language* 'nx-tcl) or (fluid-set! *current-language* (lookup-language 'nx-tcl)) ? Neil

Re: [ANN] Guile Hall Release (v0.2)

2019-02-16 Thread Neil Jerram
on the Gitlab site, and it looks like it would be if you named it README.org. Is that something you're already aware of? Thanks, Neil

Re: how to use gsl with the guile ffi

2018-12-28 Thread Neil Jerram
= -1 ENOENT (No such file or directory) I'm afraid I don't know any more, e.g. about whether libgsl.la _should_ be needed here. Neil

Re: how to use gsl with the guile ffi

2018-12-28 Thread Neil Jerram
lcblas. > so, it could be a more basic issue, but i dont know how to proceed. You could run under strace to confirm which files are being looked for, and which of those are not found. Regards, Neil

Re: Guile equivalent to JS promises?

2018-12-10 Thread Neil Jerram
re the JS dev want multiple threads to > read stuff asynchroniusly at the same time? > > -- > Cheers > Swedebugia I don't know JS promises, but have you seen https://www.gnu.org/software/guile/manual/html_node/Delayed-Evaluation.html? Regards, Neil

Re: Beginner questions

2018-11-28 Thread Neil Jerram
Catonano writes: > Neil, > > Il giorno lun 19 nov 2018 alle ore 10:02 Neil Jerram < > n...@ossau.homelinux.net> ha scritto: > >> >> >> On 18 November 2018 19:33:31 GMT, Catonano wrote: >> >Il giorno lun 29 ott 2018 alle ore 22:58 swedebugia >&g

Re: Beginner questions

2018-11-19 Thread Neil Jerram
d how to prompt for them. The command loop entry point is at http://git.savannah.nongnu.org/cgit/ossaulib.git/tree/ossau/command-loop.scm and the dependency modules are all included in that git repo. Best wishes, Neil

Re: How to pass the address of an pointer object to c?

2018-04-01 Thread Neil Jerram
do it in scheme, otherwise I have to wrap every c functions. > > Thanks. :) Would it work for you to use `%null-pointer' ? >From `(guile) Foreign Variables': -- Scheme Variable: %null-pointer A foreign pointer whose value is 0. Best wishes, Neil

Re: Signals / Messages / Events / ...?

2018-01-03 Thread Neil Jerram
On 03/01/18 15:11, Christopher Howard wrote: On Wed, 2018-01-03 at 11:53 +, Neil Jerram wrote: Well, one Lispy mechanism in that area is hooks.  For example, from some of my old code: ;; Changes to modem registration state are indicated by calling this ;; hook with args STATE and

Re: Signals / Messages / Events / ...?

2018-01-03 Thread Neil Jerram
te properties)   (run-hook registration-hook state properties)) Does that serve your purpose at all? Best wishes - Neil

Re: Mes 0.8 released

2017-06-26 Thread Neil Jerram
Best wishes - Neil    Original Message   From: Jan Nieuwenhuizen Sent: Monday, 26 June 2017 11:22 To: Neil Jerram Cc: guile-user@gnu.org; guix-de...@gnu.org; epsilon-de...@gnu.org Subject: Re: Mes 0.8 released Neil Jerram writes: Hi Neil! > In your bootstrap path, what is the step after Mes?‎

Re: Mes 0.8 released

2017-06-26 Thread Neil Jerram
Hi Jan, In your bootstrap path, what is the step after Mes?‎ I guess it would be using mescc to compile some C program - but if that is right, which program?  Regards - Neil    Original Message   From: Jan Nieuwenhuizen Sent: Sunday, 25 June 2017 17:40 To: guile-user@gnu.org Cc: guix-de

Re: Multiple values passed as single argument to procedure

2017-06-12 Thread Neil Jerram
On 12/06/17 09:55, Neil Jerram wrote: On 12/06/17 09:19, Chris Marusich wrote: I think I'm missing something here. In (list (f)), the call to f certainly looks like it's happening at a position that one might intuitively call a "tail" position. So, in this case, what disqu

Re: Multiple values passed as single argument to procedure

2017-06-12 Thread Neil Jerram
of tail position are (begin ... (f)) and (if (f)) The case you mentioned, (list (f)), is probably the simplest example of a non-tail position, because something very clearly does need to be done to the return value of (f): it needs to be inserted into a newly allocated list. Regards - Neil

Re: Two variables that are linked together by an heuristic (constraint programming?)

2017-04-26 Thread Neil Jerram
Perhaps by making 'cursor' relative to 'view'? Then you could always declare / assert that  (>= cursor-x 0) (< cursor-x (screen-width)) ; and similarly for cursor-y ‎    Neil    Original Message   From: Amirouche Boubekki Sent: Tuesday, 25 April 2017 10:40 T

Re: ?-suffix for booleans... good-idea? or bad-idea?

2017-04-25 Thread Neil Jerram
! properties '(red narrow)) And in that case the question about '?' would disappear. Regards, Neil On 25/04/17 04:43, Alex Vong wrote: Good question! I can't decide as well. I want to know how people think about it. In a lazy language, a variable is a 0-ary thunk, while

Re: Getting started with tekuti

2017-04-06 Thread Neil Jerram
The attached seems to help. With that, the stdout no longer shows errors, and I see a sensible-looking web UI at http://localhost:8080 and http://localhost:8080/admin. On 06/04/17 22:52, Neil Jerram wrote: Hey Andy, I'm just trying to get started with tekuti, but am hitting problems

Getting started with tekuti

2017-04-06 Thread Neil Jerram
Hey Andy, I'm just trying to get started with tekuti, but am hitting problems which look like they're associated with having no content yet. I've appended a transcript below - can you see what's wrong? Thanks - Neil neil@neil-laptop:~/SW/tekuti$ ./env src/tekuti ;

Re: [ANN] guile-sdl2 0.2.0 released

2017-01-21 Thread Neil Jerram
> Home page: https://dthompson.us/pages/software/guile-sdl2.html I get 404 for that URL, and also if I add 'www.'.

Re: Missing (ice-9 debugging) files in guile 2.1.4?

2016-10-11 Thread Neil Jerram
, the innards of Guile changed so much as to invalidate the (ice-9 debugging) stuff. I'm out of the loop now, so not sure how best to do the things that (ice-9 debugging) used to do; but at least one of the ingredients is the excellent geiser.el mode for Emacs. Neil

Re: Presentation of traversi framework via graph recommendations

2016-09-09 Thread Neil Jerram
I got lost at the point of looking up the genres for Toy Story; why does that involve graph traversal?  Probably it would help to add a bit into the blog to explain how the movie information is mapped into a graph.    Original Message   From: Amirouche Boubekki Sent: Friday, 9 September 2016 0

Re: Presentation of traversi framework via graph recommendations

2016-09-09 Thread Neil Jerram
Your blog includes: ‎Mind the fact that -ref procedures have no ! at the end which means they return a new record. I think that should be -set instead of -ref    Neil    Original Message   From: Amirouche Boubekki Sent: Friday, 9 September 2016 07:32 To: Guile User Subject: Presentation of

Re: Using . in module names

2016-06-03 Thread Neil Jerram
example of what isn't working. It's not clear to me if you mean (define-module (.) ...) or (define-module (.something) ...) or (define-module (something . else) ...) etc. Regards, Neil

Re: gpsd lib

2016-06-02 Thread Neil Jerram
phones, I might have done what you're asking. But no; the gpsd clients, and the protocol itself, are pretty capable, and so far I've been able to use those to do everything that I (think I) needed.  Regards,   Neil  (from phone, hence the top posting)   Original Message   From: Mike Gra

Re: load-extension fails with "file not found" message

2016-05-12 Thread neil
I don't know, but this rings a bell. I suggest running under strace and looking at the stat syscalls, to see where Guile is looking. Neil (from a phone that only does top posting - sorry!) From: Panicz Maciej Godek Sent: Thursday, 12 May 2016 08:21 To: guile

Re: Using libnotify from Guile

2016-01-05 Thread Neil Jerram
On 05/01/16 09:40, Ludovic Courtès wrote: Neil Jerram skribis: I noticed you asked about libnotify on IRC Also note that glibc built for the Linux kernel provides wrappers for a bunch of inotify syscalls in : --8<---cut here---start->8--- $ objd

Using libnotify from Guile

2016-01-04 Thread Neil Jerram
%null-pointer) %null-pointer) I thought you might like that; note that you'll also need "aptitude install libnotify-dev", or your system's equivalent. Regards, Neil

Re: FOSDEM call for Guile related talks

2015-11-23 Thread Neil Jerram
Hi Ludo, On 19/11/15 14:25, Ludovic Courtès wrote: "Neil Jerram" skribis: Pjotr, I've made my submission now - please could you check if it looks correctly done? (I've never done a FOSDEM submission before...) I can confirm it’s in penta.fosdem.org, but I think you

RE: FOSDEM call for Guile related talks

2015-11-12 Thread Neil Jerram
Thanks, Alex and Ludo! Pjotr, I've made my submission now - please could you check if it looks correctly done? (I've never done a FOSDEM submission before...) Thanks, Neil -Original Message- From: guile-user-bounces+neil=ossau.homelinux@gnu.org [mailto:guile-us

Re: FOSDEM call for Guile related talks

2015-11-05 Thread neil
es.  Does that sound interesting?  Regards,        Neil    Original Message   From: Pjotr Prins Sent: Saturday, 31 October 2015 09:44 To: guile-user@gnu.org Subject: FOSDEM call for Guile related talks # GNU Guile devroom call for talks @FOSDEM 2016 For the first time ever, we have a GNU G

Re: Bytestructures: a "type system" for bytevectors

2015-09-07 Thread neil
Sorry for not mentioning this before, but have you seen make-c-struct and parse-c-struct at https://www.gnu.org/software/guile/manual/html_node/Foreign-Structs.html#Foreign-Structs ?   Original Message   From: Taylan Ulrich Bayırlı/Kammer Sent: Monday, 31 August 2015 14:47 To: guile-user@gnu.o

Re: How to create hygienic environments?

2015-06-20 Thread Neil Jerram
> ,q scheme@(guile-user)> (eval 'car (current-module)) $2 = # scheme@(guile-user)> (module-define! n 'car car) scheme@(guile-user)> (eval 'car n) $3 = # Hope that helps! Neil

Re: Shell-escape a string

2015-03-08 Thread neil
Needing the output is an independent concern, and means you should use (ice-9 popen) instead of system. open-pipe* is analogous to system*‎, in that it doesn't use a shell.  Regards,          Neil ‎   Original Message   From: Mark A. Hershberger Sent: Saturday, 7 March 2015 15:09 To

Re: WebSockets

2015-02-20 Thread neil
iding Web sockets in Artanis, his web server framework.    Original Message   From: David Thompson Sent: Friday, 20 February 2015 21:51 To: Neil Jerram; guile-de...@gnu.org; guile-user@gnu.org Subject: Re: WebSockets Digging up this old thread. :) Neil Jerram writes: > I'm interested in a

Re: Imagemagick and Guile

2015-01-11 Thread Neil Jerram
other suggestions that people have made, note that you could also use the Guile FFI to access ImageMagick's C API from Guile. Personally, I find using the FFI much more fun than writing a 'proper' Guile binding. Regards, Neil

Re: guile-2.0.11 installation on system with 2.0.5

2014-09-15 Thread Neil Jerram
On 2014-09-15 02:16, m...@netris.org wrote: Federico Beffa writes: Neil Jerram writes: This is just a guess, but what happens if you do this: $ LD_LIBRARY_PATH=/usr/local/lib /usr/local/bin/guile Regards, Neil With this it works! I notice that there is an /etc/ld.so.cache file

Re: guile-2.0.11 installation on system with 2.0.5

2014-09-14 Thread Neil Jerram
n provided by the Debian package. > > Am I doing something wrong? Is it possible to have two guile versions > on the same system? This is just a guess, but what happens if you do this: $ LD_LIBRARY_PATH=/usr/local/lib /usr/local/bin/guile Regards, Neil

Re: A couple of questions about goops method parameters

2014-09-07 Thread Neil Jerram
t; disabled status of button update automatically as the truthiness of the > conditions changes. (The former use-case is actually covered by "layout > constraints", but that's strictly limited to layouting.) IIRC, Metafont does that; but obviously it isn't intended as a general language. Are there more general languages that solve equations like this? Regards, Neil

Re: cannot compile: srfi-10 define-reader-ctor 'hash '#,(

2014-08-14 Thread Neil Jerram
On 2014-08-14 11:27, Taylan Ulrich Bayirli/Kammer wrote: Neil Jerram writes: I wonder about possibly having some magic that would automatically match certain top-level forms and evaluate them at compile time. The case for this for 'define-reader-ctor' feels quite strong. For the

Re: cannot compile: srfi-10 define-reader-ctor 'hash '#,(

2014-07-31 Thread Neil Jerram
'add-to-load-path' procedure and applied the magic to that. What do you think? Would that be too magical? Regards, Neil

Re: ossaulib dbus error

2014-07-29 Thread Neil Jerram
lieve an eval closure is what guile-gnome uses to lazily bind Scheme procedure names to the relevant underlying C code. Perhaps David Pirotte might comment more on that, as he is working a lot with guile-gnome now. Regards, Neil

Re: ossaulib dbus error

2014-07-23 Thread Neil Jerram
On 2014-07-22 19:46, Max wrote: 22.07.2014 19:05, Neil Jerram пишет: On 2014-07-22 17:39, Max wrote: OK, sorry to take your time on that attempt. What if you do "guile --debug test.scm" where test.scm has just the load-path appending and (use-modules (glib dbus)) ? If that sti

Re: ossaulib dbus error

2014-07-22 Thread Neil Jerram
On 2014-07-22 17:39, Max wrote: I've copied glib/ to neil/, replaced all the instances of glib with neil (except for libglib of course :) and tried to use (neil dbus) but the result is exactly the same - ERROR: no code for module (neil dbus) OK, sorry to take your time on that attempt.

Re: ossaulib dbus error

2014-07-22 Thread Neil Jerram
ce. If there is a conflict with guile-gnome, that should avoid it. Regards, Neil

Re: Learning Guile web. Stuck on returning an image.

2014-05-26 Thread Neil Jerram
ype . ,content-type)) content))) The problem here that 'content' contains binary data that can't be returned as is in an HTTP response. It needs to be encoded in one of the HTTP-supported encodings, and a corresponding Content-Encoding header added to the response. I think I investigated a little whether Guile's (web ...) modules could do this, or could easily be enhanced, but decided instead on the solution described above. Regards, Neil

Re: dbus introspection

2014-04-28 Thread Neil Jerram
On 2014-04-28 13:49, Max wrote: 27.04.2014 15:33, Neil Jerram пишет: I have some FFI-based client-side bindings in my library at http://git.savannah.gnu.org/cgit/ossaulib.git/. The (glib dbus) module exports procedures for - making a synchronous or asynchronous dbus call - registering a

Re: dbus introspection

2014-04-27 Thread Neil Jerram
now of. Should be quite easy to build on top of my client-side bindings, though. (Or on top of any set of client-side bindings.) Regards, Neil

Re: #:getter procedure returns unexpected value in GOOPS

2014-04-26 Thread Neil Jerram
ith GOOPS, so I'm not sure this is the right > behavior. Do you see this if you use #:init-value instead of #:init-form ? It sounds to me like #:init-value is what you really want, and I suspect you're seeing undefined behaviour that arises from giving an unparenthesized form ('42') to #:init-form. Neil

Re: WebSockets

2014-04-02 Thread Neil Jerram
[Now guile-user only, since that seems appropriate] On 2014-04-02 11:08, Nala Ginrut wrote: On Wed, 2014-04-02 at 10:29 +0100, Neil Jerram wrote: Hi there, I'm interested in adding support for WebSockets (http://tools.ietf.org/html/rfc6455) to Guile's web modules. Is anyone else

WebSockets

2014-04-02 Thread Neil Jerram
Hi there, I'm interested in adding support for WebSockets (http://tools.ietf.org/html/rfc6455) to Guile's web modules. Is anyone else interested in - or possibly already working on - that? Thanks, Neil

'or' and multiple values

2014-03-25 Thread Neil Jerram
ntion tail position, but only in passing, and it isn't obvious to me why that restriction should exist. Thanks, Neil

Re: ‘with-exception-handler’ rationale

2014-03-07 Thread Neil Jerram
th-exception-handler is what SRFI-34 specifies. Alternatively you can use SRFI-34's 'guard' form, which encapsulates a pattern like that. Hope that helps, Neil

Re: Article about GNU Guile and GOOPS

2014-03-04 Thread Neil Jerram
constructors and dynamic instantiation of OO primitives. I hope it'll save somebody else some time one day. Any comments and suggestions are welcome. Regards Jan [1] http://wedesoft.de/oop-with-goops.html Hi, that's a nice blog, especially the illustrations. :-) Thanks, Neil

Re: FFI bindings for FFTW

2014-02-25 Thread Neil Jerram
d xxx->pointer conversion for some of its arguments. Regards, Neil

Re: Guile, Emacs, and smartphones

2011-06-22 Thread Neil Jerram
o soonish.) > (Somehow I doubt there is a phone keyboard that'll let me type > +). The Freerunner SHR terminal (on-screen) keyboard does; also matchbox-keyboard. It isn't exactly easy, though, given how small the keys are, and close to the bevel that surrounds the screen. Regards, Neil

Re: gEDA now supports Guile 2.0! (And an issue).

2011-06-04 Thread Neil Jerram
ut-port) "a" "b" '() '()) #t)) ERROR: In procedure make-stack: ERROR: In procedure a: b $3 = #t Neil

Re: Is there any approach to define "private" vars in GOOPS?

2011-04-01 Thread Neil Jerram
the #:slot-set! option of your virtual 'score slot. I've assumed that (score obj) provides the real underlying storage for the virtual slot; it could be a (make-object-property), for example. Unfortunately I'd say this adds up to an over-contrived solution; but hopefully it's still useful to show how it _could_ be done. Regards, Neil

Re: Serving files with guile web server

2011-03-19 Thread Neil Jerram
request))) > > I hope it's readable :-) Certainly, it looks good. Where does mime-type-ref come from, though? Perhaps that could be wrapped up as `static-file-response' (or a better name if you can think of one) and added to (web server). Regards, Neil

Re: Serving files with guile web server

2011-03-18 Thread Neil Jerram
I guess using the efficient sendfile) without bothering modlisp or Guile, but dynamic stuff can be routed via modlisp to Guile. Regards, Neil

Re: regex-split for Guile

2011-03-11 Thread Neil Jerram
William James writes: > (define (regex-split regexp str . options) Thanks for posting that! For fun/interest, here's an alternative implementation that occurred to me. Neil (use-modules (ice-9 regex) (ice-9 string-fun)) (define (regex-split regex str . opts

Re: Problems to install Guile 2.0.0

2011-03-09 Thread Neil Jerram
more information about why it is failing, that would help. Regards, Neil

Re: Is there any approach to define "private" vars in GOOPS?

2011-03-09 Thread Neil Jerram
- perhaps based on (current-module) - it should be possible to enforce this by defining a new kind of slot #:allocation and putting that runtime check in the #:slot-ref function. Regards, Neil

Re: GNU Guile 1.9.15 released — last call before 2.0!

2011-02-02 Thread Neil Jerram
l...@gnu.org (Ludovic Courtès) writes: > We are pleased to announce GNU Guile release 1.9.15. This is the last > pre-release before the 2.0 release, due on Feb. 16th! Wow, excellent job, and exciting times. Well done to everyone involved! Neil

Re: Modules

2011-02-01 Thread Neil Jerram
decent shell, I guess that's actually OK. Neil

Re: Modules

2011-01-29 Thread Neil Jerram
s the current directory? Note that .go files are > installed to e.g. /usr/lib64/guile, while source is in /usr/share/guile. Good point, thanks for the reminder about that. But (for 1.9/2.0) `include' will always be well-defined and reliably relative to the containing file's name, won't it? Regards, Neil

Re: Modules

2011-01-29 Thread Neil Jerram
Neil Jerram writes: > Marek Kubica writes: > >> What about "the same directory that the file is in"? The point is, when >> writing scripts that become larger than one file, splitting them into >> modules becomes immensely painful because the modules cannot fi

Re: Modules

2011-01-29 Thread Neil Jerram
is has the effect of adding the parent of the script-containing directory to the load path. Part of the complexity is supporting both 1.8 and 1.9/2.0. For 1.9/2.0 support only, I believe it could be simplified by changing `load' to `include', and retaining only the body of the `eval-when'. Regards, Neil

Re: inconsistency between let and lambda

2011-01-15 Thread Neil Jerram
(lambda (x) (set! go x) 2 > ((1 . 2) (100 . 2) (1 . 2) (100 . 2)) > guile> For what it's worth, my current Guile, from Git post 1.9.14, gives ((1 . 2) (100 . 2) (1 . 2) (100 . 2)) for both cases. Neil

Re: Macro expansion

2011-01-15 Thread Neil Jerram
() (begin (loop ((define i 0)) (< i 10) ((set! i (+ i 1))) ((display i))) (display "done!") (+ 1 2) ) )) 0123456789done!$5 = 3 Regards, Neil

Re: How to change prompt and value-history in guile 1.9.14 init file ~/.guile

2010-12-23 Thread Neil Jerram
pt-set! prompt) (repl-default-option-set! 'prompt prompt)) Regards, Neil

Re: FW: ERROR: file: "libguilereadline-v-17", message: "The specified module could not be found"

2010-12-21 Thread Neil Jerram
he specified module could not > be found." > Is there a configuration knob that needs to be tweaked to tell guile where to > find this file? On Linux I think you'd need either "export LD_LIBRARY_PATH=/usr/local/lib", or to run "sudo ldconfig" after installing Guile. I'm afraid I don't know what that equates to on MinGW. Neil

Re: Backquote simplification

2010-12-11 Thread Neil Jerram
Hi Hans, To reply quickly to one point in your email... (I'll ponder the rest later.) Hans Aberg writes: > On 11 Dec 2010, at 01:25, Neil Jerram wrote: > >> In the hope that these questions might be useful to at least one of >> us... > > I do not know what that me

Re: Backquote simplification

2010-12-10 Thread Neil Jerram
et this effect, I need a function g that can call improper > lists (g x_1, ..., x_k . y), where y is a list. As Dan pointed out, that is not an improper list. It's a proper list. In the hope that these questions might be useful to at least one of us... Neil

Re: Backquote simplification

2010-12-10 Thread Neil Jerram
been reading your emails, but I'm afraid I have no idea what you are trying to do. Perhaps you could step back and explain that overall, before continuing with details. Neil

Re: new sqlite binding

2010-12-07 Thread Neil Jerram
what do I know? for all I know, maybe g-wrap morphed into ffi). > > As far as I know, g-wrap is still active, and part of the dev chain for guile-gnome. Neil

Re: Trouble building Guile 1.9.13

2010-12-05 Thread Neil Jerram
f51f0> #))) > make[3]: *** [guile-procedures.texi] Error 1 > > > Am I missing something? In my tree, guile-tools is in the "meta" subdirectory, and I don't see where a path of ".../guile/guile-tools" could come from. Did you "git clone" into a new directory? Neil

Re: A few patches for guile-www

2010-12-03 Thread Neil Jerram
re and suitable ChangeLog entries. I'm happy to explain more if they're not immediately obvious... Neil

Re: new sqlite binding

2010-12-03 Thread Neil Jerram
eader file(s). Hopefully something like SWIG or GCC modularisation might give us that in the future. Neil

Re: GOOPS:Can I just overload "slot-set!" under #:virtual and let alone "slot-ref" ?

2010-12-03 Thread Neil Jerram
you invented something like `#:allocation #:custom-setter', it would only apply to slots that had `#:allocation #:custom-setter' in their slot definition. Regards, Neil

Re: GOOPS:Can I just overload "slot-set!" under #:virtual and let alone "slot-ref" ?

2010-12-02 Thread Neil Jerram
than plain slot-set!, but which uses slot-set! internally after it has done the custom processing. You could also define a new kind of #:allocation to implement the behaviour you're looking for, and a metaclass for classes that can contain that kind of slots, and write a compute-get-n-set method for that metaclass ... but that's quite a bit more complex. Regards, Neil

Re: GOOPS:Can I just overload "slot-set!" under #:virtual and let alone "slot-ref" ?

2010-12-02 Thread Neil Jerram
quot;slot-ref", that would be recursively infinite. > How can I deal with this? Any help will be appreciated, thanks! > I'm not sure this is what you mean... but yes, your #:slot-ref lambda can do a slot-ref on normal slots, such as "cache", e.g.: #:slot-ref (lambda (o) (car (slot-ref o 'cache))) Neil

Re: Generating compiled scm (.go) files as part of LilyPond build

2010-11-28 Thread Neil Jerram
...), and that the path for compiled files needs to be put in %load-compiled-path. Would you like to try that? If this turns out to be correct, I'll update the doc for primitive-load-path to cover it - so please report back. Regards, Neil

Re: new sqlite binding

2010-11-28 Thread Neil Jerram
ations to use the new FFI. Although probably also keeping the existing glue code implementation, as an alternative to support older Guiles. Regards, Neil

Re: libexif binding

2010-11-28 Thread Neil Jerram
. Really cool to see these quick new bindings using the 1.9/2.0 FFI! Neil

Re: Help needed debugging segfault with Guile 1.8.7

2010-11-28 Thread Neil Jerram
Thank you, it certainly did. To conclude, I'll just note that in the Guile 2.0 future we won't have such difficult problems, because of using libgc - which will automatically find active references anywhere in the whole application. (And of course I understand that your code still needs to work with Guile 1.8.x now.) Regards, Neil

A few patches for guile-www

2010-11-25 Thread Neil Jerram
ase ask if not. (For an example modlisp server and web page script that work with this, see http://git.savannah.gnu.org/cgit/ossaulib.git/tree/scripts/modlisp-server and http://git.savannah.gnu.org/cgit/ossaulib.git/tree/scripts/modlisp-example.) Neil >From 35906ccf32c502eb34190960542

Re: ERROR: Bad define placement

2010-11-22 Thread Neil Jerram
r code - that should help to avoid introducing such characters. 2. I used emacs's indent-region function to indent the code conventionally. This has no effect on the operation of the code, but makes it easier for me and others to read. Fingers crossed... Neil barry.scm Description: Binary data

Re: ERROR: Bad define placement

2010-11-17 Thread Neil Jerram
esn't allow that define where you currently have it - see R5RS section 5.2. (At least, it's 5.2 in the copy of R5RS that comes with Guile; I haven't checked other versions.) Neil

Re: Help needed debugging segfault with Guile 1.8.7

2010-11-11 Thread Neil Jerram
bout what the problem is. Regards, Neil

  1   2   3   4   5   6   >