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

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 machine

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,

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

[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

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 implies

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

Re: [Chicken-users] egg documentation

2008-02-17 Thread Jim Ursetto
, returning: ... On 2/17/08, Jim Ursetto [EMAIL PROTECTED] wrote: For example, procedure sig=(stream-xcons a b) ... /procedure. ___ 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 proc 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 new

Re: [Chicken-users] egg documentation

2008-02-19 Thread Jim Ursetto
proc and macro 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: parameggdoc:doctype/param Is this meant to be used as in

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 div e.g. div class=definition.../div so that

Re: [Chicken-users] egg documentation

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

Re: [Chicken-users] aliases in the wiki

2008-02-21 Thread Jim Ursetto
Yes please. Quick procedure lookup is the capability of Info I most miss. A plain index page would also be just as good for my purposes. On 2/21/08, Alejandro Forero Cuervo [EMAIL PROTECTED] wrote: While this will continue to work, I think what I'll do is, once I have the procedure and similar

Re: [Chicken-users] C_truep( C_fixnump( w ))

2008-02-24 Thread Jim Ursetto
On 2/24/08, Heinrich Taube [EMAIL PROTECTED] wrote: im sure this must be something stupid but i dont understand why it crashes if its not float data C_word w = C_u_i_car( lyst ); if (C_truep( C_flonump( w ) )) { Heinrich, Try if (C_truep(C_blockp(w)) C_truep(C_flonump(w))) {...} and see

Re: [Chicken-users] Unfair question: best Lisp for web development?

2008-02-27 Thread Jim Ursetto
On 2/27/08, Graham Fawcett [EMAIL PROTECTED] wrote: Personally, I don't use Spiffy; I wrote a custom framework instead. Would you mind expanding a little on your custom framework and whether it resides behind another webserver via mod_proxy, scgi, fastcgi, cgi, or is itself the main webserver?

Re: [Chicken-users] spiffy example

2008-02-29 Thread Jim Ursetto
Absolutely correct, feel free to update the wiki to reflect this. On 2/29/08, minh thu [EMAIL PROTECTED] wrote: - http:write-response-header should be write-response-header - and before calling it, the current-request parameter should be changed to the request argument.

Re: [Chicken-users] readline blocks threads

2008-03-04 Thread Jim Ursetto
Unit SRFI-18: Blocking I/O will block all threads, except for some socket operations (see the section about the tcp unit). An exception is the read-eval-print loop on UNIX platforms: waiting for input will not block other threads, provided the current input port reads input from a console. On

Re: [Chicken-users] readline blocks threads

2008-03-04 Thread Jim Ursetto
Shawn: Did you try using rlwrap? It works fine here. $ rlwrap csi #;1 (use srfi-18) #;2 (thread-start! (lambda () (let loop () (printf loop~%) (thread-sleep! 1) (loop #thread: thread0 #;3 loop loop loop loop On 3/4/08, Shawn Rutledge [EMAIL PROTECTED] wrote: If you do (use readline)

Re: [Chicken-users] chicken-setup broken

2008-03-06 Thread Jim Ursetto
Error: (open-input-file) can not open file - No such file or directory: objc.egg On 3/6/08, Ivan Raikov [EMAIL PROTECTED] wrote: Hi Jim, Can you try r9257? I have committed some fixes to chicken-setup that would hopefully solve your problems. Jim Ursetto [EMAIL PROTECTED] writes

Re: [Chicken-users] Bug report: low-level macros vs. variables in csi

2008-03-15 Thread Jim Ursetto
John, If this behavior is causing you problems, and you can't work around it, I believe you could use the codewalk egg with your own (nonhygienic) macroexpander to keep track of the latest binding for an identifier and select the correct one, even taking into account lexical shadowing (which you

Re: [chicken-users] silex GPL-2 licensed?

2008-03-19 Thread Jim Ursetto
On 3/19/08, John Cowan [EMAIL PROTECTED] wrote: minh thu scripsit: That's right. Of course, if you use a GPLed egg, you have to distribute Scheme source for your whole app. C source is obfuscated and doesn't count for GPL purposes. It seems to me that you both say the opposite. I

Re: [chicken-users] silex GPL-2 licensed?

2008-03-20 Thread Jim Ursetto
On 3/19/08, John Cowan [EMAIL PROTECTED] wrote: Jim Ursetto scripsit: Does this mean fp is now GPL? Yes, it is, or rather it would be if the copy of silex.scm in the silex egg were under the GPL. But it is not; there is neither copyright nor license anywhere on it. As I said before

[Chicken-users] srfi-18 and callbacks

2008-04-05 Thread Jim Ursetto
Let's say I have two callback handlers registered and within the handlers I do a thread-sleep! or thread-yield!. The C caller is the same for both (it's a busy handler), they are just invoked with different data. Now this sequence of events occurs: thread 1 enters the callback thread 2 enters

[Chicken-users] Re: srfi-18 and dynamic wind problem

2008-04-06 Thread Jim Ursetto
On 4/5/08, Jim Ursetto [EMAIL PROTECTED] wrote: I'm seeing some odd behavior when using dynamic-wind within a thread. If an error occurs during the thunk, the 'after' portion is never called nor are any subsequent statements. The same happens for scripts with only 1 (primordial) thread

[Chicken-users] thread-sleep! using milliseconds-time is broken

2008-04-07 Thread Jim Ursetto
As is seconds-time. Using SVN 10369. #;1 (thread-sleep! 1) ; sleeps for 1 second #;2 (thread-sleep! (seconds-time 1)) ; returns immediately #;3 (thread-sleep! (milliseconds-time 1000)) ; returns immediately Looks like the contents of the time structure doesn't match what

Re: [Chicken-users] thread-sleep! using milliseconds-time is broken

2008-04-07 Thread Jim Ursetto
On 4/7/08, Graham Fawcett [EMAIL PROTECTED] wrote: On Mon, Apr 7, 2008 at 1:47 PM, Jim Ursetto [EMAIL PROTECTED] wrote: So I need to do this? (thread-sleep! (milliseconds-time (+ 500 (time-milliseconds (current-time) Just this: (thread-sleep! 0.5) That would be the easy

Re: [Chicken-users] thread-sleep! using milliseconds-time is broken

2008-04-07 Thread Jim Ursetto
Graham, There is a thread entitled thread-sleep! for less than a second from 12 Jan 2007 which discusses this issue. Basically it was an either/or thing and the current way won. I just was not aware of the proper usage. I used Daishi's shorter solution and just made a local procedure in the

Re: [Chicken-users] srfi-18 and callbacks

2008-04-11 Thread Jim Ursetto
On 4/11/08, felix winkelmann [EMAIL PROTECTED] wrote: On Sat, Apr 5, 2008 at 8:10 PM, Jim Ursetto [EMAIL PROTECTED] wrote: Uh oh... This is a case that should probably be avoided. I couldn't even say what exactly happens, but you will have to do some locking because the Scheme thread-context

Re: [Chicken-users] macro systems and chicken (long)

2008-04-11 Thread Jim Ursetto
On 4/7/08, felix winkelmann [EMAIL PROTECTED] wrote: Oh no, not at all. Wait until you've seen it and until the moment comes when 50% of all eggs break and you have to migrate spiffy... A small price to pay. I would gladly do the drudge work to migrate as many eggs as possible.

Re: [Chicken-users] Re: with-open-pipe to handle sigpipe

2008-04-16 Thread Jim Ursetto
On 4/15/08, Lui Fungsin [EMAIL PROTECTED] wrote: If you set SIGPIPE to the chicken equivalent of SIG_IGN, any error message writing to the pipe will be returned by write(2) instead, I'm not sure I followed you here. What's chicken's equivalent of SIG_IGN? (set-signal-handler! signal/pipe

Re: [Chicken-users] Re: with-open-pipe to handle sigpipe

2008-04-16 Thread Jim Ursetto
On 4/16/08, Jim Ursetto [EMAIL PROTECTED] wrote: On 4/15/08, Lui Fungsin [EMAIL PROTECTED] wrote: I'm not sure I followed you here. What's chicken's equivalent of SIG_IGN? (set-signal-handler! signal/pipe #f) Come to think of it, there's no way to set SIG_DFL. What about adding (set-default

Re: [Chicken-users] length of string in C code

2008-04-28 Thread Jim Ursetto
Heinrich, One option is below. Normally the quickest way to suss this stuff out is to look at runtime.c, library.scm and chicken.h. For example, in library.scm, string-length is defined as (define (string-length s) (##core#inline C_i_string_length s)) We can find the definition of

Re: [Chicken-users] module and macro documentation

2008-05-25 Thread Jim Ursetto
This is really neat and very straightforward. I have one question so far. The core units (srfi-1.scm) have associated import libraries (srfi-1.import.scm) but they are not wrapped in module definitions. So when used, their definitions are automatically visible at toplevel, in addition to being

Re: [Chicken-users] module and macro documentation

2008-05-25 Thread Jim Ursetto
Oh, I guess I had another question. Is it too early to make an empty chicken-eggs/release/4 and slowly begin to populate it? On 5/25/08, Jim Ursetto [EMAIL PROTECTED] wrote: This is really neat and very straightforward. I have one question so far

Re: [Chicken-users] my first chicken 4 modules ;)

2008-05-27 Thread Jim Ursetto
!) (prefix (only scheme list-vector vector-list vector-fill!) %)) and then used %list-vector as the core version. This worked fine. But I'm not sure if it's correct. On Tue, May 27, 2008 at 7:02 AM, Jim Ursetto [EMAIL PROTECTED] wrote: Attached are my first stabs

[Chicken-users] miscmacros hygienic

2008-05-28 Thread Jim Ursetto
I ported miscmacros (attached) to the hygienic branch and had a couple questions. First, is anyone using miscmacros? I was wondering about the following proposed change to the anaphoric macros: Current - Proposed (if* x y z) - (if* (it x) y z) (while* test body) - (while*

Re: [Chicken-users] my first chicken 4 modules ;)

2008-05-28 Thread Jim Ursetto
On 5/28/08, felix winkelmann [EMAIL PROTECTED] wrote: 2) Throw something like (display foobar), where foobar is unbound, into your module and at runtime it will actually display #unbound value without throwing an error. If a procedure is unbound, it similarly complains about 'Error:

Re: [Chicken-users] miscmacros hygienic

2008-05-28 Thread Jim Ursetto
On 5/28/08, Kon Lovett [EMAIL PROTECTED] wrote: I use the anaphoric forms but not in anger. Yeah, the above is more Scheme-ish but I suggest leaving it. OK, I changed it back in my copy. The totally hygienic versions are still in there, just commented out. Anyway, hygienic if* is basically

Re: [Chicken-users] miscmacros hygienic

2008-05-29 Thread Jim Ursetto
On 5/29/08, felix winkelmann [EMAIL PROTECTED] wrote: On Thu, May 29, 2008 at 6:05 AM, Kon Lovett [EMAIL PROTECTED] wrote: That will be unworkable for the user. Hey, implementing this is not easy! Don't think for a moment we're taking this for granted -- I just want to point out any issues I

Re: [Chicken-users] Hygienic branch of chicken-setup broken

2008-06-12 Thread Jim Ursetto
Out of curiosity, did you rebuild chicken-setup with the hygienic branch after building it the first time with your regular compiler? On 6/12/08, John Cowan [EMAIL PROTECTED] wrote: If you ask to set up anything, you get the usual prompt that it's not installed and then crash with Error:

Re: [Chicken-users] Soundex

2008-06-23 Thread Jim Ursetto
On 6/16/08, Kyle R. Burton [EMAIL PROTECTED] wrote: [felix wrote] Well, why don't you make eggs from the stuff? I'd be delighted to add it to the repository and can give you commit rights, if you like. I'd be delighted to. If we want that to happen sooner rather than later, I'll request

Re: [Chicken-users] hygienic branch basically working

2008-07-11 Thread Jim Ursetto
On Mon, Jun 30, 2008 at 4:49 AM, felix winkelmann [EMAIL PROTECTED] wrote: Don't be afraid to report bugs and offer critique! If I come over grumpy at times, it's just because the module- and macro stuff stresses my programming abilities to the limit... Hi Felix. The behavior below doesn't

Re: [Chicken-users] hygienic branch basically working

2008-07-15 Thread Jim Ursetto
Works great now. Sorry for the delay in feedback, I was out of town for a couple weeks. I will dive in again shortly. This module stuff is complicated, isn't it. On Tue, Jul 15, 2008 at 7:48 AM, felix winkelmann [EMAIL PROTECTED] wrote: On Fri, Jul 11, 2008 at 9:38 PM, Jim Ursetto [EMAIL

Re: [Chicken-users] Open question on C binding style

2008-07-16 Thread Jim Ursetto
On Wed, Jul 16, 2008 at 9:54 PM, Kon Lovett [EMAIL PROTECTED] wrote: 1) When there is a one to one mapping between a Scheme variable/constant a C variable/macro-constant/constant/enum should the Scheme symbol naming mirror the C naming? Should the C 'SOME_C_LIBRARY_MACCONST' identifier be

Re: [Chicken-users] Missing Libraries

2008-07-20 Thread Jim Ursetto
Hi, Try `make clean` first. My guess is you compiled directly inside the tutorial code directory--but there's already a binary there which will not be updated with `make`. Basically, you're running the old binary. I'll remove it from the download tree. On Sat, Jul 19, 2008 at 10:50 AM,

Re: [Chicken-users] cross-compiling version of chicken-setup (was Re: chicken-setup)

2008-07-23 Thread Jim Ursetto
On Tue, Jul 22, 2008 at 2:44 PM, felix winkelmann [EMAIL PROTECTED] wrote: On Tue, Jul 22, 2008 at 7:24 AM, Shawn Rutledge [EMAIL PROTECTED] wrote: Now for the next problem with this same egg: it requires eggdoc (the .meta file has (needs eggdoc ...)). I don't really want to install that on

Re: [Chicken-users] tinyclos and the repl

2008-07-24 Thread Jim Ursetto
On Thu, Jul 24, 2008 at 9:53 AM, Jörg F. Wittenberger [EMAIL PROTECTED] wrote: It assumes that it can call read on a port when peek-char returns #\( and assumes that, once read read the expression, can continue to read from the port right after the corresponding #\) . Unfortunately chicken's

Re: [Chicken-users] Segfault - a hard one

2008-08-04 Thread Jim Ursetto
On Mon, Aug 4, 2008 at 2:28 PM, Jörg F. Wittenberger [EMAIL PROTECTED] wrote: Please find attached a self contained program, which is supposed to run a useless thread for 3 seconds, kill it (logging a notice about an exception being caught), create some garbage (logging a notice before and

Re: [Chicken-users] Segfault - a hard one

2008-08-04 Thread Jim Ursetto
On Mon, Aug 4, 2008 at 9:30 PM, Ivan Raikov [EMAIL PROTECTED] wrote: The program also ran fine on my system (Linux, Chicken 3.3.4), but when I compiled with csc -O2 I get this [crash] As an additional data point, compiling -O2 on my system does NOT crash. System again: $ csc -V Version

Re: [Chicken-users] Good way to code the equivalent to this?

2008-08-24 Thread Jim Ursetto
As a comparison, Felix's solution performs equivalently to my alist example when compiled, but runs much faster from the REPL. It also uses 9MB instead of 13MB. It's also simpler. On Sun, Aug 24, 2008 at 4:06 AM, felix winkelmann [EMAIL PROTECTED] wrote: This should perform much better and

Re: [Chicken-users] Good way to code the equivalent to this?

2008-08-24 Thread Jim Ursetto
Note that your solution effects a mapping of x - y, not from x - y - #t. That gets the job accomplished correctly, but doesn't reflect the original Perl code. For a fair comparison, you have to change the perl code to match, and then it runs in 1/3 of the memory and 1/2 the time of the original

[Chicken-users] hygienic named let

2008-08-30 Thread Jim Ursetto
There's a bit of a corner case I found with hygienic named let. #;3 (module foo (bar) (import scheme) (define-syntax bar (syntax-rules () ((_) (let loop ((x 3)) x) #;4 (module baz () (import foo) (bar)) Warning: reference to

Re: [Chicken-users] hygienic named let

2008-09-01 Thread Jim Ursetto
On Mon, Sep 1, 2008 at 2:34 AM, felix winkelmann [EMAIL PROTECTED] wrote: On Sun, Aug 31, 2008 at 7:28 AM, Jim Ursetto [EMAIL PROTECTED] wrote: #;3 (module foo (bar) (import scheme) (define-syntax bar (syntax-rules () ((_) (let loop ((x 3

[Chicken-users] base64 module naming

2008-09-01 Thread Jim Ursetto
Style question: the Chicken 3 version of base64 consists of two procedures: base64:encode and base64:decode. For the modularized version in Chicken 4, should the prefix simply be stripped (encode, decode), or should they be more descriptive, such as base64-encode and base64-decode? I'm leaning

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

2008-11-02 Thread Jim Ursetto
I will work on a fix now. On Sun, Nov 2, 2008 at 5:57 PM, felix winkelmann [EMAIL PROTECTED] wrote: On Fri, Oct 31, 2008 at 2:51 PM, Graham Fawcett [EMAIL PROTECTED] wrote: The current base64 egg for Chicken 3 builds, but gives me incorrect results. The non-working version is by Bailey,

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

2008-11-02 Thread Jim Ursetto
I updated the Chicken 3 egg and will update the Chicken 4 version shortly. In the meantime the really brain-dead patch is attached. On Fri, Oct 31, 2008 at 2:51 PM, Graham Fawcett [EMAIL PROTECTED] wrote: The current base64 egg for Chicken 3 builds, but gives me incorrect results.

Re: [Chicken-users] chmod a+rw indeed

2008-11-22 Thread Jim Ursetto
Drake, I duplicated your issue with 3.4.0 and I believe it is still an issue in the latest builds. This only occurs on Linux (because NEEDS_RELINKING is only set to 'yes' in Makefile.linux). The installed files in /usr/local are not affected -- only executables in the build directory itself.

Re: [Chicken-users] Compiling w/ syntax-case

2008-12-09 Thread Jim Ursetto
On Mon, Dec 8, 2008 at 2:11 AM, felix winkelmann [EMAIL PROTECTED] wrote: On Mon, Dec 8, 2008 at 4:52 AM, Matt Gushee [EMAIL PROTECTED] wrote: But anyway, I have previously worked through various tutorials and developed a few simple programs w/ Chicken, and I'm now attempting to create an

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.

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

2009-01-29 Thread Jim Ursetto
On Thu, Jan 29, 2009 at 5:56 AM, felix winkelmann bunny...@gmail.com wrote: On Thu, Jan 29, 2009 at 9:41 AM, Jim Ursetto zbignie...@gmail.com wrote: 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

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

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

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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: 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 ...) -

  1   2   3   4   >