Re: [Chicken-users] string-translate and utf-8

2008-11-08 Thread Sunnan *
Well; here's a transcript: CHICKEN (c)2008 The Chicken Team (c)2000-2007 Felix L. Winkelmann Version 3.2.7 - linux-unix-gnu-x86-64 [ 64bit manyargs dload ptables applyhook hostpcre ] compiled 2008-08-21 on debian (Linux) #;1> (string-translate " i " "ö " "o_") Error: (string-translate) invalid

[Chicken-users] string-translate and utf-8

2008-11-02 Thread Sunnan
64 [ 64bit manyargs dload ptables applyhook hostpcre ] compiled 2008-08-21 on debian (Linux) Any ideas on how to fix this? Sunnan ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] Re: Style Guide

2007-11-07 Thread Sunnan
Ivan Shmakov wrote: >>>>>> Sunnan <[EMAIL PROTECTED]> writes: > > (define (fib) > > (let loop ((a 1) (b 1)) > > (set! fib (lambda () (loop b (+ a b > > a)) > > This `set!' isn't necessary, compare: >

Re: [Chicken-users] Re: Style Guide

2007-11-07 Thread Sunnan
hat too many generators afford, so I don't do this so much. I usually use generator for generating ids where http://okmij.org/ftp/Scheme/monad-in-Scheme.html would use either a global variable or a state monad. Sunnan ___ Chicke

Re: [Chicken-users] Re: Style Guide

2007-11-06 Thread Sunnan
Jörg F. Wittenberger wrote: For pure chicken code this maybe correct. But some Scheme implementations happen to treat the former form as a global variable, which can be set! later on, while the latter is beeing compiled into a static binding and set! on it will raise an error. Thanks for this c

Re: [Chicken-users] Re: Style Guide

2007-11-05 Thread Sunnan
7;m not so sure. For no small part because the text editor I use (TextMate) doesn't highlight the first form as a function definition but does highlight the second form. The second form. Shorter is better. Always, always, always. Sunnan __

Re: [Chicken-users] Eggology

2007-08-23 Thread Sunnan
e is a tree of non-circular dependencies. Syntax-case is low-level, srfi-42 and miscmacros are control structures... This is part of what lisp is to me; layers upon layers of code. Of course, I'm not saying that dependencies are an end in itself; I'm just wondering if you or

Re: [Chicken-users] Eggology

2007-08-22 Thread Sunnan
Ivan Raikov wrote: Another solution would be to modify salmonella to construct a dependency graph for all eggs and issue a warning for each dependency cycle detected. That would detect the problems, but wouldn't really solve them. ___ Chicken-user

Re: [Chicken-users] Eggology

2007-08-21 Thread Sunnan
Benedikt Rosenau wrote: Anyway, I propose the following: please keep dependencies between eggs small. I disagree; sometimes, it seems better to split common code to libraries than to have duplication. Dependencies can be hell, but so can duplication. Further, no mutual dependencies (A needs

Re: [Chicken-users] libffi and cmake on gnu/linux again

2007-07-16 Thread Sunnan
felix winkelmann wrote: It should be possible to modify the compiler- and linker flags in ccmake to use libffi. Thanks. ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] libffi and cmake on gnu/linux again

2007-07-16 Thread Sunnan
felix winkelmann wrote: BTW, in ccmake you can simply press "e" and continue. It should still be able to generate a makefile. OK. I was concerned that that would build a version of chicken without libffi support. Sunnan ___ Chi

[Chicken-users] libffi and cmake on gnu/linux again

2007-07-13 Thread Sunnan
/. /usr /usr/share /usr/share/doc /usr/include /usr/include/ffi.h /usr/include/ffitarget.h /usr/lib /usr/lib/libffi.a /usr/lib/libffi.la /usr/lib/libffi_pic.a /usr/lib64 /usr/lib64/libffi.a /usr/lib64/libffi.la /usr/lib64/libffi_pic.a /usr/share/doc/libffi4-dev /usr/lib/libffi.so /us

Re: [Chicken-users] Syntactic sugar for regular expressions and URIs

2007-07-04 Thread Sunnan
because I dislike non-sexp-syntaxes so much. (quote and quasiquote are grandfathered in because it's so useful to toggle between data and code.) Sunnan ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] R6RS Rant

2007-06-05 Thread Sunnan
the same across most Schemes. Sunnan ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] chicken and stalin

2007-06-04 Thread Sunnan
felix winkelmann wrote: A stalin-compat library? No problem. It wasn't so much a request as an example of what people can do. ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] chicken and stalin

2007-06-04 Thread Sunnan
bryan rasmussen wrote: Hi, I was wondering about integration between Chicken and Stalin, has anyone ever done anything to use the two together in any way? 1. Stalin reads sexps, chicken writes sexps (or vice versa) 2. Develop with a subset of chicken, deploy with stalin 3. Separate processes

Re: [Chicken-users] Choosing chicken

2007-06-03 Thread Sunnan
ht degenerate into AOL hell as everybody me-too:s, but for me it's ease of use, good continuation performance, many extensions, great community (+ felix!) and good integration with C and Unix. Sunnan ___ Chicken-users mailing list Chicken-users@nongnu.

(could be slightly OT) Re: [Chicken-users] Chicken manual in Texinfo format

2007-06-01 Thread Sunnan
a way to *strictly* parse it. Not easy considering the amount of abuses of syntax people have put in over the years. (Using our h2-syntax to center images is one of the worst examples, but there are others, less extreme.) I do agree, though. S

Re: [Chicken-users] R6RS

2007-05-21 Thread Sunnan
On 5/18/07, Michael McDermott <[EMAIL PROTECTED]> wrote: Ubiquitous Unicode support I tend to look at requiring Unicode support as analogous to requiring the full numeric tower -- really important for some applications, and I have no beef with Chicken's solutions to both of these problems. Li

Re: [Chicken-users] import, the utf8 egg, syntax-case and tinyclos

2006-03-27 Thread Sunnan
quire-extension makes the program run fine (but I need syntax-case for some things; notably import and, if the program grows, I'm sure I'll use srfi-42 somewhere). Since I'm sure many of you already use syntax-case together with tinyclos, I'm

[Chicken-users] syntax-case tinyclos redux

2006-03-27 Thread Sunnan
I need syntax-case for some things; notably import and, if the program grows, I'm sure I'll use srfi-42 somewhere). Since I'm sure many of you already use syntax-case together with tinyclos, I'm asking for some trouble-shootin

Re: [Chicken-users] import, the utf8 egg, syntax-case and tinyclos

2006-03-25 Thread Sunnan
On Sat, 2006-03-25 at 17:03 +0100, felix winkelmann wrote: > installed under this name, i.e. you have to do it manually, like this: > > (define-generic clean) > > Just put it before your first method definition. Thank you very much! (And my apologies t

[Chicken-users] string-split-fields

2006-03-25 Thread Sunnan
:infix) returns an extra "" at the end of the list, to distinguish it from (string-split-fields "foo" "foobarfooquuxfoo foo baz " #:infix) Sunnan PS My tinyclos/syntax-case problem that I reported earlier remains unsolved. I'll download darcs chicken and see if it'

Re: [Chicken-users] import, the utf8 egg, syntax-case and tinyclos

2006-03-23 Thread Sunnan
make-method add-method <-- clean is a method I have defined differentlly for numbers, characters and strings. Works fine when I'm not requiring syntax-case. AML, Sunnan ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users

[Chicken-users] import, the utf8 egg, syntax-case and tinyclos

2006-03-22 Thread Sunnan
t and syntax-case makes the program work fine for ascii clean data.) Sunnan ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users

[Chicken-users] stripping accents

2006-03-11 Thread Sunnan
hanks, Sunnan ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] Question

2005-12-28 Thread Sunnan
On Sun, 2005-12-25 at 23:49 +0100, Benedikt Rosenau wrote: > What made you try or choose Chicken in the first place? > I liked that it was relatively easy to use C libraries. I prefer chicken over bigloo -- iirc, call-with-current-continuation is cheaper in chicken, too. _

the point of REC , was (Re: [Chicken-users] Re: crazy behaviour in csi!)

2005-12-06 Thread Sunnan
On Mon, 2005-12-05 at 23:54 +0100, Jens Axel Søgaard wrote: > Sunnan wrote: > > ;; instead of: > > (let f ((n (...))) > > (if (zero? n) 1 > > (* n (f (- n 1) > > ;; it's the exact same number of characters! > > Almost - note that REC retu

Re: [Chicken-users] crazy behaviour in csi!

2005-12-05 Thread Sunnan
On Mon, 2005-12-05 at 23:49 +, Thomas Chust wrote: > On Mon, 5 Dec 2005, Sunnan wrote: > > > [...] > > I hadn't looked at srfi-31 before. I thought I knew most of the srfis. > > This one was pretty disappointing. > > [...] > > Hmm, most of the time

Re: [Chicken-users] crazy behaviour in csi!

2005-12-05 Thread Sunnan
Thanks, I guess I was stressed, and forgot that unknown macros can already be defined. The error message just looked so weird. I was pretty sleep-deprived at the time. I hadn't looked at srfi-31 before. I thought I knew most of the srfis. This one was pretty disappointing. (define (...) 10) ; Th

[Chicken-users] crazy behaviour in csi!

2005-12-05 Thread Sunnan
a in near the bottom of http://www.paulgraham.com/power.html help! years truely, sunnan ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] Packaging practices

2005-11-07 Thread sunnan
hether or not the configure script and makefile was generated by the autotools doesn't seem to be important. Thanks again. Sunnan ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users

[Chicken-users] Packaging practices

2005-11-06 Thread sunnan
gram uses? I'd love to see example chicken projects, I'm especially interested in autoconf and automake usage but other solutions are also of interest. Sunnan ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org

Re: [Chicken-users] an ode to Spiffy

2005-05-26 Thread Sunnan
Magnus Therning <[EMAIL PROTECTED]> writes: > I'm sure you've read what Paul Graham has to say after using Lisp > (almost as nice as Scheme :-) for web applications in ViaWeb? He used CPS because full continuations weren't available; maybe Scheme could do it nicer. -- .i mi'e snan .i mi rodo ro

[Chicken-users] darcs patch: fixed a small typo in README

2005-04-26 Thread sunnan
Wed Apr 27 00:33:28 CEST 2005 [EMAIL PROTECTED] * fixed a small typo in README New patches: [fixed a small typo in README [EMAIL PROTECTED] { hunk ./README 210 -hen.el an emacs mode for exiting Scheme programs, by Linh Dang +hen.el an emacs mod