Re: A Guile debugger workgroup?

2022-11-29 Thread Neil Jerram
I wrote something called GDS, back in 1.8 days, that combined some of the Emacs interaction features that we now have with Geiser, with step-by-step debugging and breakpoints. You can read about that here:

Re: a cookbook

2022-02-19 Thread Neil Jerram
On Wed, 16 Feb 2022 at 21:14, Catonano wrote: > > > > Il giorno mer 16 feb 2022 alle ore 10:54 Neil Jerram > ha scritto: >> >> >> >> >> > As for you creating a web site, I'd prefer such a website to be a >> > communitarian effort, rat

Re: a cookbook

2022-02-16 Thread Neil Jerram
On Wed, 16 Feb 2022 at 09:04, Catonano wrote: > > Il giorno lun 14 feb 2022 alle ore 18:01 Vijay Marupudi > ha scritto: >> >> > Is there any interest/possibility to have such a cookbook hosted >> > within the Guile official documentation (as it is for Guix) ? >> >> I personally think that a

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: Distributed verification of release tarballs using Guix? (was Re: Releasing 2.2.5?)

2019-06-21 Thread Neil Jerram
On Thu, 20 Jun 2019 at 22:56, Mark H Weaver wrote: > Hi Ludovic, > > Ludovic Courtès writes: > > > Mark H Weaver skribis: > > > >> I've finished my updates to the NEWS file in preparation for the 2.2.5 > >> release. Feel free to reorganize, edit, or expand on the NEWS entries > >> as you

Re: make-c-struct and pointer->string

