Re: [Chicken-hackers] possible bug in simple-sha1

2019-06-03 Thread Kristian Lein-Mathisen
That fixes it Vasilij! Thanks a lot. Felix, can you get this fix upstream? These steps worked for me: 1005 klm@kth ~/.c/c/simple-sha1 ➤ wget https://raw.githubusercontent.com/clibs/sha1/master/sha1.h 1005 klm@kth ~/.c/c/simple-sha1 ➤ mv sha1.h.1 sha1.h 1005 klm@kth ~/.c/c/simple-sha1 ➤ wget

Re: [Chicken-hackers] possible bug in simple-sha1

2019-06-02 Thread Kristian Lein-Mathisen
of not fixing this problem or not. K. On Sun, Jun 2, 2019 at 1:01 PM Peter Bex wrote: > On Sun, Jun 02, 2019 at 12:39:25PM +0200, Kristian Lein-Mathisen wrote: > > Hi guys, > > > > I've come across a strange problem with simple-sha1. Sometimes it reports > > the wrong hash

[Chicken-hackers] possible bug in simple-sha1

2019-06-02 Thread Kristian Lein-Mathisen
Hi guys, I've come across a strange problem with simple-sha1. Sometimes it reports the wrong hash for large files when I use the sha1sum procedure. I don't know if the problem is there for strings. 1216 klm@kth ~/archive ➤ csi -R simple-sha1 -p '(sha1sum "MOV_0384.mp4")' ; sha1sum

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

2018-08-17 Thread Kristian Lein-Mathisen
Minor documentation fixes. It took me 3-4 PREFIX attempts before Kooda's example helped spot my mistake. K. From 51f088c8dc6fc09adbd767ffd253a6a638303c1f Mon Sep 17 00:00:00 2001 From: Kristian Lein-Mathisen Date: Fri, 17 Aug 2018 14:59:41 +0200 Subject: [PATCH] Give a path example for clarity

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

2018-06-11 Thread Kristian Lein-Mathisen
Very cool, thanks for fixing Peter! And look at all the exciting eggs for CHICKEN 5! K. On Mon, Jun 11, 2018 at 9:21 PM, Peter Bex wrote: > On Mon, Jun 11, 2018 at 08:53:56PM +0200, Kristian Lein-Mathisen wrote: > > Hi! > > > > During Longboat, I ported 3 eggs to CHICKE

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

2018-06-11 Thread Kristian Lein-Mathisen
Hi! During Longboat, I ported 3 eggs to CHICKEN 5 as announced here , here and here

[Chicken-hackers] [PATCH] fix procedure-information to include namespaces for various procedures

