Re: [Chicken-hackers] [PATCH][5] numbers integration

2015-02-12 Thread Peter Bex
On Wed, Feb 11, 2015 at 02:14:52PM +0100, Peter Bex wrote: [long story about way too complex performance hacks] I'd have to seriously think about this and whether it's feasible at all. It may not be worth it, due to the disadvantages I mentioned. Good news, everyone! I had another look

Re: [Chicken-hackers] [PATCH][5] numbers integration

2015-02-11 Thread Peter Bex
On Wed, Feb 11, 2015 at 01:09:23PM +0100, Felix Winkelmann wrote: Micro-optimizations won't give much, as Peter said: the CPS calls are what's expensive and there is no fast path that one could take. If, for example one would implement optimistic inlining (as in the Feeley paper), where one

Re: [Chicken-hackers] [PATCH][5] numbers integration

2015-02-09 Thread Peter Bex
On Mon, Feb 09, 2015 at 11:40:56PM +0900, Alex Shinn wrote: On Mon, Feb 9, 2015 at 3:22 AM, Peter Bex pe...@more-magic.net wrote: Hello CHICKEN hackers, I finally finished integrating the code from the numbers egg into CHICKEN 5! Wow, nice work. Thanks, everyone :) Personally

[Chicken-hackers] [PATCH][5] numbers integration

2015-02-08 Thread Peter Bex
Hello CHICKEN hackers, I finally finished integrating the code from the numbers egg into CHICKEN 5! This is quite a big change, so I decided not to send patches to the list, instead you can find this work under the numbers-integration branch. If you were curious and checked it out before, you

Re: [Chicken-hackers] extracting srfi-1 from chicken 5

2015-02-01 Thread Peter Bex
On Sun, Feb 01, 2015 at 05:23:11PM -0500, John Cowan wrote: Felix Winkelmann scripsit: - There is an include file (mini-srfi-1.scm) that holds the procedures that are currently needed. It is included by several units, mostly compiler units. This sounds like the Right Thing. We'll

Re: [Chicken-hackers] adds errno-string to posix-common.scm

2015-01-29 Thread Peter Bex
On Wed, Jan 28, 2015 at 04:59:13PM -0700, Alexej Magura wrote: The patch attached adds a binding to /strerror /to posix-common.scm^* (version 4.9.0.1). The other attachment is the patched file, to make it easier to merge the changes with upstream. I've already tested the changes: it compiles

Re: [Chicken-hackers] [PATCH][5] Move foldable binding annotations into types.db

2015-01-19 Thread Peter Bex
On Tue, Jan 13, 2015 at 07:26:24AM +1300, Evan Hanson wrote: Attached is a patch that makes these -string procedures consistently non-foldable. I prefer to be conservative here, per our discussion on IRC (many moons ago!): this makes it less likely that we'll unwittingly introduce subtle bugs

Re: [Chicken-hackers] Merging of import, types and inline information

2015-01-17 Thread Peter Bex
On Sat, Jan 17, 2015 at 02:28:27PM +0300, Oleg Kolosov wrote: Hello All! I’ve been thinking about an idea to merge module type and inline information into import libraries for a long time, and, before starting to hack, decided to ask for opinions in hope to produce useful discussion. As

Re: [Chicken-hackers] Merging of import, types and inline information

2015-01-17 Thread Peter Bex
On Sat, Jan 17, 2015 at 01:23:41PM +0100, Peter Bex wrote: Secondly, for example the numbers egg has an extensive types file with many hand-written specializations. The nice thing of separating this file from the import file is that numbers can still be compiled with, for example, CHICKEN

Re: [Chicken-hackers] Bug in numbers egg (perhaps in scrutiny)