2019-03-29 Thread Neil Jerram
On Fri, 29 Mar 2019, 09:46 David Pirotte, wrote: > Hi again, > > > ... > > Following your explanation and example, I tried this and thought it > would work > > then, but it also failed: > > > GNU Guile 2.2.4.1-cdb19 > > > Enter `,help' for help. > > scheme@(guile-user)> ,use (system foreign) > >

Re: make-c-struct and pointer->string

2019-03-28 Thread Neil Jerram
On Thu, 28 Mar 2019 at 15:15, Amirouche Boubekki wrote: > > Eventually, I can reproduced the issue with guile-next from guix: > > scheme@(guile-user) [1]> (make-c-struct (list '* '*) (list (string->pointer > "hello ") (string->pointer "there!"))) > $5 = # > scheme@(guile-user) [1]>

Re: Simple picture language

2018-03-31 Thread Neil Jerram
Matt Wette writes: > On 03/27/2018 05:40 AM, Thompson, David wrote: >> On Mon, Mar 26, 2018 at 5:51 PM, Ricardo Wurmus wrote: >>> Hi Guilers, >>> >>> I wrote a simple SVG-based picture language. >> Wow! I never would have thought to use sxml to generate

Re: a draft for the top of the NEWS for 2.0.12

2016-06-23 Thread Neil Jerram
Nice work! I noted a couple of typos : - documention should be documentation  - miss behaviour should be misbehaviour.     Neil   Original Message   From: David Pirotte Sent: Wednesday, 22 June 2016 21:46 To: guile-devel Subject: a draft for the top of the NEWS for 2.0.12 Heya, Here below a

Re: Fw: guile-gnome, devel: corba test suite fails if using scm_make_vtable

2014-09-05 Thread Neil Jerram
On 2014-09-04 23:37, David Pirotte wrote: Heya, ping! I'm pretty sure it is a guile core and/or a test suite problem, not related to corba itself [which as a matter of fact I do not know and do not use either :)] I'd like to solve this problem before to release a

Re: scm_c_catch question

2014-08-20 Thread Neil Jerram
On 2014-08-18 03:14, Ian Grant wrote: Hi Neil, Sorry, I am replying to my message because I'm not on guile-devel, it seems. I'll join later. Thanks for clarifying that. The misleading statement in the manual is just above the paragraph you quote: on

Re: scm_c_catch question

2014-08-16 Thread Neil Jerram
On 2014-08-16 00:13, Ian Grant wrote: Hello Guile types, Hi Ian, I have been experimenting with using libguile from within another byte-code interpreter: Moscow ML. I have a version of Moscow ML with an GNU lightning interface in which I JIT compile primitives to give access to libguile

Re: MinGW vs. c-api.test

2014-06-13 Thread Neil Jerram
Eli Zaretskii e...@gnu.org skribis: From: l...@gnu.org (Ludovic Courtès) Cc: guile-devel@gnu.org Date: Thu, 12 Jun 2014 21:48:48 +0200 +(define %null-device + ;; On Windows (MinGW), /dev/null does not exist and we must instead + ;; use NUL. Note that file system procedures

Re: MinGW vs. c-api.test

2014-06-13 Thread Neil Jerram
On 2014-06-13 17:19, Eli Zaretskii wrote: From: l...@gnu.org (Ludovic Courtès) CC: Eli Zaretskii e...@gnu.org, guile-devel@gnu.org Date: Fri, 13 Jun 2014 18:04:57 +0200 Like (string-match ^[a-zA-Z]:[/\\] (getcwd)) ? Yes. But my Git Bash shell on Windows (at work) gives me paths like /drive

Re: MinGW vs. c-api.test

2014-06-10 Thread Neil Jerram
On 2014-06-09 20:32, l...@gnu.org wrote: What’s the name of /dev/null on Windows? NUL For example: C:\Users\njecho hello NUL C:\Users\nj Regards, Neil

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

Re: Memory accounting in libgc

2014-03-13 Thread Neil Jerram
On 2014-03-12 06:57, Mark H Weaver wrote: Andy Wingo wi...@pobox.com writes: How does this affect libgc? First of all, it gives an answer to the question of how much memory does an object use -- simply stop the world, mark the heap in two parts (the first time ignoring the object in

Re: MinGW patches

2014-02-22 Thread Neil Jerram
Eli Zaretskii e...@gnu.org writes: For my convenience, I prefer to prepare a real ChangeLog entry, then copy that to a commit message, which leaves a ChangeLog file around. May I add ChangeLog to libguile/.gitignore, so that ChangeLog is not flagged by git status? In case you don't already

Re: Docstring as only form in a function

2014-02-20 Thread Neil Jerram
On 2014-02-20 16:59, Arne Babenhauserheide wrote: Hi, I recently experimented with docstrings, and I stumbled over not being able to define a function which only has a docstring as body: (define (foo) bar) (procedure-documentation foo) ⇒ #f Adding a form makes the string

Re: Guile Emacs: Elisp nil/t and Guile #nil/#t

2013-08-03 Thread Neil Jerram
taylanbayi...@gmail.com (Taylan Ulrich B.) writes: Hi, It occurred to me that nil and t are basically just symbols in Elisp, just with some magical properties. Like any symbol, they respond to symbolp, have a plist, value and symbol slot (although the value slot is immutable), etc.

Re: always O_BINARY?

2013-02-24 Thread Neil Jerram
Andy Wingo wi...@pobox.com writes: Hi, Just thinking aloud here -- Windows has this O_BINARY thing that translates CRLF to LF when reading, and LF to CRLF when writing. It seems to me to be a useless thing. We already have our own i/o abstractions and should deal with CRLF vs LF in

Re: byte-order marks

2013-01-29 Thread Neil Jerram
Andy Wingo wi...@pobox.com writes: What do people think about this attached patch? Andy From 831c3418941f2d643f91e3076ef9458f700a2c59 Mon Sep 17 00:00:00 2001 From: Andy Wingo wi...@pobox.com Date: Mon, 28 Jan 2013 22:41:34 +0100 Subject: [PATCH] detect and consume byte-order marks for

Re: byte-order marks

2013-01-29 Thread Neil Jerram
Andy Wingo wi...@pobox.com writes: On Tue 29 Jan 2013 20:22, Neil Jerram n...@ossau.homelinux.net writes: (define (read-csv file-name) (let ((s (utf16-string (get-bytevector-all (open-input-file file-name)) 'little))) ;; Discard possible byte order mark

Re: Running non-scheme scripts: some thoughts

2012-07-12 Thread Neil Jerram
William ML Leslie william.leslie@gmail.com writes: For most entry-points, there is no extension. When you install your program, you normally install it as /usr/bin/foo, rather than /usr/bin/foo.[ss|scm|py|js|whatever]. This is the motivation for guile-foo symlinks or --lang options. I

Re: a few proposed patches

2012-05-21 Thread Neil Jerram
Ken Raeburn raeb...@raeburn.org writes: * Require libgc 7.2 or better. Too often the fix to flaky problems seems to be try updating to the latest libgc and see if that fixes it, so let's just require it. Or is 7.1 really *that* consistently reliable for our use cases on some platforms? 7.2

Re: our benchmark-suite

2012-05-19 Thread Neil Jerram
Andy Wingo wi...@pobox.com writes: Neat :) (Do you pngcrush these? They seem a little slow to serve.) I just tried running pngcrush on all the .pngs, and didn't get more than 6-8% reduction. So unfortunately it doesn't look like that would help much. Thanks for the idea though! Neil

Re: Making every goops object applicable

2012-05-15 Thread Neil Jerram
Mark H Weaver m...@netris.org writes: Krister Svanlund krister.svanl...@gmail.com writes: For example an instance of a class inheriting a class that inherits applicable-struct that defines 'procedure is not applicable. Looking at the code, it is clear that in order for a GOOPS instance to

Re: our benchmark-suite

2012-05-04 Thread Neil Jerram
For http://ossau.homelinux.net/~neil I do still have all of the raw data including iteration counts, so I could easily implement dividing by the iteration count, and hence allow for future iteration count changes. Is there any downside from doing that? (I don't think so.) No, I guess. And

Re: our benchmark-suite

2012-04-28 Thread Neil Jerram
l...@gnu.org (Ludovic Courtès) writes: My proposal is to rebase the iteration count in 0-reference.bm to run for 0.5s on some modern machine, and adjust all benchmarks to match, removing those benchmarks that do not measure anything useful. Sounds good. However, adjusting iteration counts

Re: Comments on ‘wip-nio’

2012-03-25 Thread Neil Jerram
Andy Wingo wi...@pobox.com writes: On Thu 22 Mar 2012 22:36, Neil Jerram n...@ossau.homelinux.net writes: It seems like the module has to anticipate the main loop infrastructure that any using programs will use - which isn't a nice solution. How about, you write your code in such a way

Re: Comments on ‘wip-nio’

2012-03-22 Thread Neil Jerram
l...@gnu.org (Ludovic Courtès) writes: Hi, Nala Ginrut nalagin...@gmail.com skribis: On Thu, Mar 22, 2012 at 6:39 AM, Ludovic Courtès l...@gnu.org wrote: Hello, I had a quick look at ‘wip-nio’, and here are initial comments. • epoll is Linux-specific. Any idea how a more

Re: Build/performance trouble?

2012-03-16 Thread Neil Jerram
of completing (on my build machine) within a day. Hence for now I'm going to disable the master build. Neil Jerram n...@ossau.homelinux.net skribis: Also, looking at the benchmark graphs at http://ossau.homelinux.net/~neil/bm_master_i.html, there's a bunch of benchmarks related to latin-1 / UTF-8

Re: Trouble using (current-filename)

2012-03-15 Thread Neil Jerram
Noah Lavine noah.b.lav...@gmail.com writes: Hello, What ever happened to this issue? Is it considered resolved now, or is there more to do? For my use case it's resolved, in the sense that I really needed a runtime directory that may not be the same as the source compilation location; and

Build/performance trouble?

2012-03-15 Thread Neil Jerram
FYI, something seems awry in my automatic daily Guile build. I noticed that the build machine is spending much longer churning away than it normally does. Today I found that this is while building the master branch, and that it apparently spent all day trying unsuccessfully to GUILEC

Re: Build/performance trouble?

2012-03-15 Thread Neil Jerram
Neil Jerram n...@ossau.homelinux.net writes: FYI, something seems awry in my automatic daily Guile build. I noticed that the build machine is spending much longer churning away than it normally does. Today I found that this is while building the master branch, and that it apparently spent

Re: Dotted pair call argument

2012-02-21 Thread Neil Jerram
Mark H Weaver m...@netris.org writes: However, (f . (g x y)) is read as (f g x y), so it's impossible for 'eval' to distinguish these two cases. Unfortunately, (f g x y) has a very different meaning than (apply f (g x y)). The first means to apply 'f' to three arguments. The second means

Re: Trouble using (current-filename)

2012-02-21 Thread Neil Jerram
Sorry for chipping in late to this discussion. l...@gnu.org (Ludovic Courtès) writes: I think it’s often undesirable. Suppose you want to use ‘current-filename’ in an ‘assert’ macro, for instance: what you want is a hint, not an absolute path, since that path is likely to be invalid at the

Re: Trouble using (current-filename)

2012-02-21 Thread Neil Jerram
l...@gnu.org (Ludovic Courtès) writes: Hi Neil! Neil Jerram n...@ossau.homelinux.net skribis: Perhaps after all the right thing, for my use case, is something based on (car (command-line)) and (getcwd). I currently have this 'compatibility definition' for Guile 1.8.x: (define

Re: manual examples - self contained or not?

2012-02-21 Thread Neil Jerram
Nala Ginrut nalagin...@gmail.com writes: well, I don't believe in copy-paste code too. But my vote would be at least I can trust the official manual... I did think it would be nice, a while back, if we could implement a way of automatically checking that the examples in the manual are still

Re: Thread+GC issues on ARM

2012-02-13 Thread Neil Jerram
Rob Browning r...@defaultvalue.org writes: Though if it wasn't too difficult to come up with a reasonable patch, we could ask the Debian libgc maintainer to apply it to the older version. I don't yet know if there is such a patch. I can imagine a procedure for trying to find it: first git

Re: Thread+GC issues on ARM

2012-02-11 Thread Neil Jerram
Hi Rob, First of all, thanks for pushing 2.0.5 into Debian so quickly! Rob Browning r...@defaultvalue.org writes: Neil Jerram n...@ossau.homelinux.net writes: Rob Browning r...@defaultvalue.org writes: So do I understand correctly that in order for this to work, we'll first need

Re: Thread+GC issues on ARM

2012-02-11 Thread Neil Jerram
Neil Jerram n...@ossau.homelinux.net writes: On the assumption of using recent libgc git source, I'm still working on what Guile fixes, if any, are needed on top of that, for armel. I have a set of fixes that works, but it may not be a minimal set. It turns out that no Guile fixes are needed

Re: [PATCH] Doc: protecting procedure-pointer pointers from GC

2012-02-03 Thread Neil Jerram
l...@gnu.org (Ludovic Courtès) writes: Looks great! I had a glance at the E17 bindings, and I see that the API uses raw pointer objects; using “wrapped pointer types” would provide type checking, and a nicer UI if you add printers. :-) That's an excellent point; yes, I'll do that. Using

Re: guile contributor setup

2012-02-02 Thread Neil Jerram
Andy Wingo wi...@pobox.com writes: On Thu 02 Feb 2012 15:44, Catonano caton...@gmail.com writes: I'm considering the idea of trying to contribute some Scheme code to guile, and I'm running into some issues with emails, patches, git and the such. What's the common setup you people use ? I

Re: [PATCH] Doc: protecting procedure-pointer pointers from GC

2012-01-31 Thread Neil Jerram
Andy Wingo wi...@pobox.com writes: On Mon 30 Jan 2012 22:32, Neil Jerram n...@ossau.homelinux.net writes: Following debugging of a strange issue where oFono appeared to be sending a D-Bus signal from the wrong object, but I eventually realised that the problem was in my own code

Re: GNU Guile 2.0.4 released

2012-01-30 Thread Neil Jerram
l...@gnu.org (Ludovic Courtès) writes: ... and I forgot to bump the SONAME. :-/ I guess I have to push a 2.0.5 tarball now? Thoughts? I'm afraid I've forgotten the implications of that... But congratulations and thanks for the release anyway; for my FFI hacking I particularly appreciate

[PATCH] Doc: protecting procedure-pointer pointers from GC

2012-01-30 Thread Neil Jerram
Following debugging of a strange issue where oFono appeared to be sending a D-Bus signal from the wrong object, but I eventually realised that the problem was in my own code... Neil From 02d80ad14c3bb8f89d7ba807dac658be6dd06df1 Mon Sep 17 00:00:00 2001 From: Neil Jerram n

Re: add-relative-load-path ?

2012-01-23 Thread Neil Jerram
Andy Wingo wi...@pobox.com writes: Hi, On Mon 23 Jan 2012 16:45, l...@gnu.org (Ludovic Courtès) writes: Andy Wingo wi...@pobox.com skribis: (add-to-load-path (dirname (dirname (current-filename What about calling it ‘current-file-name’ instead? I sympathise with that too, although

Re: add-relative-load-path ?

2012-01-23 Thread Neil Jerram
Andy Wingo wi...@pobox.com writes: Hi Neil, Thanks for the feedback! On Sun 22 Jan 2012 00:17, Neil Jerram n...@ossau.homelinux.net writes: Thing 1 is that (current-filename) can return a relative filename, or a filename with a ./ in its middle [...] Would there be any downside from

Fun (system foreign) / D-Bus / oFono hacking

2012-01-21 Thread Neil Jerram
Just in case anyone else is interested in these areas... I had a really fun time today using the dynamic FFI to hack up Guile code to access oFono's D-Bus API. It's really great to be able to do this, even if it might be more efficient in the long run to write a proper C binding. I've attached

Re: add-relative-load-path ?

2012-01-14 Thread Neil Jerram
Andy Wingo wi...@pobox.com writes: Then in your script you would (add-relative-load-path .). Maybe we need an `add-to-load-path' form that handles the eval-when, actually, so it would be (add-to-load-path (dirname (current-source-filename))) or something like that. (We'd have to define

