Re: [Chicken-users] Problem OS X Snow Leopard installation/Compilation

2011-03-08 Thread Jim Ursetto
Hi Francis, The readme instructions you refer to are only to be used for *universal* builds, which are not possible on snow leopard. Nor are they really desirable even on tiger or leopard unless you absolutely must support PPC and Intel in the same install. Simply build normally without

Re: [Chicken-users] foreign-lambda* question

2011-03-09 Thread Jim Ursetto
John, Presuming you no longer need the contents of values after the call to window-property-set, you can then use free from unit lolevel to free the memory. Is that the case? On Mar 9, 2011, at 21:35, John J Foerch jjfoe...@earthlink.net wrote: Hello, I'm writing a program that uses xlib

Re: [Chicken-users] No... but it is... interesting...

2011-03-10 Thread Jim Ursetto
On Mar 10, 2011, at 10:57 AM, John Cowan wrote: I get one failure running on Chrome 10.0.648.127 beta for Windows: (every-of #t) returns #f instead of #t. Same here on Safari 5.0.4 ___ Chicken-users mailing list Chicken-users@nongnu.org

Re: [Chicken-users] Big Randoms

2011-03-11 Thread Jim Ursetto
On Mar 11, 2011, at 8:55 AM, David N Murray wrote: Looking at the difference between your csi announcement and mine, I notice that I'm building the 64bit version. If I try the same thing on a 32-bit build, I don't have the problem. Not that this helps much but I can reproduce the SIGFPE (on

Re: [Chicken-users] getenv

2011-03-11 Thread Jim Ursetto
Hi Dave, The wiki manual tracks the latest stable release of Chicken, which is 4.6.0 and still contains getenv. It should be removed when 4.7.0 comes out. Jim On Mar 11, 2011, at 3:33 PM, David N Murray wrote: Hi all, I'm not sure fixing the docs is the correct thing here, but I'll be

Re: [Chicken-users] Generic RDBMS Interface [Was: Re: Creating Windows GUI App]

2011-04-01 Thread Jim Ursetto
On Apr 1, 2011, at 7:47 AM, Thomas Chust wrote: There is at least one small point that I would want to do differently, though: In my opinion it has some value if the procedure establishing the database connection has a fixed signature and driver specific information is encoded in a single

Re: [Chicken-users] Difficulty installing Hyde egg

2011-04-05 Thread Jim Ursetto
Hi John, On Apr 5, 2011, at 2:12 PM, John Magolske wrote: If building chicken from source, could there be a way of doing something like: SET(BINPATH /home/john/.chicken/bin) If building from source, you might as well just do make PREFIX=/home/john/.chicken and dispense with all the

Re: [Chicken-users] [wish list] chicken-install: show available eggs, upgrade all installed eggs?

2011-05-05 Thread Jim Ursetto
On May 5, 2011, at 9:58 AM, William Xu wrote: Felix felix at call-with-current-continuation.org writes: What editor are you using? Emacs. You mentioned in the other mail it has no problem with default setup. i think that may be due to my emacs config then, i will check my config.

Re: [Chicken-users] Different factorial results

2011-06-03 Thread Jim Ursetto
On Jun 3, 2011, at 11:49 AM, John Cowan wrote: Steve Graham scripsit: Thanks, Mario. Worked like a charm. Why is that not part of the base package? Licensing. The numbers egg has to be GPL, because it depends on the GMP (GNU Multi-precision Library) which is GPL. numbers is BSD and

Re: [Chicken-users] Problems with csc 4.7.0 on x86_64

2011-06-12 Thread Jim Ursetto
I think Thomas is right, it looks like the system can't find the shared library as it is perhaps installed incorrectly, and is falling back to the static library which will fail. On Jun 12, 2011, at 2:44 PM, Jim Pryor wrote: $ csc -s hello.scm /usr/bin/ld:

Re: [Chicken-users] Problems with csc 4.7.0 on x86_64

2011-06-13 Thread Jim Ursetto
FYI, there is a patch to enable parallel builds at http://bugs.call-cc.org/attachment/ticket/526/parallel-build-2.diff.txt . It's not officially supported yet, but if you want to test it out, please do. Jim On Jun 13, 2011, at 10:20 AM, Vesa Kaihlavirta wrote: Excerpts from Jim Pryor's

Re: [Chicken-users] Problems with csc 4.7.0 on x86_64

2011-06-14 Thread Jim Ursetto
On Jun 14, 2011, at 2:11 AM, Vesa Kaihlavirta wrote: Excerpts from Jim Ursetto's message of 2011-06-14 03:35:48 +0300: FYI, there is a patch to enable parallel builds Full chicken build, single process, ran through bash's time on our build machine: real 3m11.415s user 3m5.0568s You

Re: [Chicken-users] where move-file is?

2011-06-30 Thread Jim Ursetto
On Jun 30, 2011, at 8:30 AM, Mario Domenech Goulart wrote: Maybe Jim can provide a good explanation for the api.call-cc.org path. I suppose the Extensions section from the manual is mapped as `eggs' in chicken-doc. I'm not sure. It's an unfortunate exception. The pages mapped under chicken

Re: [Chicken-users] reload .so in csi?

2011-07-01 Thread Jim Ursetto
On Jul 1, 2011, at 1:38 PM, Christian Kellermann wrote: A convenient way is to define a system comprising your source for the .so with the system egg (http://api.call-cc.org/doc/system). This uses the compile-file procedure to create a new .so name each time it is compiled. That is probably

Re: [Chicken-users] Problem w/ a new egg

2011-07-06 Thread Jim Ursetto
On Jul 5, 2011, at 10:05 PM, Kon Lovett wrote: My initial save did not list the .meta in the files manifest so the above msg made some sense. I quickly remedied the oversight. But I still get the msg. Just so you know, the files entry isn't used anymore. Jim

Re: [Chicken-users] Solaris 10 / SPARC - PsTK and manyargs

2011-07-06 Thread Jim Ursetto
On Jul 6, 2011, at 8:02 AM, Claude Marinier wrote: I asked chicken-install to save the temporary files and moved them to /usr/local/src. Applied the patch; had fun with carriage returns. Built with chicken-install -l /usr/local/src -t local pstk Sorry about the CRs, the original file

Re: [Chicken-users] LLVM fails on Mac OS X 10.7

2011-08-05 Thread Jim Ursetto
To add, llvm-gcc is now the default on 10.7, so any Lion user would probably see this issue. That is why it was necessary to set gcc-4.2 explicitly. On Aug 5, 2011, at 11:32 PM, Josh Chaney wrote: I have a similar, or same issue as reported here (

Re: [Chicken-users] configuring readline support; cannot import from undefined module: regex

2011-08-16 Thread Jim Ursetto
On Aug 15, 2011, at 10:47 PM, John Gabriele wrote: Hi, Following the instructions at http://wiki.call-cc.org/man/3/Using%20the%20interpreter#auto-completion-and-edition to set up readline support, I get: Error: (import) during expansion of (import ...) - cannot import from undefined

Re: [Chicken-users] My code doesn't float

2011-08-16 Thread Jim Ursetto
Better solution is probably to declare these in test1.h and then include it from stest1.scm via # #include test1.h # and also #include it from test1.c for good measure. Same would be true if you had implemented stest1 directly in C. On Aug 17, 2011, at 12:04 AM, Paul Colby wrote: Got it,

Re: [Chicken-users] Egg - Chicken version compatibility

2011-08-20 Thread Jim Ursetto
On Aug 20, 2011, at 17:32, Alaric Snell-Pym ala...@snell-pym.org.uk wrote: * How about, when interfaces change in the manual, writing something along the lines of added in version X, so that people writing code using those interfaces who are concerned about compatability are given pause for

Re: [Chicken-users] script to generate html from wiki-formatted text?

2011-08-30 Thread Jim Ursetto
John, Another option is to look at manual-labor, which uses svnwiki-sxml and chicken-doc-html under the hood. A further option is hyde. Jim On Aug 30, 2011, at 3:13 PM, Mario Domenech Goulart wrote: Hi John, On Tue, 30 Aug 2011 16:15:20 -0400 John Gabriele jmg3...@gmail.com wrote: Does

Re: [Chicken-users] script to generate html from wiki-formatted text?

2011-08-30 Thread Jim Ursetto
On Aug 30, 2011, at 8:10 PM, John Gabriele wrote: On Tue, Aug 30, 2011 at 6:23 PM, Jim Ursetto zbignie...@gmail.com wrote: Another option is to look at manual-labor, which uses svnwiki-sxml and chicken-doc-html under the hood. Thanks. That also works nicely for me. The styling reminds me

Re: [Chicken-users] process-wait

2011-09-02 Thread Jim Ursetto
On Sep 2, 2011, at 3:50 PM, Felix wrote: The signal handlers that you set with set-signal-handler! are not executed at interrupt time. They just save the signal number and provoke a GC on the next heap-check that happens to execute. Then the interrrupt-processing wraps up the execution state

Re: [Chicken-users] wiki pages and h1 title

2011-09-10 Thread Jim Ursetto
Hi John, On Sep 10, 2011, at 11:56 AM, John Gabriele wrote: I've noticed that some of the wiki pages have an h2 title at the top, some don't. For the ones that have have a table of contents, some have an h2 above the toc, some have it below. I think pages look a bit odd if they have no

Re: [Chicken-users] wiki pages and h1 title

2011-09-10 Thread Jim Ursetto
On Sep 10, 2011, at 5:46 PM, John Gabriele wrote: The stopgap measure though, would appear to be this: https://wiki.call-cc.org/eggs%20tutorial (I just now added the h2 heading to it.) I think this looks reasonable ___ Chicken-users mailing list

Re: [Chicken-users] MacPorts and Chicken

2011-09-10 Thread Jim Ursetto
On Sep 10, 2011, at 5:28 PM, Jimmy Coyne wrote: Hi, Trying to use Chicken for the first time and having some install issues on Snow leopard (10.6.8). Followed the wiki macport instructions - sudo port install chicken --- Attempting to fetch chicken-4.4.0_0.darwin_10.x86_64.tbz2 from

Re: [Chicken-users] chicken hangs and uses 100% cpu (mac os x lion)

2011-09-13 Thread Jim Ursetto
On Sep 13, 2011, at 7:56 PM, Topher Cyll wrote: Hey everyone, Like a previous poster, I'm having issues with Chicken on Mac OS X (although for me the issues are on Lion, not Snow Leopard). Add C_COMPILER=gcc-4.2 to the make line. E.g. make C_COMPILER=gcc-4.2 PLATFORM=macosx This

Re: [Chicken-users] file-read and let-values

2011-09-19 Thread Jim Ursetto
On Sep 19, 2011, at 9:59 AM, Sascha Ziemann wrote: Is this the prefered way to use the return values of file-read? (let-values (((data bytes)) (apply values (file-read fileno size))) No, just destructure the returned list: (let* ((rc (file-read fileno size)) (data (car rc))

Re: [Chicken-users] sandbox egg: C_emit_trace_info

2011-10-01 Thread Jim Ursetto
Patch looks good to me but should be ACKed by the egg author (Felix) On Oct 1, 2011, at 5:01 PM, Alan Post wrote: The sandbox egg makes a call to the runtime.c procedure: C_emit_trace_info In commit 2d5244dd01d4e91ed6f73bb566e92f04a2ab6361 of core, this procedure was deprecated in favor

Re: [Chicken-users] c-string return question

2011-10-13 Thread Jim Ursetto
On Oct 13, 2011, at 11:02 AM, Jörg F. Wittenberger wrote: ages ago I wrote these simple lines: Out of curiosity, would this suit your purposes instead: (##sys#char-utf8-string (integer-char x)) ___ Chicken-users mailing list Chicken-users@nongnu.org

Re: [Chicken-users] gmake check fails on OpenBSD 5.0

2011-11-05 Thread Jim Ursetto
On Nov 4, 2011, at 1:37 PM, Pekka Niiranen wrote: Hi Pekka. port-fileno...FAIL [ 8 ] gmake[1]: Leaving directory `/home/pekka/compile/chicken-4.7.0.3-st' gmake: *** [check] Error 2 I commented out the following two lines from port-tests.scm (check (port-fileno out)) (check

Re: [Chicken-users] 64-bit SPARC build - Re: [4.7.0.3-st] Compiling on Solaris 10

2011-11-10 Thread Jim Ursetto
Toby, On Nov 10, 2011, at 6:40 AM, Toby Thain wrote: 3) It's really sad to see 25% CPU utilisation on this quad-CPU system throughout the long build. Is the parallel make patch coming? :) The patch in ticket 526 (http://bugs.call-cc.org/raw-attachment/ticket/526/parallel-build-2.diff.txt)

Re: [Chicken-users] Chicken objc egg on OSX Lion

2011-11-19 Thread Jim Ursetto
On Nov 19, 2011, at 11:01 AM, Achint Sandhu wrote: The cleanest option I have found so far is the objective-C extension for Chicken Scheme (http://wiki.call-cc.org/eggref/4/objc), which I'm having trouble installing on 10.7. A quick google search reveals

Re: [Chicken-users] Chicken objc egg on OSX Lion

2011-11-19 Thread Jim Ursetto
On Nov 19, 2011, at 4:05 PM, Achint Sandhu wrote: Is there something that would prevent the support for Objective C 2.0 or is it the case that no one has got around to it yet ? No, not as far as I know -- it's just a matter of coding. It's just that no one has been interested enough to do

Re: [Chicken-users] BUG, list-ref bug found in chicken version 4.7.0

2011-11-21 Thread Jim Ursetto
It's also fixed as of 4.7.0.1-st (commit faa97a3) On Nov 21, 2011, at 4:39 AM, Christian Kellermann wrote: Hi Markus! Thanks for your detailed report. * Markus Klotzbuecher m...@marumbi.de [21 11:22]: #;1 (list-ref 2 '(1 5 2)) Segmentation fault xudifsd@xudifsd-laptop:~$ csi -v

Re: [Chicken-users] Correct behavior of SRFI-1 any

2011-11-28 Thread Jim Ursetto
On Nov 28, 2011, at 9:01 PM, Nick Zarr wrote: I've been testing my implementation against Chicken for correctness and here's what I get on Chicken: #;2 (any (lambda (x) (if (even? x) x)) '(1 2 3)) #;3 (any (lambda (x) (even? x)) '(1 2 3)) #t #;4 (any even? '(1 3 5)) #f For #3 and #4

Re: [Chicken-users] unbound variable: sxml:sxml-xml

2011-12-07 Thread Jim Ursetto
On Dec 7, 2011, at 10:41 AM, Peter Bex wrote: Actually, the main reason is that SSAX is a horrible mess which has many completely unrelated procedures all mixed together. There are several egg that provide different sets of procedures from the SSAX project. Most eggs include all files from

Re: [Chicken-users] Dynamic wind problem in with-input-from-file

2011-12-20 Thread Jim Ursetto
Thanks for noticing this. It may also happen if you catch an exception raised in the body. We applied a fix to the master branch and also to stability (and 4.7.0.4-st has now been released). Jim On Dec 19, 2011, at 9:40 AM, obscurolocon...@googlemail.com wrote: I tried the following:

Re: [Chicken-users] Installing on Mac OS 10.7.3

2012-02-14 Thread Jim Ursetto
Use these instructions instead, from the stability branch. http://code.call-cc.org/cgi-bin/gitweb.cgi?p=chicken-core.git;a=blob_plain;f=README;hb=1144d803cc214758be60ba09ae4de34ebff7cb63 In short, $ make PLATFORM=macosx C_COMPILER=gcc-4.2 This works with XCode 4.2 on Lion. If this works without

Re: [Chicken-users] Installing on Mac OS 10.7.3

2012-02-14 Thread Jim Ursetto
On Feb 14, 2012, at 9:26 AM, Jim Ursetto wrote: This works with XCode 4.2 on Lion. If this works without hanging, you're done. If you have already upgraded to XCode 4.3... Oops. I meant it works until XCode 4.2, and if you upgraded to XCode 4.2 already (which you probably have) then you

Re: [Chicken-users] Installing on Mac OS 10.7.3

2012-02-14 Thread Jim Ursetto
Ursetto zbignie...@gmail.com wrote: On Feb 14, 2012, at 9:26 AM, Jim Ursetto wrote: This works with XCode 4.2 on Lion. If this works without hanging, you're done. If you have already upgraded to XCode 4.3... Oops. I meant it works until XCode 4.2, and if you upgraded to XCode 4.2 already

Re: [Chicken-users] Installing on Mac OS 10.7.3

2012-02-15 Thread Jim Ursetto
! Cheers, James On Wed, Feb 15, 2012 at 5:16 AM, Jim Ursetto zbignie...@gmail.com wrote: Check out the latest code, apply the ticket patches, make a boot chicken, then build chicken with the chicken-boot binary. Normal procedure in other words when building from git. On Feb 14, 2012

Re: [Chicken-users] Installing on Mac OS 10.7.3

2012-02-15 Thread Jim Ursetto
that comes with Chicken? Ie, can I run something like: scheme myfile.scm chicken myfile.scm bok myfile.scm ? Thanks, James On Wed, Feb 15, 2012 at 4:21 PM, Jim Ursetto zbignie...@gmail.com wrote: Ok, then also add ARCH=x86-64 like you had originally. It was my understand

Re: [Chicken-users] Installing on Mac OS 10.7.3

2012-02-16 Thread Jim Ursetto
Assuming you installed it with make install ;) then it's in /usr/local/bin by default, so make sure that's in your path. On Feb 16, 2012, at 2:41 AM, James Abbott wrote: Jim Toby: thanks for your help. My system doesn't seem to recognize the csi command: $ csi -s test.scm -bash: csi:

