Re: [Chicken-users] HEADS-UP! Next CHICKEN meetup @ Nuremberg, Germany on the horizon!

2016-05-24 Thread Kristian Lein-Mathisen
Thanks for the initiative, Christian! Looking forward to see everybody again :) K. On Mon, May 23, 2016 at 10:29 AM, Christian Kellermann wrote: > * Christian Kellermann [160520 12:53]: > > It will take place in Nuremberg, Germany, Europe, Planet

Re: [Chicken-users] I'm looking for suggestions regarding vectors vs. records vs. coops (again).

2016-07-29 Thread Kristian Lein-Mathisen
I'd like to thank you too Peter, for this very informative overview of typed-records which I'm looking forward to start using! K. On Wed, Jul 27, 2016 at 6:31 PM, Matt Welland wrote: > Top posting just to say thanks to Peter, typed-records are a huge benefit > for me. I

Re: [Chicken-users] Asynchronous I/O Egg Release

2016-07-07 Thread Kristian Lein-Mathisen
I don't know how useful this is, but I though I'd throw in a test I use as we've encountered this a few times as well in the posix egg: (use posix srfi-18) (define mythread (thread-start! (lambda () (let loop () (define start (current-milliseconds)) (thread-sleep! 0.1)

Re: [Chicken-users] Asynchronous I/O Egg Release

2016-07-09 Thread Kristian Lein-Mathisen
> didn't occur to me to use that to make a nonblocking input port. Your code > snippet seems to solve the problem quite a bit better than my egg does. > > Is open-input-file*/nonblock in a currently released egg? > > On Thu, Jul 7, 2016 at 6:04 AM, Kristian Lein-Mathisen

Re: [Chicken-users] FOSDEM

2017-01-23 Thread Kristian Lein-Mathisen
Hi Mario, I'd love to go to this one! If a CHICKEN crowd is going, I'm in! (Peder can't join this time) K. On Sat, Jan 21, 2017 at 9:57 AM, Mario Domenech Goulart < ma...@parenteses.org> wrote: > Hi, > > Is anybody here going to attend FOSDEM next weekend? > > All the best. > Mario > -- >

[Chicken-users] problems string-trimming on UTF8

2017-01-27 Thread Kristian Lein-Mathisen
Dear CHICKEN mailing list, I encountered a strange issue with string-trim-right and some UTF8 string: $ csi -R srfi-13 -p '(string-trim "Zazà")' Zazà So far so good! $ csi -R srfi-13 -p '(string-trim-right "Zazà")' Zaz� Oh no, what happened? $ csi -R utf8 -R srfi-13 -p '(string-trim-right

Re: [Chicken-users] Two dimensional linked lists

2016-09-11 Thread Kristian Lein-Mathisen
Hi mfv, I'm not sure this will help you but I just put up a egg I made for myself that might be useful to you in this context. https://gist.github.com/kristianlm/9d7e5c1bdae8c443c7deb676d6f4a7d0 Maybe the vector-grid procedure

Re: [Chicken-users] Nuremberg Meetup

2016-09-29 Thread Kristian Lein-Mathisen
Indeed, it was great fun seeing everyone again, in the friendly and inspiring atmosphere that always surrounds these CHICKEN meetups. And yes, special thanks to Christian who organized it all! Looking very much forward to our next gathering :) K. On Wed, Sep 28, 2016 at 1:16 PM, Kooda

Re: [Chicken-users] New egg - directory-tree

2016-11-25 Thread Kristian Lein-Mathisen
Hi Peter, I though I'd just mention that you can generate wiki page from a markdown-file using markdown-svnwiki . So what I usually do is to have everything in a Readme.md and then convert this to the wiki syntax and then paste that (a manual

[Chicken-users] Dockerfile for building Android app with Chicken and SDL2

2017-05-17 Thread Kristian Lein-Mathisen
Hi guys, I just though I'd announce that I've created a Dockerfile which should hopefully make it simpler to build Android-apps with CHICKEN. You'll need docker to build this, along with lots of bandwidth and patience. I called the project

Re: [Chicken-users] Working with Spiffy incrementally

2017-11-10 Thread Kristian Lein-Mathisen
Hi Lucas, I try to explore this in my screencast: https://m.youtube.com/watch?v=eXB3I3S3vJc Perhaps that can help you out. K. On Friday, November 10, 2017, Peter Bex wrote: > On Thu, Nov 09, 2017 at 06:00:14PM -0500, Jack Lucas wrote: > > Is anyone aware of a method