Thread+GC issues on ARM

2011-12-24 Thread Neil Jerram
Hi there! Just in case anyone else is looking at this too, I just wanted to announce that I'm investigating why the Debian Guile 2.0.3 fails to pass 'make check' on ARM, as can be seen here: https://buildd.debian.org/status/package.php?p=guile-2.0. Now that there's a Debian package for Guile 2.0

Re: WRITE linefeed

2011-06-22 Thread Neil Jerram
Ian Price ianpric...@googlemail.com writes: Hello guilers, There's a small aesthetic issue that's been bothering me for a while. Namely, newlines aren't treated like other escape sequences when printed with WRITE. scheme@(guile-user) (write \n) scheme@(guile-user) Now, I can see why

Re: [PATCH] Configure GMP to use GC allocation functions, remove bignum finalizers

2011-05-31 Thread Neil Jerram
l...@gnu.org (Ludovic Courtès) writes: Hi! Mark H Weaver m...@netris.org skribas: The main reason I haven't already pushed this patch is that there is a slight complication: when you register custom allocation functions for use by GMP, they get used for _all_ allocation, not just for

Re: [PATCH] Configure GMP to use GC allocation functions, remove bignum finalizers

2011-05-31 Thread Neil Jerram
Neil Jerram n...@ossau.uklinux.net writes: The application developer would know if they were using GMP other than via Guile, and in that case they'd choose to have GMP use GC allocation. Alternatively they might know that their application's use of GMP/Guile was not such as to generate lots

