[Chicken-users] foreign: Why is passing structs as arguments and return-types not supported?

2012-02-29 Thread Kristian Lein-Mathisen
Hi guys! Reading the chicken docs on foreign, you'll find: Structs cannot be directly passed as arguments to foreign functions, nor can they be result values. ( http://api.call-cc.org/doc/foreign/types#def:struct) Pointers to structs are supported, but not structs-by-value. I am wondering if

Re: [Chicken-users] foreign: Why is passing structs as arguments and return-types not supported?

2012-02-29 Thread Kristian Lein-Mathisen
Thanks to both of you for some valuable insight! I didn't realize de-referencing on the c-side would be that simple, nor that structs-by-value would actually be pointers anyway. However, my problem is still not entirely solved. I am trying to interface to the physics engines Box2D and Chipmunk,

Re: [Chicken-users] foreign: Why is passing structs as arguments and return-types not supported?

2012-03-04 Thread Kristian Lein-Mathisen
Heidkamp mor...@twoticketsplease.de wrote: Kristian Lein-Mathisen kristianl...@gmail.com writes: Any thoughts on how to pursue this? Another option would be to create a module which re-exports all `foreign' syntax wrapped with support for structs-by-value. Then just import your wrapper module

[Chicken-users] Making stack-allocated Chicken-managed objects from C

2012-03-06 Thread Kristian Lein-Mathisen
Hi guys! I would like to get a deeper understanding of Chicken's GC and its stack-allocation feature. I've numbered by questions, feel free to answer just one or two of them! I have been poking into the chicken-bind egg and I'd like to modify it slightly for my libraries' (Box2D, Chipmunk) heavy

[Chicken-users] chicken-bind: working with structs

2012-05-24 Thread Kristian Lein-Mathisen
Hi guys! I've been looking at chicken-bind's way of working with C-structs for a while now, and I'm in the works of something I think will be useful. I want to have chicken-bind generate code for struct-by-values. Thanks to all who helped me out in this tricky process! *Allocating memory for new

[Chicken-users] patch for chicken-bind

2012-06-25 Thread Kristian Lein-Mathisen
Hi guys! It's me again, still going on about struct-by-value in chicken-bindhttp://wiki.call-cc.org/eggref/4/bind. This time I think I may have codehttps://github.com/kristianlm/chicken-bind worthy of entering the official repo. The patches add three new features: 1. Struct-by-value in

Re: [Chicken-users] patch for chicken-bind

2012-06-26 Thread Kristian Lein-Mathisen
25, 2012 at 10:18 PM, Jim Ursetto zbignie...@gmail.com wrote: Tip: if you use scheme-pointer instead of c-pointer, you can omit the locative). E.g. (make-blob size) instead of (location (make-blob size)). This will be faster. On Jun 25, 2012, at 5:27 PM, Kristian Lein-Mathisen wrote: Hi

[Chicken-users] a new egg: chickmunk

2012-07-25 Thread Kristian Lein-Mathisen
Hi guys, I just though I'd let you know I've created an egg that binds Chicken to the Chipmunk 2D physics library. It's almost complete and is available on github https://github.com/kristianlm/chickmunk. Chickmunk https://github.com/kristianlm/chickmunk should provide bindings to all C

Re: [Chicken-users] a new egg: chickmunk

2012-07-26 Thread Kristian Lein-Mathisen
. On Thu, Jul 26, 2012 at 5:41 AM, Shawn Rutledge shawn.t.rutle...@gmail.comwrote: Cool! I haven't done any messing around with physics engines, so don't know much about them but I'm curious if there's a reason you went with Chipmunk instead of Box2D? On 26 July 2012 00:46, Kristian Lein

Re: [Chicken-users] a new egg: chickmunk

2012-07-26 Thread Kristian Lein-Mathisen
Great, I will add some of the tools I've been using to the repo. They're incomplete as well, but they may help getting you started. K. On Thu, Jul 26, 2012 at 12:23 AM, Christian Kellermann ck...@pestilenz.orgwrote: * Kristian Lein-Mathisen kristianl...@gmail.com [120726 01:19]: Hi guys

[Chicken-users] Building Chicken Scheme for Android

2012-10-01 Thread Kristian Lein-Mathisen
Hi guys, I just thought I'd point out I've started a build-system for getting Chicken Scheme runtime running on Android. You can take a peek here: https://github.com/kristianlm/chicken-android. Note that it only builds the runtime system (you generally don't have a C compiler on your Android

Re: [Chicken-users] Building Chicken Scheme for Android

2012-10-02 Thread Kristian Lein-Mathisen
Lein-Mathisen wrote: Hi guys, I just thought I'd point out I've started a build-system for getting Chicken Scheme runtime running on Android. You can take a peek here:**[1]https://github.com/kristianlm/chicken-android. Note that it only builds the runtime system (you

Re: [Chicken-users] Chicken and Cocos2Dx on Google Play!

2012-11-02 Thread Kristian Lein-Mathisen
Hi Jason, and thanks for testing this. I'm really glad it seems to be working! I'm happy to see others trying to go in a similar direction. Developing with a REPL on the real hardware is so incredebly rewarding! I've put out the code out on here https://github.com/Adellica/cocoscheme for you

Re: [Chicken-users] Chicken and Cocos2Dx on Google Play!

2012-11-04 Thread Kristian Lein-Mathisen
is jumping around a lot, even when nothing is moving, usually between 50 and 60fps, and sometimes hitting peaks of more than 60 and sometimes really low values. What is the top of those 3 numbers in the lower-left? Mine says 48 and stays the same. On 2 November 2012 15:20, Kristian Lein-Mathisen

Re: [Chicken-users] struggling with macros

2012-11-11 Thread Kristian Lein-Mathisen
Hi Răzvan, Just as a side-note: It may be a good idea to play around with your implementation as a normal function, and them wrap that in a macro once it's up on its feet. That way you can isolate problems with your implementation and problems with the macros. This approach is taken by the bind

Re: [Chicken-users] Chicken Scheme for mobile devices?

2012-11-15 Thread Kristian Lein-Mathisen
Helllo mobile Chickeners! I'm so glad there is interest in running Chicken on mobile platforms. This is what I've been working on for the past few months, starting chicken-android https://github.com/kristianlm/chicken-android and cocoscheme https://github.com/Adellica/cocoscheme. I only have

Re: [Chicken-users] Chicken Scheme for mobile devices?

2012-11-15 Thread Kristian Lein-Mathisen
Hi Shawn, Kristian decided to use Chipmunk, which is a scene graph with an integrated physics engine, right? That's maybe a different optimization than you need for doing basic 2D GUI applications, but I do wonder if it could work for that purpose too. Actually, Chipmunk only provides the

Re: [Chicken-users] Much improved customized Emacs

2012-11-23 Thread Kristian Lein-Mathisen
Hi Dan, This is great work! I too work in constrained environments, mostly on mobile phones, so I'm really looking forward to use your package. I had some problems installing it through marmelade so I added a couple github issues. K. On Fri, Nov 23, 2012 at 3:40 AM, Daniel Leslie

Re: [Chicken-users] Chicken Scheme for mobile devices?

2012-11-24 Thread Kristian Lein-Mathisen
Hi Arne, That's a great idea. I'll be there, and I'm looking forward to the discussion! In the mean time, I've played around with a template-based build system for Android: https://github.com/Adellica/chicken-mobile It isn't complete yet, but I though I'd put it out there so you can have a look

Re: [Chicken-users] Question about embedding Chicken scheme

2013-01-30 Thread Kristian Lein-Mathisen
(tmp_);;\n))) ;;; END OF FILE If you don't have it already, you can do `chicken-install bind` and play around. Note that `make-player` above leaks memory. Best of luck! K. On Thu, Jan 24, 2013 at 1:25 AM, Julian Day jcd...@mail.usask.ca wrote: On 23/01/2013 6:09 PM, Kristian Lein-Mathisen

Re: [Chicken-users] Msgpack implementation for scheme (and some questions)

2013-01-30 Thread Kristian Lein-Mathisen
Hi Hugo, Msgpack seems like an interesting project indeed. Thanks for making an egg for it! I'm quite a newbie myself, but I noticed the coops egg includes the module implementation directlyhttp://bugs.call-cc.org/browser/release/4/coops/trunk/coops-module.scm, so you don't have to declare two

Re: [Chicken-users] Segfault with large data-structures

2013-02-02 Thread Kristian Lein-Mathisen
I'm getting the same result here, when I run it through csc. When I run it through csi, though, it never seems to finish - is the task that big? I had to kill it after 2-3 hours. [klm@kth ~]$ csi -version CHICKEN (c)2008-2012 The Chicken Team (c)2000-2007 Felix L. Winkelmann Version 4.8.1 (rev

Re: [Chicken-users] some questions about easyffi and foreign code

2013-02-03 Thread Kristian Lein-Mathisen
Hey Hugo, Yeah, that example wasn't working for me either. If you put (use easyffi) at the top of the file though, it should work. Note that easyffi is deprecated, use bind http://api.call-cc.org/doc/bind instead: (use bind) (bind* double modf(double x, ___out double *iptr);) (let-values ([(frac

Re: [Chicken-users] [Q] Is there any library for machine/statistical learning in Scheme(chicken scheme)?

2013-03-26 Thread Kristian Lein-Mathisen
Hi Sungjin, It seems jeronimo-pellegrinihttp://wiki.call-cc.org/users/jeronimo-pellegrinihas written some eggs with AI in mind. Perhaps some of those might be useful? The octave http://wiki.call-cc.org/eggref/4/octave egg might also be useful when you're analyzing your progress. K. On Tue,

[Chicken-users] new egg: glm

2013-04-15 Thread Kristian Lein-Mathisen
Dear Chickeners! In my OpenGL and physics-simulation adventures I have fequently come across the need for a small math library in Chicken. I spent some time looking at the eggs out there, but some of them seemed a little overkill for my needs, so I decided to roll my own. I was looking for: -

Re: [Chicken-users] new egg: glm

2013-04-15 Thread Kristian Lein-Mathisen
I'm glad to hear, I hope this will come in handy. I'll license it with whatever fits the Chicken model and community. Is that BSD perhaps? It still needs a bit of work though, let me know if there are any feature requests and I'll see what I can do. K. On Apr 15, 2013 7:14 PM, Dan Leslie

Re: [Chicken-users] new egg: glm

2013-04-17 Thread Kristian Lein-Mathisen
, On Mon, 15 Apr 2013 23:24:25 +0200 Kristian Lein-Mathisen kristianl...@gmail.com wrote: I'll license it with whatever fits the Chicken model and community. Is that BSD perhaps? Yes. Best wishes. Mario -- http://parenteses.org/mario ___ Chicken

Re: [Chicken-users] [ANN] usb egg v0.1.0 is released

2013-05-08 Thread Kristian Lein-Mathisen
Hello Aaron, I can't believe nobody has commented on this yet - this is really cool! I have no experience with libusb, but it seems this is how you'd start if you're trying to make your own USB driver or investigating someone else's. I hope I run into a problem where I need lolevel USB access

Re: [Chicken-users] Chicken C interface

2013-06-05 Thread Kristian Lein-Mathisen
I just though I'd mention srfi-4 http://api.call-cc.org/doc/srfi-4 as well, which are much easier to interface with from C. If all your elements are integers, for example, you might want to check out u32vector. Srfi-4 vectors use plain C float/int arrays and are possible as argument-types from

Re: [Chicken-users] Chicken C interface

2013-06-06 Thread Kristian Lein-Mathisen
On Thu, Jun 6, 2013 at 11:34 AM, Thomas Chust ch...@web.de wrote: On 2013-06-05 23:36, Felix wrote: From: Dan Leslie d...@ironoxide.ca [...] Basically, use C_alloc to allocate the memory required to host both the List structure and the data it is to contain, then use the C_list macro

Re: [Chicken-users] Chicken C interface

2013-06-06 Thread Kristian Lein-Mathisen
at 11:59 AM, Thomas Chust ch...@web.de wrote: On 2013-06-06 11:46, Kristian Lein-Mathisen wrote: [...] From what I understand, this is exactly what foreign-primitive does: wraps C_return in a CPS, keeping the stack-allocation alive. [...] Hello, well, kind of. Since compiled CHICKEN

Re: [Chicken-users] [ANN] usb egg v0.1.0 is released

2013-06-06 Thread Kristian Lein-Mathisen
-number? That way, we could quickly test like this: $ csi -R usb -p '(usb-devices (usb-make-context))' (#usb-device #usb-device #usb-device #usb-device) ;; I'd love to get (#usb-device idVendor: 0x1234 idProduct: 0x3214 ...) Cheers, K. On Wed, May 8, 2013 at 11:36 PM, Kristian Lein-Mathisen

[Chicken-users] socket egg: socket-receive blocks?

2013-06-14 Thread Kristian Lein-Mathisen
Hi Chickeners! I have come across a problem with multiple srfi-18 threads when tryping to listen to UDP sockets: (use socket) (set! *socket* (socket af/inet sock/dgram )) (set! (so-reuse-address? *socket*) #t) (socket-bind *socket* (inet-address 0.0.0.0 5055)) ;; (socket-receive ..) here blocks

Re: [Chicken-users] socket egg: socket-receive blocks?

2013-06-15 Thread Kristian Lein-Mathisen
assumes nonblocking sockets. We could expose the set-nonblocking operation to the user, but since TCP is always nonblocking, doing this only for UDP would be strange. Thoughts? Jim On Jun 14, 2013, at 11:01 AM, Kristian Lein-Mathisen kristianl...@gmail.com wrote: Hi Chickeners! I

Re: [Chicken-users] parley improvements

2013-08-08 Thread Kristian Lein-Mathisen
Hello Christian, Thanks for that, parley is really useful! I'm using parley for my everyday Chickening. I just have a small comment regarding regarding the prompt. When I do this: [klm@kth ~]$ csi -q #;1 (begin ;; each line produce ;; a '' mark (void)) #;2 #;2 ^D Those '' prompts are

Re: [Chicken-users] parley improvements

2013-08-08 Thread Kristian Lein-Mathisen
)-- #;1 ^D K. On Thu, Aug 8, 2013 at 8:55 PM, Christian Kellermann ck...@pestilenz.orgwrote: * Kristian Lein-Mathisen kristianl...@gmail.com [130808 18:23]: Hello Christian, Thanks for that, parley is really useful! I'm using parley for my everyday Chickening. I just have a small

Re: [Chicken-users] parley improvements

2013-08-08 Thread Kristian Lein-Mathisen
2 ) 12 Now I'm getting 12, which should have been 2. It seems newlines are missing as a separator somehow. Cheers, K. On Thu, Aug 8, 2013 at 9:06 PM, Kristian Lein-Mathisen kristianl...@gmail.com wrote: Dumb terminal, that's a much better idea! It's working too, thanks a lot Christian

Re: [Chicken-users] parley improvements

2013-08-08 Thread Kristian Lein-Mathisen
Sounds good to me, looking forward to the new parley-release! Good job! K. On Thu, Aug 8, 2013 at 9:16 PM, Christian Kellermann ck...@pestilenz.orgwrote: * Kristian Lein-Mathisen kristianl...@gmail.com [130808 21:10]: Sorry, that email went off a little too quick. In the example I sent, I

Re: [Chicken-users] (seemingly) random disconnects of zmq sockets

2013-08-25 Thread Kristian Lein-Mathisen
Hi Karsten, It's a little hard to figure out why that socket all of a sudden just dies. Perhaps you could make a smaller example where this bug is reproducable? There is a branch where we're trying to update the bindings to work against zmq version 3.2:

Re: [Chicken-users] Basic FFI Principle in Chicken

2013-09-07 Thread Kristian Lein-Mathisen
Hey Chris, I though I'd mention the srfi-4 unit and it's u32vector. This may come in handy for your particular struct. While make-blobs are great for allocating managed memory for arbitrary structs, you can sometimes use make-s32vector, for example, where the struct is basically an array like

[Chicken-users] Compiling with --std=c99 supported?

2013-09-08 Thread Kristian Lein-Mathisen
Hi there, I came across something I think might be a bug. While I don't have a deep understanding of what c99 and gnu99 really mean, I noted that this happens on my 64bit system: $ chicken -version (c) 2008-2013, The Chicken Team (c) 2000-2007, Felix L. Winkelmann Version 4.8.0.4

Re: [Chicken-users] Basic FFI Principle in Chicken

2013-09-08 Thread Kristian Lein-Mathisen
in theory return a ;; 3-element s32vector with your hue, ;; sat and lum. Note the cast from s32vector (int*) to struct color*. Cheers, K. On Sat, Sep 7, 2013 at 4:33 PM, John Cowan co...@mercury.ccil.org wrote: Kristian Lein-Mathisen

Re: [Chicken-users] Compiling with --std=c99 supported?

2013-09-08 Thread Kristian Lein-Mathisen
Ok, I will rewrite my C-code so I don't have to use either of those flags. Thanks Peter! K. On Sun, Sep 8, 2013 at 11:59 PM, Peter Bex peter@xs4all.nl wrote: On Sun, Sep 08, 2013 at 11:52:01PM +0200, Kristian Lein-Mathisen wrote: Hi there, I came across something I think might

Re: [Chicken-users] We are looking for projects

2013-09-17 Thread Kristian Lein-Mathisen
I think that should be https://github.com/chicken-mobile K. On Tue, Sep 17, 2013 at 1:54 PM, John Cowan co...@mercury.ccil.org wrote: Felix Winkelmann scripsit: https://github.com/organizations/chicken-mobile This just redirects to https://github.com. -- John Cowan

Re: [Chicken-users] Unix Scripting in Chicken

2013-10-12 Thread Kristian Lein-Mathisen
The wiki has a section on scripts at http://wiki.call-cc.org/writing%20portable%20scripts which may come in handy. You could also have a look under writing scheme scripts on http://wiki.call-cc.org/man/4/Using%20the%20interpreter . However, I could not get the arguments to CSI on the shebang-line

Re: [Chicken-users] Any hope for new zmq bindings to version 3.2 or even 4.0?

2013-11-25 Thread Kristian Lein-Mathisen
Hi Matt, Moritz and I had some fun with zmq 3.2 in July. We didn't release our work, with the reason slipping my mind right now. I think it should be fairy stable, however. You can find it here: https://bitbucket.org/DerGuteMoritz/zmq/commits/branch/3.2 K. On Sun, Nov 24, 2013 at 1:34 AM,

[Chicken-users] Playing with build utilities for Android

2014-01-02 Thread Kristian Lein-Mathisen
Hi folks, and happy new year to all! I have been playing around with some simple build utilities to get Chicken onto my Android phone (again!). The fine work https://github.com/chicken-mobile/android-chicken by Bevuta allows us to build a cross-chicken which can cross-compile eggs and the

Re: [Chicken-users] Playing with build utilities for Android

2014-01-03 Thread Kristian Lein-Mathisen
Thanks for your feedback, Peter. On Fri, Jan 3, 2014 at 8:30 AM, Peter Bex peter@xs4all.nl wrote: On Fri, Jan 03, 2014 at 01:44:41AM +0100, Kristian Lein-Mathisen wrote: Hi folks, and happy new year to all! I have been playing around with some simple build utilities to get Chicken

Re: [Chicken-users] cross-compiling eggs using feature-test

2014-01-15 Thread Kristian Lein-Mathisen
Hi Mario, crypt.setuphttp://bugs.call-cc.org/browser/release/4/crypt/trunk/crypt.setuphas some good ideas, thanks! K. On Tue, Jan 14, 2014 at 5:44 PM, Mario Domenech Goulart mario.goul...@gmail.com wrote: Hi Kristian, On Tue, 14 Jan 2014 17:30:04 +0100 Kristian Lein-Mathisen krist

[Chicken-users] Chicken Spring Gathering in Norway

2014-01-30 Thread Kristian Lein-Mathisen
Hey folks! It's my pleasure to announce that we've decided to host a Chicken gathering in Norway for this coming spring. Hopefully we can find suitable dates so that lots of people can come! Let's give doodle a spin around the month of May: http://doodle.com/34fh8n88hr4i7edn Please add

[Chicken-users] channel egg: hang on closed channel?

2014-02-26 Thread Kristian Lein-Mathisen
Hi folks! I'm just starting to look at the channel egg and its nifty API. I've encoutered some behaviour that I think is a little odd: (let ((c (make-channel))) (close-channel c) (channel-receive c)) The code snippet above hangs forever. I would expect channel-receive to return immediately

Re: [Chicken-users] Chicken Spring Gathering in Norway

2014-02-26 Thread Kristian Lein-Mathisen
mario.goul...@gmail.com wrote: On Thu, 30 Jan 2014 17:05:25 +0100 Kristian Lein-Mathisen krist...@adellica.com wrote: It's my pleasure to announce that we've decided to host a Chicken gathering in Norway for this coming spring. Hopefully we can find suitable dates so that lots of people can

Re: [Chicken-users] Why is it called Chicken?

2014-03-04 Thread Kristian Lein-Mathisen
Hi Daniel, There's an interview with Felixhttp://spin.atomicobject.com/2013/05/02/chicken-scheme-part-1/that might answer your question: *One last question: What inspired the names CHICKEN and SPOCK? Do they mean anything, aside from the bird and the well-known Star Trek character?* That

Re: [Chicken-users] LevelDB bindings

2014-04-20 Thread Kristian Lein-Mathisen
Hey Caolan, And welcome to the Chicken community! Your leveldb eggs seems pretty well written, nice work! Not much to comment on, but I'll put down what I noted as I quickly browsed through the code. Have you looked at the bind egg? It may help you out with basic C++ bindings for things like

Re: [Chicken-users] Chicken Spring Gathering in Norway

2014-05-07 Thread Kristian Lein-Mathisen
. The CHICKEN community is truly remarkable! To everyone who couldn't attend, I hope you will be able to join us next time! Which, hopefully, won't be in too long. Until then, guys! K. On Wed, Feb 26, 2014 at 6:39 PM, Kristian Lein-Mathisen krist...@adellica.com wrote: Hi folks! It's exciting

Re: [Chicken-users] [ANN] opengl-glew version 0.4.0

2014-05-12 Thread Kristian Lein-Mathisen
Exciting work, Alex! I'm really looking forward to look into this. Hoping I'll have time to do so now. And I'm glad the glm egg was useful, even with the documentation lacking as it is. gl-math looks nice and lightweight, did you write hypermath.c yourself? Do you have some insight on how much

[Chicken-users] bug update-uri in uri-common

2014-05-13 Thread Kristian Lein-Mathisen
Hi guys, I have come across som a bug or unintuitive behaviour in uri-common. The port parameter is reset on update-uri. uri-generic works like expected: csi -R uri-generic #;1 (update-uri (make-uri port: 100) scheme: 'http) #(URI scheme=http authority=#(URIAuth host=#f port=100) path=()

Re: [Chicken-users] bug update-uri in uri-common

2014-05-13 Thread Kristian Lein-Mathisen
, 2014 at 01:38:16PM +0200, Kristian Lein-Mathisen wrote: Hi guys, I have come across som a bug or unintuitive behaviour in uri-common. The port parameter is reset on update-uri. uri-generic works like expected: csi -R uri-generic #;1 (update-uri (make-uri port: 100) scheme: 'http

Re: [Chicken-users] bug update-uri in uri-common

2014-05-13 Thread Kristian Lein-Mathisen
at 11:25:23PM +0200, Kristian Lein-Mathisen wrote: Hmmm ... The scheme is changed, like you say, but the port is too, from 100 to #f, which is what I find surprising. I cannot seem to find a way to update the uri without loosing the port. What am doing wrong here? Try updating

Re: [Chicken-users] [ANN] New egg: glls

2014-05-15 Thread Kristian Lein-Mathisen
Great work, Alex! You beat me to it ;) Really looking forward to play around with this! It will be really interesting to see what dynamic shaders can do for games or other visually intensive application. K. On May 15, 2014 1:48 PM, Andy Bennett andy...@ashurst.eu.org wrote: Hi, I'm pleased

Re: [Chicken-users] New egg: physics

2014-05-16 Thread Kristian Lein-Mathisen
Welcome to the coop, Richard! And what an extensive first-egg, nice work! I started the acorn https://github.com/kristianlm/acorn egg a while back, but I just hammered on chipmunk.h until it worked. Then I added some convenience functions (like nodeshttps://github.com/kristianlm/acorn#nodes), but

[Chicken-users] new egg: nrepl

2014-05-21 Thread Kristian Lein-Mathisen
Hi! I've created a very simple egg that exposes a simple REPL over TCP connections. I've called it nrepl. Naming conflicts with Clojure's deprecated nrepl hopefully won't be a problem. I'm thinking this may be handy enough for debugging that it might be part of the official egg index. Have a

Re: [Chicken-users] new egg: nrepl

2014-05-22 Thread Kristian Lein-Mathisen
Thanks, Mario! I've added documentation on the wikihttps://wiki.call-cc.org/eggref/4/nrepl . K. On Wed, May 21, 2014 at 2:39 PM, Mario Domenech Goulart mario.goul...@gmail.com wrote: Hi Kristian, On Wed, 21 May 2014 14:26:37 +0200 Kristian Lein-Mathisen krist...@adellica.com wrote

Re: [Chicken-users] new egg: nrepl

2014-05-22 Thread Kristian Lein-Mathisen
/05/14 13:26, Kristian Lein-Mathisen wrote: Hi! I've created a very simple egg that exposes a simple REPL over TCP connections. I've called it nrepl. Naming conflicts with Clojure's deprecated nrepl hopefully won't be a problem. I'm thinking this may be handy enough for debugging

Re: [Chicken-users] new egg: nrepl

2014-05-22 Thread Kristian Lein-Mathisen
Oh, of course, Cider is just for Emacs, thanks for the clarification! K. On Thu, May 22, 2014 at 4:57 PM, Stephen Gilardi scgila...@gmail.comwrote: On May 21, 2014, at 8:26 AM, Kristian Lein-Mathisen krist...@adellica.com wrote: I've created a very simple egg that exposes a simple REPL

Re: [Chicken-users] bug update-uri in uri-common

2014-05-28 Thread Kristian Lein-Mathisen
I realize I already put down my vote, but I'd like to promote my case after some thought. I guess what we're trying to find out is what's more troublesome and/or surprising: 1. having to set the port explicitly (to #f?) when you want to change the scheme and its port 2. having to set the port

Re: [Chicken-users] bug update-uri in uri-common

2014-06-10 Thread Kristian Lein-Mathisen
If we go for (b), we could also provide a normalize-uri-port which sets it to #f if it's already equal to the default port of its scheme. And perhaps an optional normalize? argument to the uri-string procedure? K. On Sun, Jun 8, 2014 at 8:16 PM, Evan Hanson ev...@foldling.org wrote: On

Re: [Chicken-users] bug update-uri in uri-common

2014-06-16 Thread Kristian Lein-Mathisen
Thank you Peter! With some manual testing, it's working like expected here. K. On Sat, Jun 14, 2014 at 3:11 PM, Peter Bex peter@xs4all.nl wrote: On Sat, Jun 07, 2014 at 02:19:22PM +0200, Peter Bex wrote: So here's a new poll: a) The current behaviour of resetting port to #f if it's

Re: [Chicken-users] T-DOSE 2014?

2014-06-20 Thread Kristian Lein-Mathisen
Hello Peter, Great initiative! Me and Peder would like to participate as well. K. On Jun 20, 2014 11:48 AM, Richard plui...@freeshell.de wrote: Hello Peter, I would be interested in volunteering for booth duty. greetings, Pluizer On 06/20/14 10:47, Peter Bex wrote: Hi all, I got an

Re: [Chicken-users] Live programming with Chicken

2014-07-02 Thread Kristian Lein-Mathisen
Hi Pluizer, I've tried to make a poll-based repl like you're talking about for the same purpose. Have a look here and see if that helps: https://github.com/Adellica/prepl K. On Wed, Jul 2, 2014 at 12:40 PM, Richard plui...@freeshell.de wrote: Hello, I wanted to do some live game programming

Re: [Chicken-users] Live programming with Chicken

2014-07-03 Thread Kristian Lein-Mathisen
That is strange, I've experienced alex's problem too - having to yield a little to give the REPL some room. Anyhow, for others who might come across this thread: alex's idea works great, but you need to be careful with blocking IO on your REPL. If you don't use parley

Re: [Chicken-users] [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-users] How to compile with openssl?

2014-10-07 Thread Kristian Lein-Mathisen
Hi Sascha, which CHICKEN version are you using? There is a bug in some older versions where you need to specify (use chicken-syntax) for it work in compiled modules. Does that help? K. On Tue, Oct 7, 2014 at 2:25 PM, Arthur Maciel arthurmac...@gmail.com wrote: Sascha, putting (use openssl)

[Chicken-users] new egg: bindings for nanomsg

2014-10-09 Thread Kristian Lein-Mathisen
Hi folks! I've just played around with nanomsg which I really like. It fits really nice into Chicken's inner workings, with it's new file-descriptors which you can poll(). So I've started creating some bindings, and though it might be enough for an egg. Please look over it and add it to the

Re: [Chicken-users] new egg: bindings for nanomsg

2014-10-10 Thread Kristian Lein-Mathisen
Gosh, how silly of me. It was a long day yesterday. Yes, Evan, please use that release-info file! Thanks, K. On Fri, Oct 10, 2014 at 2:09 AM, Mario Domenech Goulart mario.goul...@gmail.com wrote: Hi Kristian, On Fri, 10 Oct 2014 01:29:08 +0200 Kristian Lein-Mathisen kristianl

[Chicken-users] new egg: gochan

2014-10-22 Thread Kristian Lein-Mathisen
Hi folks! I have lately been working on an egg for thread-safe message passing, and this is my first attempt: https://github.com/Adellica/chicken-gochan I've decided to go with the relatively well-established channel-API of GoLang since I don't really know what I'm doing. This implementation is

Re: [Chicken-users] new egg: gochan

2014-10-22 Thread Kristian Lein-Mathisen
Hi, Sorry about that! Should be fixed now. Do I need to release a new version of gochan? I will fix nanomsg asap. K. On Wed, Oct 22, 2014 at 12:40 PM, Mario Domenech Goulart mario.goul...@gmail.com wrote: Hi Kristian, On Wed, 22 Oct 2014 11:04:42 +0200 Kristian Lein-Mathisen kristianl

Re: [Chicken-users] new egg: gochan

2014-10-22 Thread Kristian Lein-Mathisen
Just make sure the latest tag specified in .release-info points to a working state. Fixed! For both nanomsg and gochan. K. ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] new egg: gochan

2014-10-22 Thread Kristian Lein-Mathisen
...@gmail.com wrote: On Wed, 22 Oct 2014 13:22:18 +0200 Kristian Lein-Mathisen kristianl...@gmail.com wrote: Just make sure the latest tag specified in .release-info points to a working state. Fixed! For both nanomsg and gochan. Excellent. Thank you. Forgot the most important part

Re: [Chicken-users] new egg: arrays

2014-10-28 Thread Kristian Lein-Mathisen
Hi Juergen! Is it possible you've made the same mistake I did with my last egg-announcement, forgetting to provide a URL for us? K. On Oct 28, 2014 5:03 PM, Juergen Lorenz j...@jugilo.de wrote: Hi all, I've just uploaded a new egg, arrays, which contains an implementation of functional

[Chicken-users] crypt egg: won't compile for Android

2014-11-02 Thread Kristian Lein-Mathisen
Hi all, Android, I believe, like OpenBSD, has no libcrypt.so but still has support for the crypt function. The crypt.setyp has already support for removing the -lcrypt flag during compilation and injecting android into that seems to do the trick: diff --git a/crypt.setup b/crypt.setup index

Re: [Chicken-users] crypt egg: won't compile for Android

2014-11-02 Thread Kristian Lein-Mathisen
Perfect, thank you! K. On Nov 2, 2014 4:01 PM, Peter Bex peter@xs4all.nl wrote: On Sun, Nov 02, 2014 at 02:43:38PM +0100, Kristian Lein-Mathisen wrote: Hi all, Android, I believe, like OpenBSD, has no libcrypt.so but still has support for the crypt function. The crypt.setyp has

Re: [Chicken-users] Why there is no nil?

2014-12-17 Thread Kristian Lein-Mathisen
Hi Bahman, I just thought I'd add that the only thing that evaluates to false in Scheme is #f. K. On Dec 17, 2014 9:42 AM, Christian Kellermann ck...@pestilenz.org wrote: * Bahman Movaqar bah...@bahmanm.com [141217 09:35]: I'm curious to know why nil is not defined in CHICKEN and one has to

Re: [Chicken-users] Happy Christmas

2014-12-29 Thread Kristian Lein-Mathisen
I'm a little late too! I also want to wish everyone a wonderful vacation. And a happy new year with many blessings! K. On Dec 29, 2014 9:15 PM, Pedro Melendez pmelen...@pevicom.com wrote: Is it too late to join to the Happy holidays sentiment? I hope you guys had (and/or are having) a great

Re: [Chicken-users] Homepage design proposal

2015-01-23 Thread Kristian Lein-Mathisen
, On 23.01.2015 14:34, Kristian Lein-Mathisen wrote: Has anybody played with the idea of compiling CHICKEN with emscripten http://emscripten.org/? That way, we could have a client-side REPL to experiment with on the homepage. As far as I could understand it, one does not simply compile

[Chicken-users] openssl egg segfauls: ##sys#expand-home-path

2015-05-19 Thread Kristian Lein-Mathisen
system. Any chance of fixing this upstream? Thanks! K. From 8aeb5252f681d472816dc84e6f00f284ce8aa3c9 Mon Sep 17 00:00:00 2001 From: Kristian Lein-Mathisen kristianl...@gmail.com Date: Tue, 19 May 2015 13:22:22 +0200 Subject: [PATCH] bugfix: no home-path expansion because `##sys#expand-home-path