2015-01-11 Thread Peter Bex
On Sun, Jan 11, 2015 at 01:38:24AM -0500, John Cowan wrote: The following script works correctly in csi, but produces a warning in csc: (use numbers) (define (foo x) (odd? x)) The output is as follows: Warning: in toplevel procedure `foo': (foo.scm:2) in procedure call to

Re: [Chicken-hackers] Multiple mingw installations on windows

2014-12-19 Thread Peter Bex
On Fri, Dec 19, 2014 at 04:37:22PM +0200, Răzvan Rotaru wrote: Hi, Is there a way to specify the PATH to gcc (in this case mingw) to the chicken compiler, at runtime? I'm looking for something similar to the environment variable CHICKEN_PREFIX, which tells the chicken compiler where it is

Re: [Chicken-hackers] [PATCH] Fix buffer overrun in substring-index[-ci]

2014-12-18 Thread Peter Bex
On Sun, Dec 14, 2014 at 11:41:34PM +0100, Moritz Heidkamp wrote: Dear Chickeneers, the attached patch fixes a potential buffer overrun in substring-index[-ci] I ran into today (pun intended). See commit message for details. I included a regression test but I'm not sure whether it's ideal

[Chicken-hackers] [PATCH][4][5] Fix missing distribution-files warning and fix manifest

2014-11-16 Thread Peter Bex
7ce33ef0d76bb23fcd598af965362b12aff124c7 Mon Sep 17 00:00:00 2001 From: Peter Bex peter@xs4all.nl Date: Sun, 16 Nov 2014 13:32:05 +0100 Subject: [PATCH 1/2] Fix broken missing file detection in distribution tarball generator --- scripts/makedist.scm | 15 --- 1 file changed, 8 insertions(+), 7 deletions

Re: [Chicken-hackers] [PATCH][5] Move foldable binding annotations into types.db

2014-11-16 Thread Peter Bex
On Tue, Sep 30, 2014 at 12:33:21AM -0700, Evan Hanson wrote: Hi all, The attached patch moves foldable binding annotations out of c-platform.scm and into types.db. While looking into #986[1], I realized there are currently several library procedures that are marked foldable when they

Re: [Chicken-hackers] [PATCH] Removed few usages of gcc extensions from runtime

2014-11-16 Thread Peter Bex
statement which is not allowed in the loop expression position inside a 'for' loop in standard C. In particular, MSVC compiler considers this a syntax error. Signed-off-by: Peter Bex peter@xs4all.nl --- runtime.c | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff

Re: [Chicken-hackers] Why isn't OPTIMIZE_FOR_SPEED the default?

2014-11-03 Thread Peter Bex
On Mon, Nov 03, 2014 at 08:49:47AM +0100, Felix Winkelmann wrote: From: John Cowan co...@mercury.ccil.org Subject: Re: [Chicken-hackers] Why isn't OPTIMIZE_FOR_SPEED the default? Date: Sun, 2 Nov 2014 17:38:39 -0500 Peter Bex scripsit: Am I going completely mad and am I missing

Re: [Chicken-hackers] Why isn't OPTIMIZE_FOR_SPEED the default?

2014-11-03 Thread Peter Bex
On Mon, Nov 03, 2014 at 09:38:37AM +0100, Sven Hartrumpf wrote: Mon, 3 Nov 2014 09:04:27 +0100, Peter.Bex wrote: How about restoring the optimization option to the defaults and seeing what breaks? For me it was highly unexpected that CHICKEN was producing completely unoptimized code, and

[Chicken-hackers] Why isn't OPTIMIZE_FOR_SPEED the default?

2014-11-02 Thread Peter Bex
Hi all, After hitting my head against the wall why the numbers egg's division was so much slower than Gauche while it is now using the same algorithm, I noticed that some_pointer[x/2] was much slower than some_pointer[x1], so the C compiler wasn't optimising this particular operation away, which

Re: [Chicken-hackers] [PATCH] Fix _BSD_SOURCE warning when compiling with glibc = 2.20

2014-10-31 Thread Peter Bex
On Sun, Oct 26, 2014 at 01:02:34PM -0700, Evan Hanson wrote: I'm good with this. There's some nice background on these macros here (in particular, Changes in glibc 2.19 and 2.20): http://lwn.net/Articles/589730/ Signoff attached. Thanks much, Peder. Thanks indeed, Peder! Signed off

Re: [Chicken-hackers] [PATCH] improve performance of write-u8vector

2014-10-27 Thread Peter Bex
://www.more-magic.net From 45e4f87d35c4a7b2e779feade9d1da2d326876e0 Mon Sep 17 00:00:00 2001 From: Thomas Hintz t...@thintz.com Date: Tue, 21 Oct 2014 10:38:00 -0700 Subject: [PATCH] Improving performance of write-u8vector. Signed-off-by: Peter Bex peter@xs4all.nl --- NEWS

Re: [Chicken-hackers] [PATCH] Export specializations with generated type database information

2014-10-20 Thread Peter Bex
On Sun, Oct 19, 2014 at 11:05:24PM -0700, Evan Hanson wrote: On 2014-10-19 13:27, Peter Bex wrote: I have one concern That's addressed, as discussed on IRC. Yeah, obviously I wasn't paying attention. Sorry about that. Also as discussed, here are versions that suffix specializations #s#0

Re: [Chicken-hackers] Patches for stability

2014-10-20 Thread Peter Bex
On Mon, Oct 20, 2014 at 01:31:21PM +, Mario Domenech Goulart wrote: stability/4.9.0 has net been receiving patches recently. I wonder if intentionally of just because we forget or because the original poster doesn't indicate whether the patch is to be applied to stability too. Anyway,

Re: [Chicken-hackers] [PATCH] Export specializations with generated type database information

2014-10-19 Thread Peter Bex
On Sun, Sep 14, 2014 at 12:22:55PM -0700, Evan Hanson wrote: Hi all, Her's a patch that allows specializations to be included in generated type files (previously, they couldn't be used outside the compilation unit in which they were defined, so users wouldn't benefit from specializations

Re: [Chicken-hackers] [PATCH 0/5] List scrutiny special cases

2014-10-19 Thread Peter Bex
On Tue, Sep 09, 2014 at 02:57:17AM -0700, Evan Hanson wrote: Hi hackers, Here are some list-related scrutiny improvements. I started with pair walking for the scrutinizer's special cases to fix #759 (patch #2), which made adding special cases for drop tail easy (#3). The other special

Re: [Chicken-hackers] [PATCH] Dealias module names in saved module import forms

2014-10-19 Thread Peter Bex
On Sun, Oct 19, 2014 at 12:19:48AM -0700, Evan Hanson wrote: Hi all, The attached patch fixes #1149. Thanks for this, I've pushed it to master and chicken-5. Thanks for the wonderfully clear report, Juergen. Yes, thanks Juergen! Cheers, Peter -- http://www.more-magic.net

Re: [Chicken-hackers] [PATCH] Add missing C_ prefix to a snprintf calls in a tcp module

2014-10-19 Thread Peter Bex
On Sun, Oct 19, 2014 at 07:24:23PM +0400, Oleg Kolosov wrote: On 19 Oct 2014, at 18:17, Peter Bex peter@xs4all.nl wrote: Thanks for the patch, it looks good. I've pushed it to master and chicken-5. Please note that this is not the best test for the process, because we normally require

Re: [Chicken-hackers] CHICKEN in production

2014-10-16 Thread Peter Bex
On Wed, Oct 15, 2014 at 08:49:06PM -0400, John Cowan wrote: Fair enough. Since this is purely a question of implementation, not of specification, we could have a config-time option: if false, strings don't have a delimiting NUL (not included in the count) and are copied by the FFI; if true,

Re: [Chicken-hackers] CHICKEN in production

2014-10-13 Thread Peter Bex
On Mon, Oct 13, 2014 at 04:22:57PM +0200, Michele La Monaca wrote: On Mon, Oct 13, 2014 at 2:39 PM, Peter Bex peter@xs4all.nl wrote: Good one. Anyway, I find that perpetuating C limitations/missteps in higher level languages just because we can't be sure to handle interactions safely

Re: [Chicken-hackers] [PATCH] Minor improvements to predicated/enforcing type inference

2014-10-12 Thread Peter Bex
On Thu, Sep 25, 2014 at 07:40:51PM +1200, Evan Hanson wrote: Improves inference for #:predicate and #:enforce branches by trying a bit harder to find the smaller of the possible typesets. Thanks for this patch. It looks like a great improvement, even though I don't fully understand it in

Re: [Chicken-hackers] [PATCH] Add missing bufpos variable for read-buffered on tcp ports

2014-10-12 Thread Peter Bex
On Mon, Oct 13, 2014 at 06:16:40AM +1300, Evan Hanson wrote: --- tcp.scm |1 + 1 file changed, 1 insertion(+) diff --git a/tcp.scm b/tcp.scm index ce7bb74..5389ed1 100644 --- a/tcp.scm +++ b/tcp.scm @@ -359,6 +359,7 @@ EOF (let* ((buf (make-string +input-buffer-size+))

Re: [Chicken-hackers] [PATCH] Fix the -r5rs-syntax flag

2014-10-11 Thread Peter Bex
On Thu, Oct 09, 2014 at 08:57:44PM +1300, Evan Hanson wrote: -(when (memq '(-r5rs-syntax) options) +(when (memq 'r5rs-syntax options) What a silly bug... Thanks for the patch, I've applied it to master and chicken-5. Cheers, Peter -- http://www.more-magic.net

Re: [Chicken-hackers] [PATCH] Avoid invalid specializations for multi-valued foreign-primitives

2014-10-11 Thread Peter Bex
On Thu, Oct 09, 2014 at 07:08:59AM +1300, Evan Hanson wrote: The foreign-primitive form may return multiple values with the C_values function, but its expansion is always declared to return a (single) undefined value. This triggers invalid ##sys#c-w-v specializations for single-valued

Re: [Chicken-hackers] [Chicken-users] A couple of issues regarding normalize-pathname

2014-10-09 Thread Peter Bex
On Mon, Sep 22, 2014 at 11:32:27AM -0700, Evan Hanson wrote: Here's a patch removing said special case. I haven't checked this on Windows and would be grateful if someone could make sure the updated tests check out. Thanks for remembering this and picking up on it, Evan! I've pushed to

Re: [Chicken-hackers] CHICKEN in production

2014-10-08 Thread Peter Bex
On Wed, Oct 08, 2014 at 01:31:30AM +0400, Oleg Kolosov wrote: On Oct 7, 2014, at 10:04 PM, Peter Bex peter@xs4all.nl wrote: The overhead of calling C should be pretty minimal in the usual cases, unless strings are the only problem. If it's the only dealbreaker, I think that should

Re: [Chicken-hackers] CHICKEN in production

2014-10-08 Thread Peter Bex
On Wed, Oct 08, 2014 at 11:54:06AM -0400, John Cowan wrote: Peter Bex scripsit: The danger could be avoided by a taint bit: if the string is known to not contain \0, it can be passed directly. Otherwise, it needs to be checked and marked if it's safe. If it's unsafe, an exception can

Re: [Chicken-hackers] CHICKEN in production

2014-10-08 Thread Peter Bex
On Wed, Oct 08, 2014 at 08:04:17PM +0200, Jörg F. Wittenberger wrote: In this particular case I will be forced to decide my priorities: I'm sitting on some improvements and threading fixes and cleanups I've been talking about on once about a time. Currently I'm busy documenting other

Re: [Chicken-hackers] CHICKEN in production

2014-10-08 Thread Peter Bex
On Wed, Oct 08, 2014 at 06:56:29AM -0700, Daniel Leslie wrote: I hope no one minds me jumping in to add my two cents... All comments are very welcome! On Wed, Oct 8, 2014 at 12:16 AM, Peter Bex peter@xs4all.nl wrote: On Wed, Oct 08, 2014 at 01:31:30AM +0400, Oleg Kolosov wrote: On Oct

Re: [Chicken-hackers] [PATCH] Fix rename-file behavior on Windows when destination exists

2014-10-05 Thread Peter Bex
On Mon, Aug 18, 2014 at 04:34:23PM +0200, Michele La Monaca wrote: Hi, (rename-file x y) fails on Windows if y already exists. I think it would be better to have the same behavior as Unix (i.e. overwrite). The attached patch does that. Hi Michele, Sorry for the late reply, I've only now

Re: [Chicken-hackers] [PATCH] Add procedure argument checks for srfi-1's list= and lset procedures

2014-10-05 Thread Peter Bex
On Mon, Aug 11, 2014 at 10:50:57PM -0700, Evan Hanson wrote: Here's a very simple patch for #1085. As a side note, there are lots of other procedures in srfi-1.scm without argument type checks. Are the cases where they're not there intentional, or would it be worth looking into adding some,

Re: [Chicken-hackers] [PATCH] Don't enable debugging on Android by default

2014-10-05 Thread Peter Bex
the attached patch? Cheers, Peter -- http://www.more-magic.net From a7beb90ae87f7738afe63358f51a87fefca2c7cb Mon Sep 17 00:00:00 2001 From: Peter Bex peter@xs4all.nl Date: Sun, 5 Oct 2014 20:46:29 +0200 Subject: [PATCH] Enable debug_mode on Android only for DEBUGBUILDs --- runtime.c |2 +- 1

Re: [Chicken-hackers] [PATCH] Fix malformed specialization for irregex-match-num-submatches

2014-10-05 Thread Peter Bex
On Tue, Sep 30, 2014 at 07:43:33PM +1300, Evan Hanson wrote: It was missing parentheses on a ##sys#slot invocation and contained unquoted fixnum literals. Thanks, Evan! Pushed to both master and chicken-5. Cheers, Peter -- http://www.more-magic.net

Re: [Chicken-hackers] [PATCH][5] Move foldable binding annotations into types.db

2014-10-01 Thread Peter Bex
On Tue, Sep 30, 2014 at 12:33:21AM -0700, Evan Hanson wrote: So, I audited the whole lot of `foldable-bindings`, and in doing so moved them into types.db as #:foldable properties for clarity. Thanks for putting so much effort into this! It's also safe to fold predicates, so rather than

Re: [Chicken-hackers] [PATCH][5] Move foldable binding annotations into types.db

2014-10-01 Thread Peter Bex
On Wed, Oct 01, 2014 at 12:17:21AM -0700, Evan Hanson wrote: On 2014-10-01 8:57, Peter Bex wrote: Shouldn't the same be done for #:pure? If a procedure is purely functional, it should be referentially transparent, which means it should be foldable. Or am I overlooking something here

Re: [Chicken-hackers] [PATCH(5)] Teach Henrietta about major releases

2014-09-22 Thread Peter Bex
On Fri, Sep 19, 2014 at 12:07:51PM +, Mario Domenech Goulart wrote: On Fri, 19 Sep 2014 08:57:59 +0200 Peter Bex peter@xs4all.nl wrote: I intend to set up some salmonella instances to test the chicken-5 branch soon. If you can explain what needs to happen, I can do the same

Re: [Chicken-hackers] [PATCH(5)] Teach Henrietta about major releases

2014-09-19 Thread Peter Bex
On Fri, Sep 19, 2014 at 01:03:32AM +, Mario Domenech Goulart wrote: Just an update on the current status about this topic Thanks Mario, for writing up this update. I intend to set up some salmonella instances to test the chicken-5 branch soon. If you can explain what needs to happen, I

Re: [Chicken-hackers] [PATCH(5)] Teach Henrietta about major releases

2014-09-16 Thread Peter Bex
On Mon, Sep 15, 2014 at 11:57:15PM +, Mario Domenech Goulart wrote: We have a problem. The removal of tags in the directory hierarchy breaks setup-download.scm's locate-egg/local, which is used by gather-egg-information. gather-egg-information is used by the make-egg-index script

Re: [Chicken-hackers] [PATCH(5)] Teach Henrietta about major releases

2014-09-16 Thread Peter Bex
On Tue, Sep 16, 2014 at 12:15:15PM +, Mario Domenech Goulart wrote: On Tue, 16 Sep 2014 08:29:06 +0200 Peter Bex peter@xs4all.nl wrote: I agree that all those things should be removed. I think Felix wanted to remove gather-egg-information once, but kept it because it was being used

Re: [Chicken-hackers] [PATCH(5)] Teach Henrietta about major releases

2014-09-15 Thread Peter Bex
On Sun, Sep 14, 2014 at 10:19:08PM +, Mario Domenech Goulart wrote: I pushed the patches by Peter, including the one for henrietta (trunk, also bumped its major version). I've made some further tweaks to henrietta-cache, pseudo-meta-egg-info and the chicken-infrastructure script that runs

Re: [Chicken-hackers] [PATCH(5)] Remove srfi-18 and srfi-69

2014-09-14 Thread Peter Bex
On Fri, Sep 12, 2014 at 12:12:56PM +0200, Felix Winkelmann wrote: Hi! Attached is a new version of the patch, which removes tests/signal-tests.scm (this was forgotten and moved to the srfi-18 egg) Thanks, I've pushed this patch. Cheers, Peter -- http://www.more-magic.net

[Chicken-hackers] [PATCH(5)] Teach Henrietta about major releases

2014-09-14 Thread Peter Bex
))) ((string=? -query arg) (unless (pair? (cdr args)) (usage 1)) (set! *query-string* (cadr args)) From c26ebe8a6a933ff8ef5e0aeb52f2da9bf9724b72 Mon Sep 17 00:00:00 2001 From: Peter Bex peter@xs4all.nl Date: Sun, 14 Sep 2014 15:14:43 +0200 Subject: [PATCH 1/2

Re: [Chicken-hackers] [PATCH(5)] Teach Henrietta about major releases

2014-09-14 Thread Peter Bex
On Sun, Sep 14, 2014 at 03:32:24PM +0200, Peter Bex wrote: The second core patch adds the release argument to the query string which the new version of Henrietta will parse. This was wrong: it has to convert the major release to a string for use with string-append. Here is an updated versions

Re: [Chicken-hackers] [MEGA-PATCH] Modularise the compiler!

2014-09-13 Thread Peter Bex
On Thu, Sep 04, 2014 at 01:02:18AM +0200, Felix Winkelmann wrote: Hello! I have signed off a squash commit of all your changes and pushed it to a new branch (chicken-5). I have a proposal for more meaningful module names, though, and I will post a patch in the next days. Thanks for

[Chicken-hackers] [PATCH(5)] Add allocation size helpers C_SIZEOF_STRUCT and C_SIZEOF_CLOSURE

2014-09-13 Thread Peter Bex
37f2258868c692fcb7daf13c92f09b4d3b0e00b8 Mon Sep 17 00:00:00 2001 From: Peter Bex peter@xs4all.nl Date: Sat, 13 Sep 2014 19:55:54 +0200 Subject: [PATCH] Add convenience macros for calculating allocation sizes of structures and closures. Also convert the allocation calculations to use them

Re: [Chicken-hackers] [PATCH(5)] Add allocation size helpers C_SIZEOF_STRUCT and C_SIZEOF_CLOSURE

2014-09-13 Thread Peter Bex
On Sat, Sep 13, 2014 at 11:30:20PM +0200, Felix Winkelmann wrote: Ok. The former really allocates a slot too much, but that makes no difference besides wasting a word in the nursery. Not too much of a problem, but it would increase the minor GC frequency, even if by a little bit. The latter

Re: [Chicken-hackers] [PATCH(5)] Add allocation size helpers C_SIZEOF_STRUCT and C_SIZEOF_CLOSURE

2014-09-13 Thread Peter Bex
BTW, has this patch not been pushed yet? -- http://www.more-magic.net ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Re: [Chicken-hackers] [PATCH(5)] Remove srfi-18 and srfi-69

2014-09-12 Thread Peter Bex
On Fri, Sep 12, 2014 at 10:39:59AM +0200, Felix Winkelmann wrote: Hello! This patch removes support for srfi-18 and srfi-69. I had to remove some tests as well, specifically those that use threads. This seems like a bad idea. These tests are there because we've had very hairy problems

Re: [Chicken-hackers] [PATCH(5)] Remove srfi-18 and srfi-69

2014-09-12 Thread Peter Bex
On Fri, Sep 12, 2014 at 12:15:10PM +0200, Christian Kellermann wrote: I am in favor of pushing this patch. Peter, what do you think? I think that's okay. Cheers, Peter -- http://www.more-magic.net ___ Chicken-hackers mailing list

Re: [Chicken-hackers] Exposing internal APIS

2014-09-12 Thread Peter Bex
On Fri, Sep 12, 2014 at 12:31:00PM +0200, Felix Winkelmann wrote: Hello, again! If I understand this correctly, then you want to expose the internal threading stuff in scheduler.scm as a module? I think we can do the same I did with the compiler modules: simply wrap the code in a module

Re: [Chicken-hackers] [PATCH][for chicken-5] Remove srfi-13

2014-09-11 Thread Peter Bex
On Thu, Sep 11, 2014 at 03:25:24PM +0200, Felix Winkelmann wrote: Ah, well done, Mario! But, some remarks: * Perhaps we should svn cp the release/4 branch and add new eggs afterwards, otherwise the 5 directory will be in the way. By copying the tree, the new eggs for the

Re: [Chicken-hackers] [PATCH][for chicken-5] Remove srfi-13

2014-09-11 Thread Peter Bex
On Thu, Sep 11, 2014 at 05:13:48PM +0200, Felix Winkelmann wrote: [replying to Peter] I don't grok what you are saying here. Do you want to copy the entire CHICKEN 4 egg list to CHICKEN 5? It may be better to copy individual eggs later, when we've finished all our module refactorings.

Re: [Chicken-hackers] Made a start with CHICKEN 5 proposal

2014-09-10 Thread Peter Bex
On Tue, Sep 09, 2014 at 02:49:43PM +, Mario Domenech Goulart wrote: I think the versioning thing also affects the eggs in svn too. For example, suppose right now you have egg foo at version 1.0. When CHICKEN 5 is released, foo will be ported to CHICKEN 5. What version will it be in

Re: [Chicken-hackers] Made a start with CHICKEN 5 proposal

2014-09-08 Thread Peter Bex
On Thu, Sep 04, 2014 at 12:44:54AM +0200, Felix Winkelmann wrote: Hello, Peter! I generally agree with most proposed changes on this list (with the exception of the idea to drop fluid-let, of course.) But it must be clear to you that you already created a pony page. It is impossible to do

Re: [Chicken-hackers] Made a start with CHICKEN 5 proposal

2014-08-29 Thread Peter Bex
On Fri, Aug 29, 2014 at 04:11:21PM -0300, Arthur Maciel wrote: Peter, I remember you wrote about this on 2012, right? http://www.more-magic.net/posts/lessons-learned-from-nul-byte-bugs.html Correct, I think this is an important safety feature of a high-level language. In fact, I was the one

Re: [Chicken-hackers] Made a start with CHICKEN 5 proposal

2014-08-28 Thread Peter Bex
On Thu, Aug 28, 2014 at 09:41:01AM +0400, Oleg Kolosov wrote: On 08/27/14 11:00, Peter Bex wrote: It sounds like you're looking for condition-case. I think this takes care of the handling of various different kinds of exceptions in a very elegant way, and it's actually my favorite part

Re: [Chicken-hackers] Gauche, R7RS, and dots

2014-08-27 Thread Peter Bex
On Tue, Aug 26, 2014 at 09:27:29PM -0400, John Cowan wrote: Gauche has just released its R7RS implementation. Existing Gauche modules use dotted names by convention (e.g. math.prime, rfc.json, text.html-lite), and these are mapped directly into R7RS module names as (math prime), (rfc json),

Re: [Chicken-hackers] Made a start with CHICKEN 5 proposal

2014-08-27 Thread Peter Bex
On Wed, Aug 27, 2014 at 01:50:13AM +0400, Oleg Kolosov wrote: On 08/26/14 11:06, Peter Bex wrote: On Tue, Aug 26, 2014 at 10:29:23AM +0400, Oleg Kolosov wrote: On 08/25/14 15:30, Peter Bex wrote: On Mon, Aug 25, 2014 at 10:31:44AM +0400, Oleg Kolosov wrote: Ah, I didn't understand

Re: [Chicken-hackers] Gauche, R7RS, and dots

2014-08-27 Thread Peter Bex
On Wed, Aug 27, 2014 at 11:37:12AM -0400, John Cowan wrote: Peter Bex scripsit: (In not-so-good news, Gambit has abandoned its R7RS implementation, or more accurately the former implementer has abandoned Gambit.) Wow, that's very unexpected news! Where was this announced

Re: [Chicken-hackers] Made a start with CHICKEN 5 proposal

2014-08-26 Thread Peter Bex
On Tue, Aug 26, 2014 at 10:29:23AM +0400, Oleg Kolosov wrote: On 08/25/14 15:30, Peter Bex wrote: On Mon, Aug 25, 2014 at 10:31:44AM +0400, Oleg Kolosov wrote: [explanation about ##sys# prefix] I suspected that it is related to name clashes, now I see how exactly, thanks for the detailed

Re: [Chicken-hackers] Made a start with CHICKEN 5 proposal

2014-08-24 Thread Peter Bex
On Sun, Aug 24, 2014 at 12:10:49PM +0900, Ivan Raikov wrote: I think these are lofty goals, but it is way too much work for a single release. Perhaps modularising the compiler and refactoring the core modules should be the goals for 5.0 release, Those are the major breaking changes. I agree

Re: [Chicken-hackers] Made a start with CHICKEN 5 proposal

2014-08-24 Thread Peter Bex
On Sun, Aug 24, 2014 at 04:26:58AM -0400, John Cowan wrote: Peter Bex scripsit: I'd especially appreciate feedback on the core library names and the things to kill from core. I will be expanding this page over the next few days/weeks. I've added lots of comments. Feel free to merge

Re: [Chicken-hackers] Made a start with CHICKEN 5 proposal

2014-08-24 Thread Peter Bex
On Sun, Aug 24, 2014 at 11:33:59AM +0200, Peter Bex wrote: Thank you for the feedback. I've added my replies inline. I've added fluid-let to the list of things to be removed. It's dangerously unsafe, and it is completely unnecessary to have it in core. There are a handful of uses

[Chicken-hackers] Made a start with CHICKEN 5 proposal

2014-08-23 Thread Peter Bex
Hello hackers! I've made a start on the wiki, at what we'd like CHICKEN 5 to be about. Please, do not make this into another pony page, only add things that we really need to look at which require a rework in core which may be backwards-incompatible. http://wiki.call-cc.org/chicken-5-roadmap I

Re: [Chicken-hackers] Made a start with CHICKEN 5 proposal

2014-08-23 Thread Peter Bex
On Sat, Aug 23, 2014 at 11:35:26PM +0400, Oleg Kolosov wrote: Thanks for the write up, it looks really promising. While at it I would like to propose changing build system to CMake with the following considerations: I'd be willing to take a close look at it, if you can send a patchset. I

Re: [Chicken-hackers] CR #1142 and upcoming changes

2014-08-20 Thread Peter Bex
On Wed, Aug 20, 2014 at 11:59:58AM +0400, Yaroslav Tsarko wrote: On 19.08.2014 19:24, Felix Winkelmann wrote: Sounds like a good first step, even though I personally would prefer UCS-4 strings (constant lookup + modification and so on). But that seems to be unpopular, AFAICT... Wouldn`t

