[Chicken-users] sql-de-lite integrated SQLite3 library

2010-08-11 Thread Jim Ursetto
Hi there. SQLite3 is a great, lightweight database, but I have hesitated to use it in Chicken applications because it's not guaranteed to be installed or recent enough on a user's machine -- especially if they're on Windows or OS X. Installing it can be an annoying extra step for your users. To

[Chicken-users] Re: chicken-doc

2010-07-30 Thread Jim Ursetto
On Tue, Dec 1, 2009 at 03:03, Jim Ursetto zbignie...@gmail.com wrote: chicken-doc allows you to explore Chicken manual and egg documentation from the command-line and the REPL.  Documentation is generated from a checkout of the wiki, and is stored locally. To try it out, you will need

Re: [Chicken-users] using constants from define-foreign-enum-type via a module

2010-07-26 Thread Jim Ursetto
The right way is to use include, foreign variables are not visible outside the compilation unit they are declared in. Alternatively if you want a user accessible interface to the constants, and do not want to use the conversion procedures, use regular old define and export that binding:

Re: [Chicken-users] using constants from define-foreign-enum-type via a module

2010-07-26 Thread Jim Ursetto
Ursetto zbignie...@gmail.com wrote: Are you using the foreign type conversion facilities at all or do you just need the constant values? On Jul 26, 2010, at 15:20, Martin DeMello martindeme...@gmail.com wrote: On Tue, Jul 27, 2010 at 1:20 AM, Jim Ursetto zbignie...@gmail.com wrote: The right

Re: [Chicken-users] unbound variable: make-hash-table

2010-07-09 Thread Jim Ursetto
(use srfi-69) On Jul 9, 2010, at 11:44, Martin DeMello martindeme...@gmail.com wrote: What's going wrong here? $ cat t.scm (define *hash* (make-hash-table)) $ csi t.scm ; loading t.scm ... #;1 *hash* #hash-table (0) $ csc t.scm $ ./t Error: unbound variable: make-hash-table

Re: [Chicken-users] unbound variable: make-hash-table

2010-07-09 Thread Jim Ursetto
Martin, feel free to join us on freenode on #chicken as well, we can answer all kinds of questions there. On Jul 9, 2010, at 12:04, Mario Domenech Goulart mario.goul...@gmail.com wrote: Hi Martin On Fri, 9 Jul 2010 22:14:09 +0530 Martin DeMello martindeme...@gmail.com wrote: What's

Re: [Chicken-users] Creating new types and their representation in the REPL

2010-07-07 Thread Jim Ursetto
Just FYI, If you go to chickadee and start typing define-record, you will see define-record-printer in the search box. On Jul 7, 2010, at 17:27, Jack Trades jacktradespub...@gmail.com wrote: On Wed, Jul 7, 2010 at 1:58 PM, Peter Bex peter@xs4all.nl wrote: Use define-record-printer:

Re: [Chicken-users] On eggs and their licensing

2010-06-02 Thread Jim Ursetto
On Jun 2, 2010, at 9:43, Stephen Eilert spedr...@gmail.com wrote: As I have some code that I would like to contribute back to Chicken, in the form of eggs, I have started to look into the licensing issue. I've asked that on #chicken, and the response was that I should choose my own license.

Re: [Chicken-users] On eggs and their licensing

2010-06-02 Thread Jim Ursetto
On Jun 2, 2010, at 12:34 PM, Jim Ursetto wrote:You did have an interesting idea in re license info display. Using the setup api, it should be pretty easy to write a program to display the license for each egg and recursively for its dependencies, since it's in the egg metadata. Do you want

Re: [Chicken-users] chickadee

2010-05-05 Thread Jim Ursetto
On Wed, May 5, 2010 at 14:02, Shawn Rutledge shawn.t.rutle...@gmail.com wrote: I think search is more useful than lookup.  You could simplify by having just one button, or at least having search be the default when you hit enter on the input field. Search is cpu and disk intensive, may return

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

2010-04-22 Thread Jim Ursetto
On Apr 6, 2010, at 9:34 AM, Jeronimo Pellegrini wrote: BTW, I've benchmarked complex reading ad writing too. I suppose the difference is huge for reading complexes because the read procedure doesn't know that it's a complex number. Hi there. Your numbers looked odd to me so I downloaded and

Re: [Chicken-users] objc egg in 4.4.0

2010-04-20 Thread Jim Ursetto
objc is now working and passes basic tests on OS X 10.5.8. Apple deprecated some of the ObjC API as of 10.5, so I don't know if it will work at all on 10.6. Jim On Apr 5, 2010, at 4:25 AM, Drew Hess wrote: Hi, Is the objc egg supposed to work with Chicken 4.4.0, or is it still

Re: [Chicken-users] Next Chicken release (4.4.0)

2010-04-19 Thread Jim Ursetto
On Tue, Mar 2, 2010 at 06:56, felix winkelmann bunny...@gmail.com wrote: That was a stupid error by me. I have resurrected pointer-offset (it still stays deprecated, but it is available again). It is not available. You resurrected it in d15fc586510d but deleted it again a few days later in