Re: [Chicken-users] openssl egg segfauls: ##sys#expand-home-path

2015-05-21 Thread Kristian Lein-Mathisen
I see, that sounds sensible. Could you apply the no-home-path-expansion patch and fix it upstream, so that openssl will work on 4.9.01? K. On Tue, May 19, 2015 at 3:23 PM, Thomas Chust ch...@web.de wrote: On 2015-05-19 13:35, Kristian Lein-Mathisen wrote: [...] It's been way too long! I'm

Re: [Chicken-users] [Chicken-announce] CHICKEN 4.10.0 release candidate 1 available

2015-06-09 Thread Kristian Lein-Mathisen
, then a rebase? Should I make a local tag on commit eacc846be7cf4026eb8e8f6eaa577082d826da2e to be 4.10.0rc1? Thanks, K. On Tue, Jun 9, 2015 at 9:35 AM, Peter Bex pe...@more-magic.net wrote: On Tue, Jun 09, 2015 at 09:24:34AM +0200, Kristian Lein-Mathisen wrote: Great work Moritz and the team! Looking

Re: [Chicken-users] [Chicken-announce] CHICKEN 4.10.0 release candidate 1 available

2015-06-09 Thread Kristian Lein-Mathisen
Interesting! I didn't know about git fetch --tags, that worked. But yes, it's not on a branch. We'll use this for our tests. Thanks everyone! K. On Tue, Jun 9, 2015 at 11:31 AM, Christian Kellermann ck...@pestilenz.org wrote: * Kristian Lein-Mathisen kristianl...@gmail.com [150609 11:25