2018-05-05 Thread Kristian Lein-Mathisen
rom af31d43869a692e8eb233eb0afb7b4a0f8ed65d0 Mon Sep 17 00:00:00 2001 From: Kristian Lein-Mathisen <krist...@adellica.com> Date: Sat, 5 May 2018 12:33:27 +0200 Subject: [PATCH] Fix procedure-information namespaces for various procedures this list is not exaustive. - block-set! is still `##sys#

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

2018-05-05 Thread Kristian Lein-Mathisen
Hi Kooda, I never thought to cross-reference with the manual, I'll do that next time. Thanks a lot. Also, I'd love to see your types.db cross-reference script! K. On Sat, May 5, 2018 at 12:15 PM, Kooda wrote: > Hey! > > I took the liberty to extend this patch a bit more, some

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

2018-05-03 Thread Kristian Lein-Mathisen
))) (assert (string? (current-effective-user-name))) (assert (fixnum? (process-group-id (current-process-id (assert (list? (user-information (current-user-id From 15093d156ce30a49cfe482a6276d0601c2c8a042 Mon Sep 17 00:00:00 2001 From: Kristian Lein-Mathisen <krist...@adellica.com> Dat

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

2018-05-01 Thread Kristian Lein-Mathisen
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. Without this patch, I get errors like this: Note: the following toplevel variables are referenced but unbound: use openssl

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

2018-04-29 Thread Kristian Lein-Mathisen
(extension nanomsg (source "nanomsg-module.scm") (link-options "-L" "-lnanomsg"))) It was not fun to debug why my egg wouldn't link against nanomsg.so, so I though it might be useful to add this check in csc. K. From cb6176cffb96e728c31b1bea082908a188be00ad Mon Sep 17

[Chicken-hackers] [PATCH] improve error message

2018-04-28 Thread Kristian Lein-Mathisen
(d retrieve-only "~a located at ~a~%" egg dir) (set! canonical-eggs (cons (list name dir ver) canonical-eggs))) Can someone help me trigger this error message? K. From 4e1f1a7cfa78c15dc3150efd0f085d921aaba709 Mon Sep 17 00:00:00 2001 From: Kristian

[Chicken-hackers] patch: fix for chicken-install log output

2018-04-28 Thread Kristian Lein-Mathisen
test output. This patch addresses that. K. From 4b988a68c9209c19d6f235e23a66c7870ac4f4ac Mon Sep 17 00:00:00 2001 From: Kristian Lein-Mathisen <krist...@adellica.com> Date: Sat, 28 Apr 2018 17:58:27 +0200 Subject: [PATCH 2/2] chicken-install: Fix log output order The log message running: /tmp/bin/csi5

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

2018-04-26 Thread Kristian Lein-Mathisen
binaries gets the arm- prefix, for example, not the target binaries). This patch essentially adds the "-host" parameter on by default whenever you're compiling with a non cross-chicken. K. From a85e0a6028e0dc37dc0f12cb003e0b7b0f219aa9 Mon Sep 17 00:00:00 2001 From: Kristian Lein-Mathisen &

[Chicken-hackers] patch: manpages matching program names

2018-04-26 Thread Kristian Lein-Mathisen
Problem: make PROGRAM_SUFFIX=5 PROGRAM_PREFIX=sweet- will produce man-pages without the suffix and prefix. this patch fixes that. the above example should produce `man sweet-csc5` for example. K. From dc48d0f41af81e8ebb02e4390d9fc899c15bc55b Mon Sep 17 00:00:00 2001 From: Kristian Lein

[Chicken-hackers] fix a bug/typo in srfi-4

2017-04-13 Thread Kristian Lein-Mathisen
Hi Chickeners, As the commit says, this fixes a typo in s8vector-ref's setter. It can be applied in both chicken-5 and master. K. From 9a3f1b789bd937d9442aa24473e528fc33eb7d10 Mon Sep 17 00:00:00 2001 From: Kristian Lein-Mathisen <kristianl...@gmail.com> Date: Thu, 13 Apr 2017 14:15:07

Re: [Chicken-hackers] (no subject)

2017-04-09 Thread Kristian Lein-Mathisen
Sorry about the missing subject. Here's another patch, for the chicken.syntax module. Is this, btw, the right way to submit patches to core? K. On 4/9/17, Kristian Lein-Mathisen <krist...@adellica.com> wrote: > Hello dear CHICKEN core members, > > Here's my attempt at making

[Chicken-hackers] (no subject)

2017-04-09 Thread Kristian Lein-Mathisen
) ;; TODO: do we need (fixnum) here? (disable-interrupts)) ;; TODO: do we need (disable-interrupts) here? I hope this is useful! K. From 3d2ed02bd1a45f86939839c71bd38a98e67e55fa Mon Sep 17 00:00:00 2001 From: Kristian Lein-Mathisen <kristianl...@gmail.com> Date: Sun, 9 Apr 2017 01:28:54 +0200 S

Re: [Chicken-hackers] chicken-install bug: does not copy all folders when cross-compiling

2015-11-04 Thread Kristian Lein-Mathisen
Hi Peter, And thanks for looking into this! On Tue, Nov 3, 2015 at 8:04 PM, Peter Bex <pe...@more-magic.net> wrote: > On Thu, Oct 15, 2015 at 01:33:59PM +0200, Kristian Lein-Mathisen wrote: > > Hi dear chickeners! > > > > We have a really nice macro[1] tha

[Chicken-hackers] chicken-install bug: does not copy all folders when cross-compiling

2015-10-15 Thread Kristian Lein-Mathisen
Hi dear chickeners! We have a really nice macro[1] that runs "git describe --tags" and produces string-output of our current version at compile-time. This method is (when not cross-compiling) very robust because it doesn't use any temporary files to store the current version etc. We like this

Re: [Chicken-hackers] CHICKEN in production

2014-10-07 Thread Kristian Lein-Mathisen
We had several problems with controling external processes too. And that with-input-from-pipe http://api.call-cc.org/doc/posix/with-input-from-pipe blocks other srfi-18 threads http://paste.call-cc.org/paste?id=dc1ec82557b9ea5846ec976a9987d53d83f401e3 is a problem. If I remember correctly,

Re: [Chicken-hackers] CHICKEN in production

2014-09-30 Thread Kristian Lein-Mathisen
Cool! We'll be launching a product soon as well, with the heart of the system running Chicken. We'll post it here in case anyone is interested. Thanks for sharing! K. On Sep 30, 2014 12:22 PM, Felix Winkelmann felix.winkelm...@bevuta.com wrote: From: r d...@bk.ru Subject: [Chicken-hackers]

Re: [Chicken-hackers] incorrect warning during compilation

2014-07-11 Thread Kristian Lein-Mathisen
We can't use the test egg in core. However, there are so many hand- rolled assertion/test-like macros that I've often wondered if it would benefit us to make a simple test library part of core. Core itself could benefit from an improved test suite library, and eggs wouldn't need an

Re: [Chicken-hackers] incorrect warning during compilation

2014-07-09 Thread Kristian Lein-Mathisen
, Felix Winkelmann wrote: From: Kristian Lein-Mathisen krist...@adellica.com Subject: Re: [Chicken-hackers] incorrect warning during compilation Date: Fri, 27 Jun 2014 17:13:21 +0200 Actually, that's really cool! A string-buffer type! I wouldn't mind seeing this in core. So how does

Re: [Chicken-hackers] incorrect warning during compilation

2014-07-01 Thread Kristian Lein-Mathisen
...@bevuta.com wrote: From: Kristian Lein-Mathisen krist...@adellica.com Subject: Re: [Chicken-hackers] incorrect warning during compilation Date: Fri, 27 Jun 2014 17:13:21 +0200 Actually, that's really cool! A string-buffer type! I wouldn't mind seeing this in core. So how does this work, Felix, do we

Re: [Chicken-hackers] incorrect warning during compilation

2014-06-27 Thread Kristian Lein-Mathisen
Thanks for you feedback Felix, I talked to Peter on #chicken and he wasn't happy about another foreign-type. I suppose I agree with him, there are quite a few already and maybe it'll just be confusing: having a c-string and a string foreign type would probably do more harm than gain. I decided

Re: [Chicken-hackers] incorrect warning during compilation

2014-06-27 Thread Kristian Lein-Mathisen
Actually, that's really cool! A string-buffer type! I wouldn't mind seeing this in core. So how does this work, Felix, do we vote and things? K. On Fri, Jun 27, 2014 at 4:43 PM, Felix Winkelmann felix.winkelm...@bevuta.com wrote: I talked to Peter on #chicken and he wasn't happy about

Re: [Chicken-hackers] incorrect warning during compilation

2014-06-25 Thread Kristian Lein-Mathisen
Oh, I see. I though it was meant to be used interchangeably. I can't use string-blob, though, because that will copy the data and I need to modify it from C. What foreign type should I use for this sort of thing? - (c-pointer char) with (location string) works, but is a lot of typing -

[Chicken-hackers] incorrect warning during compilation

2014-06-24 Thread Kristian Lein-Mathisen
Hi folks, I think I may have found a tiny bug in core. So instead of going on IRC and crying to Peter, I though I'd try it myself this time. I have a file like this: (print ((foreign-lambda* c-string ((blob x)) x[0] = 65; return(x);) xBC)) When I run this, everything works: $ ./type-test ABC

Re: [Chicken-hackers] [PATCH] Fix #1133

2014-06-20 Thread Kristian Lein-Mathisen
Ah, I did not get that quick (use ports) workaround. That'll do! Thanks, K. On Fri, Jun 20, 2014 at 8:22 AM, Peter Bex peter@xs4all.nl wrote: On Thu, Jun 19, 2014 at 11:36:58PM +0200, Kristian Lein-Mathisen wrote: Thanks so much for looking into this, and fixing it, Peter

Re: [Chicken-hackers] [PATCH] Fix #1133

2014-06-19 Thread Kristian Lein-Mathisen
Thanks so much for looking into this, and fixing it, Peter! This is probably the only patch on chicken-hackers I'll ever understand :) I should have thought about using DEBUGBUILD myself. I'll see if I can be of more use next time! We are depending on this fix for our systems in prod. Will there

Re: [Chicken-hackers] [PATCH] fix: eval.scm: use soname only with when USES_SONAME present

2014-01-06 Thread Kristian Lein-Mathisen
I think it means that binary-version is 0 is we don't have config.h: https://github.com/chicken-mobile/chicken-core/blob/android-soname-fix-maybe/eval.scm#L45 does that help? K. On Fri, Jan 3, 2014 at 8:41 PM, Christian Kellermann ck...@pestilenz.orgwrote: * Kristian Lein-Mathisen kristianl

[Chicken-hackers] [PATCH] fix: eval.scm: use soname only with when USES_SONAME present

2014-01-03 Thread Kristian Lein-Mathisen
tries to fix and clean that up. Hopefully the patch commit message makes sense. Kristian From efb08c433a023cda20ad151445aa42051de10d92 Mon Sep 17 00:00:00 2001 From: Kristian Lein-Mathisen kristianl...@gmail.com Date: Fri, 3 Jan 2014 15:16:51 +0100 Subject: [PATCH] fix: eval.scm: use soname only

[Chicken-hackers] patch: argument-type check for getter-with-setter

2013-05-25 Thread Kristian Lein-Mathisen
Dear Chickeners, With the help of C-Keen, I've been able to make small patch that prevents a segfault. The patch is attached. I hope it turns out useful, K. 0001-Adds-argument-type-check-on-getter-with-setter.patch Description: Binary data ___

Re: [Chicken-hackers] whishlist entry: plain scheme read syntax for type declarations

2013-03-24 Thread Kristian Lein-Mathisen
Hi, Isn't the dot-notation supported by all schemes? (lambda (head . tail) body). What's the reason you can't use that? K. On Mar 24, 2013 10:28 PM, John Cowan co...@mercury.ccil.org wrote: Jörg F. Wittenberger scripsit: A suggestion: Since I don't see keywords having a special meaning in

[Chicken-hackers] feature patch: preserving argument names in foreign-lambda and friends

2012-09-29 Thread Kristian Lein-Mathisen
Hi guys, Here is a suggestion for a patch which will preserve argument-names of foreign-lambdas* and friends. Check out the commit-message attached for more info. This also works with chicken-bind generated lambdas: If I do chicken-bind on this: cpBool cpSpaceShapeQuery(cpSpace *space, cpShape