Re: [Chicken-users] Re: seg fault

2010-12-01 Thread Jim Ursetto
Maybe! I'll check it out. On Dec 1, 2010, at 18:47, Thomas Chust wrote: > 2010/12/2 Jim Ursetto : >> No, this is not a kernel issue but a gcc output issue. >> >> On Dec 1, 2010, at 7:48, David Dreisigmeyer wrote: >> >>> Would this help(?): >>

Re: [Chicken-users] redefining cons,car,cdr in SICP

2010-12-03 Thread Jim Ursetto
On Dec 3, 2010, at 11:57, Hans Nowak wrote: > > Chicken's internals (entrails?) That's the spirit!___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] New salmonella features

2010-12-16 Thread Jim Ursetto
On Sun, Oct 24, 2010 at 11:26, Mario Domenech Goulart wrote: > For those using the test egg (http://wiki.call-cc.org/eggref/4/test), > here's a simple trick to set the exit status according to the existence > of test failures: > >  (unless (zero? (test-failure-count)) (exit 1)) In fact, you can j

Re: [Chicken-users] Debugging running code

2011-01-04 Thread Jim Ursetto
. Maybe someone else has the answer. On Jan 4, 2011, at 21:04, Jim Ursetto wrote: > Tim, > One option is to (use posix). This will install an interrupt handler which > traps control-c, aborting the current computation and returning you to the > REPL. You cannot continue the

Re: [Chicken-users] Re: sqlite3 egg patches for chicken experimental branch

2011-01-12 Thread Jim Ursetto
On Wed, Jan 5, 2011 at 21:05, Thomas Chust wrote: > the patch replacing noop by void is fine, of course. Concerning the > change of thread-sleep!/ms I have the same doubts as you: It should > really be possible to sleep less than a second waiting for database > locks, so the computation inside thr

Re: [Chicken-users] Re: sqlite3 egg patches for chicken experimental branch

2011-01-13 Thread Jim Ursetto
On Jan 13, 2011, at 4:11, Felix wrote: > From: Jim Ursetto > Subject: Re: [Chicken-users] Re: sqlite3 egg patches for chicken experimental > branch > Date: Wed, 12 Jan 2011 23:16:21 -0600 >> I am wondering why milliseconds->time is deprecated in the first >> pl

Re: [Chicken-users] The following code causes a segfault in the chicken interpreter (forwarded)

2011-01-17 Thread Jim Ursetto
Works fine on Ubuntu 10.10, csi 4.5.2 (once you change "syntax rules" to "syntax-rules"). 4.2.0 is pretty ancient. > -- Forwarded message -- > From: Tom Ostojich > > Using csi version 4.2.0 on GNU/Linux (Ubuntu 10.04) built for x86 > causes a segfault when the following code is e

Re: [Chicken-users] readline egg (OS X 10.6.6 / Chicken 4.6.0)

2011-01-26 Thread Jim Ursetto
David, The readline egg build system (which determines which libraries to use for readline) has been rewritten around 9,996 times and I think a recent change broke it, deleting the code which honored CSC_OPTIONS. I have checked in a fix (again...) to trunk. If you have access, can you try it (wi

Re: [Chicken-users] How can I get an offline version of the manual

2011-02-07 Thread Jim Ursetto
In addition you can use the command-line version of manual-labor directly to build the manual from a Chicken snapshot, or as shown below, a copy of the manual from the wiki: $ chicken-install manual-labor $ svn co --username anonymous --password "" http://code.call-cc.org/svn/chicken-eggs/wiki/man

Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type)

2011-02-12 Thread Jim Ursetto
C_word is the fundamental scheme object type. The underlying type of int or long is just used to make the width of this type 32-bit or 64-bit, and the actual representation is indicated by a type tag (some subset of bits in that word). So it actually can return an arbitrary result. See Data R

Re: [Chicken-users] Chicken Scheme 3 extension dependency problem

2011-02-14 Thread Jim Ursetto
If only the Chicken 4 versions added a dependency on simple-logging, why is it a problem for Chicken 3? On Feb 14, 2011, at 10:58, Paul Nelson wrote: > I have been working on installing svnwiki using Chicken Scheme 3. > Unfortunately, several of the extensions (Eggs) appear to have been update

Re: [Chicken-users] Chicken Scheme 3 extension dependency problem

2011-02-15 Thread Jim Ursetto
simple-logging dependency has been removed from the Scheme 3 Eggs. I may try > an svnwiki install again eventually. > > On Mon, Feb 14, 2011 at 1:12 PM, Jim Ursetto wrote: > If only the Chicken 4 versions added a dependency on simple-logging, why is > it a problem for Chicken 3?

Re: [Chicken-users] readline egg (OS X 10.6.6 / Chicken 4.6.0)

2011-03-04 Thread Jim Ursetto
On Wed, Jan 26, 2011 at 18:33, Jim Ursetto wrote: > The readline egg build system (which determines which libraries to use > for readline) has been rewritten around 9,996 times and I think a > recent change broke it, deleting the code which honored CSC_OPTIONS. > > I have checked

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 specif

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 wrote: > Hello, > > I'm writing a program that uses xlib and have hit a qu

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 http://lis

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 (o

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 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. > How

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

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: /usr/lib/libchicken.a(library-st

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 mes

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

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 "chick

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 probab

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

2011-07-05 Thread Jim Ursetto
On Jul 5, 2011, at 2:52 PM, Claude Marinier wrote: > Installed the PsTk egg with chicken-install but the simple hello world > program fails with this error message. Hi Claude. Would you mind trying the attached patch? Jim Index: pstk.scm ===

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

2011-07-05 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 ( > http://lists.gnu.org/archive/html/chicken-

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 und

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

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

2011-08-20 Thread Jim Ursetto
On Aug 20, 2011, at 17:32, Alaric Snell-Pym 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 thought, and can ta

Re: [Chicken-users] lightweight inheritance

2011-08-27 Thread Jim Ursetto
On Aug 27, 2011, at 11:26 PM, John Cowan wrote: > Felix scripsit: >> http://wiki.call-cc.org/egg/protobj > > Its only disadvantage is that it's under the GPL. LGPL. Jim ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/

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 wrote: > >> Does anyone have

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 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

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 s

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 lis

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.tbz

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 swit

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

Re: [Chicken-users] sandbox egg: C_emit_trace_info

2011-10-02 Thread Jim Ursetto
Felix applied in sandbox 1.8, thanks! 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 of: > > C_emit_eval_tra

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.or

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)) >

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 > http://lists.g

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 [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 > > Fo

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 fro

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 proba

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

2012-02-14 Thread Jim Ursetto
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, at 19:23, Stephen Eilert wrote: > > On Tue, Feb 14, 2012 at 12:28 PM, Jim Ursetto wrote

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

2012-02-15 Thread Jim Ursetto
version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00) > > > Seems like I'll need to build from git anyway! > > Cheers, > James > > > > On Wed, Feb 15, 2012 at 5:16 AM, Jim Ursetto wrote: > Check out the latest code, apply the ticke

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

2012-02-15 Thread Jim Ursetto
> > Now, is there a command-line tool for running Scheme files 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

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

2012-02-15 Thread Jim Ursetto
by default. I thought on 10.7 that older C2Ds ran a 64-bit kernel, so the issue wouldn't be triggered. However James' experience shows that's not the case, and the workaround is indeed necessary on 10.7. On Feb 15, 2012, at 11:46 AM, Kon Lovett wrote: > > On Feb 15, 2012

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: c

[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 ca

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 wha

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`: http://api.call-cc.org/doc/ch

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)) > #< 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

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 i

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 tha

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, whi

Re: [Chicken-users] define-foreign-enum-type

2012-04-26 Thread Jim Ursetto
define-foreign-enum-type also defines a bunch of other stuff that you are skipping over in your version that compiles, such as garmonbozia->int conversions. Specifically if you expand the macro you will find it expands to something like (define-foreign-type garmonbozia "garmonbozia") (define-fo

Re: [Chicken-users] Does chicken include a C compiler (ie. you don't have to install a seperate compiler)?

2012-05-09 Thread Jim Ursetto
clang and llvm didn't work until 4.8.0 (or 4.7.0.5-st) so that can go in the wiki once 4.8.0 is released Until then the enterprising user can pretty easily figure it out, and the non-enterprising user does not need to care On May 3, 2012, at 12:03 PM, John Cowan wrote: > Christian Kellermann s

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 [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 a v

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

2012-06-25 Thread Jim Ursetto
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 guys! > > It's me again, still going on about struct-by-value

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. Ba

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 la

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 #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 any

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, a

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 providin

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 `/usr/local/src/chic

Re: [Chicken-users] Comprehensive documentation rewrite

2008-02-12 Thread Jim Ursetto
We /already had this/. In the distant mists of time, we had something called 'eggdoc' which could convert to svnwiki format and Texinfo for proper navigation. But it was too hard to use, and it made community participation more difficult. It is an evolutionary dead end. It was a good decision t

Re: [Chicken-users] documentation issues...

2008-02-14 Thread Jim Ursetto
Elf, Not to prolong this discussion further, but w3m is lightweight and automatically shells out to your editor of choice for forms, and works fine with the wiki. I'm sure elinks works similarly. On 2/14/08, Elf <[EMAIL PROTECTED]> wrote: > in a brief response to other posts: im not on a machin

Re: [Chicken-users] documentation issues...

2008-02-14 Thread Jim Ursetto
Thanks for the script Peter, I had been looking for a way to generate local html from svnwiki source for ages (particularly while developing eggdoc-svnwiki). The complexity and dependencies weren't worth figuring it out, though. To this point w3m or cut/paste has worked acceptably. On 2/14/08, P

Re: [Chicken-users] documentation issues...

2008-02-14 Thread Jim Ursetto
Select all in the preview window, cut and paste to Emacs or Vim, edit, and paste the text back to the wiki. I do it all the time, and it solves every one of these issues. (Modern browsers handle most of them, too.) You can also use `svn up` for the import step, but the preview window is still prefe

[Chicken-users] wiki spam merging issue

2008-02-15 Thread Jim Ursetto
Hi, It appears that authorized, legitimate wiki edits to random pages are causing simultaneous commits to the 'index' page, which consists of spam in the form of an SVN merge conflict. Check `svn log index` and notice that quite a few recent commits follow this pattern. For example, svn diff -r8

Re: [Chicken-users] wiki spam merging issue

2008-02-16 Thread Jim Ursetto
This makes sense. However, since spam is apparently bypassing authorization --the index page can't be edited anonymously--and also logging, I was concerned there is a more critical underlying problem. It might even affect more than the index page. On 2/16/08, felix winkelmann <[EMAIL PROTECTED]

Re: [Chicken-users] Bug in SRFI-13 lib?

2008-02-17 Thread Jim Ursetto
On 2/16/08, Kon Lovett <[EMAIL PROTECTED]> wrote: > On Feb 16, 2008, at 6:55 PM, Matt Gushee wrote: > > > Nonetheless, I've gotten accustomed to a world where datatypes are > > used very precisely to model the semantics of your problem domain. > > So when I see a function behaving in a way that imp

Re: [Chicken-users] egg documentation

2008-02-17 Thread Jim Ursetto
Just a comment: in eggdoc the name of the procedure / syntax etc. is taken as a plain string -- e.g. "(stream-xcons a b)". For HTML output, it is used verbatim. For texinfo output, which has special directives to mark functions, this input is deconstructed into procedure name and arguments using

Re: [Chicken-users] aliases in the wiki

2008-02-17 Thread Jim Ursetto
I was wondering if these could be placed in a separate namespace (e.g. http://chicken.wiki.br/sym/stream-xcons or http://chicken.wiki.br/sym:stream-xcons). The reason being that with an influx of procedure names the potential for collision goes way up with a flat namespace. If this could be done

Re: [Chicken-users] new egg etiquette

2008-02-17 Thread Jim Ursetto
Yes. The toplevel directory is for release 2 only, and will probably be renamed later to release/2, but has not yet been to retain backwards compatibility. On 2/17/08, Shawn <[EMAIL PROTECTED]> wrote: > Should all new eggs be created in chicken-eggs/release/3 instead of > the toplevel chicken-egg

Re: [Chicken-users] egg documentation

2008-02-17 Thread Jim Ursetto
returning: ... On 2/17/08, Jim Ursetto <[EMAIL PROTECTED]> wrote: > For example, ... . ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] egg documentation

2008-02-17 Thread Jim Ursetto
On 2/17/08, Ivan Raikov <[EMAIL PROTECTED]> wrote: > Also, it is not clear to me how to convert ... symbol-table formatting > elements to wiki format. Ivan, The symbol-table is essentially a nod to aesthetics--it just alters the appearance of the table (mainly, the 'symbol' column is monospaced).

Re: [Chicken-users] egg documentation

2008-02-18 Thread Jim Ursetto
I'll also update eggdoc-svnwiki with the new syntax (or whatever final form it takes) once that gets put in the wiki. And in that vein: The four types of definitions in eggdoc are "procedure", "macro", "record" and "parameter", with an extra "signature" type which is used when you want to name a

Re: [Chicken-users] egg documentation

2008-02-19 Thread Jim Ursetto
and look good. The wiki pages use either '''procedure:''' (proc a b) or [procedure] (proc a b) depending on the author, so the rendering is up to you. On 2/19/08, Alejandro Forero Cuervo <[EMAIL PROTECTED]> wrote: > > eggdoc:doctype > Is this meant to be used as in "The procedure s

Re: [Chicken-users] Topics and a main index (was: egg documentation)

2008-02-19 Thread Jim Ursetto
Your topic idea is interesting. My opinion, for what it's worth, is that it imposes too much on the user when required for every definition. Instead, if any topic indexing is to be done in the future, I think the topics could be drawn from the egg tags themselves. For example, it's a safe bet th

Re: [Chicken-users] egg documentation

2008-02-20 Thread Jim Ursetto
On 2/19/08, Alejandro Forero Cuervo <[EMAIL PROTECTED]> wrote: > Alright. I suppose I'll highlight the procedure name and make sure it > gets typeset in monospaced font, as: > > [procedure] {{('''proc''' a b)}} I would like it if that line were wrapped in a e.g. ... so that it can be styled via C

Re: [Chicken-users] egg documentation

2008-02-20 Thread Jim Ursetto
On 2/19/08, Jim Ursetto <[EMAIL PROTECTED]> wrote: > doctype:xhtml-1.0-strict Thinking about this a little more, it strikes me that "definition" or "def" is probably a better tag than "signature". So: doctype:xhtml-1.0-strict for unusual definitions we

Re: [Chicken-users] egg documentation

2008-02-21 Thread Jim Ursetto
On 2/21/08, Alejandro Forero Cuervo <[EMAIL PROTECTED]> wrote: > I think we should stick to , and so on. They are easier > to type than , and so on. I agree. > What if instead of and > we simply use ? Would that work? Functionally yes, but I can only think of one person who has ever used 'st

<    1   2   3   4   5   >