[Chicken-users] llvm patches integrated (was: Installing on Mac OS 10.7.3)

2012-02-18 Thread Jim Ursetto
this out if interested. At the least, it seems to speed up the build process, along with the chicken compiler. Jim On Feb 14, 2012, at 9:26 AM, Jim Ursetto wrote: If you have already upgraded to XCode 4.2, then they have removed plain gcc completely and this will fail. In this case you

Re: [Chicken-users] case vs. eq? - just curious ....

2012-03-02 Thread Jim Ursetto
eqv?, to be exact. Your case statement works fine for me, with for example (comp-text '=). (eq? comp =) compares against the value of the procedure =, whereas the case compares against the symbol =. So you are doing two different comparisons. You can use ,x (case ...) at the REPL to see

Re: [Chicken-users] case vs. eq? - just curious ....

2012-03-02 Thread Jim Ursetto
On Mar 2, 2012, at 7:57 PM, Matt Welland wrote: I'm trying to convert a comparison operator to the equivalent text. These are not symbols. I think case treats the target list as if it was created with a quote: '(). That's what case does. You want `select`:

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

2012-03-06 Thread Jim Ursetto
On Mar 6, 2012, at 10:31 AM, Kristian Lein-Mathisen wrote: (define %make-point (foreign-primitive void (((c-pointer (struct point)) dest) (float x) (float y)) #END dest-x = x; dest-y = y; C_return(); END )) (define (make-point x y)

Re: [Chicken-users] Regexp egg compilation error

2012-03-12 Thread Jim Ursetto
On Mar 12, 2012, at 10:19 PM, Kon Lovett wrote: I think the extension is called regex: http://wiki.call-cc.org/eggref/4/regex BTW, this is for temporary backwards-compatibility. New code should use irregex: http://wiki.call-cc.org/man/4/Unit%20irregex Not just back-compat, regex also

Re: [Chicken-users] Posix realpath

2012-04-01 Thread Jim Ursetto
On Apr 1, 2012, at 11:15 AM, Matt Welland wrote: Note that normalize-path is not the same as realpath and that although realpath would be nice to have calling the system realpath works just fine and so this is a suggestion and not a request What is the system realpath? Jim

Re: [Chicken-users] Posix realpath

2012-04-01 Thread Jim Ursetto
On Apr 1, 2012, at 12:22 PM, Jim Ursetto wrote: On Apr 1, 2012, at 11:15 AM, Matt Welland wrote: Note that normalize-path is not the same as realpath and that although realpath would be nice to have calling the system realpath works just fine and so this is a suggestion and not a request

Re: [Chicken-users] Posix realpath

2012-04-01 Thread Jim Ursetto
In case it helps, I've added resolve-pathname to the posix-extras egg in version 0.1.2. On Apr 1, 2012, at 12:54 PM, Jim Ursetto wrote: On Apr 1, 2012, at 12:22 PM, Jim Ursetto wrote: On Apr 1, 2012, at 11:15 AM, Matt Welland wrote: Note that normalize-path is not the same as realpath

Re: [Chicken-users] Emacs and Chicken on Windows

2012-04-03 Thread Jim Ursetto
Cool. You might also want to have a look at http://synthcode.com/wiki/scheme-complete. On Apr 3, 2012, at 10:06 PM, Daniel Leslie wrote: Perhaps of some interest is the work I've put into my Emacs scripts for Chicken. I've had consistent problems with SLIME and Chicken on Windows, which

Re: [Chicken-users] ANN: lazy-seq, a port of Clojure's lazy sequence API

2012-06-04 Thread Jim Ursetto
On Jun 3, 2012, at 5:06 AM, Christian Kellermann wrote: * Peter Danenberg p...@roxygen.org [120603 11:30]: Quoth Christian Kellermann on Prickle-Prickle, the 8th of Confusion: Which version of chicken is this? I get the arity error for both csi and compiled version for chicken master. It's

Re: [Chicken-users] Unbounded stack growth

2012-07-11 Thread Jim Ursetto
It seems that compiling with clang (llvm 3.0) prevents the crash, at least for values up to 20 million, on OS X and Linux. Any higher and I start to hit swap. I don't know why this works. Plain gcc on linux, and llvm-gcc (llvm 2.7) on OS X 10.7, do crash at about 600k here w/ stack ulimit 8M.

Re: [Chicken-users] Unbounded stack growth

2012-07-11 Thread Jim Ursetto
On Jul 11, 2012, at 2:47 PM, Marc Feeley wrote: I'm pretty sure LLVM is simply implementing the tail-call itself. So there is no stack growth in the unwinding phase. That is possible. We do currently disable __attribute__((noreturn)) on functions across the board when using clang, and last

Re: [Chicken-users] checking whether a C macro is defined

2012-08-16 Thread Jim Ursetto
Hi, That should be foreign-declare for the whole thing, not foreign-code. Or use # ... # which is shorthand for foreign-declare. # #include foo.h #ifndef FOO #define FOO -1 #endif # Another option is the feature-test egg, which is useful for complex cases, and doesn't require that you redefine

Re: [Chicken-users] Building Chicken on OS X Lion

2012-08-31 Thread Jim Ursetto
I hope this is not a problem with XCode 4.4.1. I haven't upgraded from XCode 4.3.2 yet. Anyone else have a successful build with 4.4.1? In the meantime if you have some time to kill, you could try building with C_COMPILER=clang. I doubt this will make a difference though. I will try to upgrade

Re: [Chicken-users] Building Chicken on OS X Lion

2012-08-31 Thread Jim Ursetto
On Aug 31, 2012, at 3:36 PM, Shawn Rutledge wrote: I just built the 4.8.0 rc3 on Lion with xcode 4.3.3, using clang, like this: CC=clang C_COMPILER=clang make PLATFORM=macosx install Will csc remember to use clang then? Doesn't seem to be any trouble to chicken-install extensions,

Re: [Chicken-users] Debian chicken 4.7.0.6 : tests/finalizer-error-test.scm fails

2012-09-13 Thread Jim Ursetto
Claude, I'm guessing you didn't install chicken first prior to running the tests. The finalizer error only occurs with older chickens. I can't reproduce the problem with make PLATFORM=blah PREFIX=$PWD/tmp all install check On Sep 13, 2012, at 8:40 AM, Claude Marinier wrote: IBM ThinkCenter,

Re: [Chicken-users] Building Chicken on OS X Lion

2012-09-13 Thread Jim Ursetto
Hans, I've verified that chicken 4.7.0.6 builds, installs and tests out correctly on Lion with Xcode 4.4.1. It works fine with either gcc or clang. Here is my test line: make PLATFORM=macosx PREFIX=$PWD/inst C_COMPILER=clang all install check From your paste, it looks like you're not

Re: [Chicken-users] chicken-4.8.0rc4 on Solaris / SPARC - shell and rt lib issues

2012-09-18 Thread Jim Ursetto
On Sep 18, 2012, at 10:32 AM, Claude Marinier wrote: Hi, Just finished building 4.8.0 rc4 on Solaris 10 (SPARC) with only a few hacks. The check runs and finishes with this. done. make[1]: Leaving directory

Re: [Chicken-users] Using csc with clang

2012-10-03 Thread Jim Ursetto
Upgrade to 4.7.0.6 or 4.8.0, the fix to work with clang wasn't in until after 4.7.0. 4.6.0 is very old at this point. Also I would build chicken with make PLATFORM=linux C_COMPILER=clang and then all your eggs and code will automatically be built with clang. I doubt it is safe to use -cc

Re: [Chicken-users] BUG: posix#string-time

2012-11-03 Thread Jim Ursetto
It uses strptime internally which seems pretty inconsistent across platforms. %z is technically not a valid format specifier, but glibc and some other libs support it. E.g. your examples actually all work on OS X 10.7. But they fail completely on NetBSD 5.1. You didn't mention your platform

Re: [Chicken-users] Browsing the Chicken wiki offline

2012-11-27 Thread Jim Ursetto
On Nov 20, 2012, at 11:24 AM, John Magolske wrote: Hi, I installed the chickadee, chicken-doc chicken-doc-admin eggs on my laptop and am now enjoying being able to browse the documentation while not connected to the internet. The svn repository downloaded in the process: % cd

Re: [Chicken-users] undefined reference to `C_numbers_toplevel'

2012-11-27 Thread Jim Ursetto
On Nov 23, 2012, at 3:59 PM, Peter Bex wrote: On Fri, Nov 23, 2012 at 12:27:29PM -0800, Miguel Fernandez wrote: I get the following error: main.o: In function `C_toplevel': main.c:(.text+0x1c2): undefined reference to `C_numbers_toplevel' collect2: ld returned 1 exit status

Re: [Chicken-users] JQuery in Chickadee

2012-12-10 Thread Jim Ursetto
I'll look at it, it probably makes sense to use a local copy for the default config. What it should really do is fall back to the local copy if the internet copy is inaccessible. This is not difficult but there is an internal issue currently preventing it. Jim On Dec 9, 2012, at 12:24 PM,

Re: [Chicken-users] JQuery in Chickadee

2012-12-10 Thread Jim Ursetto
Okay, chickadee 0.10.2 uses local jquery for the default config. Jim On Dec 10, 2012, at 9:14 PM, Jim Ursetto wrote: I'll look at it, it probably makes sense to use a local copy for the default config. What it should really do is fall back to the local copy if the internet copy

Re: [Chicken-users] Browsing the Chicken wiki offline

2012-12-13 Thread Jim Ursetto
On Dec 13, 2012, at 1:47 AM, John Magolske wrote: Thanks for writing up these explanations options, Jim. I was going to give your suggestions a try, but wanting to keep intra-wiki links working and also wanting to learn how to use qwiki for other purposes, I finally set aside some time and

Re: [Chicken-users] Browsing the Chicken wiki offline

2012-12-13 Thread Jim Ursetto
On Dec 13, 2012, at 11:12 AM, Jim Ursetto wrote: On Dec 13, 2012, at 1:47 AM, John Magolske wrote: - Some intra-wiki links are absolute, for example under /wiki/menu there's [[http://wiki.call-cc.org/eggs|Eggs]] which I changed to [[eggs|Eggs]] so as to be able to navigate to it offline

Re: [Chicken-users] MacOSX setup-helper install error

2012-12-27 Thread Jim Ursetto
Normally indicates the install path is too long; if so it is surprising the build and install of Chicken itself even worked. Try one of these fixes: 1) Recompile and reinstall chicken after changing this line in Makefile.macosx: LINKER_LINK_SHARED_DLOADABLE_OPTIONS += -Wl,-headerpad

Re: [Chicken-users] MacOSX setup-helper install error

2012-12-27 Thread Jim Ursetto
as thorough as I might have been testing them. -Alan On Thu, Dec 27, 2012 at 01:13:20PM -0600, Jim Ursetto wrote: Normally indicates the install path is too long; if so it is surprising the build and install of Chicken itself even worked. Try one of these fixes: 1) Recompile and reinstall

Re: [Chicken-users] Building 32-bit chicken scheme on OS X

2013-01-10 Thread Jim Ursetto
Dani, ASSEMBLER_OPTIONS is missing: make PLATFORM=macosx ARCH=x86 C_COMPILER_OPTIONS=-no-cpp-precomp -fno-strict-aliasing -fwrapv -fno-common -DHAVE_CHICKEN_CONFIG_H -m32 ASSEMBLER_OPTIONS=-m32 LINKER_OPTIONS=-m32 The resulting chicken gives me a bus error though and I don't know how to fix

[Chicken-users] Chicken 4.8.0.1 released

2013-01-17 Thread Jim Ursetto
Hi all, Chicken 4.8.0.1 is now available for download from the usual place: http://code.call-cc.org/releases/4.8.0/chicken-4.8.0.1.tar.gz For what's new, see http://code.call-cc.org/releases/4.8.0/NEWS-4.8.0.1 The 4.8.0.x releases reside on the stability/4.8.0 branch in git, which you can

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

2013-01-31 Thread Jim Ursetto
FYI, the docs for endian-blob don't indicate the ordering of the endian blob after type-endian_blob. From reading the code it's MSB and there's an optional mode arg to these procedures. Should this be documented? Similarly the optional mode argument to byte-blob-endian-blob is documented as

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

2013-01-31 Thread Jim Ursetto
On Jan 28, 2013, at 2:53 PM, Hugo Arregui wrote: 3) To read/write float/double numbers (in ieee754) i'm using endian-blob egg (here[4]), it's there any alternative without implementing the full float/double-binary logic (which seems quite complicated)? Maybe I'm overlooking something, but