Re: [PATCH] Simplifying guile-tools

2011-05-26 Thread Neil Jerram
Andy Wingo wi...@pobox.com writes: On Tue 24 May 2011 00:23, Neil Jerram n...@ossau.uklinux.net writes: Neil Jerram n...@ossau.uklinux.net writes: [PATCH 1/5] Fix occurrances typos in getopt-long code and test [PATCH 2/5] Simplify getopt-long handling of option values, esp with multiple

Re: [PATCH] Simplifying guile-tools

2011-05-23 Thread Neil Jerram
Neil Jerram n...@ossau.uklinux.net writes: The end result is that guile-tools is a lot shorter and (IMO) sweeter. Here are the titles of the following patches. [PATCH 1/5] Fix occurrances typos in getopt-long code and test [PATCH 2/5] Simplify getopt-long handling of option values, esp

Re: Indexing Scheme and C identifiers separately

2011-05-20 Thread Neil Jerram
David Pirotte da...@altosw.be writes: Looking at 'Procedure Index', for example not really knowing what your looking for but presumably starting with letter 's', as a 'pure' scheme programmer, reaching scm-xxx, you'll have to hit more or less 33 times page down [depending on your display

Re: scheme problem!

2011-05-12 Thread Neil Jerram
Stefan Israelsson Tampe stefan.ita...@gmail.com writes: Somewhere in the program I have, (pk x) (pk (caar l)) (pk (equal? x (caar l))) It outputs ;;; (number) ;;; (number) ;;; (#f) #f is there more to this then meets the eye? /Stefan Well... scheme@(guile-user) (equal?

[PATCH] Emit a 1-based line number in error messages

2011-05-12 Thread Neil Jerram
* module/ice-9/boot-9.scm (exception-printers): Add 1 to the 0-based line number. --- module/ice-9/boot-9.scm |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/module/ice-9/boot-9.scm b/module/ice-9/boot-9.scm index 60d133f..6130f85 100644 --- a/module/ice-9/boot-9.scm

Re: [PATCH 5/5] Reveal guile-tools's inner simplicity...

2011-05-09 Thread Neil Jerram
Neil Jerram n...@ossau.uklinux.net writes: ...by not using its own-rolled getopt, and moving the `list' function to a separate script That one wasn't quite right, please refer to the attached instead. Neil From c106e51707004fb1549add9d1db59c0b45bfed18 Mon Sep 17 00:00:00 2001 From

[PATCH] Simplifying guile-tools

2011-05-08 Thread Neil Jerram
Hi there! While we were discussing the name of guile-tools, back in March, I wrote: I think I might find guile-tools (as is) less bothering if its built-in commands (help, version and list) were rewritten as scripts themselves. Then it would be clearer that the remaining code in guile-tools

[PATCH 3/5] Handle short option unclumping progressively, instead of all upfront

2011-05-08 Thread Neil Jerram
This is needed as a prerequisite for the following don't know how far through the command line we should go with unclumping. * module/ice-9/getopt-long.scm (expand-clumped-singles): Delete. (process-options): Add a loop variable to indicate how many elements at the start of `argument-ls' are

[PATCH 2/5] Simplify getopt-long handling of option values, esp with multiple occurrences

2011-05-08 Thread Neil Jerram
Basically, accumulate values in the `process-options' loop variables, instead of using set-option-spec-value! * module/ice-9/getopt-long.scm (option-spec): Delete the `value' slot. (process-options): Delete `val!loop' and just use `loop' everywhere instead. When adding an option spec to

[PATCH 1/5] Fix occurrances typos in getopt-long code and test

2011-05-08 Thread Neil Jerram
* module/ice-9/getopt-long.scm (process-options, getopt-long): Change to occurrences. * test-suite/tests/getopt-long.test (multiple occurrences): Same again. --- module/ice-9/getopt-long.scm |4 ++-- test-suite/tests/getopt-long.test |2 +- 2 files changed, 3 insertions(+), 3

[PATCH 4/5] Implement #:stop-at-first-non-option option for getopt-long

2011-05-08 Thread Neil Jerram
(For use by guile-tools) * module/ice-9/getopt-long.scm: Use (ice-9 optargs) so we can use define*. (process-options): Add stop-at-first-non-option parameter. When this is true, stop processing when we hit a non-option (so long as that non-option isn't something that resulted from the

[PATCH 5/5] Reveal guile-tools's inner simplicity...

2011-05-08 Thread Neil Jerram
...by not using its own-rolled getopt, and moving the `list' function to a separate script * meta/guile-tools.in: Use (ice-9 getopt-long). (directory-files, strip-extensions, unique, find-submodules, list-scripts): Deleted (and moved to new `list' file). (getopt): Deleted. (main): Use