[Chicken-users] Longboat Chicken Event - Spring 2018

2017-11-14 Thread Kristian Lein-Mathisen
Dear CHICKENers! As some of you may know, Adellica would like to arrange the next Chicken event! As always, everyone is of course welcome. Where: Bergen, Norway

[Chicken-users] 3 new CHICKEN eggs: stb-image, stb-image-write and stb-image-resize

2018-06-08 Thread Kristian Lein-Mathisen
Hi folks, I've written some wrappers for some small C libraries for image reading, writing and resizing. They are part of Sean Barrett's collection which some of you may know. What's nice about them is that they don't have any external dependencies. I don't know

Re: [Chicken-users] 3 new CHICKEN eggs: stb-image, stb-image-write and stb-image-resize

2018-06-11 Thread Kristian Lein-Mathisen
Thanks! K. On Fri, Jun 8, 2018 at 11:36 PM, Evan Hanson wrote: > On 2018-06-08 14:35, Kristian Lein-Mathisen wrote: > > CHICKEN 4 release-info files: > > https://github.com/kristianlm/chicken-stb-image/raw/master/ > stb-image4.release-info > > https://github.com/kris

Re: [Chicken-users] Longboat Chicken Event - Spring 2018

2018-02-22 Thread Kristian Lein-Mathisen
-cc.org/event/longboat-chicken-2018#attendants>. I'm really looking forward to this and I hope to see you all there! K. On Tue, Nov 14, 2017 at 10:26 AM, Kristian Lein-Mathisen < kristianl...@gmail.com> wrote: > > Dear CHICKENers! > > As some of you may know, Adellica would like t

Re: [Chicken-users] porting eggs experiences and questions

2018-08-17 Thread Kristian Lein-Mathisen
Hi Jörg, > How would I mark a release for C5? > > Create a new release-info file and let the chicken core team add it to the CHICKEN 5 coop. I both in the same repo, eg nanomsg5.release-info for C5 and nanomsg.release-info for C4. > Any thought on how to have both a C4 and C5 version in the

Re: [Chicken-users] [ANN] CHICKEN 5.0.0 release candidate 1 available

2018-08-20 Thread Kristian Lein-Mathisen
Hi all, and sorry about the late response on this one. On my main Arch Linux, everything I tested has worked except building statically against `check-errors` (ticket 1506 ). Operating system: Arch Linux Hardware platform: x86-64 C Compiler: GCC 8.2.0

Re: [Chicken-users] Is Android not unix?

