Maintainership changes: many thanks to Mark!

2019-09-11 Thread Andy Wingo
Hi all, After many years working on Guile and more than 5 years in a maintainer role, Mark Weaver has decided to step down. Taking over from him and remaining as Guile co-maintainers are Ludovic Courtès and Andy Wingo. On behalf of myself and Ludovic and no doubt all Guile users and developers

GNU Guile 2.9.6 Released [beta]

2019-12-06 Thread Andy Wingo
We are pleased to announce GNU Guile release 2.9.6. This is the sixth pre-release of what will eventually become the 3.0 release series. Compared to the current stable series (2.2.x), the future Guile 3.0 adds support for just-in-time native code generation, speeding up all Guile programs. See t

GNU Guile 2.9.8 Released [beta]

2020-01-02 Thread Andy Wingo
We are pleased to announce GNU Guile release 2.9.8. This is the eighth and possibly final pre-release of what will eventually become the 3.0 release series. Compared to the current stable series (2.2.x), the future Guile 3.0 adds support for just-in-time native code generation, speeding up all Gu

Re: GNU Guile 2.9.8 Released [beta]

2020-01-05 Thread Andy Wingo
On Fri 03 Jan 2020 06:34, Nala Ginrut writes: > When I was trying to compile Artanis, the configure threw an error: > > checking for Guile version >= 3.0... configure: error: Guile 3.0 required, > but 2.9.8 found > > > Here's what I put i

Re: GNU Guile 2.9.5 Released [beta]

2020-01-07 Thread Andy Wingo
On Tue 07 Jan 2020 00:14, Chris Vine writes: > I wonder if it would surprise the programmer to have the cond > conditionals evaluated in a different dynamic environment from the one > in which the cond consequential is evaluated where there is a > conditional which is true. I entirely agree it's

GNU Guile 2.9.9 Released [beta]

2020-01-13 Thread Andy Wingo
We are pleased to announce GNU Guile release 2.9.9. This is the ninfth and probably final pre-release of what will eventually become the 3.0 release series. Compared to the current stable series (2.2.x), the future Guile 3.0 adds support for just-in-time native code generation, speeding up all Gu

Re: GNU Guile 2.9.9 Released [beta]

2020-01-13 Thread Andy Wingo
On Mon 13 Jan 2020 09:39, Andy Wingo writes: > Compared to the previous prerelease (2.9.7), Guile 2.9.8 fixes a number > of bugs. Obviously this was meant to be 2.9.9 versus 2.9.8 :) > Changes since alpha 2.9.8 (since 2.9.7): Here too :)

Re: GNU Guile 2.9.9 Released [beta]

2020-01-14 Thread Andy Wingo
On Tue 14 Jan 2020 21:13, Stefan Israelsson Tampe writes: > Okey, here is another case that fails with the patch that prevents identity > misses for toplevels e.g we need similar fixes for anonymous functions. > > (define-module (b) > #:export (q)) > > (define h (make-hash-table)) > (define (

Re: GNU Guile 2.9.9 Released [beta]

2020-01-15 Thread Andy Wingo
On Tue 14 Jan 2020 22:48, Stefan Israelsson Tampe writes: > Strange that I did not dee this error before in the 2.x series > ever. Isn't it so that for procedures define in a (let () ...) the > case you are mentioning happened before but I was on the impression > that no inlining was done for de

GNU Guile 3.0.0 released

2020-01-16 Thread Andy Wingo
We are delighted to announce GNU Guile release 3.0.0, the first in the new 3.0 stable release series. Compared to the previous stable series (2.2.x), Guile 3.0 adds support for just-in-time native code generation, speeding up all Guile programs. See the NEWS extract at the end of the mail for full

Re: GNU Guile 3.0.3 released

2020-06-24 Thread Andy Wingo
On Tue 23 Jun 2020 11:36, Chris Vine writes: > On Tue, 23 Jun 2020 10:05:51 +0200 > Ludovic Courtès wrote: >> Hi Chris, >> >> Chris Vine skribis: >> >> > On Sun, 21 Jun 2020 23:04:03 +0200 >> > Ludovic Courtès wrote: >> >> We are delighted to announce GNU Guile release 3.0.3, the third bug-f

GNU Guile 3.0.5 released

2021-01-07 Thread Andy Wingo
We are delighted to announce GNU Guile release 3.0.5, the latest in the 3.0 stable release series. Compared to the previous release in the 3.0 series, Guile 3.0.5 can compile chained "if" expressions into the equivalent of what a C compiler does with "switch". It also adds some new warning passes

Re: rfc: next guile 1.8.x release

2021-03-08 Thread Andy Wingo
Hi :) On Sun 10 Jan 2021 22:54, Thien-Thi Nguyen writes: > I would like to work (on the weekends, so as not to intefere w/ > ) on preparation and release of Guile 1.8.9, targeted > for the ides of April (more or less). Humm! I see you have started work here and are pushing to the main release