Re: [Chicken-hackers] CR #1142 and upcoming changes

2014-08-19 Thread Peter Bex
On Tue, Aug 19, 2014 at 10:20:56AM +0200, Felix Winkelmann wrote: I understand your concerns, but doing all the planned changes piece by piece will be a massive maintenance effort and the compatibility hacks required to have something halfway working during the transition will be even more. I

Re: [Chicken-hackers] CR #1142 and upcoming changes

2014-08-19 Thread Peter Bex
On Tue, Aug 19, 2014 at 05:21:06PM +0200, Felix Winkelmann wrote: I would think that support for Chicken 2 3 should be dropped after a Chicken 5 branch is made. Yes, that sounds reasonable. I didn't know we still supported CHICKEN 2 and 3. In what way is that done? AFAIK the

Re: [Chicken-hackers] CR #1142 and upcoming changes

2014-08-19 Thread Peter Bex
On Tue, Aug 19, 2014 at 05:21:06PM +0200, Felix Winkelmann wrote: Mostly cleaning up. Shrinking the core system will make maintenance easier, and reduces the need to follow our usual patch-review process. I fully agree that the patch review process would be untenable for the kind of massive

Re: [Chicken-hackers] CR #1142 and upcoming changes

2014-08-19 Thread Peter Bex
On Tue, Aug 19, 2014 at 01:19:35PM -0400, John Cowan wrote: Peter Bex scripsit: Note that this does _not_ imply we should implement things that we don't already have, just move the things we do have under the names defined by R7RS. If we have something that's close to R7RS