Re: Queries about while doc and (ice-9 command-line)

2011-05-02 Thread Neil Jerram
Andy Wingo wi...@pobox.com writes: Does this code mean that we load the script twice, in the -ds case? I think so, yes; unfortunately. Fixed. Would this merit a quick 2.0.2, you think? I guess that would be better, if Ludo has time to make the release. Do we go interactive after seeing a

Queries about while doc and (ice-9 command-line)

2011-04-28 Thread Neil Jerram
Hi there, I was looking today at some recent commits, and noticed a few queries... In http://git.savannah.gnu.org/cgit/guile.git/commit/?h=stable-2.0id=91956a94fe6363cf69d574b56397962ec6ef4468: +@example +(while #f (error not reached)) @result{} #f +(while #t (break)) @result{} #t +(while #f

Re: Patch: New section Invoking Guile for chapter Programming in Scheme

2011-04-27 Thread Neil Jerram
l...@gnu.org (Ludovic Courtès) writes: It can be put in .dir-locals.el (info (emacs) Directory Variables). Yeah. In fact it is there, in the root .dir-locals.el, as 72. Is that sufficient? Oh right, should be enough, yes. OK, that's fine then; that means we'll naturally asymptote towards

Re: Patch: New section Invoking Guile for chapter Programming in Scheme

