Re: [PATCH 1/1] Allow "-cached" flag with chicken-install for local egg file

2021-03-13 Thread kooda
Sounds good to me! Applied. :)

Re: [PATCH] * types.db: Fix set-parameterized-read-syntax! , set-sharp-read-syntax! types

2021-03-13 Thread kooda
megane wrote: > here's a small patch for #1733. Applied :)

Re: [PATCH] better error message with unknown component-dependency

2021-03-03 Thread kooda
f Mon Sep 17 00:00:00 2001 From: Kooda Date: Wed, 3 Mar 2021 11:49:57 +0100 Subject: [PATCH] =?UTF-8?q?chicken-install:=20don=E2=80=99t=20try=20to=20g?= =?UTF-8?q?enerate=20build=20commands=20for=20data=20components?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfe

Re: [PATCH] Only force finalizers at program cleanup when live finalizer count is non-zero

2020-07-28 Thread kooda
felix.winkelm...@bevuta.com wrote: > Here is an amended patch - before checking live the finalizer count, any > finalizers already pending are executed. > > > felix Applied, thanks. :)

Re: [PATCH] Update irregex to 0.9.8 for issue in irregex-replace/all with positive lookbehind

2020-07-28 Thread kooda
Peter Bex wrote: > Hi all, > > Here's a patch to bring our core copy of irregex up to date with the > upstream change Alex pushed yesterday to fix the issue reported on > chicken-users by Kay Rhodes. > > Cheers, > Peter Applied, thanks. :)

Re: [PATCH] use -rpath option

2020-03-24 Thread kooda
felix.winkelm...@bevuta.com wrote: > This patch replaces the use of the "-R" linker option by "-rpath", which > appears to be > more portable (accepted by tcc, for example). According to the GNU ld manual, > -R is > actually a compatibility alias for -rpath, so the latter seems to be more >

Re: [PATCH] Implement platform autodetection when possible

2020-03-24 Thread kooda
Evan Hanson wrote: > Hi there, > > Here's a signed-off version of the latest patch, including removing the > handling of iOS as John suggested. I've also fixed the capitalisation of > the Haiku platform name, added a bit more info to the NEWS entry, and > moved it into the correct section. Hey,

Re: [patch] csi needs flonum arithmetic

2020-02-03 Thread kooda
felix.winkelm...@bevuta.com wrote: > This patch removes the "fixnum-arithmetic" declaration from csi.scm, > since "report" (,r) crashes due to flonums in the symbol-table statistics > vector. Applied.

Re: [PATCH] compile c-object components properly in dynamic mode

2019-12-18 Thread kooda
felix.winkelm...@bevuta.com wrote: > This patch addresses #1659, as reported by Thomas Chust. Applied

Re: [PATCH] Fix too small memory allocations

2019-11-28 Thread kooda
Evan Hanson wrote: > Hi Jani, > > Thank you! It took a while to track down a gcc that was new enough, but > I've attached a signed-off version. > > This one also includes the extra info from Peter and megane's commit > messages, as well as the variable from megane's that gives a name to the >

Re: [Chicken-hackers] [PATCH] Fix #1633 by detecting nonexistent field names (typos) in constructor a

2019-10-11 Thread kooda
Peter Bex wrote: > Here's a relatively straightforward patch for #1633; we simply walk the > constructor's arguments and check that there's a matching field > definition for it. If not, bail out with syntax-error. Cool! Pushed! ___ Chicken-hackers

Re: [Chicken-hackers] Allowing unspecified key arguments in functions