Re: [Chicken-users] [Chicken-announce] CHICKEN 4.10.0 release candidate 1 available

2015-06-09 Thread Kristian Lein-Mathisen
Great work Moritz and the team! Looking forward to test this on our systems. We are building from the git repo, is there a tag/branch for 4.10.0? prerelease perhaps? K. On Sun, Jun 7, 2015 at 5:16 PM, Moritz Heidkamp mor...@twoticketsplease.de wrote: Hello everyone, we are happy to announce

Re: [Chicken-users] openssl egg segfauls: ##sys#expand-home-path

2015-05-21 Thread Kristian Lein-Mathisen
Obs! I'm on Version 4.9.1 (rev 30bb2f2), sorry for the confusion Thomas! Thanks for getting it in there. I wonder what might break with this upcoming change. K. On Thu, May 21, 2015 at 6:01 PM, Thomas Chust ch...@web.de wrote: On 2015-05-21 09:18, Kristian Lein-Mathisen wrote: I see

Re: [Chicken-users] New SDL2 eggs; help wanted

2015-11-08 Thread Kristian Lein-Mathisen
Hi John! This is great! I would love to play around with this. I tried to smack something together in the days when I was playing with CHICKEN on Android. It's probably not very useful, but I though I'd mention it anyhow: https://github.com/Adellica/chicken-sdl2/blob/master/sdl2.scm. It's true