Re: [Chicken-hackers] [MEGA-PATCH] Modularise the compiler!

2014-08-18 Thread Peter Bex
On Mon, Aug 18, 2014 at 02:30:09PM +0200, Felix Winkelmann wrote: From: Peter Bex peter@xs4all.nl Subject: Re: [Chicken-hackers] [MEGA-PATCH] Modularise the compiler! Date: Sun, 17 Aug 2014 23:28:49 +0200 On Sun, Aug 17, 2014 at 11:25:00PM +0200, Felix Winkelmann wrote: If y'all

Re: [Chicken-hackers] CR #1142 and upcoming changes

2014-08-18 Thread Peter Bex
On Mon, Aug 18, 2014 at 04:53:22PM +0200, Felix Winkelmann wrote: - I don't know how this is handled with henrietta - do we need a separate CGI script running for this? It seems so, so the core-branch will need to have different download URLs in setup.defaults. Perhaps, I'm not sure

Re: [Chicken-hackers] CR #1142 and upcoming changes

2014-08-18 Thread Peter Bex
On Mon, Aug 18, 2014 at 10:00:46AM -0601, Alan Post wrote: I used Chicken Scheme to bootstrap my company. That's really cool! As of a few months ago, I am no longer running any scheme code, it has been ported to either C or Python. What is/was the main reason you had to rewrite to Python? C

