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

2019-05-12 Thread Mathieu
Thanks Kristian. By compiling a file containing only the following statement: (time (+ 1 1)) We can confirm that the (chicken time posix) module is included by default. I will do with generated warning. Take care, Mathieu ___ Chicken-users

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] The (chicken time) time macro gets in my way

2019-05-12 Thread Mathieu
Hi Mario, Thanks for helping. Actually the minimal sample is just that : source.scm : (define-record time a b c) Then running this produces the warning : $ csc5 source.scm Warning: (source.scm:1) - assignment to syntax `time' It looks like csi5 is cool with that statement

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

2019-05-12 Thread Mario Domenech Goulart
Hi Mathieu, On Sun, 12 May 2019 20:52:47 + Mathieu wrote: > Hello Schemers, > > When I compile the following code : > > (define-record time hour minute) > > And compile in version 5 like so : > > csc5 source.scm > > I get the following warning : > > assigment to syntax `time' > > A clean

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

2019-05-12 Thread Mathieu
Hello Schemers, When I compile the following code : (define-record time hour minute) And compile in version 5 like so : csc5 source.scm I get the following warning : assigment to syntax `time' A clean build would make be happy. I think the clash is caused by the time macro from

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

2019-05-12 Thread Mario Domenech Goulart
Hi Jeronimo, On Sun, 12 May 2019 08:37:50 -0300 Jeronimo Pellegrini wrote: > On Sun, May 12, 2019 at 08:52:13AM +0200, Peter Bex wrote: >> On Sat, May 11, 2019 at 08:28:23PM -0300, Jeronimo Pellegrini wrote: >> > Hello, >> > >> > I am compiling it for wireless routers, and so far I could not

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

2019-05-12 Thread Jeronimo Pellegrini
Hello, On Sun, May 12, 2019 at 09:18:16AM +0200, Kristian Lein-Mathisen wrote: > 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

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

2019-05-12 Thread Jeronimo Pellegrini
Hi Peter, On Sun, May 12, 2019 at 08:52:13AM +0200, Peter Bex wrote: > On Sat, May 11, 2019 at 08:28:23PM -0300, Jeronimo Pellegrini wrote: > > Hello, > > > > I am compiling it for wireless routers, and so far I could not yet > > package csc -- so getting modules with chicken-install doesn't > >

Re: [Chicken-users] on the usage of the unsafe operations ##sys##slot and similar

2019-05-12 Thread Marco Maggi
Peter Bex wrote: > On Sun, May 12, 2019 at 11:10:51AM +0200, Marco Maggi wrote: > If you're interested in this, perhaps you find this blog post of mine > useful: https://www.more-magic.net/posts/internals-data-representation.html > It explains how values are represented in memory at the low

Re: [Chicken-users] on the usage of the unsafe operations ##sys##slot and similar

2019-05-12 Thread Peter Bex
On Sun, May 12, 2019 at 11:10:51AM +0200, Marco Maggi wrote: > Ciao, > > sorry for peeking under the skirt; I'm trying to get a basic > understanding of the core usage and memory layout of Scheme values Hi Marco, If you're interested in this, perhaps you find this blog post of

[Chicken-users] on the usage of the unsafe operations ##sys##slot and similar

2019-05-12 Thread Marco Maggi
Ciao, sorry for peeking under the skirt; I'm trying to get a basic understanding of the core usage and memory layout of Scheme values; is it correct that: * We can use ##sys#setislot to store any immediate value in a Scheme vector? * We can use the system operations

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] Is it possible to change the list of included modules when compiling Chicken?

2019-05-12 Thread Peter Bex
On Sat, May 11, 2019 at 08:28:23PM -0300, Jeronimo Pellegrini wrote: > Hello, > > I was wondering if it is possible to remove or add modules to > the list of default included modules that come with Chicken. > > I am compiling it for wireless routers, and so far I could not yet > package csc --