Re: [Chicken-hackers] ⍄PATCH⍃ Unboxing optimization for flonums

2018-11-25 Thread Peter Bex
insics are converted to ##core#inline forms. The lfa2 pass is now enabled at optimization levels 2 or higher. Signed-off-by: Peter Bex --- NEWS | 4 + batch-driver.scm | 9 +- c-backend.scm | 57 chicken.h | 18 ++- chicken.scm

Re: [Chicken-hackers] [PATCH] Introduce XDG directories

2018-11-24 Thread Peter Bex
On Thu, Aug 09, 2018 at 11:52:49AM +0200, ko...@upyum.com wrote: > This patch is about using the XDG spec for configuration and cache > directories (XDG_CONFIG_HOME and XDG_CACHE_HOME > environment variables). Hi all, I just pushed this patch. Thanks to everyone involved, and also thanks for

[Chicken-hackers] [PATCH] Fix segfault in get-environment-variable and three C compiler warnings

2018-11-24 Thread Peter Bex
Peter From 76a255ebcd910d758b45e665f6ea6a31139b27ac Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Sat, 24 Nov 2018 12:30:08 +0100 Subject: [PATCH] Change definition of "link", "chroot" and "C_getenv" from c-string to nonnull-c-string to fix C compiler warnings In file-link and set-root-directory! w

Re: [Chicken-hackers] [PATCH] Use vertical space more liberally in some scrutinizer messages

2018-11-19 Thread Peter Bex
On Mon, Nov 19, 2018 at 08:16:45PM +0100, felix.winkelm...@bevuta.com wrote: > Be that as it may, I don't think such changes have any benefit. We don't > follow a beauty contest, content is more important as the amount of > whitespace, > comment or indentation style and so on. Changes of

Re: [Chicken-hackers] [PATCH] Remove some type expansion related code duplication in scrutinizer

2018-11-11 Thread Peter Bex
commit message. Cheers, Peter From 6a41c8ea8ac4a45f9c825c66a923f8b58e1f951f Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Sun, 11 Nov 2018 21:05:38 +0100 Subject: [PATCH] Small refactor which tightens up the type expansion code a bit. Instead of duplicating the type expansion manually inline, we n

Re: [Chicken-hackers] [PATCH] Rework library loading to support conditional unit entry

2018-11-11 Thread Peter Bex
On Tue, May 29, 2018 at 06:42:33PM +1200, Evan Hanson wrote: > Hello fellow hackers, > > Here is a big, gnarly patch that finishes the work I started in Bergen, > which was to change the way we handle library dependencies so that units > can be loaded conditionally. This was inspired by Peter's

Re: [Chicken-hackers] [PATCH] Add 'a shorthand for forall types

2018-11-11 Thread Peter Bex
r "a" adding the apostrophe has > no effect. Thanks for clarifying. Here's a signed-off copy of the patch with NEWS entry and improved wording in the manual. Cheers, Peter From 1dc2ba7a0e967e45449460ebffce81cabc3937e6 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Sun, 11 Nov 201

Re: [Chicken-hackers] [PATCH] Add 'a shorthand for forall types

2018-11-11 Thread Peter Bex
On Tue, May 29, 2018 at 01:18:02PM +0300, megane wrote: > Hello, > > This adds support for declaring forall types in more compact manner. > > It supports syntax like ('a -> 'a) to declare the type > (forall (a) (a -> a)). I was about to apply this, but the second example added to the manual

Re: [Chicken-hackers] [PATCH 0/6] Fix for #1468 and some clean-up

2018-11-11 Thread Peter Bex
On Sat, Jun 09, 2018 at 10:13:10AM +1200, Evan Hanson wrote: > Hi all, here are a few more patches, small ones this time. The first is > a fix for #1468, and the others clean up a handful of things I noticed > in csc.scm, batch-driver.scm, and eval.scm while working on it. I've applied the

[Chicken-hackers] Changing default egg doc redirect to CHICKEN 5?

2018-11-11 Thread Peter Bex
Hi all, I noticed that /egg/foo still redirects to eggref/4/foo. Should we change this to redirect to eggref/5/foo now that 5.0.0 is officially the current release? Cheers, Peter signature.asc Description: PGP signature ___ Chicken-hackers mailing

Re: [Chicken-hackers] [Chicken-users] Cleaning up the portability wiki page?

2018-11-11 Thread Peter Bex
On Sat, Nov 10, 2018 at 12:53:49PM +1300, Evan Hanson wrote: > On 2018-11-08 17:34, Peter Bex wrote: > > I noticed that the portability page at > > https://wiki.call-cc.org/portability is listing some very very old > > CHICKEN versions on some platforms. Also,

[Chicken-hackers] Cleaning up the portability wiki page?

2018-11-08 Thread Peter Bex
Hi all, I was looking through our documentation, especially the stuff linked from our main index page on www.call-cc.org. I noticed that the portability page at https://wiki.call-cc.org/portability is listing some very very old CHICKEN versions on some platforms. Also, some of the comments are

Re: [Chicken-hackers] Bug in make-parameter / parameterize