Re: [Chicken-users] If anyone wants an RPM version of Chicken Scheme

2010-04-13 Thread Jim Ursetto
review it, making sure to run `make distclean` beforehand. On Apr 13, 2010, at 10:50 AM, Adam Young wrote: On 04/12/2010 05:53 PM, Jim Ursetto wrote: Mixing works fine on Debian, on 64-bit Debian /usr/lib contains the native libraries and lib64 is a symlink to /usr/lib, with lib32/ being

Re: [Chicken-users] If anyone wants an RPM version of Chicken Scheme

2010-04-13 Thread Jim Ursetto
13, 2010, at 1:47 PM, Adam Young wrote: On 04/13/2010 02:11 PM, Jim Ursetto wrote: I looked at the patch already, the INSTALL_LIB_HOME should take precedence and is set by `make LIBDIR=/usr/lib64`, as you did in the .spec file. In other words this should work without a patch unless

Re: [Chicken-users] If anyone wants an RPM version of Chicken Scheme

2010-04-10 Thread Jim Ursetto
Hi, Out of curiosity what does /usr/lib point to on a Fedora 12 system? Do you have to specify --libdir=/usr/lib64 when you call ./configure for every single package? On Apr 9, 2010, at 2:12 PM, Adam Young wrote: I built an RPM version of Chicken Scheme for Fedora 12. If anyone would

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

2010-03-25 Thread Jim Ursetto
gcc is smarter than you think. Compare the assembly output of the two and you will find the fprintf call without the IF check is optimized into an fputc. - movl$97, (%esp) - call_fputc + movl(%edi), %eax + movl4(%eax), %eax + movl%eax,

Re: [Chicken-users] OK, I jumped the gun a little

2010-03-20 Thread Jim Ursetto
On Mar 20, 2010, at 11:59 AM, Mark Carter wrote: Sorry guys. In my recent report, I mentioned about not being able to bootstrap. I didn't read the README :( I'm supposed to obtain a bootstrapper from http://chicken.wiki.br/chicken-projects/bootstrap/ Unfortunately, there isn't one

Re: [Chicken-users] utf8 and pdf eggs

2010-02-08 Thread Jim Ursetto
As far as I can tell pdf egg itself does not support UTF8 output as it does not generate a unicode character map. You would have to pass in a Latin-1 string. For example you can save your file (which I assume is in UTF-8) as ISO-8859-1 using M-x set-buffer-file-coding-system iso-latin-1

Re: [Chicken-users] [newbie] destroying foreign objects

2010-01-29 Thread Jim Ursetto
On Jan 30, 2010, at 12:22 AM, Marco Maggi wrote: I am skimming through Chicken's documentation to understand what it can do; is there a way to automatically apply a finalisation function when a pointer to a foreign object (C language structure) is garbage collected?

[Chicken-users] Note to eggdoc users on chicken-doc

2010-01-22 Thread Jim Ursetto
Hello, eggdoc users. chicken-doc now supports eggdoc, but a few issues arose with existing eggdocs, described below. If you modify an eggdoc, ideally make a new SVN tag (if you use tags/), because the repository scan for eggdocs uses the newest released egg. 1) I fixed minor typos in: glpk lalr

Re: [Chicken-users] vector-lib ported to hygienic chicken

2010-01-15 Thread Jim Ursetto
I guess I am basically maintaining vector-lib. The new test suite is good, but the patch is mostly noise and reverts some changes that were made for Chicken. The existing code is synced with the reference implementation as of 2008-01-12. If you can apply *only* the changes from the ref. impl.

[Chicken-users] chicken on mingw fails (redux)

2010-01-07 Thread Jim Ursetto
This is with recent git (8b1b582). No msys, just plain mingw. There were a couple problems I was able to fix: bootstrap/posixwin.c was too old (I patched it), and the Makefile wanted to build chicken-setup but could not (I commented it out). However I can not get past the final issue: it doesn't

[Chicken-users] Re: chicken on mingw fails (redux)

2010-01-07 Thread Jim Ursetto
On Thu, Jan 7, 2010 at 3:45 PM, Jim Ursetto zbignie...@gmail.com wrote: However I can not get past the final issue: it doesn't build the binary .import.* files.  It doesn't seem to know how to build the .c counterpart, scheme.import.c, even though it's in rules.make. It was pointed out that I

Re: [Chicken-users] readline egg, MacPorts, and OS X 10.6 (Snow Leopard)

2009-12-26 Thread Jim Ursetto
2009/12/25 Derrell Piper d...@electric-loft.org: Fortunately, the readline in MacPorts works with the readline egg; it's just a matter of getting chicken-install to compile and link against /opt/local. To do that, I hacked readline.setup. Actually all you should have to do is set

Re: [Chicken-users] How to increase the trace output?

2009-12-19 Thread Jim Ursetto
On Fri, Dec 18, 2009 at 10:20 AM, Christian Kellermann ck...@pestilenz.org wrote: I'd like to see the [syntax] trace reaching farther back than this to see where the entry point has been csc is a driver for chicken. Try this: $ csc -v -compiler `which chicken` -:a100 aa.scm Syntax error:

