Re: [Chicken-users] Undefined symbols: _C_toplevel (OS X 10.6.6 / Chicken 4.6.0)

2011-01-15 Thread Peter Bex
On Sat, Jan 15, 2011 at 05:27:59PM +0100, Peter Bex wrote: > I don't know why you chose to use -dynamiclib (or what it actually *does*), > but changing -dynamiclib to -shared worked for me: Ah, dynamiclib is an OS X-specific thing. I didn't initially see you were on OS X,

Re: [Chicken-users] Undefined symbols: _C_toplevel (OS X 10.6.6 / Chicken 4.6.0)

2011-01-15 Thread Peter Bex
On Sat, Jan 15, 2011 at 10:03:13AM -0500, David Dreisigmeyer wrote: > Hi everyone: > > I can't figure out why I'm getting the following: > > $ make clean && make > rm -rf cython_chicken.o libcython_chicken.so > gcc-4.2 -fPIC -g -c -m64 -I/usr/local/include cython_chicken.c > gcc-4.2 -dynamiclib -

Re: [Chicken-users] Re: sqlite3 egg still failing in experimental branch

2011-01-14 Thread Peter Bex
On Fri, Jan 14, 2011 at 04:32:07PM -0700, Alan Post wrote: > I'm suffering from priority inversion on this issue: jbogenturfa'i > requires the experimental branch to run[1][2], while one of it's > dependencies, sqlite3, won't run on the experimental branch.[3] The fact your egg requires experimen

Re: [Chicken-users] http-client and set-cookie

2011-01-13 Thread Peter Bex
On Fri, Jan 14, 2011 at 12:55:41AM +0900, Daishi Kato wrote: > Hi Peter, Hello Daishi, > It gives me: > Error: bad argument type - not a structure of the required type > (/ "xxx" "") > URI-common > > It seems like it fails in path-match? in process-set-cookie!. I think I see what you mean.

Re: [Chicken-users] http-client and set-cookie