2018-10-25 Thread Peter Bex
On Thu, Oct 25, 2018 at 02:01:08PM +0200, Jörg F. Wittenberger wrote: > Hi Chickeneers, > > learning from srfi-154 it seems there is a bug in > make-parameter/parameterize. > > Here a simplified and shortend implementation of srfi-157 plus a test > lifted from the srfi. With chicken (tested

Re: [Chicken-hackers] Would SRFI-157 (pre)support worth a consideration?

2018-10-24 Thread Peter Bex
On Tue, Oct 23, 2018 at 09:33:02PM +0200, Jörg F. Wittenberger wrote: > Hi all, > > with Chicken 5 being about to be released I know there is no adding > features now. > > That's why I hesitate to post at all. At the other hand I'd guess it > might be easier to now add half the feature I'd

Re: [Chicken-hackers] [補釘] Use installation programs from build

2018-10-22 Thread Peter Bex
) program and options in chicken-install, use the associated values from default.make/chicken-config.h. Signed-off-by: Peter Bex --- defaults.make | 9 + egg-compile.scm | 10 -- egg-environment.scm | 3 +++ 3 files changed, 16 insertions(+), 6 deletions(-) d

Re: [Chicken-hackers] [PATCH] * scheduler.scm: import chicken.condition for 'signal' used in ##sys#default-exception-handler

2018-10-21 Thread Peter Bex
On Sun, Oct 21, 2018 at 11:52:29AM +0300, megane wrote: > Hi, > > Kooda found a scheduler related segfault. There was an unimported symbol > in the scheduler. > > This didn't cause any warnings as scheduler is not in a module. > > I tested for additional missing symbols by wrapping it in a

Re: [Chicken-hackers] [補釘] Use installation programs from build

2018-10-21 Thread Peter Bex
On Tue, Oct 16, 2018 at 01:40:26PM +0200, felix.winkelm...@bevuta.com wrote: > This patch reuses parameters for default.make for the name of the > installation program to be used for egg installation, including options. This looks alright, but I still have a question: why not use the install

Re: [Chicken-hackers] [PATCH] Avoid dropping -emit-types-file and -emit-inline-file when compiling statically

2018-10-13 Thread Peter Bex
On Sat, Oct 13, 2018 at 11:44:27AM +0200, felix.winkelm...@bevuta.com wrote: > > The patch is very straightforward: it simply removes the offending > > code that drops these options. > > I'm not sure this is right. You simply disable this without really > addressing the problem. The types-file

[Chicken-hackers] [PATCH] Avoid dropping -emit-types-file and -emit-inline-file when compiling statically

2018-10-13 Thread Peter Bex
. Cheers, Peter From a81a54c835073ad1421a45e370a1a484d1b393b8 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Sat, 13 Oct 2018 10:29:23 +0200 Subject: [PATCH] Do not try to be clever: also emit type/inline files when compiling statically. This fixes #1550 by always emitting the types and inline

Re: [Chicken-hackers] [заплата] Remove redundant definitions from some makefiles

2018-10-12 Thread Peter Bex
On Fri, Oct 12, 2018 at 11:26:50AM +0200, felix.winkelm...@bevuta.com wrote: > A trivial change, as reported by Vasilij. Pushed, thanks! Cheers, Peter signature.asc Description: PGP signature ___ Chicken-hackers mailing list

[Chicken-hackers] [PATCH] Fix #1547 by adding chicken-do to install commands and manifest

2018-10-10 Thread Peter Bex
Hi all, The attached patch should fix #1547. Cheers, Peter From 82040192d50a03c46bc0639da7b87d7f33f02022 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Wed, 10 Oct 2018 16:33:07 +0200 Subject: [PATCH] Add chicken-do manpage to manifest and install it MIME-Version: 1.0 Content-Type: text/plain

Re: [Chicken-hackers] [PATCH 0/3] Make the "-no-install" option affect named eggs but not dependencies

2018-10-08 Thread Peter Bex
On Mon, Sep 17, 2018 at 05:59:15PM +1200, Evan Hanson wrote: > Here's a rebased version of this patchset. I've pushed the first and last of these patches. I think assigning a different meaning to multiple instances of -n is a bit unusual and might be a bit too surprising. Thanks! Cheers, Peter

Re: [Chicken-hackers] Regression in CHICKEN 5

2018-09-29 Thread Peter Bex
ctually it doesn't: notice the let* and the binding of str above the line that changed. > Commit dc07113cf79a1930c6a109c738138dbea15afbc0 throws this out completely. Yeah, my bad. Here's a patch to fix this. Cheers, Peter From 1e247ff5e357786489184cae1fbdb335983171a6 Mon Sep 17 00:00:00 2001

Re: [Chicken-hackers] conditionals in .egg files

2018-09-28 Thread Peter Bex
On Fri, Sep 28, 2018 at 08:28:21PM +0200, Jörg F. Wittenberger wrote: > One more idea: How about an entry indicating the version of the egg file > syntax? > > Having something to cond-expand is nice. But it might be hard to settle with > a final version without unduly delaying CHICKEN 5. > >

Re: [Chicken-hackers] [PATCH 2/2] * scrutinizer.scm (refine-types): Add special case for (or pair null) and list-of

2018-09-23 Thread Peter Bex
uccess #f)) (rename '(void) -- 2.11.0 From 2be5885a19e5bc390a87087bb93f853732165c3b Mon Sep 17 00:00:00 2001 From: megane Date: Tue, 18 Sep 2018 12:42:44 +0300 Subject: [PATCH 2/2] * scrutinizer.scm (refine-types): Add special case for (or pair null) and list-of Fixes #1533 * tests/scrut

Re: [Chicken-hackers] CHICKEN 5 egg scheme-include install oddity

2018-09-23 Thread Peter Bex
On Thu, Sep 20, 2018 at 09:40:11PM +1200, Evan Hanson wrote: > Hi Kon, > > I haven't been able to reproduce this with a small test case or by using > the includes branch of fx-utils in SVN. What does `echo ,r | csi` say > for this CHICKEN installation? I've also tried and failed to reproduce it.