Re: [bootstrappable] Re: Can Guile be bootstrapped from source without psyntax-pp.scm?

2021-03-16 Thread Andy Wingo
On Mon 15 Mar 2021 20:50, Michael Schierl writes: > Am 15.03.2021 um 18:09 schrieb Ludovic Courtès: >> Woow, this is great news! I think it would be great towards importing >> it in Guile proper. >> >> To do that, I think we should first get Andy’s opinion on the approach. > > I don't think upst

GNU Guile 3.0.6 released

2021-04-28 Thread Andy Wingo
We are pleased to announce GNU Guile release 3.0.6, the latest in the 3.0 stable release series. Compared to the previous release in the 3.0 series, Guile 3.0.6 improves source-location information for compiled code, removes the dependency on libltdl, fixes some important bugs, adds an optional bu

GNU Guile 3.0.7 released

2021-05-10 Thread Andy Wingo
We are humbled to announce GNU Guile release 3.0.7, the latest in the 3.0 stable release series. This is a fix-up release. Compared to Guile 3.0.6, Guile 3.0.7 fixes a number of bugs, many of which were introduced in the 3.0 series. Compared to the previous stable series (2.2.x), Guile 3.0 adds

heads-up: development branch is now "main"

2021-05-11 Thread Andy Wingo
Hi, Just a heads-up that the main Guile development branch is now named "main". If you have a recent git and a fairly conventional setup, it will be sufficient to switch your working copy by doing: git fetch origin git checkout main Then you can continue to "git pull" as usual. One note, t

GNU Guile 3.0.8 released

2022-02-10 Thread Andy Wingo
We are delighted to announce GNU Guile release 3.0.8, the latest in the 3.0 stable release series. The Guile 3.0.8 release mixes maintenance and optimizations that were landed since the previous 3.0.7 stable release in May 2021. See the NEWS extract at the end of the mail for full details. Compa

GNU Guile 3.0.8 released

2022-02-12 Thread Andy Wingo
[A resend, as original mail accidentally had two From headers; apologies for any duplicates!] We are delighted to announce GNU Guile release 3.0.8, the latest in the 3.0 stable release series. The Guile 3.0.8 release mixes maintenance and optimizations that were landed since the previous 3.0.7 st

GNU Guile 3.0.10 released

2024-06-23 Thread Andy Wingo
the .sig file and the corresponding tarball. Then, run a command like this: gpg --verify guile-3.0.10.tar.gz.sig The signature should match the fingerprint of the following key: pub rsa4096 2017-08-09 [SC] 4FD4 D288 D445 934E 0A14 F9A5 A880 3732 E443 6885 uid Andy Wingo uid

Re: How to read integers from file faster?