Re: [Chicken-users] [patch] remove the initial check on directory existance

2013-02-02 Thread Jim Ursetto
I am positive this is a case where the documentation was written to explain an implementation artifact. That note wasn't added until 11 months ago ... by Mario. The current implementation returns foo if a file foo (not just a directory foo) already exists. No one is ever going to check this

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

2013-02-02 Thread Jim Ursetto
What version of chicken, and if 4.8.0 for example could you try 4.7? On Feb 2, 2013, at 11:51, Arthur Maciel arthurmac...@gmail.com wrote: Hello! I don't know if it is related to Ivan's problem, but when I compile and run this code: (use srfi-69) (define NODES 25) (define EDGES

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

2013-02-02 Thread Jim Ursetto
On Feb 2, 2013, at 3:46 PM, Kristian Lein-Mathisen wrote: 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. It's a hash table with 250,000 entries and 1,000 items

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

2013-02-02 Thread Jim Ursetto
after the heap exceeds 4GB, maybe indicating some 32-bit sizes left laying around in the code. Jim On Feb 2, 2013, at 7:18 PM, Jim Ursetto wrote: On Feb 2, 2013, at 3:46 PM, Kristian Lein-Mathisen wrote: I'm getting the same result here, when I run it through csc. When I run it through csi

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

2013-02-02 Thread Jim Ursetto
On Feb 2, 2013, at 8:06 PM, Jim Ursetto wrote: Uh oh, we've hit an actual bug now. Although we can get nodes up to 85000 by increasing max heap size from 2GB to 8GB, it appears to bomb after the heap exceeds 4GB, maybe indicating some 32-bit sizes left laying around in the code. Hmm, could

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

2013-02-02 Thread Jim Ursetto
1042.938s CPU time, 50.714s GC time (major), 250066522 mutations, 44/851838 GCs (major/minor) [debug] forcing finalizers... [debug] application terminated normally On Feb 2, 2013, at 8:06 PM, Jim Ursetto wrote: (bug found -- tl;dr see end of message) Figured it out: you're exceeding the default

Re: [Chicken-users] [patch] remove the initial check on directory existance

2013-02-03 Thread Jim Ursetto
Well, there is another option, which is to put an atomic implementation in, say, the posix-extras egg, and then the user may import it under a different name or overwrite posix's create-directory with it. On Feb 3, 2013, at 9:26 AM, Peter Bex wrote: On Sun, Feb 03, 2013 at 10:22:45AM -0500,

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

2013-02-04 Thread Jim Ursetto
On Feb 4, 2013, at 2:28 PM, Felix wrote: Perhaps, but I really don't see a problem of allowing a limit on heap allocation in the runtime system. I think a segfault is an appropriate response to OOM, but I wonder if it's possible to panic() instead if the heap size can't be increased as

Re: [Chicken-users] new eggs

2013-02-16 Thread Jim Ursetto
Holy cow! Great job. Jim On Feb 16, 2013, at 8:26, Andrei Barbu and...@0xab.com wrote: Hi, I've got a bunch of eggs that are ready to go. These have documentation and are meant as end-user libraries: nondeterminism - carry out nondeterministic computations with a more flexible

Re: [Chicken-users] (file-select ...) and compiler warnings

2013-02-17 Thread Jim Ursetto
On Feb 17, 2013, at 4:18 PM, J Altfas wrote: Hello, Using 'file-select' as a sub-second sleep procedure works without hitch under csi: (define (sleeper tm) (let ((currms (current-milliseconds))) (let-values (((_ __) (file-select #f #f tm))) (print (- (current-milliseconds)

Re: [Chicken-users] (file-select ...) and compiler warnings

2013-02-18 Thread Jim Ursetto
On Feb 18, 2013, at 3:58 AM, J Altfas wrote: Certainly agree that leaving out usleep was an oversight, considering how simple it is to include it. While I'm pretty sure many of the posix functions are not optimum in an srfi-18 threaded environment, file-select, sleep, and friends are still

Re: [Chicken-users] posix-extras sleep

2013-02-19 Thread Jim Ursetto
On Feb 18, 2013, at 2:36 PM, Jim Ursetto wrote: I would be ok with adding usleep to the posix-extras egg if you want. I'm not sure if it should be a separate function or just override (sleep) to accept fractional values. I'm thinking the latter. Although not exactly what you asked

Re: [Chicken-users] posix-extras sleep

2013-02-19 Thread Jim Ursetto
Hmm, I just realized scheduler.scm relies on nanosleep(3) on UNIX, so I guess it is safe to use in posix-extras as well. I'll change posix-extras to use nanosleep shortly. On Feb 19, 2013, at 2:24 AM, Jim Ursetto wrote: On Feb 18, 2013, at 2:36 PM, Jim Ursetto wrote: I would be ok

Re: [Chicken-users] posix-extras sleep

2013-02-20 Thread Jim Ursetto
On Feb 20, 2013, at 3:57, J Altfas p...@bmedctr.com wrote: On Tues, 19 Feb 2013 15:13:30 -0600 Jim Ursetto wrote: Hmm, I just realized scheduler.scm relies on nanosleep(3) on UNIX, so I guess it is safe to use in posix-extras as well. I'll change posix-extras to use nanosleep

Re: [Chicken-users] New string manipulation module

2013-02-20 Thread Jim Ursetto
I think it sounds good as an official egg; although there's a lot of overlap with SRFI-13 it's not bad to have another API. The main thing I'd suggest if making it official is that, as a port of the s library, to name it something like s or s-strings instead of strings, since the latter sounds

Re: [Chicken-users] New string manipulation module

2013-02-21 Thread Jim Ursetto
On Feb 21, 2013, at 1:50 PM, Jörg F. Wittenberger wrote: On Feb 20 2013, Mario Domenech Goulart [well, actually, I, Jim] wrote: join-strings, and string-match or match-string. Another is to keep the s- prefix, which is a natural grouping. Or you could require the user to prefix on import,

Re: [Chicken-users] New string manipulation module

2013-02-21 Thread Jim Ursetto
On Feb 21, 2013, at 2:04 PM, John Cowan wrote: I've proposed a new type of import specifier to go with prefix, namely drop-prefix. Rather than prefixing all names, this removes the prefix from any names that have it. This would be a Good Thing to add to Chicken; Chibi already has it, and it

Re: [Chicken-users] Access to wiki

2013-03-08 Thread Jim Ursetto
John, I tried in a bunch of different browsers (google search Chicken Scheme, click on result associated with wiki.call-cc.org/manual/index, and still can't reproduce the problem: OS X 10.7, Safari 6 OS X 10.7, Firefox 19 Windows XP, IE 6.0 Windows XP, IE 8.0 Windows XP, Firefox 3.0 They all

Re: [Chicken-users] local egg documentation (experimental)

2013-04-03 Thread Jim Ursetto
Hi Matt. On Apr 2, 2013, at 4:13 PM, Matt Gushee wrote: I wonder if there is a program that converts Markdown to Chicken Wiki format? There is not, mostly because markdown is not really extensible and doesn't support marking up procedure identifiers and so on (without terrible hacks).

Re: [Chicken-users] Civet egg ready for release

2013-04-03 Thread Jim Ursetto
Two reasons: 1) You didn't tag version 0.2.1 2) Your tags say release-0.2 instead of 0.2, so you have to change (uri targz https://github.com/mgushee/{egg-name}/tarball/{egg-release};) to (uri targz https://github.com/mgushee/{egg-name}/tarball/release-{egg-release};) I think this should work.

[Chicken-users] egg documentation with subpages

2013-04-15 Thread Jim Ursetto
Hi, It is now possible to break up egg documentation into several pages. This was previously possible on the wiki, but is now supported by chicken-doc as well. Procedure: instead of creating a file, create a directory and populate it with subpage files. To document the main page, call the

Re: [Chicken-users] Missing file-type in posix import

2013-04-24 Thread Jim Ursetto
I also pushed this to stability. Thanks. Jim On Apr 24, 2013, at 2:40 AM, Christian Kellermann wrote: Hi Jules, * J Altfas p...@bmedctr.com [130424 08:52]: When I was trying to use (file-type ...) in a compiled module, it was a big surprise when csc instantly ground to a halt, issuing an

Re: [Chicken-users] Passing floats to and from foreign functions

2013-05-11 Thread Jim Ursetto
Hi pluijzer ., You did not declare a prototype in test.scm (technically, test.c) for the functions in wrapper.c. I believe return values default to int if there is no prototype, and the float arg is promoted to double, but I'm not positive. Anyway, simply add the following to the top of

Re: [Chicken-users] [Chicken-hackers] [PATCH] Make library tests compare numbers within epsilon

2013-05-29 Thread Jim Ursetto
I am curious why this happens though. The only thing I could think of was the number is being constant folded in one case or being computed in one case via a hardware intrinsic instead of libm in the other, but the generated C code looks identical in both cases. Perhaps some previous register

<    1   2   3   4   >