Re: [Chicken-hackers] [MEGA-PATCH] Modularise the compiler!

2014-08-17 Thread Peter Bex
On Sun, Aug 17, 2014 at 11:25:00PM +0200, Felix Winkelmann wrote: If y'all prefer, I could push my branch to call-cc, if that makes it easier to work on this. I realise that sending 19 patches back and forth over the mailing list will be very painful :) Oh, gosh... yes, please create a

Re: [Chicken-hackers] [PATCH] Remove outdated manual section on letrec binding references

2014-08-12 Thread Peter Bex
On Tue, Aug 12, 2014 at 05:12:07PM +1200, Evan Hanson wrote: As of a647d9ed65f44df527e513464093447f56e24ead, letrec no longer uses letrec* semantics, so this section in Extensions to the standard is no longer valid. Thanks, this one slipped through the cracks. I've pushed it, to stability as

Re: [Chicken-hackers] [PATCH] Don't enable debugging on Android by default

2014-08-08 Thread Peter Bex
On Mon, Aug 04, 2014 at 07:01:03PM +0200, Felix Winkelmann wrote: From: Moritz Heidkamp moritz.heidk...@bevuta.com Subject: [Chicken-hackers] [PATCH] Don't enable debugging on Android by default Date: Mon, 04 Aug 2014 18:30:44 +0200 This was probably accidentally left in when generating

