Re: Windows vs Linux Performance, windows host 4-6x slower than linux guest vm

2021-09-06 Thread Jeronimo Pellegrini via
Mario Domenech Goulart writes: > That performance discrepancy is kinda surprising, specially considering > that Linux is running as a guest on a VM on Windows. But to what libraries is Chicken linked in each case? That could be the source of the discrepancy (does Chicken link to

Cannot install SRFI-207 egg

2020-11-21 Thread Jeronimo Pellegrini via
Hello, with the latest checkout from git (41a1decf5762c1178a9da2250df39a28badbb736) I get unbound variable: ##sys#core-library-modules: chicken-install srfi-207 building srfi-207 /home/jeronimo/pkg/scheme/chicken/ROOT-git/bin/csc-git -host -D compiling-extension -J -s

CHICKEN 5.2.0 merged into OpenWRT master

2020-03-06 Thread Jeronimo Pellegrini via
Hello! Thanks and congratulations to the Chicken team for this new release! Chicken 5.2.0 has been merged into OpenWRT master! This time, there are two packages available: - chicken-scheme-interpreter, containing csi only. - chicken-scheme-full, containing the FULL Chicken system, including

Re: [ANN] CHICKEN 5.2.0 release candidate 2 available

2020-02-19 Thread Jeronimo Pellegrini via
On Sun, Feb 16, 2020 at 09:10:46AM +0100, Peter Bex wrote: > > $ make PLATFORM= PREFIX= install check > $ /bin/chicken-install awful > > If you can, please let us know the following information about the > environment on which you test the RC: It works on OpenWRT (and likely on LibreCMC

Re: [ANN] CHICKEN 5.2.0 release candidate available

2020-01-24 Thread Jeronimo Pellegrini via
Sorry for the delay. It works on my wifi router! Operating system: OpenWRT 19.07 Hardware platform: MIPS 24KEc V5.0 (little endian) C Compiler: GCC 7.5.0 Installation works?: as OpenWRT package Tests work?: not tested Installation of eggs works?: not ported I had previously tested on big endian

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

2019-06-10 Thread Jeronimo Pellegrini
Operating system: Linux - LibreCMC/OpenWRT Hardware platform: MIPS32 C Compiler: gcc (5.4.0 for LibreCMC and 7.4.0 for OpenWRT) with musl Installation works?: yes Tests work?: did not try (cross-compiled and installed in a router) Installation of eggs works?: not supposed to (only csi works; csc

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

2019-05-12 Thread Jeronimo Pellegrini
May 12, 2019, 9:01 AM Peter Bex wrote: > > > 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 com

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 w

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

2019-05-11 Thread Jeronimo Pellegrini
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 -- so getting modules with chicken-install doesn't work for me. Would it be possible

Re: [Chicken-users] Chicken now available from OpenWRT official repositories

2019-03-26 Thread Jeronimo Pellegrini
On Tue, Mar 26, 2019 at 02:01:22PM +0100, Peter Bex wrote: > Cool! Would you be so kind as to add it to our platforms page with > link and instructions on how to install? > > This is the page: https://wiki.call-cc.org/platforms Okay, done! :-) J.

[Chicken-users] Chicken now available from OpenWRT official repositories

2019-03-26 Thread Jeronimo Pellegrini
Hello, I have preciously set up a repository with instructions on how to compile Chicken for OpenWRT. As of today, Chicken is already available as an OpenWRT binary package (from their repository -- I have sent the package proposal and it was accepted), so there is no need to compile from

Re: [Chicken-users] How to I add (not override) compiler options/flags ?

2019-03-24 Thread Jeronimo Pellegrini
On Sun, Mar 24, 2019 at 11:18:48AM +0100, ko...@upyum.com wrote: > Jeronimo Pellegrini wrote: > > But since C_COMPILER_OPTIONS is defined with ?=, if I set it > > when running make, the default in Makefile.linux, for example, > > would be ignored. > > > > So if

[Chicken-users] How to I add (not override) compiler options/flags ?

2019-03-21 Thread Jeronimo Pellegrini
Hello, Reading the Chicken makefiles, I noticed that if I set C_COMPILER_OPTIONS, it will be used and the default value will be discarded, since it is set with ?= in the makefiles. C_COMPILER_OPTIONS ?= -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H TARGET_C_COMPILER_OPTIONS ?=

[Chicken-users] Help test Chicken in OpenWRT (Linux distribution for wireless routers)

2019-03-19 Thread Jeronimo Pellegrini
Hello, I have written a set of Makefiles for building some Lisps, including Chicken, on OpenWRT, and would like to know if some Chicken users would be interested in testing. Here: https://gitlab.com/jpellegrini/openwrt-packages Please tell me if it works for you! Thanks, J.

Re: [Chicken-users] Compiling for OpenWRT, got execvp: /usr/bin/env: Argument list too long

2019-03-13 Thread Jeronimo Pellegrini
.. ; loading library srfi-4 ... #;5> (require-extension (chicken string)) ; loading /usr/local/lib/chicken/10/chicken.string.import.so ... #;6> (conc 'a 2) "a2" J. On Wed, Mar 13, 2019 at 09:44:47AM +0100, Peter Bex wrote: > On Wed, Mar 13, 2019 at 05:38:12AM -0300, Jeronimo Pell

[Chicken-users] Compiling for OpenWRT, got execvp: /usr/bin/env: Argument list too long

2019-03-13 Thread Jeronimo Pellegrini
Hello, I am trying to compile Chicken so it runs on wireless routers with OpenWRT (http://openwrt.org/). So, OpenWRT has scripts to get a cross-compiling toolchain installed locally; the method for compiling new packages is described here:

Re: [Chicken-users] Failure when compiling html-tags egg

2016-12-16 Thread Jeronimo Pellegrini
On Fri, Dec 16, 2016 at 07:05:26AM +0100, Mario Domenech Goulart wrote: > Hi Arthur, > > On Thu, 15 Dec 2016 22:40:47 -0200 Arthur Maciel > wrote: > > > On Thu, Dec 15, 2016 at 10:28 PM, Evan Hanson wrote: > > > > A first guess is that

Re: [Chicken-users] New egg: PPL, a Prolog interpreter in Scheme

2016-02-22 Thread Jeronimo Pellegrini
On Mon, Feb 22, 2016 at 07:57:40PM +, Mario Domenech Goulart wrote: > Hello Jeronimo, Hello! > No problem. It seems that there's still one left: > > csc: file `pll.import.scm' does not exist > > Maybe you forgot to specify -J in the compile command for pll? Sorry! Yes, I did. It's

Re: [Chicken-users] New egg: PPL, a Prolog interpreter in Scheme

2016-02-22 Thread Jeronimo Pellegrini
On Mon, Feb 22, 2016 at 07:10:23AM +, Mario Domenech Goulart wrote: > Hello Jeronimo, > > Thanks for sharing your code. > > Salmonella has detected some issues: > > - pll depends on r7rs, but the r7rs egg is not in .meta's > `needs'/`depends' form > > - srfi-1 is a core unit in CHICKEN

[Chicken-users] New egg: PPL, a Prolog interpreter in Scheme

2016-02-21 Thread Jeronimo Pellegrini
Hello! So, I have packaged PLL ("Programming in Logic in Lisp") [1]. PLL is a set of implementations of Prolog in Scheme. It is not supposed to be efficient, but rather as a simple way to teach the fundamentals of Logic Programming and the internal working of a Prolog interpreter (conceptually

Re: [Chicken-users] Is there interest in this Prolog interpreter packaged as an egg?

2016-02-21 Thread Jeronimo Pellegrini
On Mon, Feb 22, 2016 at 09:28:38AM +1300, Evan Hanson wrote: > On 2016-02-21 15:21, Jeronimo Pellegrini wrote: > > (compile -X r7rs -R r7rs -s -O2 "pll.scm" -unit pll) > > (compile -X r7rs -R r7rs -s -O2 "pll.import.scm" -unit pll) > > You shou

Re: [Chicken-users] Is there interest in this Prolog interpreter packaged as an egg?

2016-02-21 Thread Jeronimo Pellegrini
On Sat, Feb 20, 2016 at 07:55:49PM -0500, John Cowan wrote: > Jeronimo Pellegrini scripsit: > > > If you believe this would be interesting as an egg, tell me and I'll > > get it packaged! > > Nice! You should also compare it with Schelog. Definitely do package > it

[Chicken-users] Is there interest in this Prolog interpreter packaged as an egg?

2016-02-20 Thread Jeronimo Pellegrini
Hello, I have written a Prolog interpreter and I'd like to know if there is interest in its availability as an egg. http://aleph0.info/jp/software/prolog-in-scheme/ I am not sure if people will be interested, because it's really more a pedagogical tool -- the source code is part of a tutorial

Re: [Chicken-users] specialized-io egg version discrepancy

2015-05-09 Thread Jeronimo Pellegrini
On Sat, May 09, 2015 at 02:25:22PM -0600, Matt Gushee wrote: Hi, Jeronimo-- Hi Matt! ... except that it appears to do redundant writes, and is *not* what I was trying to do. As I said in the original post, I was attempting to use write-one-string *within* with-output-to-string, e.g.:

Re: [Chicken-users] specialized-io egg version discrepancy

2015-05-08 Thread Jeronimo Pellegrini
Hello again, On Fri, May 08, 2015 at 06:48:48PM -0600, Matt Gushee wrote: In addition to shadowing the builtin write-string, this write-string causes a segfault when I attempt to use it within 'with-output-to-string' in csi. Haven't looked into it any further yet, but that doesn't seem very

[Chicken-users] tk and pstk eggs

2013-09-17 Thread Jeronimo Pellegrini
Hello, I am trying to create a simple GUI for a Chicken program, but I don't think I understood how the tk and pstk eggs work -- I tried both. With tk, I have tried the tutorial in the documentation (the Hello World program): (require-extension tk) (start-tk) But them when I do (define

Re: [Chicken-users] Chicken Scheme Doc

2013-03-04 Thread Jeronimo Pellegrini
Bruno, If you mean native procedures in Scheme as in calling native C, or native operating system procedures from a Scheme program, then the links you got should be enough. Now, if you mean the procedures that are 'native' in Chicken -- that is, those that Chicken implements, then you perhaps

[Chicken-users] Printing procedures returned from call/cc

2012-07-31 Thread Jeronimo Pellegrini
Hello, I was wondering why this happens in Chicken (recent checkout from git): (let ((lst (call/cc (lambda (x) (print 'something) (call/cc (lambda (y) (list x y))) (print lst) (print (eq? (car lst) (cadr lst)))

Re: [Chicken-users] From inexact to exact using the - procedure?

2012-03-24 Thread Jeronimo Pellegrini
On Fri, Mar 23, 2012 at 04:41:07PM -0400, John Cowan wrote: Jeronimo Pellegrini scripsit: #;5 (- a b) 1.0 The imaginary part vanishes because R5RS treats 1.0+0.0i as a real number. However, R6RS does not and R7RS currently does not either, though that may change as a result

Re: [Chicken-users] From inexact to exact using the - procedure?

2012-03-24 Thread Jeronimo Pellegrini
On Fri, Mar 23, 2012 at 09:28:07PM +0100, Peter Bex wrote: On Fri, Mar 23, 2012 at 04:37:06PM -0300, Jeronimo Pellegrini wrote: Well, that's supposed to be exactly the same thing, so why is it exact? Is this an optimization? It's a bug. There are many, many bugs in the current release

[Chicken-users] From inexact to exact using the - procedure?

2012-03-23 Thread Jeronimo Pellegrini
Hello, I'm not sure if this is a bug or a feature: #;1 (use numbers) #;2 (define y (* 0.1 1+1i)) #;3 (define a (+ 1 y)) #;4 (define b (+ 2 y)) #;5 (- a b) 1.0 #;6 (exact? (- a b)) #f That's what I expected... The imaginary part vanished, but it's like doing (- 0.1 0.1) -- it's not exact!

Re: [Chicken-users] (ISBN egg) How is normalize-isbn supposed to be used?

2011-05-17 Thread Jeronimo Pellegrini
were sitting in trunk awaiting a new tag. So some of your issues are gone now as I have tagged a new version 0.4, please try this one. Hey, that was fast! :-) Thanks! * Jeronimo Pellegrini j...@aleph0.info [110516 21:16]: #;1 (use isbn openlibrary) #;2 (define isbn 8573261854) #;3

[Chicken-users] (ISBN egg) How is normalize-isbn supposed to be used?

2011-05-16 Thread Jeronimo Pellegrini
Hi, I have installed the isbn egg, and have successfully used valid-isbn? and isbn-alist. However, I can't seem to get normalize-isbn, even with strings for which valid-isbn? return #t: #;1 (use isbn openlibrary) ... #;2 (define isbn 8573261854) #;3 (valid-isbn? isbn) = #t #;4 (isbn-alist

[Chicken-users] Problem with threads

2010-11-19 Thread Jeronimo Pellegrini
Hello, I'm using Chicken from git/master branch (commit ddaacdfdb11a0a1c0d1e6363b1af3af78746575c). I recently noticed a change in the behavior of Chicken's scheduler. See this program: (use srfi-18) (define looping-thread (let ((loop (lambda () (do ((i 0 (add1 i)))

[Chicken-users] Value returned from modulo

2010-08-28 Thread Jeronimo Pellegrini
Hello, I was writing a simple PRNG for didatic purposes and found that in Chicken, modulo may or may not return an exact integer -- whic is OK, I can just do inexact-exact. But it seems also that the value varies among systems: #;1 (define a 1103515245) #;2 (define b 12345) #;3 (define m (expt 2

[Chicken-users] Using the amb egg

2010-08-09 Thread Jeronimo Pellegrini
Hi, I've installed the amb egg and could use it, but I'm a bit confused: #;1 (use amb amb-extras) ... #;2 (let ((a (amb 1 2 3)) (b (amb -1 -2 -3))) (required (= (+ a b) 0)) (list a b)) (1 -1) #;3 (let ((a (amb 1 2 3)) (b (amb -1 -2 -3))) (required (= (+ a b) 10)) (list a b)) (2 -2) So, out of

Re: [Chicken-users] Printing circular lists

2010-08-04 Thread Jeronimo Pellegrini
On Wed, Aug 04, 2010 at 07:43:20PM +0900, Alex Shinn wrote: Taylor Venable tay...@metasyntax.net writes: If you're open to using a different method to do so, both the fmt and srfi-38 eggs provide such a means via fmt and write-with-shared-structure, respectively. Note Chicken's SRFI-38

[Chicken-users] Printing circular lists

2010-08-03 Thread Jeronimo Pellegrini
Hello, In the REPL, the following: (define a (list 1 2)) (set-cdr! a a) a shows some elements of a, then prints an ellipsis: (a a a a a a a a ... But (print a) enters an infinite loop (so does display and pretty-print). I was wondering how to get Chicken to print cyclic structures using

[Chicken-users] Resize SRFI-4 vectors

2010-04-28 Thread Jeronimo Pellegrini
Hello, Is there a way to resize SRFI-4 vectors without copying the elements all over a new vector? I'd like something like #;1 (define a (make-u32vector 3)) #;2 a #u32(3 0) #;3 (u32vector-set! a 0 1) #;4 (u32vector-set! a 0 1) #;5 (u32vector-set! a 1 1) #;6 a #u32(1 1) #;7 (u32vector-resize! a

[Chicken-users] define-record and define-record-type

2010-04-26 Thread Jeronimo Pellegrini
Hello, I see that I can (use srfi-9), but define-record-type is already available, even if I don't (use) the module. Can I always count on that? I also see from http://chicken.wiki.br/manual/Non-standard%20macros%20and%20special%20forms#record-structures that besides SRFI-9 define-record-type

Re: [Chicken-users] Problem with chicken-install -p

2010-04-23 Thread Jeronimo Pellegrini
Hi, On Fri, Apr 23, 2010 at 02:13:25PM +0200, Felix wrote: You have to pass the make-configuration to every invocation: make PLATFORM=linux CHICKEN=./chicken-boot- make PLATFORM=linux CHICKEN=./chicken-boot- uninstall make PLATFORM=linux CHICKEN=./chicken-boot- install I checked out a

Re: [Chicken-users] Problem with chicken-install -p

2010-04-22 Thread Jeronimo Pellegrini
Hi, On Thu, Apr 22, 2010 at 04:41:57PM +0200, Felix wrote: Do make confclean clean and rebuild. This should work. I did: make confclean clean . scripts/build-boot-chicken.sh chicken linux bunzip chicken-boot-.gz2 make PLATFORM=linux CHICKEN=./chicken-boot- make uninstall make install But

Re: [Chicken-users] Is there interest in a new egg (fast-io)?

2010-04-22 Thread Jeronimo Pellegrini
Hello! On Thu, Apr 22, 2010 at 02:25:00PM -0500, Jim Ursetto wrote: Here are my numbers: scheme fast-io line numbers 1.8 2.1 -- write fixnum26 2126 26 read fixnum61 2022 211

[Chicken-users] Problem with chicken-install -p

2010-04-21 Thread Jeronimo Pellegrini
Hello, After this changeset: 098a8b9a626ce58f0f8f5d8c7c85889df04604fb added destination-prefix to make installation-prefix compatible again I can no longer use chicken-install -p ~/chicken/ from the directory in which where an egg's source is. I'm not sure if there's some detail missing from

Re: [Chicken-users] Explicit renaming macros behavior during interpretation and compilation

2010-04-15 Thread Jeronimo Pellegrini
On Thu, Apr 15, 2010 at 03:40:01PM +0200, Thomas Chust wrote: Hello Jeronimo, Hi Thomas! the environment in which syntax transformers are run is distinct from the one in which the compiled code is eventually run. You probably want to use define-for-syntax instead of define to introduce your

[Chicken-users] Where is the Emacs Guide to Chicken Users, mentioned in the manual?

2010-04-10 Thread Jeronimo Pellegrini
Hello! The Getting Started chapter of the manual lists some editors that could be used by a newbie, and when listing Emacs, it says: Consult the `Emacs Guide for Chicken Users' (which will be available on the Chicken Wiki soon) for information on setting up and using Emacs with Chicken. I

[Chicken-users] CHICKEN_REPOSITORY (not working?)

2010-04-10 Thread Jeronimo Pellegrini
Hi, The manual tells me that in order to not install eggs as root I should set CHICKEN-REPOSITORY, call chicken-install -i and then just use the new repository - but it isn't working for me (see below). Is the manual outdated? Thanks, J. /--- $ echo $CHICKEN_REPOSITORY# OK, it isn't set...

Re: [Chicken-users] Is there interest in a new egg (fast-io)?

2010-04-06 Thread Jeronimo Pellegrini
On Mon, Apr 05, 2010 at 09:04:47PM -0700, Shawn Rutledge wrote: On Mon, Apr 5, 2010 at 7:18 PM, Jeronimo Pellegrini j...@aleph0.info wrote: Implemented and tested: - write-fixnum, read-fixnum - write-flonum, read-flonum For those I have been making good use of the endian-port egg

Re: [Chicken-users] Is there interest in a new egg (fast-io)?

2010-04-06 Thread Jeronimo Pellegrini
On Tue, Apr 06, 2010 at 11:24:20AM -0300, Jeronimo Pellegrini wrote: Anyway, I've uploaded it here if you'd like to give it a try: http://aleph0.info/fast-io.tar.gz I forgot -- whatch out for the file size and time to be spent in benchmarks! You may want to change the value of +max

Re: [Chicken-users] Documentation problem (eggs tutorial and Extensions section from the manual)

2010-04-06 Thread Jeronimo Pellegrini
On Mon, Apr 05, 2010 at 02:16:24PM +0200, Peter Bex wrote: It might have not been updated properly. It's a good idea to add some instructions on providing a module to the tutorial. Feel free to add it. OK, I added instructions on how to create modules exporting syntax (for lack of a nicer

Re: [Chicken-users] Is there interest in a new egg (fast-io)?

2010-04-06 Thread Jeronimo Pellegrini
On Tue, Apr 06, 2010 at 03:41:36PM -0400, Mario Domenech Goulart wrote: Hi Jeronimo Hi Mario! I'd suggest naming the egg in a way it doesn't sound as general as faster I/O primitives. Maybe it's just me, but when I read fast-io, I instinctively think that Chicken's I/O primitives are slow

[Chicken-users] Documentation problem (eggs tutorial and Extensions section from the manual)

2010-04-05 Thread Jeronimo Pellegrini
Hello! I've tried to follow the instructions on the egg tutorial here: http://chicken.wiki.br/eggs%20tutorial and the Extensions part of the manual: http://chicken.wiki.br/man/4/Extensions But that didn't work. I compared the instructions and example there to what's on some eggs in the svn

[Chicken-users] Is there interest in a new egg (fast-io)?

2010-04-05 Thread Jeronimo Pellegrini
Hello, I've been working on some unsafe fast I/O procedures for my own use, and I thought I'd make them an extension, if more people would like to use them. The fast-io extension would have these procedures: Implemented and tested: - write-fixnum, read-fixnum - write-flonum, read-flonum -

Re: [Chicken-users] Documentation problem (eggs tutorial and Extensions section from the manual)

2010-04-05 Thread Jeronimo Pellegrini
Hi, On Mon, Apr 05, 2010 at 02:16:24PM +0200, Peter Bex wrote: This doesn't really have anything to do with eggs. There was no -j in Chicken 3, and in Chicken 4 you use -j modulename to create an import file for the module named modulename. Since it's good practice (but not required!) to

Re: [Chicken-users] Is there interest in a new egg (fast-io)?

2010-04-05 Thread Jeronimo Pellegrini
On Mon, Apr 05, 2010 at 10:34:03PM -0400, John Cowan wrote: Jeronimo Pellegrini scripsit: - write-fixnum, read-fixnum - write-flonum, read-flonum Does this refer to a textual or a binary format file? Textual. I had no intention of using binary files, although that could be nice too

Re: [Chicken-users] lazy-ffi: what am I missing?

2010-04-03 Thread Jeronimo Pellegrini
On Sat, Apr 03, 2010 at 08:16:59PM +0200, Felix wrote: The lazy-ffi code refers to an obsolete internal routine, a fix in the trunk subdirectory of the egg tree and will be tagged shortly, but I have to test it once more before it will be released. Well, the fix in trunk seems to have fixed

Re: [Chicken-users] lazy-ffi: what am I missing?

2010-03-31 Thread Jeronimo Pellegrini
Hi Mario, Thanks for replying! On Wed, Mar 31, 2010 at 01:46:13PM -0400, Mario Domenech Goulart wrote: I think it's a lazy-ffi bug. ##sys#cons-flonum doesn't exist anymore in the Chicken core since 4.3.something. Ok, I see. I have tried downloading the libffi-2.tgz mentioned at

Re: [Chicken-users] lazy-ffi: what am I missing?

2010-03-31 Thread Jeronimo Pellegrini
On Wed, Mar 31, 2010 at 01:51:42PM -0400, Mario Domenech Goulart wrote: On Tue, 30 Mar 2010 23:06:29 -0300 Jeronimo Pellegrini j...@aleph0.info wrote: $ csc -X lazy-ffi.scm thing.scm (Do I really need to include the lazy-ffi source when compiling?) According to the wiki docs, yes

[Chicken-users] lazy-ffi: what am I missing?

2010-03-30 Thread Jeronimo Pellegrini
Hi, I am trying to get this example from the lazy-ffi documentation working, but I don't know what I'm doing wrong... This is the code: thing.scm /--- (use lazy-ffi) (use numbers) #~libc.so.6 (#~printf %d - %g, ok: %s\n 123 45.67 hello) #~libm.so.6 (print (#~sin 33.4 return: double:) )

Re: [Chicken-users] utf8 egg and byte-* procedures

2010-03-27 Thread Jeronimo Pellegrini
Thanks a lot to everyone who answered! I got it working now. J. On Fri, Mar 26, 2010 at 09:11:36AM +0900, Alex Shinn wrote: Alex Shinn alexsh...@gmail.com writes: In Chicken 4 this is no longer needed, since we have modules with fine-grained control of importing. So to get byte-aware

[Chicken-users] Is this a bug? (chicken-install egg:version)

2010-03-26 Thread Jeronimo Pellegrini
Hi, When trying to install a specific version of any egg, chicken-install seems to get confused: # chicken-install -v 4.4.3 # chicken-install srfi-42:1.7 Error: (string=?) bad argument type: (srfi-42 . 1.7) # chicken-install srfi-34:0.4 Error: (string=?) bad argument type: (srfi-34 . 0.4) #

[Chicken-users] Performance of write-char (and I/O in general)

2010-03-25 Thread Jeronimo Pellegrini
Hello, I recently noticed that reading numbers from a file was much slower from compiled Chicken using the read procedure than if I used fscanf directly from the FFI. (The thread is Getting C file handle from port?). Anyway, I understand that the standard read procedure will perform some checks

Re: [Chicken-users] Performance of write-char (and I/O in general)

2010-03-25 Thread Jeronimo Pellegrini
I forgot to mention: this is with git master/HEAD (4cbc9d250a5f2a60a4526ad1435c13a1d605cef4). J. On Thu, Mar 25, 2010 at 11:32:46AM -0300, Jeronimo Pellegrini wrote: Hello, I recently noticed that reading numbers from a file was much slower from compiled Chicken using the read procedure

[Chicken-users] utf8 egg and byte-* procedures

2010-03-25 Thread Jeronimo Pellegrini
Hi, I'm not sure if I understood how to use the utf8 egg. #;1 (string-length áéíóú) 10 #;2 (require-extension utf8) ; loading /usr/local/lib/chicken/5/utf8.import.so ... ; loading /usr/local/lib/chicken/5/scheme.import.so ... ; loading /usr/local/lib/chicken/5/chicken.import.so ... ; loading

Re: [Chicken-users] utf8 egg and byte-* procedures

2010-03-25 Thread Jeronimo Pellegrini
On Thu, Mar 25, 2010 at 04:26:32PM -0400, Mario Domenech Goulart wrote: Hi Jeronimo Hi Mario! On Thu, 25 Mar 2010 14:20:43 -0300 Jeronimo Pellegrini j...@aleph0.info wrote: I have checked the egg source and indeed, the redefinitions are there (this is from utf8.scm): (import

Re: [Chicken-users] Missing documentation for eggs

2010-03-23 Thread Jeronimo Pellegrini
Hi, About the utf8 egg: the FAQ also mentions that The system does not directly support Unicode, but an extension for UTF8 strings exists for CHICKEN 3, which may be ported to the current CHICKEN version at some stage: http://chicken.wiki.br/man/4/faq#does-chicken-support-unicode-strings But

[Chicken-users] Getting C file handle from port?

2010-03-20 Thread Jeronimo Pellegrini
Hello, Suppose I have an open port: (let ((in (open-input-file whatever))) ... (let ((x (read in))) ...)) I'd like to switch from using Chicken's read implementation to something I'd write in C (using the FFI). But I didn't find in the documentation anything that would allow me to turn

[Chicken-users] csc: unsafe unboxing and f64vectors on amd64?

2010-02-17 Thread Jeronimo Pellegrini
Hi, The manpage for csc (and also the manual [0]) mentions this option: -optimize-level 4 is equivalent to -optimize-leaf-routines -local -inline -unsafe But looking at chicken.scm at git experimental/HEAD, it seems that -O4 and -O5 also turn on unboxing: [(4) (set! options

Re: [Chicken-users] How to report a bug?

2009-11-08 Thread Jeronimo Pellegrini
On Sun, Nov 08, 2009 at 06:57:36PM -0500, Mario Domenech Goulart wrote: Hi Jeronimo Hi Mario! You can use the Chicken Trac (http://www.irp.oist.jp/trac/chicken/) to fill a bug report. I tried, but the start page says you must fill in your name and e-mail address on the settings page in order

[Chicken-users] How to report a bug?

2009-11-07 Thread Jeronimo Pellegrini
Hi, I have found a bug in the crunch egg[0], but I'm not sure how to report it. Should I use chicken-bug or do I contect the egg developer directly? (I mean, is chicken-bug only for the core of Chicken or for eggs also?) By the way, I tried chicken-bug but both ^C and ^D did not do anything (I

Re: [Chicken-users] Crunch performance (really strange) -- resolved

2009-11-05 Thread Jeronimo Pellegrini
) is much faster: 155s That's not like C++ of course, but it's much better than before! (I have also written an optimized Common Lisp version which ran in 90 seconds). I'm sorry for the noise. It seems that crunch works really well! Thanks! J. On Thu, Nov 05, 2009 at 11:11:20AM -0200, Jeronimo

Re: [Chicken-users] Re: Problem embedding srfi-42

2009-10-30 Thread Jeronimo Pellegrini
On Fri, Oct 30, 2009 at 10:14:33AM +, felix wrote: Jeronimo Pellegrini jpn at aleph0.info writes: But now I'm trying to embed code that uses srfi-42, and it doesn't work. A bug in the srfi-42 setup script. Please try version 1.7. 1.7 works perfectly! Thanks a lot! J

Re: [Chicken-users] Segfault when trying to embed Scheme code (4.2.0)

2009-10-28 Thread Jeronimo Pellegrini
On Tue, Oct 27, 2009 at 01:20:56PM -0400, John Cowan wrote: Jeronimo Pellegrini scripsit: define-external cannot be used for recursive definitions (probably supposed to be used only for wrappers -- is this correct?) My recursive define-external functions segfaulted; non-recursive ones

[Chicken-users] Problem embedding srfi-42

2009-10-28 Thread Jeronimo Pellegrini
Hi, I think I understand how ot embed Scheme in C, and got some simple examples to work (even passing variable pointers to Scheme functions and getting Scheme code to change the values of the variables -- it's easier than I initially thought!) But now I'm trying to embed code that uses srfi-42,

Re: [Chicken-users] Segfault when trying to embed Scheme code (4.2.0)

2009-10-27 Thread Jeronimo Pellegrini
-0200, Jeronimo Pellegrini wrote: Hi, So -- I uninstalled my previous Chicken SVN version and installed 4.2.0; the problem still happens: I was trying to compile the example in http://chicken.wiki.br/man/4/Embedding (The example right below CHICKEN_yield) So, I copied and pasted x.scm

Re: [Chicken-users] Re: Was crunch really discontinued? Is there an alternative?

2009-10-26 Thread Jeronimo Pellegrini
On Mon, Oct 26, 2009 at 09:53:36AM +, felix wrote: Hi, Jeronimo! The mighty CRUNCH has been ported to chicken 4, see http://chicken.kitten-technologies.co.uk/svn/release/4/crunch/trunk/ Note that it has not lost its highly experimental status. Hey, that's great! :-) Thanks a lot

[Chicken-users] Segfault when trying to embed Scheme code

2009-10-26 Thread Jeronimo Pellegrini
Hi, I got segfaults trying to make C code call Scheme functions (as described in the Wiki -- I actually copied and pasted the scm and C examples there). But I'm using Chicken version 4.2.2 - SVN rev. 1622. Is it OK to report this as a possible problem in the current SVN version, or should I try

Re: [Chicken-users] Segfault when trying to embed Scheme code (4.2.0)

2009-10-26 Thread Jeronimo Pellegrini
Hi, So -- I uninstalled my previous Chicken SVN version and installed 4.2.0; the problem still happens: I was trying to compile the example in http://chicken.wiki.br/man/4/Embedding (The example right below CHICKEN_yield) So, I copied and pasted x.scm and y.c, and used the same command line:

Re: [Chicken-users] Can't install srfi-27

2009-10-20 Thread Jeronimo Pellegrini
for the port. J. On Oct 19, 2009, at 6:59 PM, Jeronimo Pellegrini wrote: Hello, I have tried to install the srfi-27 egg (after removing all traces of my Chicken installation, recompiling Chicken 4.2.0 and installing again), and it fails: /- * Installing documentation files in /usr

[Chicken-users] Can't install srfi-27

2009-10-19 Thread Jeronimo Pellegrini
Hello, I have tried to install the srfi-27 egg (after removing all traces of my Chicken installation, recompiling Chicken 4.2.0 and installing again), and it fails: /- * Installing documentation files in /usr/local/share/chicken/doc: Warning: file does not exist: mathh.html chmod a+r

Re: [Chicken-users] Was crunch really discontinued? Is there an alternative?

2009-10-12 Thread Jeronimo Pellegrini
Hi, On Sun, Oct 11, 2009 at 12:11:26PM +0900, Ivan Raikov wrote: Hello, If matrix multiplication is what you are interested in, then you could consider using the Chicken bindings for the BLAS and ATLAS libraries: http://chicken.wiki.br/eggref/4/blas

Re: [Chicken-users] Was crunch really discontinued? Is there an alternative?

2009-10-11 Thread Jeronimo Pellegrini
On Sun, Oct 11, 2009 at 11:53:35AM +0900, Alex Shinn wrote: Jeronimo Pellegrini j...@aleph0.info writes: I have written a program that repeatedly multiply matrices as a very simplistic benchmark (because it is the kind of thing I'd like to do very fast). The result was: bigloo 0.52s

[Chicken-users] Was crunch really discontinued? Is there an alternative?

2009-10-11 Thread Jeronimo Pellegrini
Hello! I've been looking for some Scheme implementation that is suitable for number crunching and also supports SRFIs like 42 (eager comprehension), 45 (laziness), 25 (multidimensional arrays), and some others. So, I have tested Chicken, Bigloo and Gambit. There seems to be a necessary trade-off

[Chicken-users] Was crunch really discontinued? Is there an alternative?

2009-10-10 Thread Jeronimo Pellegrini
Hello! I've been looking for some Scheme implementation that is suitable for number crunching and also supports SRFIs like 42 (eager comprehension), 45 (laziness), 25 (multidimensional arrays), and some others. So, I have tested Chicken, Bigloo and Gambit. There seems to be a necessary trade-off