2018-11-25 Thread Kristian Lein-Mathisen
es. I had to do several hacks to get IUP working on > >UserLand. > > > >On Mon, 2018-11-19 at 13:10 +0100, Thomas Chust wrote: > >> On Mon, 19 Nov 2018 13:19:10 +0300 Kristian Lein-Mathisen >> i...@gmail.com> wrote: > >> > >> > > >> > [...

Re: [Chicken-users] Is Android not unix?

2018-11-25 Thread Kristian Lein-Mathisen
Thanks for following up on this, Thomas! tweetnacl 1.4.1 now works ootb on Termux. K. On Sun, Nov 25, 2018, 14:51 Thomas Chust On Mon, 19 Nov 2018 13:19:10 +0300 Kristian Lein-Mathisen < > kristianl...@gmail.com> wrote: > > > [...] > > I was trying tweetnacl on Ter

[Chicken-users] Is Android not unix?

2018-11-19 Thread Kristian Lein-Mathisen
Hi guys, I was trying tweetnacl on Termux on Android 9 and ran into this problem: u0_a191@localhost ~/p/chicken-5.0.0> csi -R tweetnacl -p '(make-symmetric-sign-key)' Error: (read-u8vector) bad argument type - not a port: #f This happens because tweetnacl creates its current-entropy-port

Re: [Chicken-users] Has hypergiant been used on Android?

2019-01-07 Thread Kristian Lein-Mathisen
Hi Matt, I don't know if anyone has tried Hypergiant, but I've been playing around with SDL2: https://github.com/chicken-mobile/chicken-sdl2-android-builder The Android tooling makes most things extremely painful. The Dockerfile instructions for SDL might be of help to you if you choose to

Re: [Chicken-users] Chicken on Windows 10 - Was: [ANN] CHICKEN 5.0.0 release candidate 2 available

2018-09-14 Thread Kristian Lein-Mathisen
Hi Joerg, I was trying C5rc1 on win10 i few weeks ago and had to do some tweaking to get it working og msys2 (which was surprisingly comfortable to use). I also had a problem with chicken-install not downloading anything at first. The symptom became clearer when I did chicken-install -update-db.

Re: [Chicken-users] [ANN] CHICKEN 5.0.0 release candidate 2 available

2018-09-14 Thread Kristian Lein-Mathisen
> > Hi, Tested on my main laptop: > Operating system: arch linux > Hardware platform: x86-64 > C Compiler: GCC 8.20 > Installation works?: yes > Tests work?: yes > Installation of eggs works?: yes (but not pastiche) > And on my phone: Operating system: android 8.0.0 Hardware

Re: [Chicken-users] [ANN] CHICKEN 5.0.0 release candidate 2 available

2018-09-15 Thread Kristian Lein-Mathisen
, 2018, 22:31 Kristian Lein-Mathisen wrote: > Hi, > > Tested on my main laptop: > > >> Operating system: arch linux >> Hardware platform: x86-64 >> C Compiler: GCC 8.20 >> Installation works?: yes >> Tests work?: yes >> Installation of e

Re: [Chicken-users] Chicken on Windows 10 - Was: [ANN] CHICKEN 5.0.0 release candidate 2 available

2018-09-17 Thread Kristian Lein-Mathisen
uot; and it > perfectly works until there is this '/usr/local/bin/chicken-do' ... if I > replace this with just chicken-do it starts... just to break down when it > tries to execute csc the same way. > > Anything I could do to track this down? > > Best > > /Jörg > > On Sep 14

Re: [Chicken-users] microhttpd bindings and FFI

2019-03-26 Thread Kristian Lein-Mathisen
Hi, I thought I'd mention that Caolan did some experiments [1] with the parser from node.js. The idea was to get all the parsing done fast in C. I don't know the it's current status, and it looks like it's written for CHICKEN 4 only. [1]: https://github.com/caolan/snowy In my opinion, spiffy is

Re: [Chicken-users] how to compile files, modules, shared libraries, programs

2019-03-26 Thread Kristian Lein-Mathisen
Hi Marco, So what is it that you want? Your Makefile looks ok to me, though I think all of it might have been less complicated to do with just an .egg-file. K. On Tue, Mar 26, 2019, 11:23 Marco Maggi Peter Bex wrote: > > > On Tue, Mar 26, 2019 at 06:52:44AM +0100, Marco Maggi wrote: > >> Ciao,

Re: [Chicken-users] NULL in calls to C functions with bind

2019-03-23 Thread Kristian Lein-Mathisen
Hi Christoph, I think that NULL should be correct and work - since you're creating a pointer object to address 0. However, the FFI has a convenience for null-pointers: you can pass in #f instead. That's easier and requires one less GC object. It's mentioned in the manual on c-pointer foreign

Re: [Chicken-users] is the readline egg dead?

2019-03-23 Thread Kristian Lein-Mathisen
Hi Marco, It seems the readline egg isn't available for CHICKEN 5. You could try [breadline] or [linenoise]? [breadline]: http://wiki.call-cc.org/eggref/5/breadline [linenoise]: http://wiki.call-cc.org/eggref/5/linenoise I don't know about the status on the C4 readline egg, whether a C5

Re: [Chicken-users] [Q] Macro for defining function from string

2019-04-05 Thread Kristian Lein-Mathisen
I'm doing that fort of thing here: https://github.com/kristianlm/chicken-minissh/blob/master/minissh-parsing.scm#L5-L11 Here's another example, perhaps easier to follow: (import-for-syntax (only (chicken string) conc)) (define-syntax syntax-conc (er-macro-transformer (lambda (x r t)

Re: [Chicken-users] how to compile files, modules, shared libraries, programs

2019-03-28 Thread Kristian Lein-Mathisen
I'm glad you got it working, Marco! The Makefile is a bit complicated, and since I'm not sure of what you're trying to acheive, it's a bit hard to help out. What's the reason you don't want to use chicken-install to build? K. On Wed, Mar 27, 2019, 15:14 Marco Maggi Marco Maggi wrote: > > >

[Chicken-users] error when building freetype egg

2019-04-07 Thread Kristian Lein-Mathisen
Hi, When I chicken-install freetype, I get this: /home/klm/.chicken-install/cache/freetype/freetype.c: In function ‘stub2714’: /home/klm/.chicken-install/cache/freetype/freetype.c:820:6: error: ‘FT_GlyphSlotRec’ {aka ‘struct FT_GlyphSlotRec_’} has no member named ‘reserved’ g2615->reserved =

Re: [Chicken-users] Difficulty installing eggs on Chicken 5 on Windows 7 MSYS2

2019-02-28 Thread Kristian Lein-Mathisen
Hi guys, This is caused by a bug in CHICKEN 5. I reported a duplacate of it here: https://bugs.call-cc.org/ticket/1584 It is caused by MAX_PATH being too small and chicken-do not able to store all of its arguments. You can apply commit *1e006b65* to your 5.0.0 sources or simply change line 79

Re: [Chicken-users] Allegro ported to Chicken 5 (Coop update?)

2019-02-12 Thread Kristian Lein-Mathisen
Thanks Dan! Just to mention, the wiki page is missing: http://wiki.call-cc.org/eggref/5/allegro K. On Tue, Feb 12, 2019, 10:06 Mario Domenech Goulart Hi Dan, > > On Tue, 12 Feb 2019 06:00:39 + Dan Leslie wrote: > > > Thanks in large part to a Pull Request from Olivier Matz the Allegro

[Chicken-users] benchmarking tight u8vector loop

2019-04-08 Thread Kristian Lein-Mathisen
Hi, Attached is a benchmarking test that resizes a u8vector of RGB pixels into half the size in each dimension using a pixel average. I applied Peter's patch which inlines vector-ref and vector-set! procedures: http://lists.nongnu.org/archive/html/chicken-hackers/2019-04/msg00041.html With this

Re: [Chicken-users] zlib for chicken 5

2019-04-09 Thread Kristian Lein-Mathisen
Hi Robert, and thanks for doing this. It seems the sources for zlib for C4 has disappeared! That makes things awkward. You have both a README.md and a README.org, could those be merged perhaps? K. On Tue, Apr 9, 2019 at 4:11 AM Robert Jensen wrote: > Hello, > > I ported [1] to Chicken 5. You

Re: [Chicken-users] hahn: chicken 5 port

2019-04-12 Thread Kristian Lein-Mathisen
Hi Robert, If you want to support both C4 and C5. one way of doing it is to make two module files which does all the initial imports, and use one from the .egg file and the other from the .setup file. I'm doing this in https://github.com/kristianlm/chicken-minissh, for example. One module file is

Re: [Chicken-users] The (chicken time) time macro gets in my way

2019-05-12 Thread Kristian Lein-Mathisen
Hi Mathieu, I tried (import (except chicken.time time)) and friends (exclude, rename) without success. I also tried import-syntax. I don't know why it's not possible to hide this default import from the current namespace. However, by wrapping the file in a main module (using csc -m main

Re: [Chicken-users] Is it possible to change the list of included modules when compiling Chicken?

2019-05-12 Thread Kristian Lein-Mathisen
Perhaps an option would be to cross-compile CHICKEN for your target, and run chicken-install with that? That should give you the eggs as shared libs for your target, which you could simply copy over. That'd require a C compiler for your target on your host, though. K. On Sun, May 12, 2019, 9:01

Re: [Chicken-users] Incomplete geiser setup instructions for Chicken 5

2019-04-24 Thread Kristian Lein-Mathisen
Hi Andrew, That is a mistake, the instructions should definitely include installing srfi-18. Thanks for fixing the wiki! K. On Wed, Apr 24, 2019, 04:40 Andrew Eggenberger wrote: > Hi everyone, > > I tried to set up geiser for Chicken 5 on a fresh installation of Arch > Linux. None of the

Re: [Chicken-users] memory monitoring and leak debugging? (should the advice be in a web page?)

2019-08-10 Thread Kristian Lein-Mathisen
estion 1: > Does this stumbling attempt fall under that warning about not calling from > C to Scheme? Or is that warning for something else? > > Question 2: > Do I need a bit better magic words to get that 'lst =' line working? Or > am I missing something more major? > > Tha

Re: [Chicken-users] memory monitoring and leak debugging? (should the advice be in a web page?)

2019-08-07 Thread Kristian Lein-Mathisen
ict > > -Dan > > > Sent with ProtonMail <https://protonmail.com> Secure Email. > > ‐‐‐ Original Message ‐‐‐ > On Wednesday, August 7, 2019 1:00 PM, Kristian Lein-Mathisen < > kristianl...@gmail.com> wrote: > > > Hi Daniel and welcome to

Re: [Chicken-users] memory monitoring and leak debugging? (should the advice be in a web page?)

2019-08-07 Thread Kristian Lein-Mathisen
Hi Daniel and welcome to the Chicken mailing list. Another thing to keep in mind is that the Chicken garbage-collector will move objects around during gc. That can cause a lot of hard-to-find bugs, and is probably one of the reasons for Joerg advice on not calling back into Scheme from your

Re: Path problem when trying to compile under Windows

2019-10-29 Thread Kristian Lein-Mathisen
Hi, On Tue, Oct 29, 2019, 14:14 Cleverson Casarin Uliana wrote: > Hi Kristian, thanks for your kind welcome. > > I haven't saved the output when building Chicken, and don't recall it > anymore. However, building it again is probably easy, so I'll do it later > today or tomorrow, taking your

Re: Why has the language reference been removed?

2019-11-03 Thread Kristian Lein-Mathisen
Hi Cleverson, Oh your're right - I didn't realize there is no http://wiki.call-cc.org/man/4/The%20R5RS%20standard equivalent for C5. The core team can probably clarify why this is (moving towards R7RS?). Meanwhile, maybe http://api.call-cc.org/5/doc/scheme can help you? K. On Sun, Nov 3, 2019,

Re: Path problem when trying to compile under Windows

2019-10-30 Thread Kristian Lein-Mathisen
Hi, If you like the linux-terminal, I'd strongly recommend msys2.org. It gives you all the familiar tools like make This wiki page describes the build process: http://wiki.call-cc.org/msys2 But if you're not a linux user I don't know if that just makes things worse... Regarding eggs, there is

Re: Path problem when trying to compile under Windows

2019-11-01 Thread Kristian Lein-Mathisen
Good to hear! Let us know when you stumble upon the next obstacles, Cleverson. K. On Fri, Nov 1, 2019, 03:08 Cleverson Casarin Uliana wrote: > Hi, just to update, I've successfully built Chicken 5.1 inside MSys with > MinGW 64 bit as per the hints received in this group, and have just >

Gosling: This year's CHICKEN event

2019-12-11 Thread Kristian Lein-Mathisen
Hi everyone! I've decided to try to host another Chicken even, and I'm hoping you will attend! Please see the wiki for information: http://wiki.call-cc.org/event/gosling-2020 Looking forward to seeing each of you there :) K.

Re: Path problem when trying to compile under Windows

2019-10-28 Thread Kristian Lein-Mathisen
Hi Cleverson, and welcome to the community! I have only built Chicken for Win using msys2, but maybe I can help still. How did you build Chicken? Are you building from cmd.exe? Is there any more output from csc that we can see? Please send full transcripts of your make and csc invokation.

Re: It would be nice if glob "/*/*" worked

2019-11-27 Thread Kristian Lein-Mathisen
I may be missing the point here, but is'nt it just easier to use find-files? http://wiki.call-cc.org/man/5/Module%20(chicken%20file)#find-files K. On Wed, Nov 27, 2019, 23:32 Evan Hanson wrote: > Hi Matt, > > This would be nice indeed, I've also found myself wanting this feature > before. I

Re: Tidy way to test and set when using test egg?

2020-01-10 Thread Kristian Lein-Mathisen
Hi Matt, So you want to keep the result for more upcoming test? Why? Just curious. I've for the most part been content with: (test-group "-" (define res (- 2 1)) (test 1 res) (print "res: " res) ) ;; res out of scope here (good thing, no?) K. On Fri, Jan 10, 2020, 16:22 John Cowan

Re: 【Deployment】

2020-08-29 Thread Kristian Lein-Mathisen
AAIN! What the hens happened??? > > So, I've tried fixing this problem and taken time... > > Well, there are some things I've noticed. > > 1. Don't use egg libraries if I want to compile my script into a C source. > Stay in Chicken. > 2. Arguments of the compiler become

Re: 【Deployment】

2020-08-15 Thread Kristian Lein-Mathisen
exit status > > H Is there something wrong on the code? > What are the C_extras_toplevel and C_data_wdstructures_toplevel? > > If I used some libraries from chicken-install, should I use the compiled > "scheme to c" file too? > > There must be something more to

Re: 【Deployment】

2020-08-12 Thread Kristian Lein-Mathisen
Hi, It seems there is a chicken-bin for U20.04LTS [1], did you try compiling hello.scm to hello.c with that? What is it that you're trying to acheive? I don't seem to have any buildtag.h either, perhaps the manual is outdated? Are you reading the manual for Chicken 5 [2]? K. [1]:

Re: csi on Windows, Emacs and srfi 18

2020-07-05 Thread Kristian Lein-Mathisen
Hi George, and welcome to the community! I made that video and I'm glad it caught your interest. I don't know a lot about the inner workings of Chicken or Win10 pretend-tty's, and I don't have a machine available where I can test. But I thought I'd throw in a couple of things you can try. =

Re: csi on Windows, Emacs and srfi 18

2020-07-05 Thread Kristian Lein-Mathisen
put-port (current-input-port))) K. On Sun, Jul 5, 2020, 21:34 George Oliver wrote: > Hello Kristian and thanks for looking into this. > > On Sun, Jul 5, 2020 at 12:51 AM Kristian Lein-Mathisen > wrote: > > > The sys##flush-output here is what you're looking for I think. It

Re: Chicken git egg: bug & patch

2021-06-14 Thread Kristian Lein-Mathisen
Hi Megane, Like Evan says, the libgit2 project doesn't keep your pointers around so that should be safe. But thanks for pointing that out, errors caused by these things are very hard to track down. I'd actually never thought about a off-gc memory heap before. That is a very interesting idea! I'm

Chicken git egg: bug & patch

2021-06-12 Thread Kristian Lein-Mathisen
Hi! I think I may have come across a bug in the git egg. klm@pisa ~/.c/chicken-install> chicken-status | grep git git . version: 0.1.0 klm@pisa ~/.c/chicken-install> csi -R git -P '(define r (create-repository "/tmp/repo")) (create-blob r

Re: Chicken git egg: bug & patch

2021-06-13 Thread Kristian Lein-Mathisen
> for this soon. > > Evan > From 602f415a5fe769b786efb2abd03a480661b6e0c4 Mon Sep 17 00:00:00 2001 From: Kristian Lein-Mathisen Date: Sun, 13 Jun 2021 22:56:18 +0200 Subject: [PATCH 1/3] Fix mismatched blob-create-frombuffer signature Before this patch, the new test case would produce a

Re: Build static binaries of chicken apps in a docker container

2021-06-20 Thread Kristian Lein-Mathisen
Hi Theo, Thanks for sharing that! I had I similar problem and wanted to share what I arrived at. If there is a C-compiler on the target, you could compile to .c or even .o and link on the target side. Unfortunately, that needs fiddling a bit around with compiler and linker flags. Another

Re: Trying to link in modules

2021-06-20 Thread Kristian Lein-Mathisen
Hi Kurt, I think the problem is missing flags and parameters when fuilding a static extension. I'm afraid I don't know exactly what they are, but hopefully I can give some pointers to how you can find them. chicken-install will extensions first as a shared object, and then as a static one by

Re: Chicken git egg: bug & patch

2021-06-14 Thread Kristian Lein-Mathisen
a good candidate here for the oid, buf and revspec structures. K. On Mon, Jun 14, 2021, 07:10 megane wrote: > > Kristian Lein-Mathisen writes: > > > From what I gather, there is no way to allocate memory and return a > pointer > > to it, safely, in CHICKEN. > &g

Re: "Live coding" on Mac OS X

2021-05-27 Thread Kristian Lein-Mathisen
Hi Arnaud, I know I'm a bit late here, but did you get this working? When you say "not working", what is/isn't happening? Is it your REPL that's not responding, or your game-thread? Sometimes these things are caused by the REPL i/o blocking the game-thread. That is, the read on stdin from the

Egg: chicken-rocksdb

2021-06-25 Thread Kristian Lein-Mathisen
Hi, I've written some bindings for Facebook's RocksDB which I wish to publish. Here's my release-info file: https://raw.githubusercontent.com/kristianlm/chicken-rocksdb/master/rocksdb.release-info test-new-egg reports "Egg looks ok!" Thanks, K.

possible bug in the fmt egg?

2021-10-18 Thread Kristian Lein-Mathisen
Hi, I'm playing with the fmt egg and I think I've stumbled upon a problem: ~> csi -R fmt -P '(fmt #f (num/si 1024))' "1Ki" ~> csi -R fmt -P '(fmt #f (num/si 0))' Error: (log) log of exact 0 is undefined: 0 klm@pisa ~ [70]> csi -R fmt -P '(fmt #f (num/si

new egg: opencl

2021-10-19 Thread Kristian Lein-Mathisen
Hi! I've been experimenting with OpenCL these past few days. I think the code might be worthy of becoming an egg. I did learn OpenCL as I went along writing this, so problems are very possible. I still hope it can be useful to someone. I was surprised how easy this was to test, unlike code

Re: possible bug in the fmt egg?

2021-12-28 Thread Kristian Lein-Mathisen
chibi-scheme head, and it has the same result. I've add an > issue on the chibi-scheme github repo: > https://github.com/ashinn/chibi-scheme/issues/801 > > On Thu, Dec 23, 2021 at 4:51 PM Mario Domenech Goulart < > ma...@parenteses.org> wrote: > >> Hi Kristian, >>

Re: bug passing a % sign to uri-common / spiffy

2022-01-04 Thread Kristian Lein-Mathisen
Hi, Are you calling intarweb#read-urlencoded-request-data [1] with the JSON data? I think that procedure only handles form-data. You have to parse JSON yourself, using json,medea or cjson. [1] http://api.call-cc.org/5/doc/intarweb/read-urlencoded-request-data K. On Tue, Jan 4, 2022, 05:21

Re: How does process-fork affect mailbox and threads

2022-09-26 Thread Kristian Lein-Mathisen
It's worth noting that srfi-18, mailbox and gochan operate within a single OS process. Green threads they are called. Forking a process is a very different beast to tame. K. On Fri, Sep 23, 2022, 11:17 wrote: > > 1) The SRFI-18 egg has not

Re: Pass argument to function

2023-03-10 Thread Kristian Lein-Mathisen
Hi Brandon, What you are doing looks right to me. What exactly is the error message? "string-append" is automaticalli imported, so it should be available without any imports. Perhaps you redifined "string-append" elsewhere in your code? If not, there may me a problem with your CHICKEN

Re: Threading, mailboxes, and exceptions

2023-03-06 Thread Kristian Lein-Mathisen
On Mon, Mar 6, 2023, 01:45 jared jennings wrote: > > > > Have you looked at http://api.call-cc.org/5/doc/gochan ? > > I haven't ever used Go so it didn't seem more comfortable than mailbox. > I'll take another look. > My bad! I shound have called something more meaningful, the egg has nothing

Re: How can I use arrows in csi?

2023-08-13 Thread Kristian Lein-Mathisen
Hi Oskar, As an alternative to getting readline support into the chicken runtire, you can use rlwrap. It adds readline support to any process. I like to use it on things like netcat and csi. > rlwrap csi K. On Sun, Aug 13, 2023, 15:55 Oskar Werner wrote: > It works, I just installed

Re: compile-time deserialization

2023-12-26 Thread Kristian Lein-Mathisen
Hi, You could try to put everything you're doing with read-string / read / open-input-file inside syntax. For example: ~/tmp> cat ./compile-time-io.scm (define file-contents (let-syntax ((load (er-macro-transformer (lambda (x r t) (import chicken.io

Re: Deprecated current-milliseconds

2023-12-07 Thread Kristian Lein-Mathisen
I've seen this too, and I wish the deprecation warning mentioned this alternative. I think in this particular example, it's just a rename - bu I'm guessing. Would it be possible to mark deprecations with alternatives/documentation to point users in the new direction? K. On Wed, Dec 6, 2023,

Upcoming Chicken Event: Gosling 2024

2024-02-22 Thread Kristian Lein-Mathisen
Hi everyone! I'd like to announce an upcoming CHICKEN event I'm hosting this summer. The location is Oslo, Norway. The time is Tue 10th ~ Sun 15th September, which should leave plenty of room for hacking. See the wiki for more info: https://wiki.call-cc.org/event/gosling-2024 I'm very much

Re: Advises and feedback

2024-03-24 Thread Kristian Lein-Mathisen
Hi Miguel, and welcome to the Chicken community! Your project looks very thourogh and the Scheme code looks good. There are a couple of issues related to building that I thought I'd point out. Like Felix points out, load and load-relative open files at runtime. So sdb fails when run outside of

<    1   2