Re: [Chicken-hackers] [PATCH] Strip syntax from identifiers in scrutiny output

2014-08-08 Thread Peter Bex
On Wed, Aug 06, 2014 at 06:49:19PM +1200, Evan Hanson wrote: This resolves identifiers to their real (i.e. non-macro-aliased) names in order to give cleaner scrutiny output messages. Thanks for this change. It makes things a little easier to read, and should reduce the need to keep updating

Re: [Chicken-hackers] [PATCH] Remove ##sys# prefix from lambda-info names of expand unit procedures

2014-08-08 Thread Peter Bex
On Wed, Aug 06, 2014 at 06:35:12PM +1200, Evan Hanson wrote: As with f4dafebf09662ff6bdbada206d394340d8c24ef0. Thanks, pushed. Cheers, Peter -- http://www.more-magic.net ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org

Re: [Chicken-hackers] [PATCH] Fix scrutiny special case for list-tail when tail is null

2014-08-08 Thread Peter Bex
On Wed, Aug 06, 2014 at 06:33:45PM +1200, Evan Hanson wrote: Due to an off-by-one, the special-cased scrutiny for `list-tail` fails when the index argument is equal to the length of the list, giving a (list-of ...) as the result type rather than null. While that isn't technically incorrect, it

Re: [Chicken-hackers] [PATCH 1/2] Set HAVE_POSIX_POLL for Android