Re: [Chicken-users] Re: new egg documentation bootstrap

2009-12-18 Thread Jim Ursetto
On Fri, Dec 18, 2009 at 12:48 AM, Sven Hartrumpf hartru...@gmx.net wrote: Thu, 17 Dec 2009 18:12:52 -0500, ddp wrote: Besides, I live in emacs.  Why do I have to edit in this little weird box with almost none of my normal keymap? That can be solved by using a browser with a suitable editor

Re: [Chicken-users] wiki question

2009-12-16 Thread Jim Ursetto
On Wed, Dec 16, 2009 at 9:15 AM, Derrell Piper d...@electric-loft.org wrote:  I click, 'edit' and change [[stream-ext]] to, say, [[mailbox]], and then click, 'preview' and the two links in the preview show up as: https://galinha.ucpel.tche.br/cgi-bin/svnwiki/default/mailbox

[Chicken-users] chicken-doc

2009-12-01 Thread Jim Ursetto
Hi there, I've uploaded two new eggs, chicken-doc and chicken-doc-admin, into the Chicken 4 egg repository. chicken-doc allows you to explore Chicken manual and egg documentation from the command-line and the REPL. Documentation is generated from a checkout of the wiki, and is stored locally.

Re: [Chicken-users] Re: chicken-install should use sudo -v

2009-10-06 Thread Jim Ursetto
On Tue, Oct 6, 2009 at 8:59 PM, Ivan Raikov ivan.g.rai...@gmail.com wrote: The implicit invocation of sudo violates the principle of least astonishment You have to explicitly provide the -s switch, so I disagree.  I opposed the inclusion of the sudo mis-feature in chicken-setup, but it

Re: [Chicken-users] Ref foreign type.

2009-09-21 Thread Jim Ursetto
Looks like there are two issues here. First, try applying the attached patch to fix a bug in c-backend. Second, your usage is incorrect--ref types require an operating system pointer or a locative (since they can be modified)--ref is the analog of c-pointer. For example, you can change your

Re: [Chicken-users] readline?