2019-07-26 Thread kooda
Amir Teymuri wrote: > I had a question about the objectives and reasons of allowing > un-specified key arguments in functions as soon as i want to have some > key arguments. Any DSSSL style arguments (#!rest, #!optional and #!key) always are optional arguments to the procedure. You can think of

Re: [Chicken-hackers] [PATCH] Fix C_u_i_s32vector_ref

2019-07-25 Thread kooda
megane wrote: > Hi, > > Here's a small typo fix. > Thanks! Applied! Sorry for the wait. ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-hackers

[Chicken-hackers] MacOS salmonella machine woes

2019-07-11 Thread kooda
Hey! A few months ago, I insalled salmonella on an old macbook a friend gave me. It was working great, until very recently. During the heatwave, the power supply died. Does anyone around here have a spare one? From what I’ve seen, there are multiple different types of those, the one I need

Re: [Chicken-hackers] [PATCH] Sync "compile_r" behaviour in Windows and Unix test scripts

2019-07-10 Thread kooda
Evan Hanson wrote: > Hi there, > > Here's a fix for an issue I found while testing megane's inlining patch. > > It just makes the Windows tests match the Unix ones. Currently, > %compile_r% always generates a file called a.out, which isn't correct, > or at least isn't what we want for the new

Re: [Chicken-hackers] [PATCH] Always regenerate import libraries in setup-mode

2019-05-29 Thread kooda
felix.winkelm...@bevuta.com wrote: > > On 2019-05-07 7:45, Evan Hanson wrote: > > > On 2019-05-06 13:04, ko...@upyum.com wrote: > > > > I don't think that patch is right. If you emit import libraries from the > > > > static builds, you will not be able to import modules from the evaluator > > > >

[Chicken-hackers] ♥PATCH♥ Update types.db to reflect keyword changes

2019-05-25 Thread kooda
When messing around with the latest changes in core, I found a couple of type warnings. From 1cfa85be5cba3e45e3bea4508fa68f0918629097 Mon Sep 17 00:00:00 2001 From: Kooda Date: Sat, 25 May 2019 15:24:53 +0200 Subject: [PATCH] Update types.db to reflect keyword changes --- types.db | 61

Re: [Chicken-hackers] [PATCH] Fix breakage for dependencies of foreigners and bind egg (and a few mor

2019-05-25 Thread kooda
Applied! ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Re: [Chicken-hackers] [PATCH] Improve hygiene of FFI macros

2019-05-06 Thread kooda
Peter Bex wrote: > Attached is an updated version of my initial patch but without that one > patch hunk that broke canonicalize-expression. This looks good, I’ve applied it. ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org

Re: [Chicken-hackers] [PATCH] Always regenerate import libraries in setup-mode

2019-05-06 Thread kooda
Evan Hanson wrote: > Here's a new version that uses a flag. Thanks! I’ve applied this. > There's also a supporting bugfix dealing with static-only extension > libraries (that's the first patch). I don’t think that patch is right. If you emit import libraries from the static builds, you will

Re: [Chicken-hackers] [PATCH] Fix #1581 by allowing unqualified record names

2019-04-20 Thread kooda
felix.winkelm...@bevuta.com wrote: > Can anybody give details about the coops problem? From what I can remember, the main problem is not in coops itself, but in record-variants, that uses low-level ##sys# procedures to define records and doesn’t use the right tags (which don’t work with

Re: [Chicken-hackers] [PATCH] Always regenerate import libraries in setup-mode

2019-04-11 Thread kooda
Evan Hanson wrote: > This patch is a very simple solution to the problem, but it's not the > only way we could address the issue so if someone wants to propose > something more clever please be my guest. I would prefer this to be a separate csc option, instead of putting it together with

Re: [Chicken-hackers] [PATCH] Fix #1581 by allowing unqualified record names

2019-04-11 Thread kooda
Peter Bex wrote: > Hi all, > > Here's a relatively straightforward patch, which fixes #1581 as we > discussed at SaarCHICKEN. Please don’t apply this patch. The conclusion we arrived to, at SaarCHICKEN, was that the user of such procedure would be able to use the record variable holding the

Re: [Chicken-hackers] [PATCH] Reset port EOF flag when seeking

2019-04-01 Thread kooda
! Here’s a new patch. Do you like that style better? >From ac00085ee814f026d39e2ee6bb9078228edfc1d5 Mon Sep 17 00:00:00 2001 From: Kooda Date: Mon, 1 Apr 2019 10:52:54 +0200 Subject: [PATCH] Reset port EOF flag when seeking --- posix-common.scm | 6 -- 1 file changed, 4 insertions(+)

[Chicken-hackers] [PATCH] Reset port EOF flag when seeking

2019-03-31 Thread kooda
The subject explains it all. I think that’s the correct thing to do. This fixes the tailf example of the inotify egg. >From f865dfc57978ffe97501bb0edd2097179a26e365 Mon Sep 17 00:00:00 2001 From: Kooda Date: Sun, 31 Mar 2019 12:49:22 +0200 Subject: [PATCH] Reset port EOF flag when seek

[Chicken-hackers] …PATCH… Fix some bugs with the egg file c-object declaration

2019-03-29 Thread kooda
Mon Sep 17 00:00:00 2001 From: Kooda Date: Fri, 29 Mar 2019 14:35:40 +0100 Subject: [PATCH] Fix some bugs with the egg file c-object declaration --- egg-compile.scm | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/egg-compile.scm b/egg-compile.scm index ee7ed86e..bffcf7fa

Re: [Chicken-hackers] [PATCH] Make imports faster

2019-03-24 Thread kooda
in merge-se. * modules.scm (merge-se): Use hash-tables to get O(n) instead of O(n^2) behaviour Signed-off-by: Kooda --- modules.scm | 27 ++- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/modules.scm b/modules.scm index e018de5f..26cf55

[Chicken-hackers] New salmonella test machine for Mac OS

2019-03-23 Thread kooda
Hey folks! A friend of mine gave me his broken macbook laptop so I installed all the things needed to run salmonella on it, here are the first results: https://www.upyum.com/salmonella/master/clang/macosx/x86-64/2019/ I used MacPorts to install the eggs’ dependencies. Appart for a few bindings,

Re: [Chicken-hackers] ⍄PATCH⍃ Fix double quoting in build scripts

2019-03-18 Thread kooda
felix.winkelm...@bevuta.com wrote: > Attached a patch for (hopefully) fixing #1588. Pushed. Thanks for looking into it! ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Re: [Chicken-hackers] [PATCH] Re: Alternative egg installation directories

2019-03-01 Thread kooda
Jim Ursetto wrote: > - utf8: utf8-case-map files as above. Cannot currently be worked around as > the path is hardcoded. (There is technically a way but it is not good.) I have a patch for that egg that I use to release Ensemble, that gets rid of the extra files and bakes them into the binaries.

Re: [Chicken-hackers] ☺Patch☺ Add linkage to component-options

2019-01-23 Thread Kooda
rom 49510d1939e8cd6e13f4fe127a783666f70b6bec Mon Sep 17 00:00:00 2001 From: Kooda Date: Wed, 23 Jan 2019 11:35:49 +0100 Subject: [PATCH 1/3] Make the default linkage of egg programs static when in a static CHICKEN build --- egg-compile.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/egg-compile.sc

[Chicken-hackers] ☺Patch☺ Add linkage to component-options

2019-01-16 Thread kooda
Tiny patch that makes “linkage” valid in the “component-options” specification of egg files. It gets quite tiresome to specify each one manually when you have a lot of components. :x From c9753e8584ef1001332847001be74d5e747308e3 Mon Sep 17 00:00:00 2001 From: Kooda Date: Wed, 16 Jan 2019 23:49

Re: [Chicken-hackers] ⌦PATCH⌫ cond-expand + error for .egg files

2018-11-18 Thread kooda
felix.winkelm...@bevuta.com wrote: > That's actually a very good idea, but complicates the implementation. > Currently we just add a bunch of forms. With your suggested change, > we need to rewrite the egg spec as it is interpreted. Not too difficult, > though. Lets go with the current method for

Re: [Chicken-hackers] ⌦PATCH⌫ cond-expand + error for .egg files

2018-11-18 Thread kooda
felix.winkelm...@bevuta.com wrote: > 2 patches: first one fixes the problem that program components > are not considered when resolving component dependencies, Pushed, thanks :) > second adds "cond-expand" + "error" forms to the egg specification > format and resurrects "chicken-install"s

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

2018-09-28 Thread kooda
felix.winkelm...@bevuta.com wrote: > I wonder: there is no way to conditionally set options, configure egg > building, > etc. I think it would be handy to have a "cond-expand" form that can be used > inside > ..egg files customize the egg build/installation depending on platform. > […] >

Re: [Chicken-hackers] [PATCH] Fix parallel build

2018-09-06 Thread kooda
Tobias Kortkamp wrote: > Hi, > > attempting to build 5.0.0rc1 in parallel (with something like gmake > -j4 on FreeBSD) fails Hi! :) Sorry but parallel build is not supported so far. See the README:

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

2018-08-27 Thread kooda
Peter Bex wrote: > Good catch, here's a signed-off copy. I also added the extra > compilation with -unsafe to runtests.bat. Pushed, great work! ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org

Re: [Chicken-hackers] [PATCH] Fix error in "chicken-status -cached" due to `map' with string argument

2018-08-27 Thread kooda
Evan Hanson wrote: > Here's a bugfix for an error I encountered running "chicken-status -cached": Pushed, thanks! ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-hackers

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

2018-08-21 Thread kooda
Peter Bex wrote: > While I'm all for improving things, let's keep an eye on feature creep. We > are only fixing critical bugs here, not adding new features: those can go > into 5.1. Then we can drop that issue altogether until 5.1. One can pass the desired features with CSC_OPTIONS already.

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

2018-08-21 Thread kooda
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 little bit, but I agree with some of what has been said and would like to add

Re: [Chicken-hackers] ⛆PATCH⛆ Convert program options to strings

2018-08-19 Thread kooda
Applied, with a little tweak. ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-hackers

[Chicken-hackers] Two fixes for Windows

2018-08-14 Thread kooda
Sep 17 00:00:00 2001 From: Kooda Date: Tue, 14 Aug 2018 09:40:52 +0200 Subject: [PATCH 1/2] Make static linking work on Windows --- csc.scm | 3 ++- distribution/manifest| 1 + tests/csc-tests.scm | 7 +-- tests/module-static-link.scm | 3 +++ tests

[Chicken-hackers] [PATCH] Make (repository-path) return a list

2018-08-09 Thread kooda
. I added a few tests to ensure that. From 08f2609232185e09fd323afb6b8ceadad55c52f1 Mon Sep 17 00:00:00 2001 From: Kooda Date: Thu, 9 Aug 2018 20:47:14 +0200 Subject: [PATCH] Make `repository-path` from (chicken platform) return a list instead of a string --- NEWS

[Chicken-hackers] [PATCH] Use the SUDO variable in chicken-uninstall, as documented

2018-08-06 Thread kooda
Speaks for itself. From 4c988ef1c1f0c4d6f067de56091b1c67ccc808e5 Mon Sep 17 00:00:00 2001 From: Kooda Date: Mon, 6 Aug 2018 15:08:08 +0200 Subject: [PATCH] Use the SUDO variable in chicken-uninstall, as documented Also use the `--` argument to the `rm` command. --- chicken-uninstall.scm | 5

[Chicken-hackers] [PATCH 2/2] chicken-status: fix reporting of cached egg version

2018-07-27 Thread Kooda
--- chicken-status.scm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chicken-status.scm b/chicken-status.scm index 565ddd4a..7a0a9b2d 100644 --- a/chicken-status.scm +++ b/chicken-status.scm @@ -115,8 +115,7 @@ (let ((version (cond ((get-egg-property

[Chicken-hackers] [PATCH] A few tools fixes

2018-07-27 Thread Kooda
When reviewing the last chicken-status patches from evhan, I found two little problems: chicken-install doesn’t cleanup its temporary files in every cases and chicken-status doesn’t find the version of eggs in the cache when using the `-cached` option Here are two patches that fix that. :)

[Chicken-hackers] [PATCH 1/2] chicken-install: cleanup temorary files

2018-07-27 Thread Kooda
--- chicken-install.scm | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/chicken-install.scm b/chicken-install.scm index b455f135..e500dc4a 100644 --- a/chicken-install.scm +++ b/chicken-install.scm @@ -462,7 +462,10 @@ (if (null? srvs)

Re: [Chicken-hackers] [PATCH 0/2] Fix chicken-status on MinGW

2018-07-27 Thread kooda
Evan Hanson wrote: > Here's a tiny patch that fixes chicken-status on Windows when > `terminal-size' isn't available, and a second one that just removes an > unnecessary dependency in that program. Oh, good catch, applied! I did not test chicken-status on windows before, sorry. :x

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

2018-07-26 Thread kooda
Peter Bex wrote: > So, I propose that we impose a deadline on ourselves for the first > release candidate, which I arbitrarily chose at August 11th to keep > things going. If there are no serious objections, I'll make the > release candidate on that day. Sounds good to me! I can’t wait, I want

Re: [Chicken-hackers] ☛PATCH☚ Add component-options egg item

2018-07-26 Thread kooda
felix.winkelm...@bevuta.com wrote: > This patch adds a "component-options" egg specification item to specify global > csc- or link-options for all components. These options are combined with > component-specific options. > > This fixes #1484. Applied!

Re: [Chicken-hackers] [PATCH] Only register REPL history hooks when csi is running interactively

2018-07-16 Thread kooda
Evan Hanson wrote: > Pretty simple, does what it says, fixes #1467. Applied! Thanks! :) ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Re: [Chicken-hackers] [PATCH] Forbid relative pathnames in CHICKEN_INSTALL_REPOSITORY

2018-07-16 Thread kooda
Evan Hanson wrote: > I think it's sufficient to validate this environment variable in just > the commands that actually modify on the repository, so, chicken-install > and chicken-uninstall. Looks good, applied! :) ___ Chicken-hackers mailing list

Re: [Chicken-hackers] ☢PATCH☢ Inject version retrieved from henrietta is added to egg-info

2018-06-22 Thread Kooda
pushed ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Re: [Chicken-hackers] Make the test suite work when PROGRAM_PREFIX and PROGRAM_SUFFIX are defined

2018-05-27 Thread Kooda
On Thu, 24 May 2018 08:44:49 +1200 Evan Hanson wrote: > I understand, but as I said, when options are provided as make flags > (as these two values must be) then they're already exported, so these > two statements are unnecessary. > > Evan What about the case where the

Re: [Chicken-hackers] ☠PATCH☠ Rename dependency properties

2018-05-26 Thread Kooda
On Mon, 21 May 2018 11:28:06 +0200 felix.winkelm...@bevuta.com wrote: > The attached patch addresses the ambiguous meaning of the "dependency" > egg property, that Kristian correctly pointed out. Inter-component > dependencies are now specified with "(component-dependency NAME ...)", >

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

2018-05-05 Thread Kooda
On Sat, 5 May 2018 12:15:05 +0200 Kooda <ko...@upyum.com> wrote: > Hey! > > I took the liberty to extend this patch a bit more, some windows stuff > had been left out. > > Also, according to the documentation, current-process-id should be in > (chicken p

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

2018-05-05 Thread Kooda
rom aae6097fcb28f163f2c279953499961f81361ad3 Mon Sep 17 00:00:00 2001 From: Kooda <ko...@upyum.com> Date: Sat, 5 May 2018 12:51:37 +0200 Subject: [PATCH 1/3] Add a types.db consistency check test --- tests/runtests.bat | 4 ++ tests/runtests.sh | 3 ++ tests/types-db-consistency

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

2018-05-05 Thread Kooda
namespace prefix. Let's address in a separate commit. Signed-off-by: Kooda <ko...@upyum.com> --- library.scm | 6 +++- posix-common.scm | 2 -- posix.scm| 3 +- posixunix.scm| 74 ++-- posixwin.scm | 14 + types.db

[Chicken-hackers] Make the test suite work when PROGRAM_PREFIX and PROGRAM_SUFFIX are defined

2018-05-02 Thread Kooda
Hey! New patch, all is in the title. This fixes ticket #1458. It requires the patch “Always build in host mode unless cross-compiling” posted on 26/04/2018 to work properly. >From 12972c3292f2a32c57e5308d1ca9e7edc300c8d0 Mon Sep 17 00:00:00 2001 From: Kooda <ko...@upyum.com> Date: W

Re: [Chicken-hackers] )PATCH( Lookup program argument to feathers properly and show error on failure

2018-05-01 Thread Kooda
On Sun, 29 Apr 2018 23:37:00 +0200 felix.winkelm...@bevuta.com wrote: > Hi! > > This patch fixes two problems with feathers that I have noticed being > mentioned on #chicken: the program argument is treated as a normal > filename and looked up like anz other file, not dependent on the > current

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

2018-05-01 Thread Kooda
On Sun, 29 Apr 2018 14:11:18 +0200 Peter Bex wrote: > Hi all, > > I noticed that we're practically rolling our own inline version of > "parameterize" using dynamic-wind. The attached patch simplifies > this a little to make it more readable. It also drops >

Re: [Chicken-hackers] [PATCH] add an error for -L and -I in csc

2018-05-01 Thread Kooda
On Sun, 29 Apr 2018 13:16:55 +0200 Kristian Lein-Mathisen wrote: > Hi, > > Hopefully the commit message explains it all. I ran into this problem > when I had an egg file containing this: > > (components > (extension nanomsg > (source "nanomsg-module.scm") >

Re: [Chicken-hackers] [PATCH][4] Add missing extras unit dependency to files.scm

2018-05-01 Thread Kooda
On Thu, 26 Apr 2018 16:59:47 +0200 Evan Hanson wrote: > Dead simple, fixes #1442. > > Cheers, > > Evan This has been pushed already. ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org

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

2018-05-01 Thread Kooda
. Signed-off-by: Kooda <ko...@upyum.com> --- csc.scm | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/csc.scm b/csc.scm index b3d562ab..27fbedb8 100644 --- a/csc.scm +++ b/csc.scm @@ -76,8 +76,8 @@ (exit 64) ) (define arguments (command-line-arguments)) -(d

Re: [Chicken-hackers] [PATCH] Refactor posix so that identifiers appear to come from the "submodules"

2018-05-01 Thread Kooda
On Mon, 30 Apr 2018 20:28:07 +0200 Peter Bex wrote: > Hi all, > > As I mentioned in an earlier e-mail, the posix module can be > refactored so that it set!s the identifiers declared in the > other modules (like chicken.file.posix, chicken.time.posix etc). > > The attached

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

2018-04-30 Thread Kooda
On Mon, 30 Apr 2018 21:03:26 +0200 Peter Bex wrote: > Hi all, > > This was just found by Kristian, and it's pretty trivial: > user code can call thread-sleep! with any real number as an argument, > but the timeout code itself which calculates the number of > microseconds to

Re: [Chicken-hackers] {PATCH} make egg artefacts implicitly dependent on egg file

2018-04-29 Thread Kooda
On Sun, 29 Apr 2018 13:08:49 +0200 felix.winkelm...@bevuta.com wrote: > Attached an improved version, which should do the right thing when > the egg file is in the "chicken" subdirectory. > > (thanks to Kooda) > > > felix > pushed _

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

2018-04-29 Thread Kooda
Pushed! The chicken.posix module was still accessible with csi, I added -no-module-registration to the build options and it seems to do the trick. ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org

Re: [Chicken-hackers] patch: manpages matching program names

2018-04-27 Thread Kooda
Pushed! ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-hackers

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

2018-04-17 Thread Kooda
On Tue, 17 Apr 2018 12:51:45 +1200 Evan Hanson wrote: > Thanks everyone, it sounds like this patch can be applied as-is. > Done. :) I think the modification for “case” wasn’t necessary, as `(##core#begin ,@(cdr clause)) will yield (##core#begin) which is (I think)

[Chicken-hackers] [PATCH] Make chicken-install work when the egg file is inside a chicken/ subdirectory.

2018-01-15 Thread Kooda
--- egg-information.scm | 5 - eval.scm| 1 - rules.make | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/egg-information.scm b/egg-information.scm index e60756c7..20e4334e 100644 --- a/egg-information.scm +++ b/egg-information.scm @@ -27,7 +27,10 @@

Re: [Chicken-hackers] [PATCH] Move data-structures procedures into (chicken base)

2017-12-29 Thread Kooda
On Wed, 27 Dec 2017 21:26:56 +0100 Peter Bex wrote: > Hi, > > As we agreed on in c-l-r, this patch moves the procedures from > data-structures into chicken.base. > > Cheers, > Peter Just a tiny typo rasso -> rassoc in the +extended-bindings+ list. Signed off and pushed!

Re: [Chicken-hackers] [PATCH] Fix inconsistency between core test lib and test egg, and fix number->string conversion on some edge case flonums

2017-10-25 Thread Kooda
First patch pushed. As discussed on IRC, I think the second patch isn’t quite correct, regarding to negative numbers, and possibly calling log2 with 0. Here is an other attempt at it. :) From d6a4d5f33c05a5973694df407d8ddcea94cca8de Mon Sep 17 00:00:00 2001 From: Peter Bex

Re: [Chicken-hackers] [PATCH] Fix #1367 by using some black magic

2017-10-22 Thread Kooda
Applied to both master and chicken-5, it might have been tricky to find, but the solution sounds very logical to me, great job! While I tested this patch I also found a bug in srfi-18 for C5. I’ve pushed a patch for that to the chicken-5-eggs repo, should I put it somewhere else as well?

Re: [Chicken-hackers] [PATCH] [5] Bugfix in chicken-install regarding proper import library name

2017-10-22 Thread Kooda
Good find, pushed. ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-hackers

[Chicken-hackers] [PATCH] Use the correct output file extension when using csc -c

2017-10-21 Thread Kooda
I found a little bug: when I tried to build some files with csc -c, the output files had no extension instead of the expected ".o". Here’s a patch that fixes that (C5 only). >From 727426ed3e9df7855ce8190345b6ded70adc1e75 Mon Sep 17 00:00:00 2001 From: Kooda <ko...@upyum.com> Dat

Re: [Chicken-hackers] [PATCH] [5] csc -static is overly static

2017-10-21 Thread Kooda
I’m fine with this change, pushed. That way -static only links scheme code statically, and as you said, it’s easy to make a fully static build. One thing that might be missing for it to become really useful would be to call the linker with the right link flags when one of the scheme library is a

Re: [Chicken-hackers] [PATCH] Make the compiler output deterministic

2017-10-21 Thread Kooda
Here is the same set of patches, for master, in case we want that. >From a37033ed2aeceef85b529f49c7b79c2102ae482e Mon Sep 17 00:00:00 2001 From: Kooda <ko...@upyum.com> Date: Sat, 21 Oct 2017 11:58:07 +0200 Subject: [PATCH 1/4] Sort the symbol table before outputing C code from the

[Chicken-hackers] [PATCH] Make the compiler output deterministic

2017-10-21 Thread Kooda
001 From: Kooda <ko...@upyum.com> Date: Sat, 21 Oct 2017 11:58:07 +0200 Subject: [PATCH 1/4] Sort the symbol table before outputing C code from the complier. This helps make the compiler deterministic, as the output will not change because of the random seeding of the symbol table. --- c-ba

Re: [Chicken-hackers] [C5] About `random` and its future

2017-09-19 Thread Kooda
As said on IRC, we could merge this with the packet signing proposal. If we are going to use the NaCl API for that, we can borrow some random data procedures as well. For example the libsodium library has been carefully audited and provides a nice bunch of procedures :

Re: [Chicken-hackers] [PATCH] Use name from egg file when installing types and inline files

2017-09-09 Thread Kooda
On Sat, 9 Sep 2017 16:14:44 +1200 Evan Hanson <ev...@foldling.org> wrote: > Please ignore this patch, Kooda has pointed out that the current > behaviour makes more sense. > Well, actually, I’m not sure what makes more sense. I think it’s strange that types and inline files are

Re: [Chicken-hackers] [PATCH] [5] avoid colliding .o files when compiling extensions

2017-09-08 Thread Kooda
Applied! :3 ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-hackers

[Chicken-hackers] [PATCH 1/2] Make `call/cc` continuations behave like `values` ones.

2017-09-07 Thread Kooda
This makes the relaxed cases for multiple values work when using `call/cc` to pass multiple values to the continuation instead of `values`. This fixes ticket #1390 --- runtime.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/runtime.c b/runtime.c index ba2ec26d..a415d004

[Chicken-hackers] [PATCH] Fix the inconsistent behavior between values and call/cc

2017-09-07 Thread Kooda
Hi! Here is a patch and a test case for the #1390 ticket. I’m not too sure about the quality and implications of this patch, please review it thoroughly. :) ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org

[Chicken-hackers] [PATCH 2/2] Add a test case for multiple values handling.

2017-09-07 Thread Kooda
--- tests/multiple-values.scm | 17 + tests/runtests.bat| 8 tests/runtests.sh | 5 + 3 files changed, 30 insertions(+) create mode 100644 tests/multiple-values.scm diff --git a/tests/multiple-values.scm b/tests/multiple-values.scm new file mode

Re: [Chicken-hackers] [PATCH] Add chicken.sort module

2017-08-19 Thread Kooda
On Sun, 13 Aug 2017 15:02:27 +0200 Peter Bex wrote: > Hi all, > > Attached is a patch that splits the sorting procedures from > data-structures into chicken.sort. Applied. > I noticed that we currently don't export "merge!" from > data-structures. Should we do that for

Re: [Chicken-hackers] [PATCH] Move current-read-table to chicken.read-syntax

2017-08-19 Thread Kooda
Pushed! :) ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Re: [Chicken-hackers] Proposal / patch for fixing #1385 (swapped bit-set? argument order)

2017-08-19 Thread Kooda
Sounds like the best thing to do. Applied. :) ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Re: [Chicken-hackers] [PATCH] Move duplicated posix module declarations into posix.scm

2017-06-14 Thread Kooda
That was bugging me, thanks for the cleanup! Pushed. :D ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Re: [Chicken-hackers] [PATCH] [5] Make syntax-rules "fully" self-contained

2017-06-14 Thread Kooda
On Thu, 8 Jun 2017 21:23:17 +0200 Peter Bex wrote: > On Thu, Jun 08, 2017 at 09:19:24PM +0200, Peter Bex wrote: > > Hi all, > > > > Here's a reasonably simple patch that moves the expansion-time > > support helpers for ye olde syntax-rules into an internal module in > >

Re: [Chicken-hackers] [PATCH] Add unexport form for modules

2017-06-07 Thread Kooda
On Wed, 7 Jun 2017 22:07:56 +0200 Peter Bex wrote: > Both these proposals make me very very uneasy, for slightly different > but somewhat related reasons. I strongly agree with you on these points. How CHICKEN’s module definition works always seemed strange to me. R7RS is

Re: [Chicken-hackers] using tcc -run app.c # tcc, the tiny C compiler

2017-06-07 Thread Kooda
On Wed, 7 Jun 2017 13:33:47 +0200 fire...@firemail.cc wrote: > which paths and %VARS do I need to set so I can use tcc -run ... > with all *.c stuff that chicken produces ? > Sorry, TCC is not supported, it doesn’t implement alloca() which is needed by CHICKEN. Also, this kind of questions is

Re: [Chicken-hackers] About (chicken process) and (chicken process-context)

2017-06-06 Thread Kooda
Sounds good to me, pushed! ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Re: [Chicken-hackers] [PATCH] Make setting of the file modification time saner

2017-06-05 Thread Kooda
Both changes signed off and pushed. :) Sorry for the delay. ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Re: [Chicken-hackers] Experiments with heap shrinkage, -:hs

2017-05-20 Thread Kooda
On Fri, 19 May 2017 15:29:56 +0200 (CEST) Sven Hartrumpf wrote: > Hi all. > > I would like to experiment with heap shrinking (-:hs) for long > running, memory/GC intensive processes. > > I checked runtime.c and I read the following shrink condition: > > count <

Re: [Chicken-hackers] [PATCH] Prevent uninitialized memory access when make-ing a srfi-4 vector

2017-03-14 Thread Kooda
Signed off and pushed. I just changed the `int` type to `size_t` to avoid integer overflow. ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Re: [Chicken-hackers] [PATCH] Make process procedures in the posix module accept alists for environments.

2017-03-09 Thread Kooda
ted patch that includes this proposal. :) >From 353e83d8402c6289f5c6c2390955acf1204dd62b Mon Sep 17 00:00:00 2001 From: Kooda <ko...@upyum.com> Date: Wed, 1 Mar 2017 12:10:00 +0100 Subject: [PATCH] Make process procedures in the posix module accept alists for environments. Previously,

[Chicken-hackers] [PATCH] Make process procedures in the posix module accept alists for environments.

2017-03-01 Thread Kooda
Previously, environments were passed as a list of strings in the form "name=value", which seemed inconsistent with the get-environment-variables which hands out an alist. This fixes #1270 --- manual/Unit posix | 10 +- posix-common.scm | 15 ++- posixunix.scm | 2 +-

Re: [Chicken-hackers] [PATCH] [5] Clean up chicken.h a little bit

2017-02-25 Thread Kooda
Signed off and pushed, except the first patch which will change the behaviour with C++ compilers. It doesn’t seem very serious though… ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Re: [Chicken-hackers] [PATCH] Ensure va_end() is always called in C_a_i_string()

2017-01-20 Thread Kooda
On Thu, 19 Jan 2017 22:16:20 +1300 Evan Hanson wrote: > Previously, the call to va_end() would be skipped when this procedure > was given invalid arguments (and continued to `barf` a result). > --- > runtime.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) >

  1   2   >