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: anyone define port types?

2016-06-20 Thread Chris Vine
On Mon, 20 Jun 2016 09:34:26 +0200 Andy Wingo wrote: [snip] > I must not be communicating clearly because this is definitely not > what I am proposing. The prompt doesn't service anything, and it's > just the one user-space thread which is suspended, and when it > suspends, it suspends back to th

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.tar.gz (17MB) >> https://alpha.gnu.org/gnu

Re: on bootstrapping: introducing Mes

2016-06-20 Thread Mike Bushroe
I have been quietly lurking for quite some time now, but this stirs up old memories. Back in college we built a compile for a local language called 'y' which was very similar to C, and the compiler was written in 'yacc', yet another compiler compiler. It sounds like you are moving to a two layer a

Re: Getting started with Guile Parser Combinators

2016-06-20 Thread Thompson, David
On Sun, Jun 19, 2016 at 2:57 PM, Amirouche Boubekki wrote: > Héllo, > > > There is an implementation of guile parser combinators available here [1]. > > Here's my attempt at explaining how it works: > > http://hyperdev.fr/notes/getting-started-with-guile-parser-combinators.html This was lovely, t

Re: Graph coloring with Scheme

2016-06-20 Thread Jan Wedekind
Thanks for the positive feedback. Here is a slightly modified version using a curried definition. I am using the algorithm to color live intervals in order to do register allocation. (use-modules (srfi srfi-1) (srfi srfi-26) (ice-9 curried-definitions)) (define (dot graph colors)

Re: Bytestructures: a "type system" for bytevectors

2016-06-20 Thread Taylan Ulrich Bayırlı/Kammer
Andy Wingo writes: > 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

Re: Bytestructures: a "type system" for bytevectors

2016-06-20 Thread Matt Wette
> On Jun 20, 2016, at 3:05 PM, Taylan Ulrich Bayırlı/Kammer > wrote: > [SNIP] > Would I have to write a C parser in Scheme, or can we cheat somehow? scheme@(guile-user)> (use-modules (nyacc lang c99 parser)) scheme@(guile-user)> (use-modules (ice-9 pretty-print)) scheme@(guile-user)> (pretty-