2009-09-13 Thread Jim Ursetto
On Sat, Sep 12, 2009 at 10:39 PM, David N Murray dmur...@jsbsystems.com wrote: d...@kili:~/tr/scheme$ cat ~/.csirc (require 'readline) (current-input-port (make-gnu-readline-port)) (gnu-history-install-file-manager (string-append (or (getenv HOME) .) /.csi.history)) Hi, Just change require

Re: [Chicken-users] readline?

2009-09-13 Thread Jim Ursetto
On Sun, Sep 13, 2009 at 11:28 AM, David N Murray dmur...@jsbsystems.com wrote: Thanks Jim.  That fixed it. I tried to update the Wiki (http://chicken.wiki.br/readline#Examples) since that's where I got the code from, but it tells me the page doesn't exist. Thanks. The wiki is confused. Looks

Re: [Chicken-users] Proposed procedure movement in Chicken 4

2009-09-12 Thread Jim Ursetto
require works but probably require-library in chicken 4 is the nearest equivalent to use in chicken 3. In chicken 4, use now does require-library + import, and the import is causing the problem. As far as modules, as a quick fix you can probably just wrap your geolib source file (etc.) in

Re: use vs require (was Re: [Chicken-users] Proposed procedure movement in Chicken 4)

2009-09-12 Thread Jim Ursetto
On Sat, Sep 12, 2009 at 6:05 PM, Matthew Welland m...@kiatoa.com wrote: On Saturday 12 September 2009 02:13:47 pm you wrote: require works but probably require-library in chicken 4 is the nearest equivalent to use in chicken 3. In chicken 4, use now does require-library + import, and the

Re: [Chicken-users] Proposed procedure movement in Chicken 4

2009-09-12 Thread Jim Ursetto
On Sat, Sep 12, 2009 at 6:50 PM, John Cowan co...@ccil.org wrote: But if you haven't compiled it and just have the source, that doesn't work; it used to in Chicken 3's csi. $ rm a.import.so $ rm a.so $ csi Version 4.1.1 - SVN rev. 15417 #;1 (use a) ; loading ./a.import.scm ... ; loading

Re: [Chicken-users] Proposed procedure movement in Chicken 4

2009-09-12 Thread Jim Ursetto
On Sat, Sep 12, 2009 at 9:14 PM, John Cowan co...@ccil.org wrote: Okay, then, it seems you at least have to do csc -J. That is true, which is why I mentioned it in the next sentence. Jim ___ Chicken-users mailing list Chicken-users@nongnu.org

Re: [Chicken-users] Proposed procedure movement in Chicken 4

2009-09-09 Thread Jim Ursetto
I trust you will make any changes backwards-compatible and transparent for a while so we have a semblance of stability. Unless you are also proposing that you will modify every affected egg and add a cond-expand to distinguish between Chicken 4.1 and 4.2. I'll accept breakage if it gets me cool

Re: [Chicken-users] Error building sxpath egg

2009-09-01 Thread Jim Ursetto
On Tue, Sep 1, 2009 at 12:53 PM, Virgil Kingvirgilk...@gmail.com wrote: I'm having trouble installing the sxpath egg using a fresh install of 4.1.0 (built with ARCH=x86-64) on Snow Leopard: Error: during expansion of (import ...) - unbound variable: |???| Hmm. I was just able to build it

Re: [Chicken-users] Error building sxpath egg

2009-09-01 Thread Jim Ursetto
On Tue, Sep 1, 2009 at 7:21 PM, Virgil Kingvirgilk...@gmail.com wrote: Taking the hint about weird chicken pieces I tried moving aside /usr/local/lib/chicken/4 before reinstalling 4.1.0 and sxpath and that fixes my issue. Good catch. I can confirm it is looking in the installed repository

Re: [Chicken-users] OS X 10.6 (Snow Leopard)

2009-08-29 Thread Jim Ursetto
It might be easier to compile with make PLATFORM=macosx ARCH=x86-64 as stated in the README. Jim On Sat, Aug 29, 2009 at 7:35 PM, Derrell Piperd...@electric-loft.org wrote: It appears that the native Xcode 3.2 build tools are now 64-bit on 10.6 and config-arch.sh isn't smart enough to

Re: [Chicken-users] OS X 10.6 (Snow Leopard)

2009-08-29 Thread Jim Ursetto
Is it really true that 10.6 gcc defaults to producing 64-bit binaries? I imagine that would break a lot of traditional UNIX builds. If so then we will need to either have better detection of bittedness or simply force gcc to 32-bit mode unless the ARCH is specified as 64-bit. 64-bit works

Re: [Chicken-users] OS X 10.6 (Snow Leopard)

2009-08-29 Thread Jim Ursetto
Derrell On Aug 29, 2009, at 8:32 PM, Jim Ursetto wrote: Is it really true that 10.6 gcc defaults to producing 64-bit binaries? I imagine that would break a lot of traditional UNIX builds.  If so then we will need to either have better detection of bittedness or simply force gcc to 32-bit

Re: [Chicken-users] Chicken fails to build on Windows (mingw)

2009-08-23 Thread Jim Ursetto
On Sun, Aug 23, 2009 at 1:41 PM, Fadi Moukayedsmf...@googlemail.com wrote: Out of curiosity, why is Chicken using [random/srandom] instead of the standard C rand/srand ? There shouldn't be any difference functionality-wise AFAIK. rand(3) typically produces much less usable randomness than

Re: [Chicken-users] Readline trouble

2009-08-14 Thread Jim Ursetto
On Sun, Aug 9, 2009 at 10:19 PM, Sam Varnersnick-a-...@comcast.net wrote: Installing the readline egg with chicken-install fails: My guess is it is probably a special case of http://www.irp.oist.jp/trac/chicken/ticket/69, in which chicken-install does not stop on error. Just so you know we are

Re: [Chicken-users] chicken-install with bad infolist

2009-08-13 Thread Jim Ursetto
On Mon, Aug 10, 2009 at 8:55 PM, Sam Varnersnick-a-...@comcast.net wrote: documentation is not one of the properties listed in the docs. It appears that its presence prevents srfi-42.setup-info from being generated. It works for me. documentation is a valid property and should be honored

Re: [Chicken-users] Advice on require, use, import, etc.

2009-08-13 Thread Jim Ursetto
On Sun, Aug 9, 2009 at 11:52 AM, Sam Varnersnick-a-...@comcast.net wrote:     1. Should I prefer 'import' if it's available?  E.g (import srfi-4)        instead of (use srfi-4). It's actually (require-library srfi-4) (import srfi-4) == (use srfi-4). The code load and module import are separate

Re: [Chicken-users] SQLite3 bindings for CHICKEN 4

2009-08-12 Thread Jim Ursetto
On Wed, Aug 5, 2009 at 9:02 AM, Thomas Chustch...@web.de wrote: If, for example, you prepare a statement and forget to ever execute and finalize it, my sqlite3 egg will at least tell you that you have an unused statement lying around when you try to close the database. sqlite3 will tell you

Re: [Chicken-users] Re: (abs 2147483648) evaluates to negative number

2009-07-31 Thread Jim Ursetto
On Fri, Jul 31, 2009 at 8:14 AM, Alejandro Forero Cuervoa...@freaks-unidos.net wrote:  (when (negative? (abs 2147483648))    (set! abs      (lambda (x)        (if (negative? x)          (- x)          x It seems to workaround the problem. #;5 (abs 12345678901) 539222987 I don't think

Re: [Chicken-users] (abs 2147483648) evaluates to negative number

2009-07-31 Thread Jim Ursetto
On Fri, Jul 31, 2009 at 8:02 AM, Alejandro Forero Cuervoa...@freaks-unidos.net wrote: In Chicken 3.4.0 linux-unix-gnu-x86-64 the expression (abs 2147483648) evaluates to -2147483648 in both csi and a compiled program (negative? and positive?, however, seem to work correctly).  It evaluated

Re: [Chicken-users] Re: (abs 2147483648) evaluates to negative number

2009-07-31 Thread Jim Ursetto
On Fri, Jul 31, 2009 at 2:00 PM, Alejandro Forero Cuervoa...@freaks-unidos.net wrote: [The workaround] works for me: #;2 (abs 12345678901) 12345678901 Probably just happens to work, based on register setup. We are on different platforms. Anyway, try the patch for your original problem, also

Re: [Chicken-users] chicken wiki search

2009-07-27 Thread Jim Ursetto
On Sun, Jul 26, 2009 at 3:24 PM, Nicholas Indy Rayarel...@gmail.com wrote: the wiki has become almost unsearchable, with a large portion of pages that have been indexed and are not there anymore. Regardless, is there any way I can help to get the wiki search more functional, or alternatively

Re: [Chicken-users] Egg example

2009-07-25 Thread Jim Ursetto
to a 3 it works. Bill Jim Ursetto wrote: Hi Bill, I just checked out release 4 eggs as the anonymous user with the following: svn co https://galinha.ucpel.tche.br/svn/chicken-eggs/release/4 chicken-eggs4 Maybe there was a transitory error?  Please post the error you get. Jim On Tue

Re: [Chicken-users] Conversion of PLT packages to eggs

2009-07-25 Thread Jim Ursetto
As long as the license supports it, by all means! 2009/7/25 Michael Maul mike.m...@gmail.com: There are a number of PLT packages that I have been wanting to use in chicken. So far the only porting effort has been pretty much converting between PLT's package syntax and chicken's modules. My

Re: [Chicken-users] Egg example

2009-07-24 Thread Jim Ursetto
Hi Bill, I just checked out release 4 eggs as the anonymous user with the following: svn co https://galinha.ucpel.tche.br/svn/chicken-eggs/release/4 chicken-eggs4 Maybe there was a transitory error? Please post the error you get. Jim On Tue, Jul 21, 2009 at 2:37 PM, billramsa...@comcast.net

Re: [Chicken-users] Re: Problems installing eggs

2009-07-22 Thread Jim Ursetto
Regarding objc, it's in the repository but incomplete. Regarding MacPorts, if you *always* want to look in a nonstandard location for libraries, you should be able to add /opt/local/lib and /opt/local/include to the gcc/ld flags when you compile Chicken. Easiest way to do this is probably to edit

Re: [Chicken-users] Native Threads and Concurrent Processing

2009-06-21 Thread Jim Ursetto
On Sun, Jun 21, 2009 at 10:51 AM, Glen Foyrandomb...@clairvaux.org wrote: Ten years from now we are going to have multicore machines with a dazzling number of processors.  Native threads and concurrent processing support will be increasingly important. I sure would like to see Chicken support

Re: [Chicken-users] Wiki Syntax and Chicken for Python Programmers

2009-06-18 Thread Jim Ursetto
2009/6/18 Jack Trades jacktradespub...@gmail.com:   I did notice though that it says you can't use parameters in the table tags, which is kind of essential for the Chicken for Python Programmers document.  Is this likely to change soon? No, but you can fudge it using nowiki. Why do you need

Re: [Chicken-users] Wiki Syntax and Chicken for Python Programmers

2009-06-18 Thread Jim Ursetto
On Thu, Jun 18, 2009 at 4:23 PM, Jack Tradesjacktradespub...@gmail.com wrote: On Thu, Jun 18, 2009 at 5:05 PM, Jim Ursetto zbignie...@gmail.com wrote: Why do you need parameters? Unless I'm misunderstanding;  to colorize cells and align text. OK. Well, inserting direct HTML into the wiki

Re: [Chicken-users] Re: Explicit Renaming Macros Help/Tutorial?

2009-06-11 Thread Jim Ursetto
On Thu, Jun 11, 2009 at 5:17 PM, Jack Tradesjacktradespub...@gmail.com wrote: It is uncommon to test against the macro's name, but we can do it by using the compare procedure against the renamed 'ef identifier. So the purpose of the compare procedure is to compare renamed identifiers? Note

Re: [Chicken-users] Re: Explicit Renaming Macros Help/Tutorial?

2009-06-09 Thread Jim Ursetto
2009/6/9 Jack Trades jacktradespub...@gmail.com: A couple more questions.  I was playing with a macro that extends the syntax of if.  This macro works fine on its own and also if I import the module with no prefix.  However I get an error if I try to import the module with a prefix. It's

Re: [Chicken-users] Current date time?

2009-05-28 Thread Jim Ursetto
On Thu, May 28, 2009 at 8:57 AM, Mario Domenech Goulart mario.goul...@gmail.com wrote: On Thu, 28 May 2009 07:32:04 -0600 Matt Gushee m...@gushee.net wrote: I thought I would create a simple logging facility, and, well of course every good log entry needs a timestamp ... so I searched for a

Re: [Chicken-users] posix file-opening problem

2009-05-24 Thread Jim Ursetto
On Sun, May 24, 2009 at 2:02 PM, Matt Gushee m...@gushee.net wrote: Hi, all-- I am having trouble opening files in append mode using posix functions [Chicken 4.0 on Linux]: csi (define fd2 (file-open /tmp/foo2.txt (+ open/append open/creat))) csi (define po2 (open-output-file* fd2))

Re: [Chicken-users] Re: Could we keep old URLs in the wiki working?

2009-05-06 Thread Jim Ursetto
On Wed, May 6, 2009 at 4:06 AM, Alejandro Forero Cuervo a...@freaks-unidos.net wrote: For example, searching for mario domenech goulart on Google lists http://chicken.wiki.br/mario%20domenech%20goulart as the second result.  This result used to work, redirecting to the correct page.  Now

Re: [Chicken-users] Could we keep old URLs in the wiki working?

2009-05-06 Thread Jim Ursetto
On Tue, May 5, 2009 at 5:29 PM, Alejandro Forero Cuervo a...@freaks-unidos.net wrote:  For example, searching for mario domenech goulart on Google lists http://chicken.wiki.br/mario%20domenech%20goulart as the second result.  This result used to work, redirecting to the correct page. Now it

[Chicken-users] require-extension vs require-library/import

2009-05-06 Thread Jim Ursetto
The manual implies that require-extension is the same as a require-library followed by an import, but this is not so. require-extension does not work for a source module that has no corresponding import file on disk. #;1 (require-extension tadm) Error: (import) during expansion of (import ...) -

Re: [Chicken-users] Could we keep old URLs in the wiki working?

2009-05-05 Thread Jim Ursetto
On Tue, May 5, 2009 at 5:29 PM, Alejandro Forero Cuervo a...@freaks-unidos.net wrote: No, I'm not volunteering my time to fix this mess. Could you at least fix the part where the wiki search engine still returns results for deleted pages? Jim ___

Re: [Chicken-users] ncurses egg

2009-05-05 Thread Jim Ursetto
2009/5/4 Anthony Carrico acarr...@memebeam.org: I didn't indent the module (this will make it easier to check my work with svn diff). It seems that it is useful not to indent the module body, as definitions aligned at left works better with emacs and scheme-complete. So that is perfectly fine.

Re: [Chicken-users] Re: stressing the new hygienic macros

2009-05-01 Thread Jim Ursetto
On Fri, May 1, 2009 at 10:28 AM, Michele Simionato michele.simion...@gmail.com wrote: Does require-for-syntax work with Chicken 4? As an exercise, I was trying to define a simple define macro as follows: (require-for-syntax 'matchable) You want (require-library matchable) (import-for-syntax

Re: [Chicken-users] Problem with (symbol-string) in Chicken 4.0

2009-04-30 Thread Jim Ursetto
On Thu, Apr 30, 2009 at 2:59 PM, William Ramsay ramsa...@comcast.net wrote: Can you be a little more explicit in what you mean?   Adding that just produces more errors. John Cowan wrote:   (lambda body rename compare)     (define s (car body))     (define ff (cdr body)) Change this:

Re: [Chicken-users] Multithreading

2009-04-24 Thread Jim Ursetto
You don't happen to be using 3.5.0 or 3.5.1, are you? On Fri, Apr 24, 2009 at 4:36 PM, William Ramsay ramsa...@comcast.net wrote: Hi again, Are there any real world examples of threading in Chicken Scheme?   The docs for SRFI-18 are too obscure for poor me to understand. When I try matching

Re: [Chicken-users] Problems installing intarweb

2009-04-22 Thread Jim Ursetto
2009/4/22 Stephen Eilert spedr...@gmail.com: Hi peeps, I'm trying to install intarweb on my machine uri-generic installs fine, however: uri-generic version: 1.12 It installs version 1.12 and intarweb requires 2.0. I've been told on IRC

Re: Re: [Chicken-users] New to Scheme Macros

2009-04-22 Thread Jim Ursetto
2009/4/22 nefi...@gmail.com: Thank you, Thomas and John, for the kind replies. I'm using Chicken 4. So, I imagine I can stick with syntax-rules until I run into a situation where I need something else, at which point I can either try define-macro (if I use this, do I need to explicitly

Re: [Chicken-users] Which eggs to migrate from Chicken 3 first?

2009-04-22 Thread Jim Ursetto
On Wed, Apr 22, 2009 at 11:28 AM, John Cowan co...@ccil.org wrote: Alex Shinn scripsit:      52 eggdoc      19 openssl       6 iconv       5 utf8       4 tcp-server       3 format       6 sendfile       2 graph-scc These have already been ported. They aren't in

Re: Re: [Chicken-users] New to Scheme Macros

2009-04-22 Thread Jim Ursetto
On Wed, Apr 22, 2009 at 2:15 PM, Jim Ursetto zbignie...@gmail.com wrote: A situation not mentioned above where you may prefer something else, even if not breaking hygiene, is when your macro would be better off written in procedural style Forgot to mention, pattern matching is available

Re: Re: [Chicken-users] New to Scheme Macros

2009-04-22 Thread Jim Ursetto
On Wed, Apr 22, 2009 at 1:32 PM, Jim Ursetto zbignie...@gmail.com wrote: Forgot to mention, pattern matching is available in explicit renaming macros via the matchable extension; the foreigners egg is an example. On Wed, Apr 22, 2009 at 3:55 PM, Jordan Cooper nefi...@gmail.com wrote: Explicit

Re: [Chicken-users] Problems installing intarweb

2009-04-22 Thread Jim Ursetto
On Wed, Apr 22, 2009 at 3:59 PM, Stephen Eilert spedr...@gmail.com wrote: I'll have to run against the repository. Passing the version seems to work - for the specific egg. It breaks again when dependent eggs are installed. That is correct, however, as far as I know only base64 and uri-generic

Re: [Chicken-users] egg path?

2009-04-16 Thread Jim Ursetto
On Thu, Apr 16, 2009 at 2:40 AM, Shawn Rutledge shawn.t.rutle...@gmail.com wrote: With Chicken 3, (use egg) can load a compiled egg.so in the cwd.  This is especially handy during egg development - you can compile and test repeatedly without having to install.  Chicken 4 doesn't seem to do

Re: [Chicken-users] cond-expand failing inside module

2009-04-15 Thread Jim Ursetto
On Wed, Apr 15, 2009 at 6:26 PM, Nathan Thern nth...@gmail.com wrote: Hello all- It seems cond-expand is not recognized inside module declarations. I have the following file saved as extra.scm: (module  extra  (when unless) (cond-expand (plt) (else You forgot to (import scheme).

Re: [Chicken-users] current base64 on chicken 3 incorrect?

2009-04-14 Thread Jim Ursetto
On Sun, Nov 2, 2008 at 6:57 PM, felix winkelmann bunny...@gmail.com wrote: On Fri, Oct 31, 2008 at 2:51 PM, Graham Fawcett graham.fawc...@gmail.com wrote: Hi folks, The current base64 egg for Chicken 3 builds, but gives me incorrect results. The non-working version is by Bailey, ported by

Re: [Chicken-users] IPhone

2009-04-09 Thread Jim Ursetto
2009/4/9 lowly coder lowlyco...@huoyanjinjing.com: Wait ... the Apple Developer Agreement has strict requirements against GC? Perhaps not. All I can find is a note that the Objective-C runtime does not support GC, but it doesn't say you can't implement it yourself. In a low-memory environment,

Re: [Chicken-users] testing release candidate for 4.0.0

2009-03-28 Thread Jim Ursetto
On Sat, Mar 28, 2009 at 2:20 AM, Shawn Rutledge shawn.t.rutle...@gmail.com wrote: I'm trying it on the Mac (Leopard): [mini][12:18:32 AM] chicken-setup tinyclos chicken-setup doesn't exist in Chicken 4 (it's called chicken-install now), and tinyclos isn't packaged for Chicken 4 anyway.

Re: [Chicken-users] no soname

2009-03-19 Thread Jim Ursetto
On Thu, Mar 19, 2009 at 3:18 AM, felix winkelmann bunny...@gmail.com wrote: On Wed, Mar 18, 2009 at 9:27 PM, Ivan Raikov ivan.g.rai...@gmail.com wrote:   This means that we cannot have a Debian package for Chicken 4, because Debian insists on having a soname version, so that it can do things

Re: [Chicken-users] pointer-pointer-ref

2009-03-13 Thread Jim Ursetto
On Thu, Mar 12, 2009 at 8:25 PM, Eduardo Cavazos wayo.cava...@gmail.com wrote: extern Status XQueryTree(    Window**        /* children_return */, ); (c-function Status XQueryTree (... (c-pointer (c-pointer unsigned-long)) ...) I can allocate enough storage for a pointer via:    (define

Re: [Chicken-users] Re: FFI with XQueryTree

2009-03-13 Thread Jim Ursetto
You can use locations for your other vars as well -- in this case it should work even for 64-bit values. (let-location ((root unsigned-long) (parent unsigned-long) (children (c-pointer unsigned-long)) (nchildren unsigned-long)) (XQueryTree dpy win (location root)

Re: [Chicken-users] Re: FFI with XQueryTree

2009-03-13 Thread Jim Ursetto
On Fri, Mar 13, 2009 at 3:16 AM, Jim Ursetto zbignie...@gmail.com wrote: You can use locations for your other vars as well -- in this case it should work even for 64-bit values. Urgh. I read the header files. Window is typed as unsigned long on 32-bit systems and unsigned int on 64-bit systems

Re: [Chicken-users] Threads and dynamic-wind still problematic

2009-03-10 Thread Jim Ursetto
On Mon, Mar 2, 2009 at 3:48 PM, Peter Bex peter@xs4all.nl wrote: However, it turns out that an exception thrown in a thread simply terminates the thread instead of unwinding the stack.  The same does not happen in the primordial thread: $ csi #;2 (dynamic-wind (lambda () (print BEFORE))

[Chicken-users] Chicken 4 syntax-rules bug

2009-03-05 Thread Jim Ursetto
I believe this is a bug in Chicken 4. It works in Chicken 3 with the syntax-case egg, and in Scheme 48. It looks like an ellipsis form matches after just checking the first pattern, without checking subsequent patterns. (define-syntax foo (syntax-rules () ((_ (a b) ...)

[Chicken-users] Re: Chicken 4 syntax-rules bug

2009-03-05 Thread Jim Ursetto
On Thu, Mar 5, 2009 at 12:28 PM, Jim Ursetto zbignie...@gmail.com wrote: It looks like an ellipsis form matches after just checking the first pattern, without checking subsequent patterns. This wasn't quite correct. It seems that, if you have a pair in your pattern followed by an ellipsis

Re: [Chicken-users] objc egg and 10.5

2009-03-02 Thread Jim Ursetto
On Mon, Mar 2, 2009 at 9:05 AM, Derrell Piper d...@electric-loft.org wrote: objc egg's blowing up under 10.5.  Is there a fix? objc-support.m:460:17: error: ffi.h: No such file or directory Hi, Did you install libffi? See http://chicken.wiki.br/objc#requirements. Try libffi-20071207 on

Re: [Chicken-users] SRFI-27 and 3.5.0

2009-02-26 Thread Jim Ursetto
On Wed, Feb 25, 2009 at 7:48 PM, Ivan Raikov ivan.g.rai...@gmail.com wrote: For the time being, I have reverted srfi-18.scm to that of Chicken release 3.4.0. This fixes the issues you reported with srfi-18 and srfi-27. I have restored the latest version of srfi-18 and fixed some bugs and

Re: [Chicken-users] SRFI-27 and 3.5.0

2009-02-26 Thread Jim Ursetto
On Thu, Feb 26, 2009 at 12:48 PM, Peter Danenberg pe...@ck12.org wrote: Should we just pull it down from:   https://galinha.ucpel.tche.br/svn/chicken-eggs/chicken/branches/chicken-3/ or are you going to make a release? It will make it into 3.5.2, but it doesn't contain any functionality or

Re: [Chicken-users] I'm confused (again)

2009-02-26 Thread Jim Ursetto
On Thu, Feb 26, 2009 at 3:12 PM, William Ramsay ramsa...@comcast.net wrote: This may seem like a strange question, but I'm confused about the use of set!.    It may be a holdover from my pre-scheme days, but it seems I should be declaring a variable before using it with set! William, Check

Re: [Chicken-users] I'm confused (again)

2009-02-26 Thread Jim Ursetto
On Thu, Feb 26, 2009 at 3:46 PM, Jim Ursetto zbignie...@gmail.com wrote: You might prefer, for style or portability, to have a dummy definition at toplevel, such as (define foo #f) or just (define foo), prior to performing the set!. Whoops. To be clear, (define foo) is a Chicken extension

Re: [Chicken-users] chicken-setup

2009-02-24 Thread Jim Ursetto
On Tue, Feb 24, 2009 at 2:07 AM, Sven Hartrumpf sven.hartru...@fernuni-hagen.de wrote: I am building chicken from svn and stumbled across the fact that chicken-setup will not be build any more (since around 2008-09-25?). Are you building Chicken 4? It's called chicken-install now.

Re: [Chicken-users] Spiffy + Windows

2009-02-22 Thread Jim Ursetto
On Sun, Feb 22, 2009 at 6:56 AM, Rafael Ibraim ibraim...@gmail.com wrote: sendfile.c:10:21: chicken.h: No such file or directory If this is the original error, it means it can't find your Chicken installation at all, a bigger problem than just a missing #define. Can you build any other eggs?

Re: [Chicken-users] chicken-primitive-inlines.scm

2009-02-04 Thread Jim Ursetto
On Mon, Feb 2, 2009 at 12:07 PM, Kon Lovett klov...@pacbell.net wrote: (##sys#slot l 1) - (%cdr l) (##sys#setslot l 1 x) - (%set-cdr l x) I was wondering. The compiler already inlines primitives when usual-integrations is in effect. Would it not be possible to tell it, with a new

Re: [Chicken-users] string-match-positions

2009-02-01 Thread Jim Ursetto
On Sun, Feb 1, 2009 at 12:06 PM, Jörg F. Wittenberger joerg.wittenber...@softeyes.net wrote: I'm confused (about chicken/trunk): the current manual contains: [procedure] (string-match REGEXP STRING [START]) [procedure] (string-match-positions REGEXP STRING [START]) my usage (from pcre

Re: [Chicken-users] string-match-positions

2009-02-01 Thread Jim Ursetto
On Sun, Feb 1, 2009 at 12:06 PM, Jörg F. Wittenberger But worst regex.scm: (define (string-match-positions rx str) That performs an anchored match against the beginning and end of the entire string. If you want to provide a range to search in, use: (string-search-positions rx str #!optional

Re: [Chicken-users] newbie: questions about set-finalizer!

2009-01-29 Thread Jim Ursetto
On Mon, Dec 22, 2008 at 3:03 AM, felix winkelmann bunny...@gmail.com wrote: Please try this [finalizer patch]. Hi. I am seeing finalizers fail to execute on recent SVN and I think it is the result of this change. I backed out the patch and it works okay again. On Version 3.4.10 - SVN rev.

<    1   2   3   4   >