2014-08-07 Thread Peter Bex
On Mon, Aug 04, 2014 at 05:58:41PM +0200, Moritz Heidkamp wrote: Hi everyone, the attached patch enables poll(2) for the Android platform. I verified via strace on an Android device that poll(2) is actually used after the patch. A preliminary NEWS entry is included but needs to be updated

Re: [Chicken-hackers] [PATCH] Make chicken-install write (none) to stderr when no eggs are matched

2014-08-07 Thread Peter Bex
On Tue, Aug 05, 2014 at 11:44:37PM -0700, Evan Hanson wrote: Hi all, This is sort of an opinion patch, but chicken-install currently writes (none) to standard output when it doesn't find any eggs, which breaks simple things like `chicken-status | wc -l`. I think it'd be better if the

Re: [Chicken-hackers] [PATCH 2/2] Invert poll(2) flag default

2014-08-06 Thread Peter Bex
On Mon, Aug 04, 2014 at 06:10:46PM +0200, Moritz Heidkamp wrote: The attached patch is a follow-up to my previous patch (the one which enables poll(2) on Android). It inverts the HAVE_POSIX_POLL flag to HAVE_NO_POSIX_POLL which only needs to be set when poll(2) is *not* available rather than

Re: [Chicken-hackers] [PATCH] Fix #819 by marking file-mkstemp as unimplemented on Windows