2011-04-27 Thread Neil Jerram
Mark Harig idirect...@aim.com writes: +The @var{function} is most often a simple symbol that names a function +that is defined in the script. It can also be of the form @code{(@@ +@var{module-name} @var{symbol})}, and in that case, the symbol is +looked up in the module named

Re: Patch: New section Invoking Guile for chapter Programming in Scheme

2011-04-26 Thread Neil Jerram
Hi Mark, FWIW, these patches look great to me; I just have two minor comments, inline below. It's great to have someone looking at the manual material with such a careful eye for detail. Just one meta-thing that occurred to me: can we all agree on a value for fill-column, so as to avoid

Re: Broken Mail Transport Agent at stelco.com.mv

2011-04-12 Thread Neil Jerram
Hi guys On 12 April 2011 10:55, Ludovic Courtès l...@gnu.org wrote: Hey! Andy Wingo wi...@pobox.com writes: On Sun 10 Apr 2011 00:09, Mark H Weaver m...@netris.org writes: postmas...@stelco.com.mv writes: This is an automatically generated Delivery Status Notification. Delivery to

Re: Guile 2.0 eating memory on ARM

2011-03-31 Thread Neil Jerram
nalaginrut nalagin...@gmail.com writes: I think guile on embedded device would be interesting since it has VM now. Also since it has the FFI - which means being able to access lots of libraries, without needing to prepare and cross-compile glue code. What kernel version your freerunner

Re: Guile 2.0 eating memory on ARM

2011-03-31 Thread Neil Jerram
l...@gnu.org (Ludovic Courtès) writes: Hello Neil, Neil Jerram n...@ossau.uklinux.net writes: I think I've successfully cross-compiled Guile (stable-2.0, e309f3bf9e) for my Freerunner phone. However, when I run it, it just keeps allocating memory until the OOM killer kills it: How much

