Re: [Chicken-hackers] [PATCH] Ensure chicken-install honors -prefix when using -keep-installed (#1144)

2017-01-01 Thread Peter Bex
On Sun, Jan 01, 2017 at 12:59:51AM +0100, felix.winkelm...@bevuta.com wrote: > Since the egg-installation changed considerably in C5, I suggest to apply the > patch only in C4. I'm very much for dropping -prefix (and CHICKEN_PREFIX and > the likes) completely. Sure, that's fine by me. Cheers, Pet

[Chicken-hackers] Should we make a 4.12 release?

2016-12-31 Thread Peter Bex
Hi all, I'm wondering whether we should make a 4.12 release candidate. There are a handful of very bad bugs (#1317, #1337, #1336) and 3 CVEs that have been fixed. There are still 3 patches waiting (1 bugfix for #1144), so I'd prefer to wait until after they've been applied. After my patch for #

[Chicken-hackers] [PATCH] Ensure chicken-install honors -prefix when using -keep-installed (#1144)

2016-12-31 Thread Peter Bex
alled. - Installing the egg system-wide, then running chicken-install with -keep-installed under a prefix. It's installed. Seems correct to me. Cheers, Peter From daa9bb4b37f52cfb299d269bb0c85635ec832718 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Sat, 31 Dec 2016 13:51:12 +0100 Subject:

[Chicken-hackers] [PATCH] Fix seemingly random crashes in foreign callbacks (#1337)

2016-12-28 Thread Peter Bex
allocate_vector takes. Cheers, Peter From 27925ad4cb1b0ab0e6445116623096fbaf52c3b2 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Wed, 28 Dec 2016 19:11:35 +0100 Subject: [PATCH] Fix crashes in callbacks after GC (#1337). This was caused by keeping argvector in temp stack, similar to 9eed2742. I

[Chicken-hackers] Add branch prediction for C_demand checks [was: Re: [PATCH] Statically determine if argvector can be reused]

2016-12-27 Thread Peter Bex
On Thu, Dec 15, 2016 at 11:55:01PM +0100, Peter Bex wrote: > Hi all, > > I've been playing around a little bit with "perf" and Valgrind's > cachegrind tool, and I noticed that the number of branch prediction > misses can be reduced if the argvector reusing check

[Chicken-hackers] [PATCH] Add debugging information to ##core#direct_call nodes

2016-12-18 Thread Peter Bex
7 00:00:00 2001 From: Evan Hanson Date: Sat, 27 Sep 2014 13:37:53 +1200 Subject: [PATCH] Include debug info on ##core#direct_call nodes. Signed-off-by: Peter Bex --- NEWS | 1 + c-backend.scm | 26 -- compiler.scm | 15 --- optimizer.scm | 9 ++

[Chicken-hackers] [PATCH] Statically determine if argvector can be reused

2016-12-15 Thread Peter Bex
ue to inlining differences. Cheers, Peter From 1e6685d0fb9580a34a407ef8fa62f42eb1266268 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Thu, 15 Dec 2016 23:44:35 +0100 Subject: [PATCH] Statically determine if av can be reused or not. This is faster due to avoiding branch predict

[Chicken-hackers] [PATCH] [SECURITY] Update irregex to upstream 0.9.6

2016-12-14 Thread Peter Bex
n empty sequence should. Cheers, Peter From bf5470090dab74496600ea91c6c388d45db354cf Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Wed, 14 Dec 2016 20:25:25 +0100 Subject: [PATCH] Update irregex to upstream 0.9.6 This fixes a resource consumption vulnerability due to exponential memory use based on

Re: [Chicken-hackers] [PATCH] Only try to time tests when `time` command is available

2016-12-12 Thread Peter Bex
On Mon, Dec 12, 2016 at 03:52:59PM +1300, Evan Hanson wrote: Thanks, pushed (and also backported to master) Cheers, Peter signature.asc Description: Digital signature ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org https://lists.nongnu.org

Re: [Chicken-hackers] [PATCH] [5] Aggressively reject definitions in expression contexts (#1309)

2016-12-12 Thread Peter Bex
On Sun, Dec 11, 2016 at 11:32:59PM +0100, felix.winkelm...@bevuta.com wrote: > > On Sun, Dec 11, 2016 at 10:58:50PM +0100, felix.winkelm...@bevuta.com wrote: > > > I don't know, but reading what you wrote in the ticket ("... this will > > > require quite a bit of rework and hardcoding all defining

Re: [Chicken-hackers] [PATCH] [5] Aggressively reject definitions in expression contexts (#1309)

2016-12-11 Thread Peter Bex
On Sun, Dec 11, 2016 at 10:58:50PM +0100, felix.winkelm...@bevuta.com wrote: > I don't know, but reading what you wrote in the ticket ("... this will > require quite a bit of rework and hardcoding all defining forms into the > compiler (which we have to do already anyway, to make internal defines >

[Chicken-hackers] [PATCH] [5] Aggressively reject definitions in expression contexts (#1309)

2016-12-11 Thread Peter Bex
ot to change too much, I decided to simply reset the "at-toplevel" state to #t when compiling a module definition. We might want to revisit that, I think it's counter-intuitive that module or functor definitions are expressions that can even yield a value. Cheers, Peter From bf174e798

[Chicken-hackers] [PATCH] Fix for "parameterize" regression (#1336), caused by fix for #1227

2016-12-07 Thread Peter Bex
es in any case. Cheers, Peter From 490c445e40691df7a7eb47e5da6ddef7235c440f Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Tue, 6 Dec 2016 22:12:59 +0100 Subject: [PATCH 1/2] Save "current" values when leaving parameterizes. These remembered parameter values are reinstated when we enter the dynamic extent again, in

Re: [Chicken-hackers] [PATCH] Improve read/write invariance of keywords (#1332)

2016-11-05 Thread Peter Bex
le for humans (no pun intended). This new patch now does this only for CHICKEN 5, and only for "write". Cheers, Peter From d7ac6eeadf89ad79d604db4c96bb8dfc8afea41b Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Tue, 1 Nov 2016 15:18:26 +0100 Subject: [PATCH 1/2] Improve read/write invariance of keywords (#1332).

[Chicken-hackers] [PATCH] Improve read/write invariance of keywords (#1332)

2016-11-01 Thread Peter Bex
I'm just not 100% sure if changing the way we write keywords should be done on master. On one hand, it's sort of a breaking change. On the other hand, it isn't because old CHICKENs can of course still read these "portable" keywords. Cheers, Peter From 7f8efdafad827f4c38c

Re: [Chicken-hackers] [PATCH] [5] Let's get rid of ##sys#fudge

2016-10-27 Thread Peter Bex
thingies (major, minor, binary) as procedures or constants from Scheme as well. > On 2016-10-14 22:24, Peter Bex wrote: > > I noticed that the srfi-18 egg is using (##sys#fudge 12). This can be > > replaced with (##core#inline "C_i_tty_forcedp()")

[Chicken-hackers] [PATCH] [5] Let's get rid of ##sys#fudge

2016-10-14 Thread Peter Bex
12). This can be replaced with (##core#inline "C_i_tty_forcedp()") instead, now. Cheers, Peter From 2c1ae6230d8e98d40199ea042848903bb29ddc74 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Tue, 11 Oct 2016 21:42:30 +0200 Subject: [PATCH 1/9] Replace uses of (##sys#fudge 7) by C

Re: [Chicken-hackers] [PATCH] [CHICKEN 5] Change numerics representations

2016-10-04 Thread Peter Bex
On Mon, Oct 03, 2016 at 09:12:53PM +0200, felix.winkelm...@bevuta.com wrote: > > On Mon, Aug 08, 2016 at 10:56:39PM +0200, Peter Bex wrote: > > > The attached patches add a custom type for bignums (first patch) and > > > custom types for ratnums/cplxnums (second p

Re: [Chicken-hackers] [PATCH] [CHICKEN 5] Change numerics representations

2016-10-01 Thread Peter Bex
On Mon, Aug 08, 2016 at 10:56:39PM +0200, Peter Bex wrote: > The attached patches add a custom type for bignums (first patch) and > custom types for ratnums/cplxnums (second patch). This reduces the > aforementioned C_s_a_i_times() pre-allocation from 40 to 29 words. Here's an u

[Chicken-hackers] Removing C_BUCKET_TYPE tag [Was: Re: [PATCH] [5] Simplify weak symbol GC and make it the default]

2016-09-29 Thread Peter Bex
l hash table bucket lists. This is actually patch 3/3 of the original set; as you noticed in the subject in the other patches. Cheers, Peter From 5ffe42ed777e8dca876495c231414b9d1083305d Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Sat, 3 Sep 2016 18:45:54 +0200 Subject: [PATCH 3/3] Remove

Re: [Chicken-hackers] [PATCH] [5] Simplify weak symbol GC and make it the default

2016-09-29 Thread Peter Bex
On Thu, Sep 29, 2016 at 01:49:47PM +0200, felix.winkelm...@bevuta.com wrote: > Hello! > > I'm currently trying to evaluate these patches and have a few questions: > > - If I understand correctly, a symbol must be explicitly persisted by marking > it using > "C_i_persist_symbol", but that onl

[Chicken-hackers] [PATCH] Fix #1317

2016-09-24 Thread Peter Bex
working values. I decided not to add fibc as a test, because it's such an extremely specific issue, and it's hard to guarantee that it will be compiled exactly in such a way that it triggers this bug. Cheers, Peter From 7b76d0cbf56d54fc19f16b6aeee5600cb58270b0 Mon Sep 17 00:00:00 2001 F

Re: [Chicken-hackers] [PATCH] Make (time) annonce the maximum heap size used

2016-09-18 Thread Peter Bex
4fc31f84f2aeee1ecdfb63bed392f23e Mon Sep 17 00:00:00 2001 From: Kooda Date: Fri, 16 Sep 2016 17:20:30 +0200 Subject: [PATCH] Make (time) show the maximum heap usage Signed-off-by: Peter Bex --- NEWS| 3 +++ library.scm | 22 +- runtime.c | 20 +--- 3

Re: [Chicken-hackers] [PATCH] Detect and signal error on stack overflow in `apply`

2016-09-10 Thread Peter Bex
On Sat, Sep 10, 2016 at 10:58:28PM +1200, Evan Hanson wrote: > On 2016-09-10 12:41, Peter Bex wrote: > > Looks good to me, except for one thing: changing the signature of > > C_stack_overflow(). This should be avoided in master, because who > > knows what eggs rely on this

Re: [Chicken-hackers] [PATCH] Detect and signal error on stack overflow in `apply`

2016-09-10 Thread Peter Bex
On Sat, Sep 10, 2016 at 10:27:21PM +1200, Evan Hanson wrote: > I think looping forever in this situation is potentially quite nasty for > users, since without an understanding of how `apply` works under the > hood it'd be very difficult to debug. You raise a good point. I agree this needs improve

Re: [Chicken-hackers] [PATCH] patches for feathers

2016-09-10 Thread Peter Bex
On Fri, Sep 02, 2016 at 04:08:17PM +0200, felix.winkelm...@bevuta.com wrote: > Hello! > > > The following two patches change the default colors in feathers to something > more neutral and fix an issue with the use of the source file search path: > running the debugger in a different directory did

[Chicken-hackers] [PATCH] Update irregex to 0.9.5

2016-09-10 Thread Peter Bex
ply applies the upstream patch, bringing us up-to-date again. It applies to master and chicken-5, and should go into both branches I think. Cheers, Peter From f1a57cb400cb4fb12abfd87a36a76ceab1d1bc46 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Sat, 10 Sep 2016 11:29:55 +0200 Subject: [PATCH] Up

[Chicken-hackers] [PATCH] [5] Simplify weak symbol GC and make it the default

2016-09-03 Thread Peter Bex
more info about why and how, let me know and I'll try to explain. The patches themselves also have extensive commit messages to explain what they do, and I've tried to add comments here and there to clarify some more. Cheers, Peter From 7dbad6b6e02443ea3a214ba56b82f2920d519519 Mon Sep 17

Re: [Chicken-hackers] Windows 10, MinGW-W64, Chicken 4.11, "invalid encoded numeric literal"

2016-08-27 Thread Peter Bex
On Sat, Aug 27, 2016 at 05:32:35PM -0400, Claude Marinier wrote: > Windows 10 does not seem to have the concept of the "C" locale. I suspect > but cannot confirm that US_English may be equivalent to "C". Since I have > a working Chicken, I am inclined to leave it as is. Sure, that's fine. What re

[Chicken-hackers] New and improved: Find out which bug has your name written all over it!

2016-08-27 Thread Peter Bex
Hello CHICKEN users, Are you itching to contribute to CHICKEN but afraid that fixing actual bugs is too hard? Have you always wanted to hack on the core system, but never knew where to begin? Are you bored out of your skull and looking for a tough challenge hacking CHICKEN core? Now's your time

Re: [Chicken-hackers] Windows 10, MinGW-W64, Chicken 4.11, "invalid encoded numeric literal"

2016-08-27 Thread Peter Bex
On Sat, Aug 27, 2016 at 01:03:03PM -0300, Hugo Arregui wrote: > I had a very similar problem using gtk and chicken, and it was a locale > problem. Here you can find a very simple test case to reproduce the problem: Many thanks, Hugo! I've added it to Trac: https://bugs.call-cc.org/ticket/1322 Ch

Re: [Chicken-hackers] Windows 10, MinGW-W64, Chicken 4.11, "invalid encoded numeric literal"

2016-08-27 Thread Peter Bex
On Sat, Aug 27, 2016 at 11:08:20AM -0400, Claude Marinier wrote: > We have seen this before but these may not be related. > https://github.com/nickg/swank-chicken/issues/10 > > http://nongnu.13855.n7.nabble.com/quot-panic-invalid-encoded-numeric-literal-quot-with-gtk-td196533.html > > The other

Re: [Chicken-hackers] Windows 10, MinGW-W64, Chicken 4.11, "invalid encoded numeric literal"

2016-08-27 Thread Peter Bex
On Sat, Aug 27, 2016 at 11:08:20AM -0400, Claude Marinier wrote: > On Sat, Aug 27, 2016 at 10:22AM -0400, Peter Bex wrote: > > The previous installation was built with a 64-bit toolchain? > > Hi Peter, > > Yes. When I installed MinGW-M64 I chose the 64-bit option and I bui

Re: [Chicken-hackers] Windows 10, MinGW-W64, Chicken 4.11, "invalid encoded numeric literal"

2016-08-27 Thread Peter Bex
On Sat, Aug 27, 2016 at 09:14:32AM -0400, Claude Marinier wrote: > I have solved the immediate problem by purging the Windows machine from > MinGW and re-installing MinGW-W64 with the i686 architecture. Everything > works well. Hi Claude, The previous installation was built with a 64-bit toolchai

[Chicken-hackers] [PATCH] Fix #1173 (weak symbol GC)

2016-08-24 Thread Peter Bex
rk is a great one to test performance of weak symbol GC, it creates boatloads of symbols. Cheers, Peter From fd56a734ea4249db9f41f9c8296e4434d12a325f Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Wed, 24 Aug 2016 21:04:37 +0200 Subject: [PATCH] Fix symbol GC: add wep lookup after fptr cha

Re: [Chicken-hackers] [PATCH] [REPOST] Make temporary stack resizable (fixes #1098)

2016-08-15 Thread Peter Bex
On Thu, Jan 14, 2016 at 09:19:19PM +0100, Peter Bex wrote: > On Sat, Oct 31, 2015 at 08:19:44PM +0100, Peter Bex wrote: > > So, here we go, a patch to dynamically resize the temporary stack. > > Even mentioned on IRC that it may be useful to have the current > behaviour (a fix

Re: [Chicken-hackers] [PATCH] [CHICKEN 5] Change numerics representations

2016-08-12 Thread Peter Bex
On Tue, Aug 09, 2016 at 10:31:54AM +0200, felix.winkelm...@bevuta.com wrote: > > All in all, I think these changes are worthwhile but for the caveat > > that it results in us having NO MORE reserved type tags left! In > > fact, the complete change is only possible because we dropped the > > SWIG p

Re: [Chicken-hackers] Fix buffer overflow found by #1308

2016-08-11 Thread Peter Bex
On Fri, Aug 12, 2016 at 06:23:16PM +1200, Evan Hanson wrote: > Hi folks, > > Looks good, thanks for digging into this issue. I've pushed these. I > also restored the return value of process-spawn, which was changed by > the patch (unintentionally, I think) but must preserve the result of > spawnvp

Re: [Chicken-hackers] [PATCH] [CHICKEN 5] Change numerics representations

2016-08-09 Thread Peter Bex
On Tue, Aug 09, 2016 at 10:31:54AM +0200, felix.winkelm...@bevuta.com wrote: > > All in all, I think these changes are worthwhile but for the caveat > > that it results in us having NO MORE reserved type tags left! In > > fact, the complete change is only possible because we dropped the > > SWIG p

Re: [Chicken-hackers] [PATCH] [CHICKEN 5] Change numerics representations

2016-08-09 Thread Peter Bex
On Tue, Aug 09, 2016 at 02:15:56PM -0400, John Cowan wrote: > Peter Bex scripsit: > Tagged pointers are > useful because the tag gives them a Scheme-detectable type, so that you > can write: > > (define (frob? obj) > (and > (tagged-pointer? obj) > (

Re: [Chicken-hackers] [PATCH][5] Add `include-relative` form to "chicken" module

2016-08-09 Thread Peter Bex
On Tue, Aug 09, 2016 at 11:55:38PM +1200, Evan Hanson wrote: > Hi Peter, > On 2016-07-16 20:11, Peter Bex wrote: > > An include-relative is defined by the s48-modules egg. I think it > > makes more sense to have that, especially considering we also have > > load-relative.

Re: [Chicken-hackers] [PATCH] [CHICKEN 5] Change numerics representations

2016-08-09 Thread Peter Bex
On Tue, Aug 09, 2016 at 10:31:54AM +0200, felix.winkelm...@bevuta.com wrote: > > All in all, I think these changes are worthwhile but for the caveat > > that it results in us having NO MORE reserved type tags left! In > > fact, the complete change is only possible because we dropped the > > SWIG p

[Chicken-hackers] [PATCH] [CHICKEN 5] Change numerics representations

2016-08-08 Thread Peter Bex
Making bignums more "core" (first patch) is a great move overall, I think, so I'd urge you to certainly consider that one. It also results in a gain in pre-allocation savings that's as big as the combined change of ratnums & cplxnums. Please, discuss! Cheers, Peter From b05

Re: [Chicken-hackers] Fix buffer overflow found by #1308

2016-07-30 Thread Peter Bex
On Thu, Jul 28, 2016 at 09:19:14PM +0200, Peter Bex wrote: > We've discussed this some more on IRC, and I think that we all agree > that it's better to refactor this whole mess. The attached patch is > a complete overhaul of process-execute and process-spawn (which was > e

Re: [Chicken-hackers] Fix buffer overflow found by #1308

2016-07-28 Thread Peter Bex
self would fail. Most C code in these procedures was rewritten to Scheme. Signed-off-by: Peter Bex --- NEWS| 6 ++ manual/Acknowledgements | 44 +++--- posix-common.scm| 65 +++- posixunix.scm | 83 - p

[Chicken-hackers] Add scrutiny special case for "append" [was: Re: [PATCH] Fix list-ref type derivation for smashed lists [was: Re: [PATCH] A few small performance and scrutiny warning improvements to

2016-07-24 Thread Peter Bex
On Sun, Jul 24, 2016 at 08:32:31PM +0200, Peter Bex wrote: > The attached patch fixes this by only allowing this specialisation > for lists that are known to be proper. This means anything that > ends with a smashed component, which is (or pair null), it will not > be considered t

[Chicken-hackers] [PATCH] Fix list-ref type derivation for smashed lists [was: Re: [PATCH] A few small performance and scrutiny warning improvements to assignments]

2016-07-24 Thread Peter Bex
On Thu, Jul 14, 2016 at 09:08:57PM +0200, Peter Bex wrote: > Patch 0003 is a simple modification based on the preceding one: it > gives a scrutiny warning when you try to set or ref a vector at an > index that is known not to exist. For completeness, I also did this > for list-re

Re: [Chicken-hackers] [PATCH] A few small performance and scrutiny warning improvements to assignments

2016-07-24 Thread Peter Bex
On Sun, Jul 24, 2016 at 09:18:14PM +1200, Evan Hanson wrote: > Hi Peter, > > Good improvements all, pushed. > > Regarding your note about special-casing `vector-length`, I'm curious > why you think it wouldn't make sense? It seems worthwhile to me. It seems silly to ask the length of a vector th

Re: [Chicken-hackers] Improved manpages [was: (no subject)]

2016-07-23 Thread Peter Bex
bject: [PATCH] rewrite chicken manuals to use mdoc(7) This makes the mdoc(7) format the default on all platforms. If old man(7) format is required the mdoc(7) pages can be converted to man format and `MAN=.man' option can be set in platform specific makefile to copy those files as manual pages

Re: [Chicken-hackers] user-information update for OpenBSD

2016-07-19 Thread Peter Bex
On Tue, Jul 19, 2016 at 12:13:28PM -0400, John Cowan wrote: > Christian Kellermann scripsit: > > > Maybe it makes sense to split out the sensitive information from the > > user-information for all Operating systems and thinking of another set > > of procedures that will produce the credentials. Th

Re: [Chicken-hackers] Using mandoc for chicken manual pages?

2016-07-19 Thread Peter Bex
On Tue, Jul 19, 2016 at 10:53:07AM +0300, Timo Myyrä wrote: > Hi, > > Chicken manuals are currently little sparse and use older man(7) format. > Would it make sense to update the manual pages and switch to using mdoc(7) > format in them? Mdoc(7) format is easier to work on and the manual pages nee

Re: [Chicken-hackers] scheme-bytestructures, multi-implementation libraries

2016-07-18 Thread Peter Bex
On Mon, Jul 18, 2016 at 05:18:54PM +0200, felix.winkelm...@bevuta.com wrote: > > On Mon, Jul 18, 2016 at 03:59:52PM +0200, felix.winkelm...@bevuta.com wrote: > > > > I think it would be good for chicken's spread and adoption in the scheme > > > > world if its install system supported this case of m

Re: [Chicken-hackers] scheme-bytestructures, multi-implementation libraries

2016-07-18 Thread Peter Bex
On Mon, Jul 18, 2016 at 03:59:52PM +0200, felix.winkelm...@bevuta.com wrote: > > I think it would be good for chicken's spread and adoption in the scheme > > world if its install system supported this case of multi-implementation > > libraries, where the chicken-specific files can all be in a > > s

Re: [Chicken-hackers] [PATCH] Hash all the record slots

2016-07-16 Thread Peter Bex
On Sun, May 29, 2016 at 10:27:25PM +0200, lemonboy wrote: > Hello, > While investigating the ticket #1293 [1] I noticed that the hashing > procedures would stop hashing all the vectors > at the 4th element and while that's a valuable way to speed up the > hashing process it causes some problems in

Re: [Chicken-hackers] [PATCH][5] Include files relative to the current source file

2016-07-16 Thread Peter Bex
On Sat, May 28, 2016 at 11:01:56PM +1200, Evan Hanson wrote: > Hi folks, > > Here's another patch for chicken-5. It makes "(include ...)" search for > files relative to the including file. Relative includes are given the > lowest search priority, i.e. they are only used when the included file > is

Re: [Chicken-hackers] [PATCH] Reschedule when a thread blocked on thread-join! is forcibly resumed

2016-07-14 Thread Peter Bex
On Thu, Jun 02, 2016 at 06:41:21PM +1200, Evan Hanson wrote: > Hi folks, > > After some digging I've found a small bug in our srfi-18 implementation > that can have quite sinister effects on programs unlucky enough to be > affected by it. Here's the commit message: > > > When a thread that's wait

[Chicken-hackers] [PATCH] A few small performance and scrutiny warning improvements to assignments

2016-07-14 Thread Peter Bex
might (hopefully) catch that. So I really think that it is worthwhile to add these to master as well as chicken-5. Cheers, Peter From 3bfd411f09e3c38d6260076ed3d43a525618dd13 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Fri, 8 Jul 2016 19:30:58 +0200 Subject: [PATCH 1/4] Do not track set! to kn

Re: [Chicken-hackers] [PATCH 0/5][5] Generalize port directionality and add basic refinement types

2016-07-09 Thread Peter Bex
On Thu, Jun 30, 2016 at 08:09:44PM +1200, Evan Hanson wrote: > Hi hackers, > > Here is a quite large patchset that, at its heart, adds support for > multidirectional ports by converting the simple boolean flag indicating > whether a port is for input or output to a bitmap. This was great work, on

[Chicken-hackers] [PATCH][5] C_permanentp should return false for objects in scratch space

2016-06-29 Thread Peter Bex
the next GC, so they aren't permanent! The attached patch should be simple enough and adds a check for this. Cheers, Peter From e8306cd8dbe04367005c106d4aac0ee790c1a259 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Wed, 29 Jun 2016 16:38:16 +0200 Subject: [PATCH] Teach C_permanentp abo

Re: [Chicken-hackers] Add with-error-to-string to ports unit

2016-06-22 Thread Peter Bex
h also tweaks types.db a bit to improve the type for the *-to-string procedures, indicating they always return one value, which is always a string. Thanks for your suggestion, Michael! Cheers, Peter From 8562617c9c4d3edbda364d44018fb7f86ff5680c Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Wed, 22

Re: [Chicken-hackers] Add with-error-to-string to ports unit

2016-06-20 Thread Peter Bex
On Sun, Jun 19, 2016 at 10:07:03PM -0400, Michael Silver wrote: > Hello chicken-hackers, > > I think it would be nice to add Guile’s with-error-to-string function to > CHICKEN’s ports unit: > > ;; Call procedure THUNK with the current error output-port temporarily > ;; bound to a string-output-p

Re: [Chicken-hackers] [PATCH 0/4] Various scrutinizer improvements

2016-06-18 Thread Peter Bex
On Mon, Feb 15, 2016 at 08:27:49PM +0100, Peter Bex wrote: > On Mon, Feb 15, 2016 at 11:09:43PM +1300, Evan Hanson wrote: > > Hi all, > > > > Attached are some scrutinizer patches. > > These are nice but the first is also a little bit on the large side, so > I&#

Re: [Chicken-hackers] [PATCH] Clear fd list and suspend I/O threads on process-fork w/kill-other-threads

2016-06-17 Thread Peter Bex
On Sat, Jun 11, 2016 at 01:05:37PM +1200, Evan Hanson wrote: > Previously, ##sys#kill-other-threads wouldn't clear the ##sys#fd-list, > leading to errors when unrecognized file descriptors were encountered > during scheduling. Additionally, it would set slots in random heap > locations near ##sys#f

[Chicken-hackers] [PATCH] Fix hygiene in ##sys#expand-extended-lambda-list

2016-06-17 Thread Peter Bex
This patch applies to both master and chicken-5, and I *think* it completely fixes #806, but you never know for sure ;) Cheers, Peter From 7946bf229bd944cdf66192c13885b38dcdcbd26b Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Fri, 17 Jun 2016 17:17:01 +0200 Subject: [PATCH] Fix several hygiene

Re: [Chicken-hackers] [PATCH][5] Make `sleep` suspend thread if scheduler is loaded, process otherwise

2016-06-16 Thread Peter Bex
On Fri, Jun 10, 2016 at 03:24:42PM +1200, Evan Hanson wrote: > Hello, > > Here's another bit of work from the roadmap: it makes the behaviour of > `sleep` more intuitive in the presence or absence of threads. See the > commit message for details. Thanks, pushed. > There's an accompanying patch f

Re: [Chicken-hackers] [PATCH] Make CHICKEN build process deterministic

2016-06-16 Thread Peter Bex
On Mon, Jun 06, 2016 at 10:48:16PM +0200, Kooda wrote: > That’s not the only problem here. Any call to (random) in the compiler > might cause non-determinism in the output, as well as calls to > (current-seconds) for example. > > If the method used in this patch not suitable, I’ll happily do it so

Re: [Chicken-hackers] [PATCH 0/3][5] More chicken-5 module work

2016-06-16 Thread Peter Bex
On Sat, Jun 04, 2016 at 12:03:22AM +1200, Evan Hanson wrote: > Hi folks, > > Here are some library reorganization patches for chicken-5. Great stuff, as usual! I've pushed this. > The first creates a "chicken.memory" module per the "ICC minutes" on the > reorg page[1]. I only moved the procedur

Re: [Chicken-hackers] [PATCH] Truncate overlong lines in ##sys#error-handler

2016-05-31 Thread Peter Bex
00:00 2001 From: LemonBoy Date: Wed, 25 May 2016 21:35:11 +0200 Subject: [PATCH] Truncate overlong lines in ##sys#error-handler Signed-off-by: Peter Bex --- NEWS| 2 ++ library.scm | 34 -- 2 files changed, 22 insertions(+), 14 deletions(-) diff --git

Re: [Chicken-hackers] [PATCH][5] Drop unnecessary boxing of constant-table entries

2016-05-31 Thread Peter Bex
On Mon, May 30, 2016 at 10:39:37AM +1200, Evan Hanson wrote: > We can even go a bit further still and get rid of the boxing of values > in the constants table, by the same line of reasoning. Patch attached. Makes perfect sense. Pushed. Cheers, Peter signature.asc Description: Digital signature

Re: [Chicken-hackers] [PATCH] Truncate overlong lines in ##sys#error-handler

2016-05-29 Thread Peter Bex
On Wed, May 25, 2016 at 09:41:52PM +0200, lemonboy wrote: > Hello, > this patch makes ##sys#error-handler respect the width limit as it's > done in the other code paths. > (Limits have been bumped to 100 to make those uniform throughout the code) > I hope the merge window is still open :) I tested

[Chicken-hackers] [PATCH][5] Remove unnecessary booleans inline-table-used and constants-used

2016-05-29 Thread Peter Bex
fail if you did (define-constant foo #f), but we insert (quote #f) in the table now so it's safe. The inline-table has only procedures, so it can't have #f either. Cheers, Peter From 70406a0b9c8c1796d5074288040f98ade7ad0020 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Sun, 29 May 2016

Re: [Chicken-hackers] [PATCH] Make `define-constant` support singly-quoted symbols

2016-05-29 Thread Peter Bex
l enough and the bug is nasty enough to warrant a backport to master. This is also attached. Cheers, Peter From 1a9f3d60be0e9068bfa587696f7c1a379fd2bcaf Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Sun, 29 May 2016 15:54:58 +0200 Subject: [PATCH] Allows the following program to work correctly:

Re: [Chicken-hackers] [PATCH] Truncate overlong lines in ##sys#error-handler

2016-05-26 Thread Peter Bex
On Wed, May 25, 2016 at 09:41:52PM +0200, lemonboy wrote: > Hello, > this patch makes ##sys#error-handler respect the width limit as it's > done in the other code paths. > (Limits have been bumped to 100 to make those uniform throughout the code) > I hope the merge window is still open :) The wind

Re: [Chicken-hackers] [PATCH] [PRERELEASE] Fix #1285

2016-05-22 Thread Peter Bex
On Sun, May 22, 2016 at 09:28:34AM +1200, Evan Hanson wrote: > Hi Peter, > > Thanks for looking into this. Your patch looks good as a fix for the > parameter restoration problem, but we also need to return the new value > from these fake parameters when they're called with arguments, even when > `

Re: [Chicken-hackers] PATCH Re: slow polling

2016-05-20 Thread Peter Bex
On Fri, Feb 19, 2016 at 10:39:23PM +0100, Jörg F. Wittenberger wrote: > A "Betthupferl" is Bavarian (a German dialect spoken in some remote, > hilly areas) for the last, small mean given to the kids upon bedtime. > Contradictory to all teachings often a sweet. > > This patch is not supposed to do

Re: [Chicken-hackers] [Chicken-users] [PATCH] (low priority) Make locative-ref inlineable (ticket #1260)

2016-05-19 Thread Peter Bex
On Thu, May 19, 2016 at 09:51:02PM +0200, Peter Bex wrote: > I made small changes to your version: > - Added a NEWS entry to point out that C_locative_ref is deprecated Of course, the version in NEWS shouldn't be 4.12.0 already, but 4.11.1. Attached is a new patch with the correc

Re: [Chicken-hackers] [Chicken-users] [PATCH] (low priority) Make locative-ref inlineable (ticket #1260)

2016-05-19 Thread Peter Bex
f - Add a compiler rewrite for locative-ref - Add a specialization for locative-ref on locatives Signed-off-by: Peter Bex --- NEWS | 6 ++ c-platform.scm | 2 +- chicken.h | 3 ++- lolevel.scm| 3 ++- runtime.c | 29 +++-- types.db

Re: [Chicken-hackers] slow polling

2016-05-18 Thread Peter Bex
On Wed, Feb 24, 2016 at 08:57:43AM +0100, Peter Bex wrote: > I've done some tests and I was able to get strange behaviour from the > scheduler, see > http://paste.call-cc.org/paste?id=d9e4c5b8f8473fd1114dcec56c9c8a079b252362 > However, none of these behaved any different unde

Re: [Chicken-hackers] PATCH: more efficient scheduler

2016-05-18 Thread Peter Bex
On Mon, Feb 15, 2016 at 01:57:52PM +0100, Jörg F. Wittenberger wrote: > Hi, > > the attached patch does not fix any bugs. It brings some performance > improvements under certain load conditions. The cost: It adds the > overhead of another counter and a dispatch on a a fixnum modulo > operation -

Re: [Chicken-hackers] force-primordial - dunno what to do

2016-05-18 Thread Peter Bex
On Mon, Feb 15, 2016 at 12:36:59PM +0100, Jörg F. Wittenberger wrote: > in case nobody finds why we ##sys#force-primordial find a patch attached > which simply removes it. Hello Joerg, I've finally had some time and tested with your patch and without, and found that with the patch, the REPL start

[Chicken-hackers] [PATCH] [PRERELEASE] Fix #1285

2016-05-16 Thread Peter Bex
d91d5424f5ab3a8 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Mon, 16 May 2016 13:01:35 +0200 Subject: [PATCH] Make setters special-cased parameter setters compatible with new-style parameterize If set? if #f it should not try to set the value. This would prevent parameterize from restoring the

Re: [Chicken-hackers] [PATCH][5] Modularise csi

2016-05-12 Thread Peter Bex
On Wed, Apr 27, 2016 at 10:33:54PM +1200, Evan Hanson wrote: > Another for chicken-5. Thanks, pushed. > I hope the removal of the "unused because it is > stupid" banner is uncontroversial. Yeah, I detested it anyway ;) Cheers, Peter signature.asc Description: Digital signature ___

Re: [Chicken-hackers] [PATCH] Convert the shift count to a unsigned word for fxshr

2016-05-12 Thread Peter Bex
On Thu, May 05, 2016 at 01:18:56PM +1200, Evan Hanson wrote: > From: LemonBoy > > Make it behave consistently with regards to fxshl. Thanks, pushed. I agree with Evan that the "unresolved module error" message is mostly fine. Cheers, Peter signature.asc Description: Digital signature ___

Re: [Chicken-hackers] [PATCH] Change how unbound variables are checked for

2016-05-02 Thread Peter Bex
On Fri, Apr 29, 2016 at 03:14:40PM +1200, Evan Hanson wrote: > Looks good to me, here's a signed-off copy. Thanks guys, I've pushed this (to chicken-5 only). Cheers, Peter signature.asc Description: Digital signature ___ Chicken-hackers mailing list C

Re: [Chicken-hackers] [PATCH] Move pathname procedures to new chicken.pathname module

2016-04-25 Thread Peter Bex
On Fri, Apr 22, 2016 at 12:04:31PM +1200, Evan Hanson wrote: Thanks for the patch, Evan. I've pushed it, after making two small adjustments: - In types.db, you only renamed files. to pathname. in the first occurence of the identifier, but not the redundant name inside the definition. - In

[Chicken-hackers] [PATCH] [PRERELEASE] Fix #1283

2016-04-24 Thread Peter Bex
eep the patch as simple and understandable as possible, so it doesn't involve a complete code overhaul just before the second release candidate. The attached patches should go into prerelease, master and chicken-5. Cheers, Peter From da775e531dc40dafcd3f4d1d95b60aec261d08af Mon Sep 17 00:00:00 200

Re: [Chicken-hackers] PATCH -- FIX for bug #1280

2016-04-23 Thread Peter Bex
Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Sat, 23 Apr 2016 20:43:11 +0200 Subject: [PATCH] Fix fixnum literal decoding on ARM64 (#1280). In literal_decode, we relied on sign extension of characters when putting them into a C_word. On ARM64, characters are unsigned by default, which cause

Re: [Chicken-hackers] [PATCH 0/2][chicken-5] csc flag for linking with objects from extensions

2016-04-17 Thread Peter Bex
On Sun, Apr 03, 2016 at 03:40:43PM +1200, Evan Hanson wrote: > Hi folks, > > Here's a patchset that adds a simple way to link with object files from > extensions. With it, "csc -link foo ..." adds "foo.o" from either the > current directory or extension repository to the csc's link step, and > "-u

Re: [Chicken-hackers] [PATCH] Move user-pass parameters to dedicated module

2016-04-17 Thread Peter Bex
On Mon, Apr 04, 2016 at 04:06:56PM +1200, Evan Hanson wrote: > Now that the compiler driver is a module, the parameters containing > user-defined compilation passes need to be exposed so that that they can > be imported and used in compiler extensions. Applied, thanks! PS: You forgot to add chick

Re: [Chicken-hackers] [PATCH] [PRERELEASE] Remove some ancient README notes

2016-04-16 Thread Peter Bex
On Sat, Apr 16, 2016 at 12:01:43PM -0400, John Cowan wrote: > Peter Bex scripsit: > > > @@ -655,7 +623,7 @@ > > To build a bootstrapping compiler yourself, get the most > > recent release tarball from http://code.call-cc.org, unpack > > i

[Chicken-hackers] [PATCH] [PRERELEASE] Remove some ancient README notes

2016-04-16 Thread Peter Bex
apply-hack?). Please check if these are okay and apply to all 3 branches. Cheers, Peter From a8374495bcfc8783a9039f86e92fed90401201a4 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Sat, 16 Apr 2016 17:55:40 +0200 Subject: [PATCH] Remove a few outdated notes from README Some notes about extremely old GC

Re: [Chicken-hackers] [PATCH] On OS X, ensure DYLD_LIBRARY_PATH is passed to children (#1277)

2016-04-16 Thread Peter Bex
On Sat, Apr 16, 2016 at 12:36:14AM -0500, Jim Ursetto wrote: > Here is a patch which uses the env idea. > It is a much less invasive change and might slot into 4.11. Many thanks, I really like this as it doesn't influence the rest of the code too much. We can see about a "proper" solution for C

Re: [Chicken-hackers] [PATCH] #1277 make check failure on OS X 10.11

2016-04-15 Thread Peter Bex
On Fri, Apr 15, 2016 at 09:14:25AM +0200, felix.winkelm...@bevuta.com wrote: > > This is an initial patchset for #1277 on which I invite comments. > > Note that I'm currently revamping the chicken-5 egg setup stuff, which means > that > shell command execution will be significantly changed in tha

[Chicken-hackers] [PATCH] [PRERELEASE] Fix #1279; make the debugger work on 32-bit machines

2016-04-11 Thread Peter Bex
e1b29a6840ad2daf4a8f249394154486f318adf8 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Mon, 11 Apr 2016 22:28:45 +0200 Subject: [PATCH] Fix dbg-stub formatting strings to be 32-bit clean The formatting strings used were specific to integer widths on 64-bit machines, which meant there were problems with debugging on 32

[Chicken-hackers] [PATCH][5] Remove unsupported (define-syntax (foo e r c) ...) syntax

2016-04-03 Thread Peter Bex
uld drop it altogether in master, but to avoid breaking any code (it was never officially deprecated because it was never mentioned in the NEWS file), I decided to stay on the safe side and remove it for chicken-5 only. Cheers, Peter From b9dbe89e6f32916fa34475b5a5343376c974ba9d Mon Sep 17 00:00:00 2

[Chicken-hackers] [PATCH] Fix #1274

2016-04-03 Thread Peter Bex
ot;implicit multival" definition. There were two small merge conflicts due to the renames of defjam-error and expand-curried-define, so I'm also attaching a chicken-5 version of the patch. For the rest it is identical. Cheers, Peter From 27b4c3a7a8c8151308299691d4651eb48b2fc9cf Mon Sep 17 00

Re: [Chicken-hackers] Fix attempt for bug #1269 "Port or reader state corruption"

2016-04-03 Thread Peter Bex
On Sun, Apr 03, 2016 at 06:36:16PM +1200, Evan Hanson wrote: > Hi all, > > Signoff attached. > > As Kooda says, this applies and tests fine on the chicken-5 branch as > well. > > Thanks very much for pursuing this, and thanks also to lemonboy for the > initial report and subsequent testing and i

[Chicken-hackers] [PATCH] Fix string->number (bug #1272) by checking early for invalid bases

2016-03-31 Thread Peter Bex
update is listed, and for consistency reasons. (it applies cleanly to both branches, here) Cheers, Peter From d638a3ea46d9f124c01861da93bcbd024f66e972 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Thu, 31 Mar 2016 21:40:29 +0200 Subject: [PATCH] Fix invalid base handling of string->number Bef

Re: [Chicken-hackers] [PATCH] Add support for sudo alternatives

2016-03-28 Thread Peter Bex
On Mon, Mar 28, 2016 at 01:32:56PM +1300, Evan Hanson wrote: > That's a nice change indeed, pushed. Thanks, Timo and Peter. > > Note that the current implementation doesn't allow for Matt's example > use case directly, since it shell-quotes the $SUDO command and thus > won't allow passing option f

[Chicken-hackers] [PATCH] Add support for sudo alternatives through SUDO envvar [was: Re: [Chicken-users] Add support for sudo alternatives]

2016-03-27 Thread Peter Bex
f the environment variable isn't set. Thanks to Timo Myyrä Signed-off-by: Peter Bex --- NEWS | 2 ++ chicken-install.1 | 4 chicken-install.scm | 4 ++-- chicken-uninstall.1 | 3 +++ chicken-uninstall.scm | 2 +- manual/Extensions | 6 +++--- setup

<    3   4   5   6   7   8   9   10   11   12   >