Re: Cygwin port of Guile 2.2

2017-04-14 Thread Derek Upham
Andy Wingo writes: > I guess the new thing being the finalizer thread? In theory before the > fork, Guile will stop the finalizer thread. If that's not working, that > could be it. > > Another option would be to disable fork() but only if Guile is built > with threads. Actually this is probab

Re: RFC: (ice-9 sandbox)

2017-04-14 Thread Ludovic Courtès
Hi! Andy Wingo skribis: > On Mon 03 Apr 2017 17:35, l...@gnu.org (Ludovic Courtès) writes: > >> Riastradh’s document at >> has this: >> >> Affix asterisks to the beginning and end of a globally mutable >> variable. This allows the reader of the

Re: RFC: (ice-9 sandbox)

2017-04-14 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Apr 14, 2017 at 12:52:19PM +0200, Andy Wingo wrote: [...] > Concretely for this use case, assuming that we can solve the immutable > literal problem, I propose to remove sigils entirely. Thoughts welcome > here. There's still the "cultural

Re: RFC: (ice-9 sandbox)

2017-04-14 Thread Andy Wingo
On Thu 06 Apr 2017 23:41, Freja Nordsiek writes: > On the subject of ports and i/o, I have a few ideas. R6RS i/o in the > (rnrs io ports) module generally requires the port to be explicitly > given, rather than assuming current in or out if not given (though > rnrs io simple does make those assum

Re: RFC: (ice-9 sandbox)

2017-04-14 Thread Andy Wingo
On Mon 03 Apr 2017 17:35, l...@gnu.org (Ludovic Courtès) writes: > Riastradh’s document at > has this: > > Affix asterisks to the beginning and end of a globally mutable > variable. This allows the reader of the program to recognize very > easi

Re: [PATCH] Throw an exception when mutating read-only data

2017-04-14 Thread Andy Wingo
Hi Pedro, On Mon 03 Apr 2017 12:49, Pedro Alves writes: > AFAICS, guile uses bare setjmp/longjmp for exceptions. > > But, one should not use longjmp to jump out of a signal handler, since > that leaves the signal mask disabled if the system automatically masks > the signal on handler entry (whic

Re: [PATCH] Throw an exception when mutating read-only data

2017-04-14 Thread Andy Wingo
Hi :) On Sun 02 Apr 2017 17:34, Derek Upham writes: > Andy Wingo writes: > >> * libguile/init.c (scm_i_init_guile): Install the SIGSEGV handler unless >> GUILE_INSTALL_SIGSEGV_HANDLER is 0. >> * libguile/loader.c >> (scm_maybe_throw_exception_for_mutation_of_read_only_data): New public >>

Re: Why is INSTALL missing?

2017-04-14 Thread Andy Wingo
On Tue 04 Apr 2017 22:01, Tobias Gerdin writes: > While preparing to build Guile v2.2.0 I noticed that the file INSTALL, > which is referred to from README, was removed by Neil in > e4c39847a2b083829d111fcae4e9459d2f8a4ba1 in 2009 or so. Why was this > so? (I realise it would just be a copy of th

Re: Cygwin port of Guile 2.2

2017-04-14 Thread Andy Wingo
On Tue 04 Apr 2017 18:45, "Mike Gran" writes: > I push a branch that mostly makes Guile 2.2 work on Cygwin. Neat. LGTM with some nits, with the exception of the "(throw 'unresolved)" patch -- the corresponding catch is in test-suite/test-suite/lib.scm:344. > Cygwin's uselocale is broken and ca