Re: [Chicken-hackers] [PATCH 0/3] Fix #1505 and some double quotation issues after #1515

2018-09-23 Thread Peter Bex
On Mon, Sep 17, 2018 at 05:59:12PM +1200, Evan Hanson wrote: > Here's a rebased version of the first patch. Thanks, pushed. Cheers, Peter signature.asc Description: PGP signature ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org

Re: [Chicken-hackers] [PATCH 0/3] Fix #1505 and some double quotation issues after #1515

2018-09-09 Thread Peter Bex
On Sun, Sep 09, 2018 at 09:54:17PM +1200, Evan Hanson wrote: > On 2018-09-09 9:49, felix.winkelm...@bevuta.com wrote: > > > The other two fix some bugs where strings are being double-quoted for > > > shell with the `qs*' procedure, causing build failures in one case and > > > incorrect directory

Re: [Chicken-hackers] [PATCH 0/3] Fix #1505 and some double quotation issues after #1515

2018-09-09 Thread Peter Bex
On Sun, Sep 09, 2018 at 09:28:37AM +0200, felix.winkelm...@bevuta.com wrote: > > Hello, > > > > Here are a few patches that I think should be included in the next RC. > > > > The first fixes #1505 by simply using relative pathnames for all source > > files in generated build scripts. All other

Re: [Chicken-hackers] build error w/ clang on macos

2018-09-06 Thread Peter Bex
On Thu, Sep 06, 2018 at 04:52:29PM +0200, Peter Bex wrote: > Ah of course. Thanks for reporting! > > It seems that this is caused by the fix for #1515, and apparently on Mac OS > we were relying on the bogus behaviour that strings were just spliced into > the arguments list.

Re: [Chicken-hackers] build error w/ clang on macos

2018-09-06 Thread Peter Bex
is: > > commit dc07113cf79a1930c6a109c738138dbea15afbc0 (HEAD -> master, > origin/master, origin/HEAD) > Author: Peter Bex > Date: Sat Sep 1 18:33:59 2018 +0200 > > #512 $ build_chicken check Ah of course. Thanks for reporting! It seems that this is caused by the fi

Re: [Chicken-hackers] [PATCH] Allow `files' in the toplevel of egg description files

2018-09-05 Thread Peter Bex
On Wed, Sep 05, 2018 at 10:47:04AM +0200, Mario Domenech Goulart wrote: > * 0001-Support-for-CHICKEN-5-s-egg-description-files.patch > That's for henrietta-cache for C4, to support `egg-file' and > `distribution-files'. Thanks, Mario! I've applied this to henrietta-cache and released version

Re: [Chicken-hackers] [PATCH] Allow `files' in the toplevel of egg description files

2018-09-02 Thread Peter Bex
On Sun, Sep 02, 2018 at 12:57:53PM +0200, felix.winkelm...@bevuta.com wrote: > > How should we go about this topic? > > > > The easiest approach would be using `files' in the egg description file. > > It should not require any modifications to henrietta-cache. As far as I > > can see, only

Re: [Chicken-hackers] [PATCH] Fix for Windows quoting issues (fixes #1515)

2018-09-02 Thread Peter Bex
ough the new code, it seems there are very few calls where we actually don't slashify. Perhaps for 5.1 we can try dropping the optional "slashify?" argument and make it slashify always. Cheers, Peter From e26d1692d309c6cc74095f38e06c2ff5d5731317 Mon Sep 17 00:00:00 2001 From: Peter Bex

Re: [Chicken-hackers] [PATCH] Fix for Windows quoting issues (fixes #1515)

2018-09-02 Thread Peter Bex
On Sat, Sep 01, 2018 at 10:09:00PM +0200, felix.winkelm...@bevuta.com wrote: > > Here's a patch for #1515. It turns out to be quite invasive because the > > quotation stuff was completely messed up. Even on *nix, chicken-install > > didn't work when CHICKEN was installed to a PREFIX path with

[Chicken-hackers] [PATCH] Fix for Windows quoting issues (fixes #1515)

2018-09-01 Thread Peter Bex
patch: "qs" accepts a second optional argument, but the types database only knew about the first argument. Cheers, Peter From 2a2895e4840770d4a8364f068bd139620e4385b8 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Sat, 1 Sep 2018 18:33:59 +0200 Subject: [PATCH 1/2] Fix quotation in script

Re: [Chicken-hackers] [PATCH] Allow `files' in the toplevel of egg description files

2018-09-01 Thread Peter Bex
On Sat, Sep 01, 2018 at 11:09:28AM +0200, felix.winkelm...@bevuta.com wrote: > > Hi, > > > > Attached is a small patch to address http://bugs.call-cc.org/ticket/1511 > > > > If it looks good, I propose the documentation that you can see in the > > second patch (files-doc.diff). > > > > I

Re: [Chicken-hackers] Some questions about CHICKEN 5 eggs and modules

2018-08-29 Thread Peter Bex
On Wed, Aug 29, 2018 at 10:57:54AM +0200, felix.winkelm...@bevuta.com wrote: > The foreign-declare case is simple and straightforward and should > be used, if possible, but we need a fallback solution and this case > of a separate .c file is common enough to be addressed. For 5.0? Cheers, Peter

Re: [Chicken-hackers] Some questions about CHICKEN 5 eggs and modules