[Chicken-users] new egg: chicken-cjson

2015-09-28 Thread Kristian Lein-Mathisen
Hi guys, and thanks so much for a great weekend! It was nice to meet everyone again and specially nice to meet the "new" guys coming from very far away! I hope it won't be long till next time :) I even managed to be a little productive this time, and am releasing a new egg:

Re: [Chicken-users] This may be a bug in chickens hash tables - or my bad

2015-12-17 Thread Kristian Lein-Mathisen
I may be completely misunderstanding something here, but don't you have to use equal? and not eq? for record structures? K. On Wed, Dec 16, 2015 at 10:09 PM, Jörg F. Wittenberger < joerg.wittenber...@softeyes.net> wrote: > Ah, great to learn. > > a) You are right: Per SRFI-69 it is actually

Re: [Chicken-users] Any decent web development framework

2015-12-28 Thread Kristian Lein-Mathisen
The spiffy egg will let you make what you're looking for, but it doesn't provide the web-DSL that Sinatra has. You could make your own DSL, though, depending on what you're trying to do. I put together a small spiffy wrapper that works like this:

Re: [Chicken-users] Hello! I'm new and need some pointers please ~

2015-11-29 Thread Kristian Lein-Mathisen
Hi Federico and welcome to the CHICKEN community! I've just got a small note on your build setup. Most CHICKEN projects use a .setup-file and then build with chicken-install. There should be a thousand examples of setup-files (here's