2013-08-31 Thread Andy Wingo
On Sat 31 Aug 2013 05:55, Darren Hoo writes: > (define (read-test1) > (with-input-from-file > "rnd.txt" > (lambda () > (let lp ((i (read))) > (if (not (eof-object? i)) > (lp (read))) > > scheme@(guile-user)> ,time (read-test1) > ;; 37

Re: How to read integers from file faster?

2013-09-01 Thread Andy Wingo
On Sat 31 Aug 2013 12:19, l...@gnu.org (Ludovic Courtès) writes: > Andy Wingo skribis: > >> I just took a look at your program, which ran in 40s on my machine. >> Under callgrind it turned out that we were doing a lot of iconv stuff >> that we didn't need to do. >

Re: smob gc protection, and inheritance

2013-09-07 Thread Andy Wingo
On Tue 03 Sep 2013 21:27, Doug Evans writes: > 2) Is it possible to inherit, e.g., with goops, a smob? > IOW, can I extend a smob through inheritance? > Or must I store the smob in a class, and provide accessors? > [kinda like the "is a" vs "has a" relationship] You can't really inherit from a S

Re: guile-dbi cores in mark_db_handle

2013-09-07 Thread Andy Wingo
On Fri 30 Aug 2013 09:21, Andrew Gaylard writes: > Program terminated with signal 10, Bus error. > #0 0x75601c8c in mark_db_handle (g_db_handle_smob=0x10115efc0) > at guile-dbi.c:114 > 114 scm_gc_mark(g_db_handle->bcknd); > (gdb) p g_db_handle > $1 = (gdbi_db_handle_t *) 0x304 > >

Re: xdgdirs 1.0

2013-09-07 Thread Andy Wingo
Just a bunch of random things. No opinion about module names, etc :) On Thu 05 Sep 2013 12:42, Thien-Thi Nguyen writes: > (define mentioned? > (let ((cl (command-line))) > (lambda (opt) > (member opt cl You could do this as (cute member <> (command-line)), having imported srfi-

Re: Problem with wide characters on upgrading to guile 2.x

2013-09-07 Thread Andy Wingo
On Mon 02 Sep 2013 10:48, Richard Shann writes: > On Thu, 2013-08-22 at 12:14 -0700, Mike Gran wrote: >> >> 2. In the inner_main of your scm_with_guile call, >> >> >> try calling scm_setlocale. Maybe something like this? >> >> (This shouldn't make a difference, I think. >> >> But, if it d

Re: Guile-Emacs update

2013-09-07 Thread Andy Wingo
On Thu 01 Aug 2013 00:17, taylanbayi...@gmail.com (Taylan Ulrich B.) writes: > the "dumping" feature of Emacs is disabled Eventually Guile will support linking together multiple separately compiled files into one ELF image. (The object file format in the development Guile branch is ELF -- we hav

Re: Guile wiki

2013-09-07 Thread Andy Wingo
On Fri 26 Jul 2013 19:59, hellekin writes: > 2. Move http://www.gnu.org/software/guile/ideas.html to the wiki > > Ideas are cheap: that's typically something very suited for a wiki, so > that anyone can edit the page without having to bother a webmaster > into the process. Cut the middleman. > >

Re: Determining programatically whether the interpreter is Guile or Clisp or Emcs

2013-09-07 Thread Andy Wingo
On Mon 29 Jul 2013 10:36, Nala Ginrut writes: > If you just want to check whether a symbol was defined, try: > (module-defined? (current-module) 'function-lambda-expression) Alternate spelling: (defined? 'foo) Andy -- http://wingolog.org/

Re: Easiest way to set procedure-documentation?

2013-09-07 Thread Andy Wingo
Hi Roland, If you want to give documentation to procedures defined in C with SCM_DEFINE, you can associate an external documentation file with the module. See http://git.savannah.gnu.org/cgit/guile-cairo.git/tree/cairo/Makefile.am and http://git.savannah.gnu.org/cgit/guile-cairo.git/tree/cairo.sc

Re: Memory use analysis

2013-09-07 Thread Andy Wingo
On Tue 13 Aug 2013 20:23, m...@markwitmer.com writes: > I'm facing an issue with ballooning memory usage in a progam I'm writing > and having a difficult time tracking down the root cause. The stack > stays small but it uses more and more heap space until the system runs > out of memory. We don't

Re: Creating a top level definition if none so far exists, on the fly.

2013-09-07 Thread Andy Wingo
On Thu 15 Aug 2013 15:37, Richard Shann writes: > Hmm, so I asked about this before in February. Gives me an idea of the > extent of my memory span - it didn't even ring a bell. You know, I forgot about the answer too ;-) Andy -- http://wingolog.org/

Re: Guile-Emacs update

2013-09-07 Thread Andy Wingo
On Sat 07 Sep 2013 12:02, Eli Zaretskii writes: >> From: Andy Wingo >> Date: Sat, 07 Sep 2013 11:29:10 +0200 >> Cc: guile-user@gnu.org, BT Templeton , joa...@verona.se, >> emacs-de...@gnu.org >> >> On Thu 01 Aug 2013 00:17, taylanbayi...@gmail.com (Ta

Re: Interpreting statprof

2013-09-17 Thread Andy Wingo
On Tue 17 Sep 2013 18:14, Dmitry Bogatov writes: > Hello! > > Today I tried to statprof my toy application, that uses htmlprag > since it is too slow (4 sec on one page) vs 0.5 with Python. > Statprof says, that most of time takes `eval` function, but I checked > htmlprag source --- it does not u

Re: guile-figl - Any plans for an initial release?

2013-09-17 Thread Andy Wingo
Hi! On Sat 14 Sep 2013 16:43, David Thompson writes: > I'm hoping to make a 0.1 release guile-2d soon (maybe by the GNU 30th > anniversary?), but I would like to wait until guile-figl has made a > release so that I can point users to a release tarball rather than > asking them to compile from gi

Re: The status of statprof

2013-09-17 Thread Andy Wingo
On Tue 17 Sep 2013 14:37, Panicz Maciej Godek writes: > So my question is: what is the status of the statprof? It's fine :) > (define (increase x) > (sleep 1) > (1+ x)) > > (begin > (statprof-reset 0 500 #t) > (statprof-start) > (let loop ((i 0)) > (if (< i 10) > (loop (increase i)) > i)) > (st

Re: Doctest for guile

2013-09-17 Thread Andy Wingo
On Wed 11 Sep 2013 17:03, Dmitry Bogatov writes: > $ guile doctest.scm '(foo)' Neat! > + Your ideas? > > I it will be found useful enough, I will gladly work on patch to integrate > doctest in Guile guild script. I was going to write exactly this! "guild doctest '(foo)'" sounds sensible to me

Re: Interpreting statprof

2013-09-17 Thread Andy Wingo
On Tue 17 Sep 2013 18:14, Dmitry Bogatov writes: > Hello! > > Today I tried to statprof my toy application, that uses htmlprag > since it is too slow (4 sec on one page) vs 0.5 with Python. > Statprof says, that most of time takes `eval` function, but I checked > htmlprag source --- it does not u

Re: is (web client) ready for use even for the simplest task?

2013-09-17 Thread Andy Wingo
On Tue 10 Sep 2013 11:19, Mark H Weaver writes: > Darren Hoo writes: > >> OK, let's add something to the body >> >> (http-post "http://www.google.com/"; #:body "") >> >> Howcome the request now becomes an http GET request: >> >> GET / HTTP/1.1 >> Content-Type: text/plain;charset=utf-8 >> Host: w

Re: Doctest for guile

2013-09-17 Thread Andy Wingo
On Tue 17 Sep 2013 20:45, Dmitry Bogatov writes: > $2 = ((name . foo) (foo . bar) (baz . qux)) > As you can see, I am missing arity. Is it git patch? Probably you're using master. I think arity is not a property there, but instead accessed using other accessors. Regards, Andy -- http:/

2014 potluck dish: compost, a leaf function compiler

2014-03-05 Thread Andy Wingo
Hi! Sorry for the late mail; I have been derelict with mail for the last few months. Terrible. But I did make a potluck dish! Wanted to mention it if you haven't seen it. http://wingolog.org/archives/2014/02/18/compost-a-leaf-function-compiler-for-guile Enjoy :) Andy -- http://wingolog.o

Re: GNU Guile 2.0.10 released

2014-03-18 Thread Andy Wingo
Thanks to all the new contributors on this one, and thanks especially to Mark! Andy -- http://wingolog.org/

Re: [OT] Re: Question on mutability of argument lists

2014-03-20 Thread Andy Wingo
On Thu 20 Mar 2014 11:06, Marco Maggi writes: > Something similar can be done for return values[1]; in > Vicare every function call site has 2 return points: one for > single return value; the other for 0, 2, more return values. > One return point goes on with the computation, the other

ANN: GNU Guile-OpenGL 0.1.0

2014-03-23 Thread Andy Wingo
Hi, I'm happy to release the first release of Guile-OpenGL, an OpenGL binding for Guile. Guile-OpenGL is what used to be called "Figl". It has been accepted as a GNU project, and we took the opportunity to change the name. OpenGL is a registered trademark; we asked SGI if they would mind us cal

Re: ANN: GNU Guile-OpenGL 0.1.0

2014-03-23 Thread Andy Wingo
On Sun 23 Mar 2014 16:08, Andy Wingo writes: > Here are the compressed sources: > ftp://ftp.gnu.org/gnu/guile-opengl/guile-opengl-0.1.0.tar.gz (4.3MB) > > Here is the GPG detached signature[*]: > ftp://ftp.gnu.org/gnu/guile-opengl/guile-opengl-0.1.0.tar.gz.sig > > Us

guile-smaps

2014-04-09 Thread Andy Wingo
A little library to access SMAPS information on Linux systems: https://gitorious.org/guile-smaps Incidentally, as an experiment, this code is owned by the "guile-hackers" group on gitorious. Find me on IRC if you would like to be added to the group. If you have a project that you aren't reall

Re: Potluck, midi -> chiptune

2014-04-18 Thread Andy Wingo
On Mon 17 Feb 2014 05:59, Mike Gran writes: > For this year's potluck, I wrote prog that converts a MIDI file > into an 8-bit-era chiptune, such as might have been rendered by > a Game Boy or SNES. > > It is here: > > https://github.com/spk121/furry-nemesis This is really neat! I'm late to the

Re: Description of `program-sources' and accessors

2014-04-19 Thread Andy Wingo
Hi, On Sat 19 Apr 2014 12:07, "Diogo F. S. Ramos" writes: > Is there a place which describes the meaning of each of element of > `program-sources' accessors? > > For example: > > (source:addr (program-sources every)) => (0 "srfi/srfi-1.scm" 810 . 0) > > What does each element of the improper l

Re: Description of `program-sources' and accessors

2014-04-22 Thread Andy Wingo
On Sun 20 Apr 2014 20:09, "Diogo F. S. Ramos" writes: >>> Is there a place which describes the meaning of each of element of >>> `program-sources' accessors? >> > So, what does "sources" mean? For what I can see, each one correspond > to a line in a definition. I can't also figure out what a `s

Re: Description of `program-sources' and accessors

2014-04-22 Thread Andy Wingo
On Tue 22 Apr 2014 18:43, "Diogo F. S. Ramos" writes: >>> I'm using this interface to know where an object has been defined. >> >> What does this mean? (Have you seen the (system xref) facility? It >> doesn't do a good job with non-procedures, but perhaps we could change >> that.) > > Thank you

guile-charting 0.2.0

2014-09-19 Thread Andy Wingo
I put up a 0.2.0 release of Guile-Charting here: http://wingolog.org/pub/guile-charting/ Guile-Charting is a Guile library to make charts -- bar graphs, scatter plots, and related things. Its web page is here: http://wingolog.org/software/guile-charting/ And the gitorious for git: http:

Guile-Present 0.3.0

2014-09-22 Thread Andy Wingo
Hi, I bundled up the tools I use to make presentations into a new release of Guile-Present. It's here: http://wingolog.org/pub/guile-present/guile-present-0.3.0.tar.gz http://wingolog.org/pub/guile-present/guile-present-0.3.0.tar.gz.asc The sha1sum of the tarball is 89755fbb1913314c650e458c

Re: Guile-Present 0.3.0

2014-09-22 Thread Andy Wingo
On Mon 22 Sep 2014 21:58, Andy Wingo writes: > No real news as such, but it's much more of a thing than it was 7 years > ago. Check this link: > > https://gitorious.org/guile-present/guile-present/examples/texinfo Whoops. Here's a better link: https://gitorious.o

Re: smob mark functions in 2.0

2014-09-27 Thread Andy Wingo
On Fri 26 Sep 2014 06:50, Mark H Weaver writes: > Mark H Weaver writes: > >> Andy Wingo writes: >>> Specifically, there is a warning in gc/gc_mark.h: >>> >>> /* WARNING: Such a mark procedure may be invoked on an unused object >>> */ &

A wee JPEG parser

2014-10-02 Thread Andy Wingo
Should anyone need a JPEG parser, or the beginnings of one anyway, here is one: https://gitorious.org/guile-jpeg/guile-jpeg Currently it's just enough to parse out the dimensions of a file, though you could tweak it in other ways. You could probably use it to get EXIF information, though for t

Re: A wee JPEG parser

2014-10-08 Thread Andy Wingo
On Thu 02 Oct 2014 15:25, Andy Wingo writes: > Should anyone need a JPEG parser, or the beginnings of one anyway, here > is one: > > https://gitorious.org/guile-jpeg/guile-jpeg > > Currently it's just enough to parse out the dimensions of a file, though > you could tw

Guile-RSVG 2.18.1

2014-10-13 Thread Andy Wingo
Hi, A wee maintenance release: http://wingolog.org/pub/guile-rsvg/guile-rsvg-2.18.1.tar.gz http://wingolog.org/pub/guile-rsvg/guile-rsvg-2.18.1.tar.gz.sig The sha256sum: 07ca914542f3621bb9b2d72888592c3ad7c292aae1ce79cdcfd90f1ecd10ce8c guile-rsvg-2.18.1.tar.gz No big changes, just build

Potluck dish: GDB frame filter interface

2015-02-17 Thread Andy Wingo
Hi! A little potluck dish. I have some patches on the GDB mailing list to expose the "frame filter" interface to Guile. This allows you to filter the frames shown in a GDB backtrace using Guile. You can alter the printed function address, name, arguments, file, line, and locals. You can also e

Re: #:getter procedure returns unexpected value in GOOPS

2015-03-09 Thread Andy Wingo
Hi! On Sat 26 Apr 2014 01:24, "Diogo F. S. Ramos" writes: > When using GOOPS, if a class has a second slot, the #:getter procedure > of the first slot returns the value of the second slot when applied to > an instance of a subclass. > > (use-modules (oop goops)) > > (define-class () > (a #:in

GNU Guile 2.1.1 released [beta]

2015-11-04 Thread Andy Wingo
We are pleased to announce GNU Guile release 2.1.1. This is the first pre-release of what will eventually become the 2.2 release series. It provides many improvements, most notably in speed: it starts up faster than Guile 2.0, runs your programs faster, and uses less memory; see below for full de

GNU Guile 2.1.2 released [beta]

2016-02-03 Thread Andy Wingo
We are pleased to announce GNU Guile release 2.1.2. Guile 2.1.2 is the second pre-release in what will eventually become the 2.2 release series. We encourage you to test this release and provide feedback to guile-de...@gnu.org. This release focuses on speed; your programs will run even faster on

anyone define port types?

2016-03-28 Thread Andy Wingo
Hi! I am working on improving our port implementation to take advantage of the opportunity to break ABI in 2.2. I am wondering how much I can break C API as well -- there are some changes that would allow better user-space threading (e.g. http://thread.gmane.org/gmane.lisp.guile.devel/14158/focus

Re: anyone define port types?

2016-06-11 Thread Andy Wingo
On Wed 06 Apr 2016 01:55, Matt Wette writes: >> On Apr 5, 2016, at 7:06 AM, Mark H Weaver wrote: >> >> Matt Wette writes: >> >>>> On Mar 28, 2016, at 12:04 PM, Andy Wingo wrote: >>>> I am working on improving our port implementation to take a

Re: anyone define port types?

2016-06-11 Thread Andy Wingo
On Wed 30 Mar 2016 08:29, Panicz Maciej Godek writes: > Hi Andy, > I have been using soft ports to implement a text widget in my GUI > framework. I also used GOOPS, which I regret to this day, and so the > whole framework needs a serious rewrite, but if you're collecting > various species to the

Re: anyone define port types?

2016-06-11 Thread Andy Wingo
On Fri 01 Apr 2016 16:38, l...@gnu.org (Ludovic Courtès) writes: > Here’s a port type! :-) > > https://gitlab.com/gnutls/gnutls/blob/master/guile/src/core.c#L785 Thanks! So port types written in C will have to change unfortunately :/ From NEWS: ** Complete overhaul of port internals

Re: anyone define port types?

2016-06-11 Thread Andy Wingo
On Thu 14 Apr 2016 16:08, l...@gnu.org (Ludovic Courtès) writes: > Andy Wingo skribis: > >> I am working on improving our port implementation to take advantage of >> the opportunity to break ABI in 2.2. I am wondering how much I can >> break C API as well -- there are

Re: anyone define port types?

2016-06-19 Thread Andy Wingo
Hi :) On Sun 12 Jun 2016 10:25, Chris Vine writes: >> >> http://www.gnu.org/software/guile/docs/master/guile.html/Input-and-Output.html > > The documentation indicates that with the C ports implementation in > guile-2.2, reads will block on non-blocking file descriptors. Correct. > This wil

GNU Guile 2.1.3 released [beta]

2016-06-19 Thread Andy Wingo
We are pleased to announce GNU Guile release 2.1.3. Guile 2.1.3 is the third pre-release in what will eventually become the 2.2 release series. We encourage you to test this release and provide feedback to guile-de...@gnu.org. Besides bug fixes, this release has a complete overhaul of the port i

Re: anyone define port types?

2016-06-19 Thread Andy Wingo
Hi, You are arguing for new I/O primitives with different semantics, and that's fine and good :) My goal was to add the ability to sensibly work with non-blocking ports using Guile's existing primitives, especially the textual ones. This effort was started because of the ethreads work I did abou

Re: anyone define port types?

2016-06-19 Thread Andy Wingo
On Sun 19 Jun 2016 17:33, Chris Vine writes: > The answer I have adopted when reading from TCP sockets is to extract > individual bytes only from the port into a bytevector using R6RS's > get-u8 procedure and (if the port is textual rather than binary) to > reconstruct characters from that using

Re: anyone define port types?

2016-06-20 Thread Andy Wingo
On Mon 20 Jun 2016 08:45, Chris Vine writes: > For simplicity, let's say you have a file watch in the glib event loop > which has made a non-blocking read of the first byte of a multi-byte > UTF-8 character, and the suspendable-ports implementation is in use > because it is a non-blocking read of

Re: Path: (web uri) - split-and-decode-uri-path must preserve plus characters

2016-06-20 Thread Andy Wingo
Applied, in a slightly reworked form. This will be in 2.1.4. Only took two years :/ Thanks for the patch! Andy On Thu 17 Jul 2014 07:24, Brent writes: > Hi all, > > Attached is a patch to to correct the behaviour of > split-and-decode-uri-path in uri.scm from guile 2.0.9. > > Fault > ---

Re: Graph coloring with Scheme

2016-06-20 Thread Andy Wingo
What a delight! Thank you for this elegant snippet :) Andy On Fri 14 Nov 2014 19:16, Jan Wedekind writes: > Hi, > Here is an implementation [1] of Chaitin's graph coloring algorithm > using GNU Guile and Graphviz. Any feedback and suggestions are > welcome. Let me know if you can make the impl

Re: scm_add_to_port_table replacement

2016-06-20 Thread Andy Wingo
Hi Thien-Thi, On Fri 09 Jan 2015 15:44, l...@gnu.org (Ludovic Courtès) writes: > Thien-Thi Nguyen skribis: > >> One of the last remaining ‘GUILE_WARN_DEPRECATED=detailed’ >> nits is ‘scm_add_to_port_table’: >> >> libpq.c:203:3: warning: ‘scm_add_to_port_table’ is deprecated >> (declared at /hom

Re: Bytestructures: a "type system" for bytevectors

2016-06-20 Thread Andy Wingo
On Sun 30 Aug 2015 18:32, taylanbayi...@gmail.com (Taylan Ulrich "Bayırlı/Kammer") writes: > https://github.com/taylanub/scheme-bytestructures > > (I don't endorse GitHub, but I gave in after Gitorious went down.) > > I had started working on this project around two years ago but it had a > prett

Re: GNU Guile 2.1.3 released [beta]

2016-06-20 Thread Andy Wingo
On Mon 20 Jun 2016 14:58, Matt Wette writes: >> On Jun 19, 2016, at 2:31 AM, Andy Wingo wrote: >> >> We are pleased to announce GNU Guile release 2.1.3. >> > [snip] >> Here are the compressed sources: >> https://alpha.gnu.org/gnu/guile/guile-2.1.3.ta

Re: autoconf macros not working as expected

2016-06-22 Thread Andy Wingo
On Wed 22 Jun 2016 00:31, Josh Datko writes: > I have a C autotools project with guile extensions that I'm trying to > cross-compile, however even when I think I'm disabling building the > extensions (--without-guile), it appears that configure is trying to > check for guile. Then configure fails

Re: anyone define port types?

2016-06-23 Thread Andy Wingo
On Thu 23 Jun 2016 00:44, Chris Vine writes: > I have stirred myself and installed guile-2.1.3. On looking more at > the suspendable ports code it became obvious and I haven't needed to > adopt anything like ethreads with its "thread" abstraction: instead I > have kept the approach already adopt

Re: anyone define port types?

2016-06-23 Thread Andy Wingo
Little typo: On Thu 23 Jun 2016 09:36, Andy Wingo writes: > The only drawback that I know of with the strategy of simply allowing > users to use Guile's I/O primitives (e.g., `read-line') and assuming > that they'll suspend when they block is that not all of the primitiv

Re: anyone define port types?

2016-06-23 Thread Andy Wingo
On Thu 23 Jun 2016 11:24, Chris Vine writes: > A few things on that. First, there will always be a use for an event > loop to do event-loopy things, irrespective of whether and how a > coroutine interface is put around it. Sometimes you want to abstract > things away, sometimes you don't. Yep!

[ann] fibers 0.1.0

2016-07-04 Thread Andy Wingo
Hi all, I just released Fibers 0.1.0. Fibers is an experimental facility for Erlang-like concurrency in Guile 2.2. As an example, here is a ping server written in Fibers: (define (socket-loop socket store) (let loop () (match (accept socket) ((client . addr)

Re: [ann] fibers 0.1.0

2016-07-07 Thread Andy Wingo
On Wed 06 Jul 2016 19:29, Amirouche Boubekki writes: > (Resent the mail to the mailing list) Resending my reply, I didn't notice it was a private message. (Please don't send me private messages about Guile; always send to the list.) On Tue 05 Jul 2016 21:16, Amirouche Boubekki writes: > It's

Re: Link to version 2.1.3 does not work

2016-07-07 Thread Andy Wingo
On Fri 01 Jul 2016 15:18, Tommi Höynälänmaa writes: > The following link: > > http://alpha.gnu.org/gnu/guile/guile-2.1.3.tar.gz > > appears not to work. Where can I download guile version 2.1.3 (beta)? Could be you were trying with https. The original announcement mail had an https link and th

Re: How to render raw data using sxml?

2016-07-14 Thread Andy Wingo
On Wed 13 Jul 2016 14:28, Matt Wette writes: > I googled “sxml CDATA” and found that Chicken Scheme has a > “sxml-serialize” procedure that takes an optional keyword argument > cdata-section-elements which is a list of elements which should have > contents serialized to a CDATA section. SGTM. A

Re: How to render raw data using sxml?

2016-07-14 Thread Andy Wingo
On Wed 13 Jul 2016 11:57, writes: > - in XHTML, For better or for worse, I think we need to treat XHTML as a deprecated dead-end at this point. Browsers prefer HTML, authors prefer HTML, it's only some tooling people that prefer XHTML, and *actually valid* XHTML is a vanishingly small and dimi

GNU Guile 2.0.12 released

2016-07-14 Thread Andy Wingo
We are pleased to announce GNU Guile release 2.0.12, the next maintenance release for the 2.0.x stable series. Guile is an implementation of the Scheme programming language. It is designed to help programmers create flexible applications that can be extended by users or other programmers with plu

Re: Do-loop enigma with two variables

2016-07-16 Thread Andy Wingo
On Fri 15 Jul 2016 16:26, Pierre Lairez writes: > (do ((i 1 (+ 1 i)) > (j 0 i)) > ((> i 4) (newline)) > (display (list i j))) > > I expect without hesitation to read > (1 0)(2 1)(3 2)(4 3) > > To my surprise, I obtain > (1 0)(2 2)(3 3)(4 4) What a mess! This is an optimizer bug in Gu

Re: Do-loop enigma with two variables

2016-07-16 Thread Andy Wingo
On Fri 15 Jul 2016 16:26, Pierre Lairez writes: > When running the following loop: > (do ((i 1 (+ 1 i)) > (j 0 i)) > ((> i 4) (newline)) > (display (list i j))) > > I expect without hesitation to read > (1 0)(2 1)(3 2)(4 3) > > To my surprise, I obtain > (1 0)(2 2)(3 3)(4 4) Fixed. T

Re: Pool of threads with one producer and several consumers

2016-07-23 Thread Andy Wingo
On Sun 17 Jul 2016 14:03, Jan Wedekind writes: > You can use condition variables (together withvthe mutex) to signal > availability of a new item to consume. An implementation here: https://lists.gnu.org/archive/html/guile-devel/2012-02/msg00033.html But, I think channels are the way to go (

Re: Example usages of guile-cairo

2016-08-04 Thread Andy Wingo
ail. Attached is a part of guile-present that uses cairo to render slides. I think I need to find guile-present a new home, as gitorious went away... Andy ;; guile-present ;; Copyright (C) 2007, 2009, 2010, 2011, 2012, 2014 Andy Wingo ;; This library is free software; you can redistribute it

Re: Source properties and the unexpanded source code

2016-08-04 Thread Andy Wingo
On Mon 25 Jul 2016 13:08, Tommi Höynälänmaa writes: > Is it possible to access unexpanded source code information from the > expanded source code in psyntax.scm? When I look at the source > properties given to the build-xxx procedures there is only line > number, column number, and filename. Sa

Re: symbol printing problem

2016-08-08 Thread Andy Wingo
On Mon 08 Aug 2016 14:34, Anand Mohanadoss writes: > scheme@(guile-user)> (define sym '912828S7912810RS) > While reading expression: > ERROR: In procedure string->number: Value out of range: 7912810 I believe this is http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18932. A bug :) Andy

tekuti blog engine git repositories back online

2016-08-28 Thread Andy Wingo
Hi all, The "tekuti" blog engine that runs wingolog.org was hosted on gitorious, which went away a while ago. I pushed that repo back online: https://gitlab.com/wingo/tekuti https://github.com/wingo/tekuti Either one works. I also fixed a long-standing bug whereby tekuti would incorrectly

Re: Sufficiently safe random information for security-critical Guile applications

2016-08-31 Thread Andy Wingo
Hi :) Josh (and the manual) is right -- don't use Guile's RNG for security-sensitive purposes. Mostly it's just for games, monte-carlo simulations and the like. I wish it were a CSPRNG but it's not; oh well. The quality of the PRNG is a separate issue. MWC could be improved, but JS impls at le

a simple rng in scheme

2016-09-01 Thread Andy Wingo
Hi, Here is a simple implementation of what I think is xorshift128+, a simple random number generator. I have verified the first 10 outputs against https://github.com/AndreasMadsen/xorshift/blob/master/reference.c. (define (xorshift128+ s0 s1) (define (u64 x) (logand #x x)) (

Re: Passing objects between threads

2016-09-11 Thread Andy Wingo
On Sat 10 Sep 2016 11:37, Panicz Maciej Godek writes: > is there any easy way to create a channel (queue) that could be used to > communicate between threads? In particular, if the queue is empty, I would > like the consumer to wait until something appears in it (pretty much like > the channels i

fibers 0.2.0 released

2016-09-14 Thread Andy Wingo
Hey peeps, Fibers v0.2.0 is out! Fibers is a facility for lightweight concurrency in Guile. New in Fibers 0.2.0: * Documentation in texinfo form; HTML version pasted here: https://github.com/wingo/fibers/wiki/Manual * Now with channels, a communication facility; see the manual. * "Epoll"

GNU Guile 2.1.4 released [beta]

2016-09-14 Thread Andy Wingo
We are pleased to announce GNU Guile release 2.1.4. Guile 2.1.4 is the fourth pre-release in what will eventually become the 2.2 release series. We encourage you to test this release and provide feedback to guile-de...@gnu.org. This release adds an atomic reference facility and fixes many small

[ann] fibers v0.3.0 released

2016-10-12 Thread Andy Wingo
Hi, I just cut a new release of Fibers, a concurrency library for Guile. Find it here: https://wingolog.org/pub/fibers/fibers-0.3.0.tar.gz $ sha256sum fibers-0.3.0.tar.gz a7267b8e10229f9d7e64e1903507d9baf7c15705abb87f953d2d53c6ac6886b5 fibers-0.3.0.tar.gz Project page here: https://

GNU Guile 2.1.5 released (beta)

2016-12-07 Thread Andy Wingo
We are pleased to announce GNU Guile release 2.1.5. Guile 2.1.5 is the fifth pre-release in what will eventually become the 2.2 release series. We encourage you to test this release and provide feedback to guile-de...@gnu.org. This release improves Guile's parallelism and concurrency primitives,

  1   2   3   4   5   6   7   >