2018-08-29 Thread Peter Bex
On Tue, Aug 28, 2018 at 08:40:33PM +0200, felix.winkelm...@bevuta.com wrote: > > - How can I compile multiple source files, for example one scheme file and > > several C files, into an extension library in an .egg file? As far as I can > > see, the only way to do that is a custom build script,

Re: [Chicken-hackers] [PATCH] * chicken.h: Fix C_u_fixnum_modulo by extracting the definition from C_fixnum_modulo

2018-08-25 Thread Peter Bex
on Sep 17 00:00:00 2001 From: megane Date: Fri, 17 Aug 2018 14:59:09 +0300 Subject: [PATCH] * chicken.h: Fix C_u_fixnum_modulo by extracting the definition from C_fixnum_modulo Signed-off-by: Peter Bex --- chicken.h | 15 ++- tests/fixnum-tests.scm | 15 ++-

Re: [Chicken-hackers] [PATCH] Drop module namespace from struct type in `##sys#make-structure' specialisation

2018-08-24 Thread Peter Bex
On Fri, Aug 24, 2018 at 09:01:18AM +1200, Evan Hanson wrote: > Hello hackers, > > Here's a fix for #1513. This does the simple thing and just avoids > including module namespaces in `struct' type tags. Thanks for making this patch! Pushed. Cheers, Peter signature.asc Description: PGP

Re: [Chicken-hackers] [PATCH] Drop module namespace from struct type in `##sys#make-structure' specialisation

2018-08-24 Thread Peter Bex
On Fri, Aug 24, 2018 at 07:32:52PM +1200, Evan Hanson wrote: > On 2018-08-24 9:27, Peter Bex wrote: > > I'd prefer to add the current module to struct type declarations, instead. > > This should be equally simple; I think we can add this to validate-type's > > handling of

Re: [Chicken-hackers] [PATCH] Drop module namespace from struct type in `##sys#make-structure' specialisation

2018-08-24 Thread Peter Bex
On Fri, Aug 24, 2018 at 09:01:18AM +1200, Evan Hanson wrote: > Hello hackers, > > Here's a fix for #1513. This does the simple thing and just avoids > including module namespaces in `struct' type tags. > > After 5.0 we can revisit this behaviour and maybe make the compiler a > bit smarter

Re: [Chicken-hackers] [PATCH] Give a path example for clarity in the README