2010-12-25 Thread Peter Bex
On Sat, Dec 25, 2010 at 08:04:33PM -0300, Hugo Arregui wrote: > Hi guys, > > I localized the problem, the request header contains: (set-cookie > #(("blogger_TID" . "XXX") ((httponly . #t > and in http-client.scm:299 (process-set-cookie! proc), (get-param > 'path c) returns #f > > I just chec

Re: [Chicken-users] EOF problem

2010-12-07 Thread Peter Bex
On Tue, Dec 07, 2010 at 04:18:49PM -0500, David Dreisigmeyer wrote: > Thank you Alan and Peter - that took care of it. > > csc is also complaining about, e.g., int32_t , uint , uint64_t , > __attribute__ and > > #define CL_API_SUFFIX__VERSION_1_0 AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER The p

Re: [Chicken-users] EOF problem

2010-12-07 Thread Peter Bex
On Tue, Dec 07, 2010 at 03:15:32PM -0500, David Dreisigmeyer wrote: > I'm getting the following error for the attached cl.scm file (OpenCL > 1.0 on OS X 10.6): > > $ csc -s -o cl.so cl.scm -framework OpenCL -framework Accelerate > Warning: (line 205) unterminated here-doc string literal `EOF' > Er

Re: [Chicken-users] OpenCL hello example (OS X 10.6 / OpenCL 1.0)

2010-12-07 Thread Peter Bex
On Mon, Dec 06, 2010 at 09:45:50PM -0500, David Dreisigmeyer wrote: > In case anyones interested here's a working example of some OpenCL > code. I'm hoping to pursue this line a bit more, but wanted to verify > it could work easily. I see a C program which happens to be invoked from Chicken. That

Re: [Chicken-users] url links for images in wiki

2010-12-05 Thread Peter Bex
On Sun, Dec 05, 2010 at 11:56:23AM +, Peter Lane wrote: > Hi, > > After a number of false starts, I have managed to get images to display in > the wiki. > Finally, I managed to work out the following absolute url, which does (seem > to) work: > [[image: > http://code.call-cc.org/svn/chicken-e

Re: [Chicken-users] llvm-gcc / clang

2010-12-03 Thread Peter Bex
On Fri, Dec 03, 2010 at 03:32:56AM -0500, Felix wrote: > > This looks nice. I didn't know about those. When I looked it up, it > > said that both are C99, which leads me to the question: do we have an > > "official" standpoint about what C level Chicken needs? > > It should work with the usual c

Re: [Chicken-users] llvm-gcc / clang

2010-12-02 Thread Peter Bex
On Thu, Dec 02, 2010 at 04:16:21PM +0100, Thomas Chust wrote: > what about using > > #include > [...] > if (isnan(x)) ... > > or maybe > > [...] > if (fpclassify(x) == FP_NAN) ... > > instead of a comparison? I would expect the compiler to inline these > calls and produce equally eff

Re: [Chicken-users] llvm-gcc / clang

2010-12-01 Thread Peter Bex
On Wed, Dec 01, 2010 at 11:04:17AM -0500, David Dreisigmeyer wrote: > Would there be any advantages / disadvantages to using llvm-gcc / > clang versus gcc? advantage: You'd have a fully BSD-licensed compiler stack. disadvantage: You'd be pretty much the only user that uses llvm. Apart from that,

Re: [Chicken-users] Problems with thread-sleep!

2010-12-01 Thread Peter Bex
On Tue, Nov 30, 2010 at 09:17:32PM +0100, Karel Miklav wrote: > I want to slow down a script to a number of cycles per > second with: > > (thread-sleep! (/ 1 12)) > > That however fails Fails how? > so I ended up importing numbers and > adapting the line to: > > (thread-sleep! (exact->inex

Re: [Chicken-users] swig

2010-12-01 Thread Peter Bex
On Wed, Dec 01, 2010 at 08:50:22AM -0500, David Dreisigmeyer wrote: > Has anyone been able to get the SWIG example to run? > > http://www.swig.org/Doc2.0/Chicken.html#Chicken I don't know but last I read anything about SWIG was in Chicken 1. AFAIK it hasn't been kept up-to-date since then. The s

Re: [Chicken-users] c++ example

2010-12-01 Thread Peter Bex
On Wed, Dec 01, 2010 at 08:23:40AM -0500, David Dreisigmeyer wrote: > This may be getting closer. Here's my code again (the names are > slightly different from above): Here it complains about punCpp.h not being available. Simply making a file punCpp.h containing one line: void punCpp(void); ca

Re: [Chicken-users] Memoizing a procedure

2010-11-29 Thread Peter Bex
On Sun, Nov 28, 2010 at 11:42:20PM -0300, Hugo Arregui wrote: > I didn't know about keyword arguments in scheme. It's SRFI-88 stuff? Like Alan said it's DSSSL-style. Optional arguments can also be implemented through let[*]-optionals or manually by using dotted tail notation and then checking the

Re: [Chicken-users] Memoizing a procedure

2010-11-28 Thread Peter Bex
On Sun, Nov 28, 2010 at 05:27:29PM +0100, Peter Bex wrote: > It looks good to me. It only works for simple procedures though, > not for procedures with optional arguments or keyword arguments. And not for procedures returning zero or multiple values. Cheers, Peter -- http://sjamaan.

Re: [Chicken-users] Memoizing a procedure

2010-11-28 Thread Peter Bex
On Sun, Nov 28, 2010 at 12:53:53PM -0300, Hugo Arregui wrote: > Hi guys, Hi Hugo! > I wrote a small code to add procedure memoization, most for learning > purposes (attached). > I'm glad to ear your suggestions. It looks good to me. It only works for simple procedures though, not for procedures

Re: [Chicken-users] paredit

2010-11-28 Thread Peter Bex
On Sun, Nov 28, 2010 at 08:18:11AM -0500, David Dreisigmeyer wrote: > Hi, > > I've been unable to get paredit to work in inferior-scheme-mode. It > works with gambit, which uses a gambit.el file versus quack or cluck. Works fine here. Are you sure you're running the latest version? IIRC an olde

Re: [Chicken-users] utf8 and string-ref performance

2010-11-25 Thread Peter Bex
On Thu, Nov 25, 2010 at 06:15:50AM -0500, Felix wrote: > >> Sorry, I don't understand? They are not invalidated by GC (in case > >> you mean that). > > > > So that means the locative will stay around while the string itself > > might have been collected? > > If it's a weak locative, yes. But dere

Re: [Chicken-users] utf8 and string-ref performance

2010-11-25 Thread Peter Bex
On Thu, Nov 25, 2010 at 02:50:23AM +0100, Felix wrote: > > I'm afraid this is just the "shared substring/blob" structure proposal > > in another guise. I don't know if locatives are useful; those can't > > really be kept around for a long time, can they? > > Sorry, I don't understand? They are no

Re: [Chicken-users] Can an egg have a library and executable with the same name?

2010-11-25 Thread Peter Bex
On Wed, Nov 24, 2010 at 08:16:55PM -0700, Alan Post wrote: > If it isn't, can someone point me to an egg that has > a library and an executable named after the egg? awful does this. Cheers, Peter -- http://sjamaan.ath.cx -- "The process of preparing programs for a digital computer is especially

Re: [Chicken-users] Chicken Gazette - Issue 13

2010-11-24 Thread Peter Bex
On Wed, Nov 24, 2010 at 06:15:24PM +0100, Jörg F. Wittenberger wrote: > > http://wiki.postgresql.org/wiki/Replication%2C_Clustering%2C_and_Connection_Pooling#Comparison_matrix > > I did not find anything about details of the master-master replication > there. Though the usual way is, that all cha

Re: [Chicken-users] utf8 and string-ref performance

2010-11-24 Thread Peter Bex
On Wed, Nov 24, 2010 at 07:13:10PM +0100, Felix wrote: > > With cons cells you should be able to implement this efficiently enough. > > We don't have anything like string-pointers which can store arbitrary > > indices in a string AFAIK. That would be useful to have, I guess. > > How should that l

Re: [Chicken-users] utf8 and string-ref performance

2010-11-24 Thread Peter Bex
On Wed, Nov 24, 2010 at 09:33:24AM -0700, Alan Post wrote: > I'm using irregex for character class matching. The Irregex in experimental is reasonably fast for charsets, giving O(log(n)) performance for charsets membership checking. If the charset is continuous (ie, with no gaps) it's actually O(

Re: [Chicken-users] utf8 and string-ref performance

2010-11-24 Thread Peter Bex
On Wed, Nov 24, 2010 at 08:37:37AM -0700, Alan Post wrote: > gentufa'i works by storing the entire input port in a string, and > ceating position objects to refer to the "rest of the string" as I > parse. > > This means I need to perform the following: > > 1) reference a character by index > 2) c

Re: [Chicken-users] Chicken Gazette - Issue 13

2010-11-23 Thread Peter Bex
On Tue, Nov 23, 2010 at 12:32:24AM +0100, Jörg F. Wittenberger wrote: > > == 2. Core development > > The scrutinizer was updated to give a warning when a one-armed `if` > > is used in tail-position, as suggested on chicken-users by Jörg > > Wittenberg. > > sure? or is -- no, wait, no "git" strugg

Re: [Chicken-users] Re: [Chicken Gazette - Issue 13] - ##sys#:keyword:'s

2010-11-22 Thread Peter Bex
On Mon, Nov 22, 2010 at 10:47:51PM +0100, Jörg F. Wittenberger wrote: > May I ask a simple question: what is the actual rational behind keywords > (wrt. symbols)? You may ask any question you wish :) > Are there any good references? I'm not sure. It appears to be one of those typical "historica

[Chicken-users] Chicken Gazette - Issue 13

2010-11-22 Thread Peter Bex
bootstrap compiler will eventually be used to compile the * Peter Bex released a fix for a problem in the postgresql egg with the builtin "name" datatype, as well as a problem with NUL bytes in byte-arrays.

Re: [Chicken-users] Other Cheney-MTA systems?

2010-11-13 Thread Peter Bex
On Sat, Nov 13, 2010 at 02:26:42PM +0100, Felix wrote: > Another language implementation using this method is not known to me, > which is a pity. That may be caused because doing it this way is so > unorthodox and because CPS compilers have become unfashionable. What is used instead of CPS nowaday

Re: [Chicken-users] Other Cheney-MTA systems?

2010-11-13 Thread Peter Bex
On Fri, Nov 12, 2010 at 07:23:41PM -0500, John Tobey wrote: > Hi all, > > Anyone know of an active project or system other than Chicken that uses the > machine's stack in a similar way? At T-DOSE someone mentioned that REBOL uses this technique. I was able to find this reference http://ll1.ai.mit

Re: [Chicken-users] errors with chicken-doc-admin & chicken-4.6.2

2010-11-11 Thread Peter Bex
On Wed, Nov 10, 2010 at 07:40:48PM -0800, Imran Rafique wrote: > Error: (irregex-match-start-index) not a valid index > # > 8 > > Is there a 4.6.2 compatible version of chicken-doc-admin that I should > be using, which chicken-install didn't fetch for me? This is an API change in irregex which ha

Re: [Chicken-users] date, string formatting and locale

2010-11-03 Thread Peter Bex
On Wed, Nov 03, 2010 at 11:32:37AM -0300, Hugo Arregui wrote: > I think that is supported, I already wrote an C code to test it: > > "11:30.08, miércoles de noviembre de 2010" Hm, this could be a bug. Maybe someone who knows how this is designed to work could weigh in on this? > (But sorry, I d

Re: [Chicken-users] date, string formatting and locale

2010-11-03 Thread Peter Bex
On Wed, Nov 03, 2010 at 10:29:14AM -0300, Hugo Arregui wrote: > Hi guys, > > I'm facing some troubles getting a formatted string from a date. > > 1) Using posix: > > (use posix) > (time->string (string->time "2" "%d")) > "Tue Jan 2 00:00:00 1900" > > but, my current locale es: > > (use locale

Re: [Chicken-users] using mmap files as strings?

2010-11-03 Thread Peter Bex
On Wed, Nov 03, 2010 at 01:19:17PM +0100, Jörg F. Wittenberger wrote: > > That would be very annoying. > > sure in a way. > > mut not much worse that having unsafe libraries for the same purpose > (speed) We've done away with libuchicken, and I don't miss it :) Cheers, Peter -- http://sjamaan.

Re: [Chicken-users] using mmap files as strings?

2010-11-03 Thread Peter Bex
On Wed, Nov 03, 2010 at 12:36:18PM +0100, Jörg F. Wittenberger wrote: > I wonder if it would be feasible to to support 'heavy strings' by a > compile time option. At worst this could imply that there would be > 2 .so files per egg, one for cheap strings and one for heavy strings. That would be ve

Re: static linking (Re: [Chicken-users] wish-list

2010-10-29 Thread Peter Bex
On Fri, Oct 29, 2010 at 11:30:48AM -0600, Alan Post wrote: > I need this support too, though not for as many eggs as Daishi > needs. > > I was planning on adding support to those eggs I did need, and I > would hope I'd be able to get the patch applied to the repository. Oh don't get me wrong, it

Re: static linking (Re: [Chicken-users] wish-list

2010-10-29 Thread Peter Bex
On Fri, Oct 29, 2010 at 09:02:05AM -0600, Alan Post wrote: > Not every egg supports linking to the .o file. For those eggs that > don't, you'll need to add the support yourself. If you do, I'm sure > a patch will be accepted making each egg you work with able to > statically link. Yes, but it wo

Re: static linking (Re: [Chicken-users] wish-list

2010-10-29 Thread Peter Bex
On Fri, Oct 29, 2010 at 10:57:23PM +0900, Daishi Kato wrote: > Oh, this sounds something. Yes, I don't need to eliminate ld dependence. > I'm not sure if I understand the usage of -deploy. > > csc: > -deploydeploy self-contained application bundle Try http://wiki.call-

[Chicken-users] [ANN] Spiffy 4.9 exits due to a bug

2010-10-28 Thread Peter Bex
Hello all, There's a serious bug in Spiffy 4.9 which causes it to exit after a number of TCP or SSL errors have occurred. This has been fixed in 4.10. 4.9 was released last Sunday (October 24th), so you're probably only running this if you installed/updated Spiffy this week. Sorry for any inconve

Re: [Chicken-users] Survey results

2010-10-25 Thread Peter Bex
On Mon, Oct 25, 2010 at 07:05:36AM -0600, Alan Post wrote: > The cross product of the operating system and cpu architecture usage > suggests we don't really test enough combinations of os and cpu. It's true, for haiku, Windows and solaris, and some architectures. I myself use it on NetBSD on both

Re: [Chicken-users] wish-list

2010-10-25 Thread Peter Bex
On Mon, Oct 25, 2010 at 06:07:06AM -0400, Felix wrote: > > I added a "wish-list" to the wiki to hold stuff that would be nice to > have. This is of course not meant as a replacement for the > bug-tracker, but it may be worthwhile to have a place where to put > more ambitious ideas. > > http://w

Re: [Chicken-users] using mmap files as strings?

2010-10-23 Thread Peter Bex
On Fri, Oct 22, 2010 at 05:58:02PM -0600, Alan Post wrote: > This is excellent, I've learned a lot more about how all of this > works together now. > > What method would I use to convert a pointer and a length to a > string? Even though I'm copying the memory, how do I do it at > all? Something

Re: [Chicken-users] using mmap files as strings?

2010-10-22 Thread Peter Bex
On Fri, Oct 22, 2010 at 06:20:01AM -0400, Felix wrote: > I can't think of a way in the moment. Strings require a header-word, > and the data pointed to by a pointer doesn't have that header, so it > isn't possible to "sneak in" a pointer as a replacement of a string. > > > I'm > > specifically int

Re: [Chicken-users] Installing data files for eggs

2010-10-21 Thread Peter Bex
On Thu, Oct 21, 2010 at 02:11:14AM -0400, Felix wrote: > IIRC, debian only allows post-installation changes to VARDIR. Does this > apply to DATADIR as well? I don't know Debian. > Where do you (Peter, Jim) see this data files > to be copied to on egg-installation? Any place that's set aside for

Re: [Chicken-users] Problems on upgrade of Ubuntu to 'maverick'

2010-10-20 Thread Peter Bex
On Wed, Oct 20, 2010 at 08:23:14AM +0530, Enwin Thun wrote: > Hello All: > > Upon upgrading to Ubuntu 'maverick' the egg repository changes from > /var/lib/chicken/4/ to > /var/lib/chicken/5/. Hence, previously installed eggs ( readline, > numbers ) are not found. In true Debian fashion, the lat

Re: [Chicken-users] missing csi top-level commands

2010-10-19 Thread Peter Bex
On Tue, Oct 19, 2010 at 01:48:18PM -0700, Imran Rafique wrote: > Folks, > > According to http://wiki.call-cc.org/manual/Using%20the%20interpreter > , there are more top-level commands documented than seem to be > available, at least on my install. > > For example, I don't seem to have ,h or ,ch .

Re: Removing deprecated wiki-parse egg from the repository [Was: Re: [Chicken-users] More on Packaging eggs]

2010-10-19 Thread Peter Bex
On Sat, Oct 09, 2010 at 01:08:10PM +0900, Alex Shinn wrote: > If anyone is interested I can revert it to the original syntax used on the > synthcode.com wiki, otherwise go ahead and delete it. Nobody has spoken up, so I deleted it. If anyone changes their mind, it can be retrieved from svn's his

Re: [Chicken-users] Installing data files for eggs

2010-10-19 Thread Peter Bex
On Mon, Oct 18, 2010 at 07:37:51PM -0500, Jim Ursetto wrote: > > So, I think it would be a good idea to add something like this to > > setup-api: > > > (define style-path (data-path-for-extension 'slatex)) > > (install-data 'slatex > >              '("slatex.sty" "slatex-chicken.sty" "cltl.sty") >

Re: [Chicken-users] wiki not colorizing colorize sample

2010-10-15 Thread Peter Bex
On Thu, Oct 14, 2010 at 09:15:58PM -0400, John Gabriele wrote: > Hi, > > I just noticed a glitch in the code sample at > http://wiki.call-cc.org/egg/qwiki under "Create a subversion > repository". I'm seeing the comment ";; checked out" show up syntax > highlighted like a comment, but the comment

Re: [Chicken-users] wiki not colorizing colorize sample

2010-10-14 Thread Peter Bex
On Thu, Oct 14, 2010 at 11:15:34PM +0200, Moritz Heidkamp wrote: > I did! Actually, there was some styling in place already but it seems > the HTML generated by colorize has changed, is that possible? The > selector I used assumed that symbols are always nested within an > element. Well, long stor

Re: [Chicken-users] problem adding link to internal page in wiki

2010-10-14 Thread Peter Bex
On Thu, Oct 14, 2010 at 10:36:46PM +0200, Peter Bex wrote: > Hm, this appears to be a bug in the wiki code. I'll have to look at > that next week, I'm away for the weekend. Never mind my whining, I think I just fixed it. Mario said he's going to look at updating it this we

Re: [Chicken-users] problem adding link to internal page in wiki

2010-10-14 Thread Peter Bex
On Thu, Oct 14, 2010 at 04:30:47PM -0400, John Gabriele wrote: > The wiki automatically adds a hyphen to the generated link so it > points to https://wiki.call-cc.org/eggs-tutorial instead of > http://wiki.call-cc.org/eggs%20tutorial , which results in a broken > link. Hm, this appears to be a bug

Re: [Chicken-users] wiki not colorizing colorize sample

2010-10-14 Thread Peter Bex
On Thu, Oct 14, 2010 at 01:19:43PM -0400, John Gabriele wrote: > Hi, > > On the wiki's "Edit Help" page https://wiki.call-cc.org/edit-help , it > doesn't seem to be syntax highlighting the example showing off syntax > highlighting (the C sample under "Syntax coloring"). There isn't much coloring

Re: [Chicken-users] Using irregex safely & responsibly

2010-10-11 Thread Peter Bex
On Mon, Oct 11, 2010 at 09:51:15AM +0200, Peter Bex wrote: > > > #;9> (irregex-match-valid-index? m 3) > > > 0 > > > > It returns #t for this in the upstream irregex. > > I'll look into that. It's probably a bug introduced by a > Chicken-speci

[Chicken-users] Egg authors, please document your eggs!

2010-10-11 Thread Peter Bex
port (also Shawn Rutledge?) multidoc (also Peter Bex, i.e. myself) interval-digraph random-test signal-diagram input-classes neuromorpho miniML Jim Ursetto: osxattr Tony Sidaway: mw mw-core Joerg Wittenberg: high-load-scheduler (also Felix?) I'm sure for most eggs it sim

Re: [Chicken-users] Using irregex safely & responsibly

2010-10-11 Thread Peter Bex
On Mon, Oct 11, 2010 at 01:17:49PM +0900, Alex Shinn wrote: > > The valid-index? predicate does not return a boolean #t value: > > > > #;9> (irregex-match-valid-index? m 3) > > 0 > > It returns #t for this in the upstream irregex. I'll look into that. It's probably a bug introduced by a Chicken-s

[Chicken-users] Proxy support for http-client [Was: Re: I'm starting using chicken4]

2010-10-09 Thread Peter Bex
On Wed, Sep 29, 2010 at 12:25:52AM +0900, Daishi Kato wrote: > Porting my code from chicken3/http-client to chicken4/http-client > was fairly easy, except that I have to give up the proxy support. > So, Peter, my huge request is the proxy support. This has been added to trunk http-client and shoul

Re: [Chicken-users] Trouble with FFI and 64 bit machines

2010-10-08 Thread Peter Bex
On Fri, Oct 08, 2010 at 03:39:46PM -0300, Stephen Eilert wrote: > I get the following compilation warning, which is likely the source of > the corrupt pointer: > > csc -c testcase.scm > testcase.c: In function 'stub3': > testcase.c:31: warning: cast to pointer from integer of different size > > E

Removing deprecated wiki-parse egg from the repository [Was: Re: [Chicken-users] More on Packaging eggs]

2010-10-08 Thread Peter Bex
On Wed, Sep 29, 2010 at 04:25:09PM -0500, Jim Ursetto wrote: > > wiki-parse was and initial attempt to tweak what was originally a parser > > by Alex Shinn for mediawiki syntax, so that it could read svnwiki syntax. > > > > If Alex still wants to support it (I wouldn't recommend it, we've hacked >

Re: [Chicken-users] Using irregex safely & responsibly [Was: Re: dev-snapshot 4.6.3]

2010-10-08 Thread Peter Bex
On Fri, Oct 08, 2010 at 09:05:10AM +0200, Peter Bex wrote: > On Thu, Oct 07, 2010 at 08:37:59PM -0500, Jim Ursetto wrote: > > Does this mean for every egg that uses the irregex API directly, I > > need to insert this [cond-expand] blob of code? > > You have three options: &g

Re: [Chicken-users] Using irregex safely & responsibly [Was: Re: dev-snapshot 4.6.3]

2010-10-08 Thread Peter Bex
On Thu, Oct 07, 2010 at 08:37:59PM -0500, Jim Ursetto wrote: > Does this mean for every egg that uses the irregex API directly, I > need to insert this [cond-expand] blob of code? You have three options: - Add a dependency on the regex egg and keep doing (require-library regex)(import irregex)

[Chicken-users] Using irregex safely & responsibly [Was: Re: dev-snapshot 4.6.3]

2010-10-07 Thread Peter Bex
Hello! Since there are a few pitfalls to updating eggs to work with the new Chicken 4.6.2, I've decided to draw up a quick list of pitfalls I noticed. If you're just using the regex API or the regex API with a few irregex things, usually all you need is to add (needs regex) to your egg's meta fil

Re: [Chicken-users] dev-snapshot 4.6.3

2010-10-06 Thread Peter Bex
On Wed, Oct 06, 2010 at 09:35:19AM -0400, John Cowan wrote: > I understand the merits of reducing core dependencies, but have > performance comparisons been made? The last I heard, irregex was > *much* slower than regex. It used to be, but the upcoming 0.8.2 release has been improved a *lot*, and

Re: [Chicken-users] Backslash-symbol changed from \ to \\ between 4.5.0 and 4.6.0

2010-10-06 Thread Peter Bex
On Wed, Oct 06, 2010 at 09:35:33AM +0200, Peter Bex wrote: > I think the backslash shouldn't have any special meaning except in > quoted symbols. AFAIK there's nothing in R5RS to support this, but then > there's nothing in R5RS to support a backslash in symbols at all.. O

Re: [Chicken-users] Backslash-symbol changed from \ to \\ between 4.5.0 and 4.6.0

2010-10-06 Thread Peter Bex
On Tue, Oct 05, 2010 at 06:45:05PM -0500, Peter Danenberg wrote: > Quoth Peter Danenberg on Pungenday, the 59th of Bureaucracy: > > [C]an we revert to the old behaviour, or can I revert locally by > > using `set-read-syntax!'? > > I didn't see any mention of this change to the reader in NEWS; was

Re: I'm starting using chicken4 (Re: [Chicken-users] 4.6.1 performance boost

2010-10-04 Thread Peter Bex
On Mon, Oct 04, 2010 at 04:38:32PM +0200, Peter Bex wrote: > hm, perhaps this is a silly question (I don't know much about Apache), > but have you considered enabling ProxyPreserveHost? > http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypreservehost Since the docs say this

Re: I'm starting using chicken4 (Re: [Chicken-users] 4.6.1 performance boost

2010-10-04 Thread Peter Bex
On Mon, Oct 04, 2010 at 11:02:02PM +0900, Daishi Kato wrote: > I tell you why, and maybe you have an idea for workaround. > I've started my project with http-server (or spiffy) as a standalone > http server, however I now have to run on a server that runs Apache > and only port 80 is available. Hen

Re: I'm starting using chicken4 (Re: [Chicken-users] 4.6.1 performance boost

2010-10-04 Thread Peter Bex
On Mon, Oct 04, 2010 at 11:02:02PM +0900, Daishi Kato wrote: > > > Yeah, that'd just be a simple wrapper layer around it. > > It's incomplete. I just wanted to ask you if it's > something valuable to others. I don't really need this, but Felix has said he liked the old way, so maybe he likes thi

Re: [Chicken-users] how to handle http multipart/form-data

2010-10-04 Thread Peter Bex
On Mon, Oct 04, 2010 at 07:14:30PM +0900, Daishi Kato wrote: > At Fri, 1 Oct 2010 20:11:03 +0200, > Peter Bex wrote: > > > > On Sat, Oct 02, 2010 at 12:28:45AM +0900, Daishi Kato wrote: > > > Dear Peter, > > > > > > Another question regarding with

Re: I'm starting using chicken4 (Re: [Chicken-users] 4.6.1 performance boost

2010-10-04 Thread Peter Bex
On Mon, Oct 04, 2010 at 08:13:35PM +0900, Daishi Kato wrote: > > I'm confused; do you think the eggs are lower-level than your code, or > > do you think the spiffy code itself is low-level, or what? > > OK, I meant: > a) chicken3/http-server was low level so that I can write my handler. > b) chick

Re: [Chicken-users] Installing data files for eggs

2010-10-02 Thread Peter Bex
On Sat, Oct 02, 2010 at 06:40:59PM -0400, Jim Pryor wrote: > Hi Peter, Hi Jim, > I'm really not *that* knowledgeable about egg installation. But I have > been writing packaging scripts for most of the eggs, for the Arch Linux > user repository. From that experience, I got the following impression

[Chicken-users] Installing data files for eggs

2010-10-02 Thread Peter Bex
Hi all, Is there a proper way to install data files from egg .setup-files? I couldn't find anything at http://wiki.call-cc.org/manual/Extensions so I rolled my own for the "slatex" egg: --- (define style-path (list (installation-prefix) "share" "chicken" "slatex")) ;; (copy-file "slatex.sty"

Re: I'm starting using chicken4 (Re: [Chicken-users] 4.6.1 performance boost

2010-10-01 Thread Peter Bex
On Sat, Oct 02, 2010 at 12:22:22AM +0900, Daishi Kato wrote: > > Yes, this is uglier. There are several different request handling > > eggs now though! They make it easier to handle incoming requests. > > Is it that ugly? > None of the request handling eggs in the spiffy manual > was not so low

Re: [Chicken-users] how to handle http multipart/form-data

2010-10-01 Thread Peter Bex
On Sat, Oct 02, 2010 at 12:28:45AM +0900, Daishi Kato wrote: > Dear Peter, > > Another question regarding with chicken3->chicken4 porting. > I used the http-server-form-posts egg to handle multipart/form-data, > but the egg is not available (or not compatible) for chicken4. > > How can I deal wit

Re: [Chicken-users] [ANN] IUP Bindings

2010-09-30 Thread Peter Bex
On Thu, Sep 30, 2010 at 03:58:47PM +0200, Thomas Chust wrote: > Done, https://code.call-cc.org/svn/chicken-eggs/release/4/iup now > contains the egg. Cool, thanks! Cheers, Peter -- http://sjamaan.ath.cx -- "The process of preparing programs for a digital computer is especially attractive, not o

Re: [Chicken-users] [ANN] IUP Bindings

2010-09-30 Thread Peter Bex
On Thu, Sep 30, 2010 at 03:56:40AM -0400, Felix wrote: > > You can find the documentation and the version control repository for the > > sources at http://www.chust.org/fossils/iup. > > Very nice. I'll add this to the repo. How are we going to keep this synched? Is someone going to watch the Fos

Re: [Chicken-users] More on Packaging eggs

2010-09-29 Thread Peter Bex
On Wed, Sep 29, 2010 at 04:50:53PM -0400, Jim Pryor wrote: > A few packages I didn't try to package. I'd appreciate any guidance > about these---be it "yes, that's deprecated don't try to package it" or > "yes, that's not ready yet, don't try to package it" or "that should be > distributable, after

Re: I'm starting using chicken4 (Re: [Chicken-users] 4.6.1 performance boost

2010-09-28 Thread Peter Bex
On Wed, Sep 29, 2010 at 12:25:52AM +0900, Daishi Kato wrote: > Hi, > > I've been using chicken-3.[24].0 for years, but > Mario's email encouraged me to move my project to chicken4. Yes, Chicken 4 is the way to go! > I was heavily using the http egg in chicken3, which is > incompatible with chick

Re: [Chicken-users] 4.6.1 performance boost

2010-09-24 Thread Peter Bex
On Fri, Sep 24, 2010 at 09:17:20AM -0400, Mario Domenech Goulart wrote: > Hi > > I don't know what kind of magic Felix is doing, but for a very quick, > simple and limited benchmark I can see a BIG performance improvement > when comparing 4.5.0 and 4.6.1. > > I've run a simple "hello world" appli

Re: [Chicken-users] Question about COOPS, generic methods, and modules

2010-09-23 Thread Peter Bex
On Wed, Sep 22, 2010 at 09:06:33PM -0400, Taylor Venable wrote: > #;1> (use coops) > #;2> (load "coops-test-2.scm") > Note: implicitly defining generic-procedure: lols > #;3> (import foo) > #;4> (define instance (make )) > #;5> (lols instance) > 5 > #;6> (load "coops-test-2.scm") > ; loading coops-

[Chicken-users] Chicken Gazette - Issue 4

2010-09-17 Thread Peter Bex
h is an implementation of the indentation-sensitive alternative syntax for s-expressions described in SRFI-49. Now you can convince all your Pythonic friends and other parenthophobes to give Chicken a try! Furthermore, Ivan has also converted more of his eggs' documentation from the old eggdoc

Re: [Chicken-users] CHICKEN release 4.6.0

2010-09-13 Thread Peter Bex
On Mon, Sep 13, 2010 at 02:45:22PM +0900, Ivan Raikov wrote: > > Hi all, > >CHICKEN 4.6.0 has been released and is available at the following URL: > > http://code.call-cc.org/releases/4.6.0/chicken-4.6.0.tar.gz > > The changes in this release are described in the NEWS file available here: >

Re: [Chicken-users] Autoloading optional dependencies

2010-09-11 Thread Peter Bex
On Sat, Sep 11, 2010 at 10:03:56AM +0100, Alaric Snell-Pym wrote: > Anyway, my point is this: I feel a bit dirty not declaring the > "optional" eggs *at all* in ugarit.meta. Therefore, I propose the use of > an "optional" declaration therein, like so: > > (optional lzma z3 tiger-hash sha2 aes) >

Re: [Chicken-users] A proposal for the egg index

2010-09-06 Thread Peter Bex
On Mon, Sep 06, 2010 at 03:21:29AM -0400, Felix wrote: > >As for the discussion, I think it is better if we keep all > > discussions in one place (e.g. the users mailing list). Having too many > > scattered places for discussion would make it more difficult to track > > information and question

Re: [Chicken-users] A proposal for the egg index

2010-09-05 Thread Peter Bex
On Sun, Sep 05, 2010 at 10:21:35PM +0100, Alaric Snell-Pym wrote: > > Re http://wiki.call-cc.org/chicken-projects/egg-index-4.html > > Here's a few ideas I had. Do people think there's merit in them? > > 1) Alongside/under the version link for each egg, provide a "browse > source" link to > http

Re: [Chicken-users] Qt egg - understanding it

2010-08-25 Thread Peter Bex
On Tue, Aug 24, 2010 at 11:30:59PM -0300, Arthur Maciel wrote: > Hum... to understand it a little more: why protobj instead of TinyCLOS or > coops? Probably because coops didn't exist when it was written and TinyCLOS has been broken ever since Chicken 4 was released IIUC. > Is there any advantage

[Chicken-users] Chicken at T-DOSE 2010

2010-08-23 Thread Peter Bex
Hello all, After the great fun we had at Froscon we decided to also get a booth a T-DOSE 2010 in Eindhoven, the Netherlands. I'm pleased to announce that our booth request was accepted, so you will find the Chicken project at T-DOSE on 6 and 7 November 2010! For more information, see http://www.

Re: [Chicken-users] Initial release of epoll egg

2010-08-18 Thread Peter Bex
On Wed, Aug 18, 2010 at 10:51:44AM -0700, David Reynolds wrote: > Alright guys, check it out: > http://code.call-cc.org/svn/chicken-eggs/release/4/epoll/ Cool, that was quick! > I don't think > it's installable from chicken-install just y

Re: [Chicken-users] Initial release of epoll egg

2010-08-18 Thread Peter Bex
On Wed, Aug 18, 2010 at 10:05:50AM -0700, David Reynolds wrote: > If you've seen my last email, you know I'm working on some server technology > called Rooster. I broke out the epoll stuff into its own egg and put it on > github here: http://github.com/davidreynolds/epoll It's nice that you made i

Re: [Chicken-users] Curious: why the name "Chicken Scheme"?

2010-08-11 Thread Peter Bex
On Wed, Aug 11, 2010 at 12:43:30PM -0400, John Gabriele wrote: > Hi, > > I looked around the wiki but did not see an answer to this. Just > curious: why is it named "Chicken Scheme"? :) It used to be part of the Frequently Asked Questions in the manual: https://wiki.call-cc.org/man/3/faq#why-call

Re: [Chicken-users] Re: [Chicken-hackers] Suggestion for the ports unit: port-pipe

2010-08-09 Thread Peter Bex
On Mon, Aug 09, 2010 at 11:08:41AM +0200, Peter Bex wrote: > In my experience, there are several developers who just download a > binary build (MAMP or XAMPP, for example) and think that distro *is* > "PHP". They don't even know that it's configurable and that using &

Re: [Chicken-users] Re: [Chicken-hackers] Suggestion for the ports unit: port-pipe

2010-08-09 Thread Peter Bex
On Mon, Aug 09, 2010 at 01:52:21AM -0700, Kon Lovett wrote: > > On Aug 8, 2010, at 11:32 PM, Jim Ursetto wrote: > > >Moritz, > > > >I might call it port-reflect. > > > >I would make it an egg first and maybe if there is high enough > >demand promote it to core. > > AFAIK, there isn't a well de

Re: [Chicken-users] where is chicken-install?

2010-07-29 Thread Peter Bex
On Thu, Jul 29, 2010 at 10:58:41AM +0100, Nick Keighley wrote: > > > Hi, > > The instructions for installing eggs involve invoking chicken-install. I > can't find this. I'm running on a windows system. > Are you running Chicken 4? If you're running chicken 3 the program is called "chicken-

Re: [Chicken-users] current-time on 32-bit hardware

2010-07-29 Thread Peter Bex
On Thu, Jul 29, 2010 at 05:34:27PM +0900, Nicolas Pelletier wrote: > >>     Warning (#): : (inexact->exact) inexact number > >> cannot be represented as an exact\ > >>      number: 1189553855. > >> > > > > I can not reproduce this. On what platform are you running this > > code? > > It is a 32-bit

Re: [Chicken-users] Happy 10th birthday!

2010-07-20 Thread Peter Bex
On Tue, Jul 20, 2010 at 06:21:03AM -0400, Mario Domenech Goulart wrote: > Hey > > July 20th, 2010, marks the 10 year anniversary of the CHICKEN > announcement message Felix wrote to c.l.s: > http://groups.google.com/group/comp.lang.scheme/msg/edfb2da16fd89fae > > Thanks to all the contributors fo

Re: [Chicken-users] mathematical oddities

2010-07-17 Thread Peter Bex
On Thu, Jul 15, 2010 at 08:58:04PM +0200, Peter Bex wrote: > On Thu, Jul 15, 2010 at 11:49:34AM -0700, Shawn Rutledge wrote: > > (which I'm not sure is the best way, I just wrote it late last night) > > (and that was before I googled and discovered the Douglas-Peucker line >

Re: [Chicken-users] mathematical oddities

2010-07-15 Thread Peter Bex
On Thu, Jul 15, 2010 at 11:49:34AM -0700, Shawn Rutledge wrote: > (which I'm not sure is the best way, I just wrote it late last night) > (and that was before I googled and discovered the Douglas-Peucker line > simplification algo, which is what I really want) > > But flonums continue to exist aft

Re: [Chicken-users] mathematical oddities

2010-07-15 Thread Peter Bex
On Thu, Jul 15, 2010 at 08:40:50AM -0400, John Cowan wrote: > Peter Bex scripsit: > > > Chicken has made a choice to raise an error. I think that's a > > respectable decision. I use Javascript at work quite a bit and > > the infinities are quite often a sourc

Re: [Chicken-users] mathematical oddities

2010-07-15 Thread Peter Bex
On Wed, Jul 14, 2010 at 11:04:38PM -0700, Shawn Rutledge wrote: > #;7> (use numbers) > ; loading /usr/lib64/chicken/5/numbers.import.so ... > ; loading /usr/lib64/chicken/5/numbers.so ... > #;8> (abs (- (/ 7.3 -1.2) (quotient 7.3 -1.2))) > > Error: (quotient) bad argument type - not an integer: 7.

<    4   5   6   7   8   9   10   11   12   13   >