Re: module/ prefix in /usr/local/lib/guile/2.0/ccache/ice-9/*.go

2011-03-31 Thread Neil Jerram
Andy Wingo wi...@pobox.com writes: It does matter, yes: that suffix is used for looking for a file within the load path, and obviously having module/ on the beginning isn't going to work. Good catch. You'll have to rebuild everything to get the right paths residualized. Pushed a fix to

Re: on the importance of names

2011-03-30 Thread Neil Jerram
Andy Wingo wi...@pobox.com writes: So! My new proposal is guild. guild update guild compile foo.scm guild install fmt Yes, that's nice. Neil

Re: proposal: enhance and rename guile-tools

2011-03-30 Thread Neil Jerram
Andy Wingo wi...@pobox.com writes: On Mon 21 Mar 2011 22:50, Neil Jerram n...@ossau.uklinux.net writes: - gel is short; and it's the name of Guile before it was Guile; and suggests sticking things together; and AFAIK isn't already being used for anything else; and has similar key

Re: exit dynamic wind

2011-03-30 Thread Neil Jerram
Andy Wingo wi...@pobox.com writes: | GENguile-procedures.texi | guile: uncaught throw to wrong-type-arg: (#f Wrong type (expecting ~A): ~S (exact integer (#t #catch-closure 9916c10 #catch-closure 9916be0)) ((#t #catch-closure 9916c10 #catch-closure 9916be0))) This, it turns out, was

[Neil Jerram] avoid running GC when SCM_I_CURRENT_THREAD is unset

2011-03-30 Thread Neil Jerram
[sorry, this should of course have been CC'd to the list too...] Hi Andy, I saw this change and couldn't fully understand it. Given that you ended up adding GC_disable() and GC_enable() around the GC_malloc() call, couldn't you just have done that without all the other changes from t- to t. ?

Re: avoid running GC when SCM_I_CURRENT_THREAD is unset

2011-03-30 Thread Neil Jerram
Andy Wingo wi...@pobox.com writes: Hi Neil! Adding guile-devel; I'm wrong a lot lately, and folks should know ;-) On Wed 30 Mar 2011 21:11, Neil Jerram n...@ossau.uklinux.net writes: I saw this change and couldn't fully understand it. Given that you ended up adding GC_disable

Re: Compilation error with stable-2.0 branch

2011-03-28 Thread Neil Jerram
Detlev Zundel d...@denx.de writes: Hi, compiling TOT of this branch (commit 9dadfa47b07548ff5cf3604067910c8aece93c42 [fix prompt in fix in single-value context compilation]) fails like this: make[2]: Entering directory `/opt/src/git/guile/libguile' make all-am make[3]: Entering

Re: [Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.0-124-g5f0d295

2011-03-28 Thread Neil Jerram
l...@gnu.org (Ludovic Courtès) writes: Hello, A few more thoughts... Andy Wingo wi...@pobox.com writes: On Fri 25 Mar 2011 18:58, l...@gnu.org (Ludovic Courtès) writes: Andy Wingo wi...@pobox.com writes: bdw-gc 6.8 compatibility (hopefully) Aarrrgh. The intent has always been to

Re: [Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.0-124-g5f0d295

2011-03-28 Thread Neil Jerram
l...@gnu.org (Ludovic Courtès) writes: 7.x. Best recommendation would be 7.2, which fixes several bugs, but it hasn’t been released yet, unfortunately. (Note in particular that Guile doesn't build with one of the most recent releases, 7.2alpha4. Really? What’s the problem with this one?

Re: Some simple build simplification patches

2011-03-25 Thread Neil Jerram
Andy Wingo wi...@pobox.com writes: On Mon 21 Mar 2011 23:19, Neil Jerram n...@ossau.uklinux.net writes: Following are 4 simple (I believe) patches that simplify the build. Plus the one at the end (#5) that is only very loosely related to this, because of its mentioning of the $GUILE variable

Re: exit dynamic wind

2011-03-24 Thread Neil Jerram
Andy Wingo wi...@pobox.com writes: I have pushed something that causes the stack to be unwound before exiting. Please let me know if you still see problems. Unfortunately, yes. Now when snarf-check-and-output-texi is run, I see: | GENguile-procedures.texi | guile: uncaught throw to

module/ prefix in /usr/local/lib/guile/2.0/ccache/ice-9/*.go

2011-03-23 Thread Neil Jerram
I noticed that the filename properties in installed .go files always begin with module/. Is this correct and, if not, does it matter? (For example, and-let-star.go has several occurrences of module/ice-9/and-let-star.scm where I'd expect just ice-9/and-let-star.scm.) Neil

Re: [PATCH 4/5] Inline the effect of am/pre-inst-guile

2011-03-22 Thread Neil Jerram
Jan Nieuwenhuizen janneke-l...@xs4all.nl writes: [in rearranged order...] -$(preinstguile) -l $(srcdir)/$(snarf_doc).scm -c \ +$(top_builddir_absolute)/meta/guile -l $(srcdir)/$(snarf_doc).scm \ + -c

Re: proposal: enhance and rename guile-tools

2011-03-21 Thread Neil Jerram
On 21 March 2011 12:16, Barry Fishman barry_fish...@acm.org wrote: Andy Wingo wi...@pobox.com writes: On Mon 21 Mar 2011 00:16, l...@gnu.org (Ludovic Courtès) writes: FWIW I’m happy with the verbose name and I fear the joke wouldn’t be to everyone’s taste.  I’d also be happy with a shorter

Re: proposal: enhance and rename guile-tools

2011-03-21 Thread Neil Jerram
Andy Wingo wi...@pobox.com writes: This is fun :) Here are a few threads the PLT folk had: http://thread.gmane.org/gmane.lisp.scheme.plt.devel/2540 http://thread.gmane.org/gmane.lisp.scheme.plt.devel/2693/focus=2715 http://thread.gmane.org/gmane.lisp.scheme.plt.devel/2775 Well

[PATCH 2/5] GUILE_FOR_BUILD is only needed by meta/guile.in, not by Makefiles

2011-03-21 Thread Neil Jerram
* configure.ac: Use AM_SUBST_NOTMAKE for GUILE_FOR_BUILD instead of AC_SUBST. --- configure.ac |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index 423ae99..d033420 100644 --- a/configure.ac +++ b/configure.ac @@ -1496,7 +1496,7 @@ if test

Some simple build simplification patches

2011-03-21 Thread Neil Jerram
Hi all, Following are 4 simple (I believe) patches that simplify the build. Plus the one at the end (#5) that is only very loosely related to this, because of its mentioning of the $GUILE variable, but I think is a useful cleanup anyway. For me, these are part of working towards understanding

[PATCH 3/5] Make explicit that GUILE_FOR_BUILD is only used when cross-compiling

2011-03-21 Thread Neil Jerram
* configure.ac (GUILE_FOR_BUILD): Change normal build value to 'this-value-will-never-be-used'. --- configure.ac |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index d033420..616bdda 100644 --- a/configure.ac +++ b/configure.ac @@ -1487,7

[PATCH 1/5] Remove unused definition of preinstguiletool

2011-03-21 Thread Neil Jerram
* am/pre-inst-guile (preinstguiletool): Removed. --- am/pre-inst-guile |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/am/pre-inst-guile b/am/pre-inst-guile index 7993d15..b7b0d34 100644 --- a/am/pre-inst-guile +++ b/am/pre-inst-guile @@ -1,6 +1,6 @@ -##

[PATCH 4/5] Inline the effect of am/pre-inst-guile

2011-03-21 Thread Neil Jerram
It's just one variable definition, and in my opinion it confuses, rather than helps, the overall build picture to have two names (preinstguile and meta/guile) for the same thing. * am/Makefile.am (am_frags): Remove pre-inst-guile. * am/pre-inst-guile: Deleted. * doc/ref/Makefile.am: Don't

[PATCH 5/5] Remove statements about scripts/* that are no longer true

2011-03-21 Thread Neil Jerram
* doc/ref/tools.texi (Executable Modules): Say guile-tools modules instead of executable modules. Remove obsolete statements about not ending in .scm, being executable, and beginning with shell script invocation sequence. * module/scripts/README: Ditto. --- doc/ref/tools.texi| 33

Re: Error in make check building guile-lib for guile 2.0. trap-enable unbound

2011-03-06 Thread Neil Jerram
l...@gnu.org (Ludovic Courtès) writes: Hi Neil, Neil Jerram n...@ossau.uklinux.net writes: I had a feeling that a lot (or even maybe all) of guile-lib got merged into the main Guile distribution. So are you sure you still need separate guile-lib at all? Only (sxml ...), (texinfo

Re: Cross-compiling Guile 2.0

2011-03-06 Thread Neil Jerram
Andy Wingo wi...@pobox.com writes: On Sat 05 Mar 2011 20:47, Neil Jerram n...@ossau.uklinux.net writes: In principle, how should Guile 2.0 be cross-compiled? I'm thinking mostly of the part of the build that compiles all the installed modules. I have never cross-compiled anything, so I

Cross-compiling Guile 2.0

2011-03-05 Thread Neil Jerram
In principle, how should Guile 2.0 be cross-compiled? I'm thinking mostly of the part of the build that compiles all the installed modules. I think target emulation is needed, using QEMU, and in particular that it wouldn't work to set GUILE_FOR_BUILD to a build-system-native guile, because that

Re: Error in make check building guile-lib for guile 2.0. trap-enable unbound

2011-03-04 Thread Neil Jerram
dsm...@roadrunner.com writes: Howdy Guilers, As some of you know, I've been slowing bringing scwm back up to speed. I've gotten quite far but the next major hurdle is gtk+, so I am attempting to build and install that. The first thing needed is guile-lib, which builds fine for me from git

  1   2   3   4   5   6   7   8   9   >