2018-08-23 Thread Peter Bex
On Fri, Aug 17, 2018 at 03:02:54PM +0200, Kristian Lein-Mathisen wrote: > Minor documentation fixes. It took me 3-4 PREFIX attempts before Kooda's > example helped spot my mistake. Thanks, if this helps at least one other person it's a win, I think. Pushed (as it's trivial). Cheers, Peter

Re: [Chicken-hackers] C lost -D on chicken-install

2018-08-21 Thread Peter Bex
On Tue, Aug 21, 2018 at 09:22:47AM +0200, ko...@upyum.com wrote: > felix.winkelm...@bevuta.com wrote: > > There is no bad intent behind this - during the rewrite simply a few options > > were dropped, since they didn't look crucial. If you want it back, no > > problem. > > I’ve been missing it a

Re: [Chicken-hackers] type declarations for define-record not working

2018-08-20 Thread Peter Bex
On Mon, Aug 20, 2018 at 08:26:56PM +0200, Jörg F. Wittenberger wrote: > Hi all, > > attached foo.scm. try (for C4 and C5): > > csc -s foo.scm > > C4 should do, C5 complains for me: > > Warning: at toplevel: > assignment of value of type `(procedure foo#make-foo (*) (struct foo#foo))' > to

Re: [Chicken-hackers] C lost -D on chicken-install

2018-08-20 Thread Peter Bex
On Mon, Aug 20, 2018 at 08:07:03PM +0200, Jörg F. Wittenberger wrote: > Hi all, > > apparently chicken-install lost the -D switch. > > To put it mildly: This worries me a lot. Hi Jörg, I didn't even know the old chicken-install even had that. What do you use it for? It doesn't seem very

[Chicken-hackers] [PATCH] Fix complex (platform) clauses in .egg files

2018-08-12 Thread Peter Bex
Cheers, Peter From bad328ab90cc9b871f1f77bb56b052d0769dee81 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Sun, 12 Aug 2018 20:17:31 +0200 Subject: [PATCH] Fix behaviour of complex (platform) clauses in .egg files Something like (platform (and unix)) would always fail even on UNIX, as would (platform (or haiku u

[Chicken-hackers] [PATCH] Fix stat() on non-directories so file-access tests pass on Haiku

2018-08-12 Thread Peter Bex
h. Cheers, Peter From b2110b75bd8189fcfa52a5411adbdb92acb49ecd Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Sun, 12 Aug 2018 19:40:22 +0200 Subject: [PATCH] Fix stat() with trailing slashes behaviour on Haiku It would return that the file exists even if the target is not a directory. We w

Re: [Chicken-hackers] [PATCH] Introduce XDG directories

2018-08-09 Thread Peter Bex
On Thu, Aug 09, 2018 at 11:52:49AM +0200, ko...@upyum.com wrote: > Hi! > > We discussed this at CHICKEN Longboat, and even made a ticket: > https://bugs.call-cc.org/ticket/1455 For those who missed it, we discussed on IRC that this will be postponed until 5.1. Cheers, Peter signature.asc

[Chicken-hackers] [PATCH] Fix crash from #1493

2018-08-04 Thread Peter Bex
a test case. This could also go to the chicken-4 branch. Cheers, Peter From f2a8a18d6f4917545849242ad5b365379f0f2084 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Sat, 4 Aug 2018 11:29:52 +0200 Subject: [PATCH] When looking up symbol aliases, ignore macros so we don't end up using macro

Re: [Chicken-hackers] [PATCH] * eval.scm (compile): Remove failing environment lookup in ##core#set!

2018-08-04 Thread Peter Bex
lookup in ##core#set! The x is the full expression (e.g. '(##core#set! foo bar)) which should never be in the syntax environment. Signed-off-by: Peter Bex --- eval.scm | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/eval.scm b/eval.scm index f1c5bb6c..e31f

Re: [Chicken-hackers] [PATCH] * eval.scm (compile): Remove failing environment lookup in ##core#set!

2018-08-03 Thread Peter Bex
On Fri, Aug 03, 2018 at 02:43:29PM +0300, megane wrote: > Hi, > > Here's a small simplification. Could you add a test? The comment already says the lookup is wrong, but I'd like to have a regression test to ensure we keep it correct. Cheers, Peter signature.asc Description: PGP signature

Re: [Chicken-hackers] [PATCH 0/4] Handful of small improvements for chicken-install and chicken-status

2018-07-29 Thread Peter Bex
On Sat, Jul 28, 2018 at 09:27:41AM +1200, Evan Hanson wrote: > On 2018-07-25 21:55, Evan Hanson wrote: > > Here are some fixes for things I've run into while testing. > > And here they are again, rebased. Thanks for rebasing, and good finds, all! I've pushed these changes. Cheers, Peter

[Chicken-hackers] [PATCH] Restore old read-line of zero bytes behaviour when FD is not ready

2018-07-29 Thread Peter Bex
at isn't ready, even wrong. The attached patch restores this behaviour so that the http-client tests succeed. Cheers, Peter From d8628d6698ae7e5d7b83069db947358abd2e3b84 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Sun, 29 Jul 2018 17:33:27 +0200 Subject: [PATCH] Restore read-string semantics

[Chicken-hackers] Proposal: Release CHICKEN 5 RC1 on August 11th

2018-07-24 Thread Peter Bex
Hi all, As far as I can tell, there's only one minor ticket left: #1484. This should be relatively easy to implement. Given that many of the essential eggs have been ported, we should try to make a release soon. Different people have wishlists about which eggs they'd like to have available

Re: [Chicken-hackers] [PATCH] Slashify and quote arguments more consistently

2018-07-22 Thread Peter Bex
On Sun, Jul 22, 2018 at 05:35:27PM +0200, Peter Bex wrote: > Hi all, > > I was trying to figure out why memory-mapped-files isn't working on > Windows so I started out with "chicken-install -retrieve memory-mapped-files", > but this failed because xcopy is invoked

[Chicken-hackers] [PATCH] Slashify and quote arguments more consistently

2018-07-22 Thread Peter Bex
Sep 17 00:00:00 2001 From: Peter Bex Date: Sun, 22 Jul 2018 16:58:46 +0200 Subject: [PATCH] Quote and slashify destination directories too For example, xcopy will try to interpret forward slashes as command line parameters, resulting in problems when retrieving eggs and copying a directory. --- chic

Re: [Chicken-hackers] [PATCH] Some small debugger data and wire protocol improvements

2018-07-22 Thread Peter Bex
On Sun, Jul 22, 2018 at 11:45:17PM +1200, Evan Hanson wrote: > Hello hackers, > > Here are a few small changes to the debugging backend, to address some > snags I hit into while working on a program that uses the debugger > protocol. As the commit message says, they're intended to "simplify the >

Re: [Chicken-hackers] [PATCH] Don't warn when namespaced symbols are unbound in eval

2018-07-14 Thread Peter Bex
On Tue, Jul 10, 2018 at 10:16:58PM +1200, Evan Hanson wrote: > Hello hackers, > > Here's a small fix for a warning that should no longer be issued now > that import is allowed to be let-scoped. Makes sense, pushed. Cheers, Peter signature.asc Description: PGP signature

Re: [Chicken-hackers] basic question regarding interfaces

2018-07-13 Thread Peter Bex
branches. Cheers, Peter From b0ae9ca6ffad6cfe70c50cc062f6f655bc995b10 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Fri, 13 Jul 2018 21:49:20 +0200 Subject: [PATCH] Scan module definition for extra exports following interface usage This was pointed out by Martin Schneeweis, fix sugge

Re: [Chicken-hackers] ☪PATCH☪ Check exitlevel in windows build scripts

2018-07-13 Thread Peter Bex
On Sat, Jun 30, 2018 at 11:56:06AM +0200, felix.winkelm...@bevuta.com wrote: > This was reported by Peter: egg build scripts on Windows did not abort on > error, as the exitlevel of each command has to be checked explicitly. I've pushed this, as it just works and so far nobody has objected. I

Re: [Chicken-hackers] chicken 5 / -debug-info / exceptions (missing imports)

2018-07-02 Thread Peter Bex
On Mon, Jul 02, 2018 at 04:07:48PM +0200, Martin Schneeweis wrote: > Hi, > > just a basic question: is it expected behaviour that applications > compiled with "-debug-info" do not show exceptions (to be more > precise: exceptions that are caused by missing imports)? > > If no, I will file a bug.

Re: [Chicken-hackers] ⚡PATCH⚡ Now, really

2018-06-28 Thread Peter Bex
On Thu, Jun 28, 2018 at 09:01:16AM +0200, felix.winkelm...@bevuta.com wrote: > Sorry, that last patch was broken. Attached a better one. Thanks, this fixes the problems I've been having on Windows. Cheers, Peter signature.asc Description: PGP signature

Re: [Chicken-hackers] [PATCH] chicken.h: identify arm64 architectures

2018-06-28 Thread Peter Bex
On Sun, Jun 24, 2018 at 04:05:50PM +0200, Mario Domenech Goulart wrote: > Hi, > > Attached is a patch to make CHICKEN identify arm64 architectures. It > should apply to both C4 and C5 trees. Is there a reason simply "arm" is not sufficient? I don't know much about this stuff TBH. Cheers,

[Chicken-hackers] [PATCH] Always store tests in egg cache, even if not running tests (fixes #1477)

2018-06-21 Thread Peter Bex
00:00 2001 From: Peter Bex Date: Thu, 21 Jun 2018 18:11:10 +0200 Subject: [PATCH] Always fetch tests when retrieving eggs to avoid caching issues When chicken-install retrieves an egg without tests, and later you want to install and run the tests, it will act like there are no tests becau

Re: [Chicken-hackers] missing eggs in chicken 5 egg index?

2018-06-11 Thread Peter Bex
On Mon, Jun 11, 2018 at 08:53:56PM +0200, Kristian Lein-Mathisen wrote: > Hi! > > During Longboat, I ported 3 eggs to CHICKEN 5 as announced here > , > here >

Re: [Chicken-hackers] [PATCH][5] Use more descriptive names in typematch-tests.scm

2018-06-11 Thread Peter Bex
On Sun, Jun 10, 2018 at 08:12:03AM +1200, Evan Hanson wrote: > On 2018-04-26 16:25, Evan Hanson wrote: > > On 2018-03-30 10:55, megane wrote: > > > while I was reading the file I decided to refactor the tests a bit. > > > > Signed-off version attached. > > Could someone please have a look at

Re: [Chicken-hackers] ☮PATCH☮ Fi x broken build-script generation for generated source files

2018-06-09 Thread Peter Bex
On Sat, Jun 09, 2018 at 09:47:22PM +0200, felix.winkelm...@bevuta.com wrote: > > On Sat, Jun 09, 2018 at 10:18:01AM +0200, felix.winkelm...@bevuta.com wrote: > > > See commit message. > > > > Thanks, I've pushed this. Now the C5 bind egg doesn't give an obscure > > message from map not accepting

Re: [Chicken-hackers] ☮PATCH☮ Fix broken build-script generation for generated source files

2018-06-09 Thread Peter Bex
On Sat, Jun 09, 2018 at 10:18:01AM +0200, felix.winkelm...@bevuta.com wrote: > See commit message. Thanks, I've pushed this. Now the C5 bind egg doesn't give an obscure message from map not accepting #f as an argument, but you get a clear message that gen-lexer doesn't exist. Cheers, Peter

Re: [Chicken-hackers] [PATCH] Add 'a shorthand for forall types

2018-06-08 Thread Peter Bex
Hi all, In the interest of moving forward with CHICKEN 5, I propose that we postpone all the below changes to 5.1. On Tue, May 29, 2018 at 01:18:02PM +0300, megane wrote: > Hello, > > This adds support for declaring forall types in more compact manner. > > It supports syntax like ('a -> 'a) to

Re: [Chicken-hackers] ☭PATCH☭ Handle EOF when chicken-uninstall asks for confirmation

2018-06-02 Thread Peter Bex
On Wed, May 30, 2018 at 10:58:43AM +0200, felix.winkelm...@bevuta.com wrote: > The attached patch just aborts with a proper error message instead > of failing inside string->list. Pushed! Cheers, Peter signature.asc Description: PGP signature ___

[Chicken-hackers] [PATCH] Include winerror.h in Windows builds

2018-05-26 Thread Peter Bex
to work, because the code that uses ERROR_OPERATION_ABORTED is pretty old. Oh well. Anyway, attached is a patch to make it work again. Cheers, Peter From 41b3b9c3ba45f0a7f0d8fa5a0e346766ff16aea0 Mon Sep 17 00:00:00 2001 From: Peter Bex <pe...@more-magic.net> Date: Sat, 26 May 2018 18:21:44

Re: [Chicken-hackers] [PATCH] Don't evaluate import forms for syntax in import libraries when there is no syntax exported (mostly fixes #1457)

2018-05-23 Thread Peter Bex
On Sun, May 20, 2018 at 08:55:19PM +0200, Peter Bex wrote: > All of this is completely unnecessary if the module exports no macro > at all! The attached patch simply emits the import forms only if there > actually is syntax exported from the module for which we're generating > the im

Re: [Chicken-hackers] |PATCH| Enable component dependencies

2018-05-21 Thread Peter Bex
On Sat, May 19, 2018 at 05:02:55PM +0200, Peter Bex wrote: > Thanks, pushed! As discussed on IRC, if a dependency is listed as a > symbol, I get an "unknwown component dependency" error. This seems > deliberate, in filter-deps the check assumes that if dependency is

Re: [Chicken-hackers] [PATCH] Move `current-process-id' to "chicken.process-context.posix"

2018-05-21 Thread Peter Bex
On Mon, May 21, 2018 at 11:40:13AM +0200, felix.winkelm...@bevuta.com wrote: > > The patch itself is simple enough, let me know what you think. > > Sounds right - pushed. Agreed. > Could you update the manual in the wiki? This has been taken care of. Cheers, Peter signature.asc Description:

[Chicken-hackers] [PATCH] Don't evaluate import forms for syntax in import libraries when there is no syntax exported (mostly fixes #1457)

2018-05-20 Thread Peter Bex
p 17 00:00:00 2001 From: Peter Bex <pe...@more-magic.net> Date: Sun, 20 May 2018 20:08:19 +0200 Subject: [PATCH] Do not emit import-syntax forms when no syntax forms are exported This avoids importing and re-importing the same basic modules over and over again in an eval expression (as typi

Re: [Chicken-hackers] |PATCH| Enable component dependencies

2018-05-19 Thread Peter Bex
On Mon, May 07, 2018 at 11:15:43AM +0200, felix.winkelm...@bevuta.com wrote: > Hi! > > This patch enables the (previously disabled) handling of component > dependencies in .egg files. A "dependencies" property inside a "component" > expression will now declare the dependency on a file in the egg

Re: [Chicken-hackers] \PATCH/ Fix a few typos and renames in types.db and add a forgotten export of srfi-4

2018-05-13 Thread Peter Bex
On Sat, May 05, 2018 at 01:12:53PM +0200, Kooda wrote: > Hello! > > Here are a few patches that add two useful scripts and fixes the > problems found with them. Very nice! You only forgot to add the new files to distribution/manifest, which I have done and pushed the patch. Cheers, Peter

Re: [Chicken-hackers] [PATCH] fix for chicken.process-context.posix identifiers

2018-05-13 Thread Peter Bex
On Sat, May 05, 2018 at 02:34:49PM +0200, Kooda wrote: > Woops, I made a silly mistake, there’s a missing closing parenthesis in > posixwin.scm. > > Here is the fixed patch. Nice catch, guys! Pushed. Cheers, Peter signature.asc Description: PGP signature

Re: [Chicken-hackers] patch: Always build in host mode unless cross-compiling

2018-05-13 Thread Peter Bex
On Tue, May 01, 2018 at 04:08:36PM +0200, Kooda wrote: > This sounds right to me, unless when cross-compiling, the target is > always the host. That’s also the default for chicken-install already. > > Attached is a signoff. Looks good to me, pushed. Cheers, Peter signature.asc Description:

Re: [Chicken-hackers] [PATCH] chicken-5-eggs fix for spiffy

2018-05-02 Thread Peter Bex
On Tue, May 01, 2018 at 01:46:46PM +0200, Kristian Lein-Mathisen wrote: > Hi all, > > I think this should be applied to spiffy in the test egg repository (git:// > code.call-cc.org/chicken-5-eggs). I'm running chicken5 rev 30af91f4. Thanks! This repo isn't really supposed to be used anymore,

[Chicken-hackers] [PATCH] Fix segfault when passing a non-integer to thread-sleep! (fixes #1459)

2018-04-30 Thread Peter Bex
it an exact integer before sleeping. Cheers, Peter From b1cbe0f9a8f57501562e28f0fac9604f5c474315 Mon Sep 17 00:00:00 2001 From: Peter Bex <pe...@more-magic.net> Date: Mon, 30 Apr 2018 20:54:28 +0200 Subject: [PATCH] Convert timeout to an exact number of milliseconds before sleeping This fixes a se

[Chicken-hackers] [PATCH] Simplify eval/meta a little and drop ##sys#active-eval-environment (which is unused)

2018-04-29 Thread Peter Bex
Peter From bb0a7e01ac48bfda45df864f9502cd9820e3a5e0 Mon Sep 17 00:00:00 2001 From: Peter Bex <pe...@more-magic.net> Date: Sun, 29 Apr 2018 13:57:21 +0200 Subject: [PATCH] Simplify eval/meta a bit and drop ##sys#active-eval-environment In practice, the active-eval-environment will always be set to the paramet

Re: [Chicken-hackers] [PATCH] improve error message

2018-04-29 Thread Peter Bex
On Sun, Apr 29, 2018 at 01:08:32AM +0200, Kristian Lein-Mathisen wrote: > Error: extension or version not found > > Call history: > >(##core#require library scheme#) >(##sys#load-library (##core#quote library)) > ... > > This patch informs the user which extension wasn't found and is

[Chicken-hackers] [PATCH] No longer install chicken.posix.import.so (fixes #1456)

2018-04-28 Thread Peter Bex
confusing. That's a battle for another day, I think. As has been proposed by Evan we could just define the identifiers as chicken.file.posix#file-write in posixunix and posixwin, for example. Cheers, Peter From f685088fde6c9b75e91f28cd0dc086bd794900b2 Mon Sep 17 00:00:00 2001 From: Peter Bex &

Re: [Chicken-hackers] [PATCH 0/2] Some "chicken-install -update-db" fixes

2018-04-28 Thread Peter Bex
On Sat, Apr 28, 2018 at 11:09:22PM +0200, Evan Hanson wrote: > Here are two small patches. > > The first adds a `(current-module)' special form that yields the name of > the surrounding module as a symbol at expansion time, the second makes > sure identifiers from "chicken.foreign" make it into

[Chicken-hackers] [PATCH] Use current environment in code walkers, causing "import" to be lexically scoped (fixes the remainder of #1437)

2018-04-28 Thread Peter Bex
"-1", followed by "3". Cheers, Peter From aec61ded4b562d63bccd63ec7f0b5a647cc33386 Mon Sep 17 00:00:00 2001 From: Peter Bex <pe...@more-magic.net> Date: Sat, 28 Apr 2018 18:09:13 +0200 Subject: [PATCH] Change module imports to be lexically scoped. Instead of carrying aro

[Chicken-hackers] [PATCH] Fix dynamic imports of libraries which are missing in statically compiled programs

2018-04-27 Thread Peter Bex
55 Mon Sep 17 00:00:00 2001 From: Peter Bex <pe...@more-magic.net> Date: Fri, 27 Apr 2018 21:11:21 +0200 Subject: [PATCH] Fix import-library-hook in eval-modules so it won't call #f When used in a statically compiled program, the '##sys#import property will be missing from the module if

Re: [Chicken-hackers] [PATCH] Improve startup time of csi by avoiding some merge-se calls

2018-04-27 Thread Peter Bex
On Fri, Apr 27, 2018 at 01:20:36PM +0200, Peter Bex wrote: > Hi all, > > The first patch is just a similar change to 097053f, which was > incomplete: iexprs never contains any syntax, so we don't need to > patch up any syntax environments in it. > > The second patch will

[Chicken-hackers] [PATCH] Improve startup time of csi by avoiding some merge-se calls

2018-04-27 Thread Peter Bex
-module: when a module does not export any macros, we do not need to create a fresh syntax environment because there is nothing to patch up. Cheers, Peter From b655326d64f6b301873e427cf9e400c545029fec Mon Sep 17 00:00:00 2001 From: Peter Bex <pe...@more-magic.net> Date: Fri, 27 Apr 2018 13:07:40

[Chicken-hackers] [PATCH] Drop some unnecessary code in ##sys#register-compiled-module

2018-04-26 Thread Peter Bex
ansformers. This simplifies the code a little bit, but it shouldn't considerably improve performance of merge-se (that's for a later patch... hopefully). Cheers, Peter From 4a59516ae6028b3c2d0b9acb7130d0305f582821 Mon Sep 17 00:00:00 2001 From: Peter Bex <pe...@more-magic.net> Date: Thu, 26 A

Re: [Chicken-hackers] [PATCH] Make result of empty "else" clause undefined in `cond' and `case' forms

2018-04-12 Thread Peter Bex
On Thu, Apr 12, 2018 at 01:40:42PM +0100, Alaric Snell-Pym wrote: > I think this is good, and doesn't need a warning. I think it could be a > legitimate statement of intent to create an empty else when writing > imperative-style code. > > (cond > ((= guess target) (display "You guessed

Re: [Chicken-hackers] [PATCH] Drop "interrupots-enabled" declaration

2018-04-07 Thread Peter Bex
On Mon, Apr 02, 2018 at 09:57:37PM +0200, felix.winkelm...@bevuta.com wrote: > > On Fri, Mar 23, 2018 at 12:23:27PM +0100, felix.winkelm...@bevuta.com wrote: > > > See attached patch. > > > > You're dropping (declare (not interrupts-enabled)) in the fft test. > > Shouldn't that be replaced with

Re: [Chicken-hackers] [PATCH] Drop `require-extension-for-syntax'

2018-04-01 Thread Peter Bex
On Tue, Mar 27, 2018 at 08:16:03PM +1300, Evan Hanson wrote: > Hi folks, > > In the interest of keeping things moving, here's a simple patch that I > think will be uncontroversial. Thanks, applied! Cheers, Peter signature.asc Description: PGP signature

Re: [Chicken-hackers] [PATCH] Adjust `build-platform' and `software-version' values for Cygwin

2018-03-18 Thread Peter Bex
On Mon, Mar 12, 2018 at 06:53:04PM +1300, Evan Hanson wrote: > Hello, > > On 2018-03-11 15:33, Peter Bex wrote: > > On Sun, Mar 11, 2018 at 02:37:01PM +0100, felix.winkelm...@bevuta.com wrote: > > > > PS: What about mingw64? Should we define that as a separate software

Re: [Chicken-hackers] [PATCH] add `-cached' options to chicken-status, chicken-install

2018-03-18 Thread Peter Bex
On Thu, Mar 15, 2018 at 01:00:24PM +0100, felix.winkelm...@bevuta.com wrote: > Hi! > > The attached patches add `-cached' options to chicken-status and > chicken-install. `chicken-status -cached' lists the eggs that are currently > populating the cache. `chicken-install -cached ...' installs

[Chicken-hackers] [PATCH] Drop ##core#aliased marking [was: Re: [PATCH 0/2] Remove primitive aliasing]

2018-03-18 Thread Peter Bex
ser to my personal goal of getting rid of the abomination known as ##sys#alias-global-hook ;) Cheers, Peter From f17769b11a9bb22773bf9278644a03399eef9abf Mon Sep 17 00:00:00 2001 From: Peter Bex <pe...@more-magic.net> Date: Sun, 18 Mar 2018 15:01:00 +0100 Subject: [PATCH] Remove ##core#aliased marki

[Chicken-hackers] require, require-extension-for-syntax, and the initial macro environment

2018-03-12 Thread Peter Bex
Hi all, I was just moving things around in the CHICKEN 5 manual, and ran into "require-extension-for-syntax". I thought we had removed it and require-extension, but apparently both are part of the (chicken base) module. I'm not sure why we still need these (probably because require-extension is

[Chicken-hackers] [PATCH] Move eval out of r4rs module

2018-03-11 Thread Peter Bex
Cheers, Peter From 19aae5700df4131ed41c447428e1b355c1751d5e Mon Sep 17 00:00:00 2001 From: Peter Bex <pe...@more-magic.net> Date: Sun, 11 Mar 2018 19:13:57 +0100 Subject: [PATCH] Move "eval" from r4rs to r5rs --- NEWS| 1 + modules.scm | 3 ++- 2 files changed, 3 insertions(+), 1 deletio

<    1   2   3   4   5   6   7   8   9   10   >