Re: [Chicken-users] extension loading in sqlite3 egg

2016-06-07 Thread Kristian Lein-Mathisen
Thank you very much, Thomas! Works great for my purposes. Any chance of giving this a new tag for release? K. On Tue, May 24, 2016 at 11:26 PM, Thomas Chust <ch...@web.de> wrote: > On 2016-05-24 11:25, Kristian Lein-Mathisen wrote: > > [...] > > In the sqlite3 command-

Re: [Chicken-users] big prime number

2016-01-25 Thread Kristian Lein-Mathisen
Yes, indeed! CHICKEN 5 is exciting :) Thanks again Peter, for your ongoing efforts in pushing this forward! K. On Mon, Jan 25, 2016 at 1:49 AM, Dan Leslie wrote: > > Peter Bex writes: > > > Now, the good news is that I also ran the program under

Re: [Chicken-users] A question regarding "hidden" eggs

2016-01-20 Thread Kristian Lein-Mathisen
Hi Jörg, I think I may have bumped into similar needs now and again. I suppose one way of solving this is to clone the henrietta-cache and run this on your local server. However, I feel that's a little overkill if you just want a work-in-progress egg to be available with any chicken-install. I

Re: [Chicken-users] Starting up spiffy for dynamic content

2016-03-09 Thread Kristian Lein-Mathisen
Hi Norman! We've been using the vhost-map a lot in our systems too. I've put together (so far an unofficial) egg that turns spiffy's current-request and current-response into function arguments and return values respectively. Maybe that could be useful for some code-samples, if not useful as a

  1   2   >