2014-08-03 Thread Peter Bex
, but it improves consistency with the rest of the code) I've also tested the code on Windows. Here's the new version. Cheers, Peter -- http://www.more-magic.net From 91a046e37c18d08cc3c2d9df2feaa0258aaebd0b Mon Sep 17 00:00:00 2001 From: Peter Bex peter@xs4all.nl Date: Sun, 3 Aug 2014 14

Re: [Chicken-hackers] [PATCH] Fix #819 by marking file-mkstemp as unimplemented on Windows

2014-08-03 Thread Peter Bex
On Sun, Aug 03, 2014 at 03:20:50PM +0200, Michele La Monaca wrote: Another twist. Basically the same patch but with a more robust path manipulation strategy. Yeah, I was wondering why you were using string-append and friends to manipulate paths :) I don't understand why you treat the extension

Re: [Chicken-hackers] [PATCH] Fix #819 by marking file-mkstemp as unimplemented on Windows

2014-08-03 Thread Peter Bex
On Sun, Aug 03, 2014 at 03:32:15PM +0200, Peter Bex wrote: I've also tested the code on Windows. Here's the new version. By the way, with this change actually _fixing_ stuff instead of just removing the procedure altogether, I think this patch *should* go into the stability branch. Cheers

Re: [Chicken-hackers] [PATCH] fix static compilation in cygwin

2014-08-03 Thread Peter Bex
On Mon, Jul 21, 2014 at 09:37:07PM +0200, Peter Bex wrote: I've tested the patch, and it indeed seems to fix this particular situation. Somehow I thought this would break dynamically linked builds, as there's no libchicken.dll, only cygchicken-0.dll. However, *somehow* dynamic binaries

[Chicken-hackers] [PATCH] Fix #1109 by removing directory when an error occurs during chicken-install -r

2014-08-03 Thread Peter Bex
06a109028c94fde222004215093351c521951e7c Mon Sep 17 00:00:00 2001 From: Peter Bex peter@xs4all.nl Date: Sun, 3 Aug 2014 21:25:51 +0200 Subject: [PATCH] Fix #1109: chicken-install -r should remove empty directory when egg doesn't exist Thanks to Alex Charlton for pointing out this bug --- NEWS

[Chicken-hackers] [PATCH] Fix #819 by marking file-mkstemp as unimplemented on Windows

2014-08-02 Thread Peter Bex
c60ec9b5d57af950d269a511b0a280e8c8f34430 Mon Sep 17 00:00:00 2001 From: Peter Bex peter@xs4all.nl Date: Sat, 2 Aug 2014 14:52:15 +0200 Subject: [PATCH] Mark file-mkstemp as unimplemented on Windows --- NEWS |2 ++ manual/Unit posix |1 + posixwin.scm | 15 +-- 3 files changed, 4

Re: [Chicken-hackers] [PATCH] Fix #819 by marking file-mkstemp as unimplemented on Windows

2014-08-02 Thread Peter Bex
On Sat, Aug 02, 2014 at 10:29:18AM -0400, John Cowan wrote: Peter Bex scripsit: This is an old bug and I think it's a good idea to remove file-mkstemp from the Windows version of the posix unit. Shouldn't it be removed from the Posix version as well? As I understand it, the point

[Chicken-hackers] [PATCH] Small simple step towards fixing #1077: remove private-namespace from csi

2014-07-26 Thread Peter Bex
that as well, but the csi patch is so simple I think we can just push it without any trouble. Cheers, Peter -- http://www.more-magic.net From 82ae7a211a9258b66c8b500a4ef8882c40fdab5c Mon Sep 17 00:00:00 2001 From: Peter Bex peter@xs4all.nl Date: Sat, 26 Jul 2014 14:30:50 +0200 Subject: [PATCH] Do

Re: [Chicken-hackers] [PATCH] Remove ##sys# prefix from lambda-info names of library procedures

2014-07-23 Thread Peter Bex
On Wed, Jul 23, 2014 at 07:56:01PM +1200, Evan Hanson wrote: This is a cosmetic change that removes the ##sys# prefix from the lambda-info names of procedures defined in library.scm. Where a procedure was defined first with the prefix and later as an alias without it, their definitions have

Re: [Chicken-hackers] [PATCH] Remove ##sys# prefix from lambda-info names of library procedures

2014-07-23 Thread Peter Bex
On Wed, Jul 23, 2014 at 01:20:16AM -0700, Evan Hanson wrote: On 2014-07-23 10:06, Peter Bex wrote: This change doesn't make much sense to me unless we also deprecate the ##sys#-prefixed versions. ##sys#error sounds more internal or primitive than error, so (to me) it makes more sense

<    5   6   7   8   9   10   11   12   13   14   >