Re: [Chicken-users] ANN: scheme-complete.el 0.3

2007-11-13 Thread Alex Shinn
On Nov 14, 2007 4:05 PM, Ivan Shmakov [EMAIL PROTECTED] wrote: Could the server be configured to send Content-Type: application/emacs-lisp Content-Transfer-Encoding: gzip instead of Content-Type: application/x-gzip so that browsers will allow to see the

[Chicken-users] ANN: scheme-complete.el 0.3

2007-11-12 Thread Alex Shinn
A new release 0.3 of scheme-complete.el is available at http://synthcode.com/emacs/scheme-complete.el It includes many bugfixes, and now works out of the box in GNU Emacs 21 and 22, and XEmacs 21. New features include smarter inference by determining variable types bound in LET, as well as a

Re: [Chicken-users] Test egg question

2007-11-04 Thread Alex Shinn
Hi, On Nov 4, 2007 12:02 AM, Peter Busser [EMAIL PROTECTED] wrote: I'm writing a number of test cases using the test egg. I would like to use the test program for automated testing. Is it possible to know that one of the tests failed, so I can exit the program with an error value? I was

Re: [Chicken-users] Test egg question

2007-11-04 Thread Alex Shinn
On Nov 4, 2007 12:02 AM, Peter Busser [EMAIL PROTECTED] wrote: I'm writing a number of test cases using the test egg. I would like to use the test program for automated testing. Is it possible to know that one of the tests failed, so I can exit the program with an error value? OK, I just

[Chicken-users] ANN: scheme-complete.el - smart tab completion

2007-10-16 Thread Alex Shinn
scheme-complete.el is a single function that can be used with any Emacs scheme mode. It provides real-time, lexical-scope aware type inferencing tab-completion for any R5RS scheme, with extensibility for implementation-specific features (currently only Chicken and Gauche are customized). For

Re: Bug/problems with fmt (was Re: [Chicken-users] Columnar text display code?)

2007-07-08 Thread Alex Shinn
On 7/7/07, Alex Shinn [EMAIL PROTECTED] wrote: Unfortunately, fmt hangs on the obvious solution: (fmt #t (join (lambda (x) (trim 5 x)) (string-split foo foo\nbar bar\n \n) nl)) That's a bug. I've fixed it in my repository, and will probably make a new release

Re: Bug/problems with fmt (was Re: [Chicken-users] Columnar text display code?)

2007-07-06 Thread Alex Shinn
Hi, On 7/7/07, Robin Lee Powell [EMAIL PROTECTED] wrote: Hoo-boy the problems I've had with fmt. :( It seems to be lovely in general, but it really doesn't want to do what I want, which is: Thanks for using fmt! Please be aware this is the very first release and I'm still working on it.

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

2007-06-27 Thread Alex Shinn
On 6/27/07, Arto Bendiken [EMAIL PROTECTED] wrote: First, the `regex-literals' egg [2] provides precompiled regular expression literals of the form `#/[a-z0-9]+/i', the Perl-like #/.../[ixu] syntax sure to be instantly familiar to most everyone: Neat! Not sure if you did this intentionally

[Chicken-users] ditching syntax-case modules for the utf8 egg

2007-06-27 Thread Alex Shinn
Hi all, Following up on trac ticket #258: http://trac.callcc.org/ticket/258 I'm considering changing the utf8 egg to no longer use syntax-case modules, so that it would work like the numbers egg. The way this would work is that, naturally, if you wanted to use utf8 semantics you'd just (use

Re: [Chicken-users] utf8 egg and string-split

2007-06-19 Thread Alex Shinn
Hi, On 6/19/07, Jong-Hyouk Yun [EMAIL PROTECTED] wrote: Hi, I found some problem with utf8 egg and string-split. [...] AFTER: string-split failure. #;4 (string-split foo bar) Error: (string-split) bad argument type - not a string: #f Thanks for spotting this! I've fixed it and added

[Chicken-users] Re: 300 eggs and a t-shirt

2007-06-19 Thread Alex Shinn
On 6/18/07, Graham Fawcett [EMAIL PROTECTED] wrote: Our 300th egg has arrived, and we have randomly selected a winner from the candidate pool. I'm very happy to announce that the winner is Alex Shinn. Yay! I'm honored to receive a Chicken T-shirt :) I'd also be happy to fund the next shirt

Re: [Chicken-users] numbers and compiler macros

2007-06-19 Thread Alex Shinn
On 6/18/07, felix winkelmann [EMAIL PROTECTED] wrote: Should there be bugs, or if the code generated is too big, compiler macros (which implement this feature) can be disabled via the -disable-compiler-macros option to chicken/csc. Nice! I've been wanting compiler macros for a while :)

[Chicken-users] ANN: free-gettext

2007-06-14 Thread Alex Shinn
Hi all, There's an alternative to the gettext egg now available as free-gettext (http://chicken.wiki.br/free-gettext) for those of you who choose to avoid linking to GPL libraries, or who want a more flexible and powerful internationalization tool. -- Alex

[Chicken-users] reinstall all eggs

2007-04-20 Thread Alex Shinn
Hi, On 4/19/07, Andre Kuehne [EMAIL PROTECTED] wrote: Yes i know. It works as you described it. Although there are some packages which have no version information, so these would get reinstalled. Unfortunately that's true for some older packages, but hopefully these will be updated soon. I

Re: [Chicken-users] reinstall all eggs

2007-04-19 Thread Alex Shinn
On 4/19/07, felix winkelmann [EMAIL PROTECTED] wrote: On 4/19/07, Andre Kuehne [EMAIL PROTECTED] wrote: Hi everyone I was wondering if it's appropriate/saver to reinstall all eggs after a chicken upgrade and if there is an easy way to do this, so that i don't have to manually run

Re: [Chicken-users] reinstall all eggs

2007-04-19 Thread Alex Shinn
Hi, On 4/19/07, Andre Kuehne [EMAIL PROTECTED] wrote: Currently chicken-setup -l gives you all module-names like array-lib-ec , array-lib-hof, etc., so this is nothing you can easily pass back to chicken-setup. That's true, but the command wasn't using the -l option, but

Re: [Chicken-users] Problems with srfi-4-comprehensions

2007-03-15 Thread Alex Shinn
On 3/16/07, Ivan Raikov [EMAIL PROTECTED] wrote: Could someone who actually understands Scheme macros and comprehensions take a look at this? Thanks a bunch, I won't touch SRFI-42, but if you'd use it I'll provide a SRFI-4 extension to loopy-loop :) -- Alex

Re: [Chicken-users] gui api design -- some thought -- long mail

2007-02-09 Thread Alex Shinn
Hi, On 2/7/07, minh thu [EMAIL PROTECTED] wrote: What I Don't Like About Callbacks. a) Putted simply, you can't mix gui events with application specific events. b) (which is related) Since a function call results from an event, you can't generate an event whose callback needs the end of the

Re: [Chicken-users] base64 update and hygienic matching

2006-12-04 Thread Alex Shinn
On 12/5/06, felix winkelmann [EMAIL PROTECTED] wrote: * Alex Shinn has written a hygienic pattern matching package, mostly compatible to Chicken's default matching stuff You need this whenever you want to mix MATCH with hygienic macros, or things will break quickly. Just replace (use

Re: [Chicken-users] loopy loop!

2006-11-28 Thread Alex Shinn
On 11/28/06, Alex Shinn [EMAIL PROTECTED] wrote: On 11/28/06, felix winkelmann [EMAIL PROTECTED] wrote: This announces the availability of loopy-loop, Alex Shinn's lightweight, elegant and customizable looping construct (syntax-case only). Better documentation will be forthcoming shortly

Re: [Chicken-users] loopy loop!

2006-11-27 Thread Alex Shinn
On 11/28/06, felix winkelmann [EMAIL PROTECTED] wrote: This announces the availability of loopy-loop, Alex Shinn's lightweight, elegant and customizable looping construct (syntax-case only). Better documentation will be forthcoming shortly! Questions, comments and suggestions are greatly

Re: [Chicken-users] Tinyclos - a bit disappointing for an ex-stklos user

2006-09-14 Thread Alex Shinn
On 9/14/06, felix winkelmann [EMAIL PROTECTED] wrote: On 9/14/06, Matthew Welland [EMAIL PROTECTED] wrote: Is there a formal reason why tinyclos can't have its own namespace for methods? Or, is it just an implementation limitation? In STklos I was used to doing the following: (define-class

Re: Documentation (was Re: [Chicken-users] How to use prelude?)

2006-05-29 Thread Alex Shinn
At Mon, 29 May 2006 03:12:06 -0700 (PDT), Dan wrote: Just a small observation -- the propensity for long, complicated URL's isn't a win. Typing the full www.call/cc.org is a pain; the galinha site is also not something I can memorize, and the same goes for the united freaks site. I like

Re: [Chicken-users] OS X binary

2006-05-15 Thread Alex Shinn
At Mon, 15 May 2006 08:53:14 +0200, felix winkelmann wrote: I've put together a binary of chicken 2.311. Since this is the first time I use PackageMaker, I'd be delighted if someone could verify that the binary works. Nice! Works for me (OS 10.3.9). -- Alex

Re: [Chicken-users] rails-like framework

2006-04-23 Thread Alex Shinn
At Sun, 23 Apr 2006 11:08:33 +0200, Peter Busser wrote: In this sense, Spiffy is closer to Yaws (http://yaws.hyber.org), a webserver written in Erlang, and in the following benchmark Yaws is shown to completely outscale Apache 2.0, handling over 80,000 requests compared to Apache's

Re: [Chicken-users] rails-like framework

2006-04-23 Thread Alex Shinn
At Sun, 23 Apr 2006 11:15:09 -0400, John Cowan wrote: Alex Shinn scripsit: In the absense of any lies^Wstatis^Wbenchmarks, I'd wager Chicken's thread handling is closer to Erlang than to POSIX threads. And if you look at the conclusions on that Apache comparison, the author suggests

Re: [Chicken-users] read-byte, etc.

2006-04-06 Thread Alex Shinn
At Thu, 6 Apr 2006 14:14:26 +0200, Hans Bulfone wrote: On Tue, Apr 04, 2006 at 02:34:16AM -0500, Alex Shinn wrote: At Mon, 3 Apr 2006 13:11:05 +0200, Hans Bulfone wrote: i would have also expected this version to be slightly faster because read-char doesn't need to be looked up

Re: [Chicken-users] read-byte, etc.

2006-04-04 Thread Alex Shinn
At Mon, 3 Apr 2006 13:11:05 +0200, Hans Bulfone wrote: i would have also expected this version to be slightly faster because read-char doesn't need to be looked up on every invokation... but it got slightly slower; can anybody explain why? Did you change anything else? -- Alex

Re: [Chicken-users] read-byte, etc.

2006-03-29 Thread Alex Shinn
At Thu, 30 Mar 2006 02:42:36 +0200, Hans Bulfone wrote: i'm porting the rfc.mime library from gauche to chicken. in the library the procedures read-byte, peek-byte and write-byte are used to read/write bytes which are given as integers. at the moment, i'm using (define (read-byte .

Re: [Chicken-users] Compiler or interpreter?

2006-03-27 Thread Alex Shinn
At Mon, 27 Mar 2006 17:14:15 -0500, John Cowan wrote: Is there a procedure that can be invoked to tell a program whether it is running in the interpreter or as compiled code? Not a procedure, but you can (cond-expand (compiling ...) (else ...)) -- Alex

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

2006-03-23 Thread Alex Shinn
At Thu, 23 Mar 2006 08:55:14 +0100, Sunnan wrote: I want to use the ut8 egg, but when I do it complains that it doesn't know what import is. Adding (require-extension syntax-case) gets rid of that complaint but then instead it complains about my tinyclos methods: This is my preamble:

[Chicken-users] complex number procedures

2006-03-16 Thread Alex Shinn
Hi! Wishlist: the following definitions are reasonable in a Scheme without imaginary numbers: (define (real-part x) x) (define (imag-part x) 0) (define magnitude abs) (define (angle x) 0) If these were provided in the core it would be easier to write code that works regardless of

Re: [Chicken-users] tinyclos value matching?

2006-03-16 Thread Alex Shinn
At Thu, 16 Mar 2006 10:20:45 +0100, felix winkelmann wrote: On 3/15/06, Topher Cyll [EMAIL PROTECTED] wrote: Is there any way to specify generic methods on values instead of class in Chicken's tinyclos, like CLOS's (eql value) or Swindle's (singleton value) or (name = value) forms?

Re: [Chicken-users] tinyclos value matching?

2006-03-16 Thread Alex Shinn
At Fri, 17 Mar 2006 08:04:45 +0100, felix winkelmann wrote: On 3/17/06, Alex Shinn [EMAIL PROTECTED] wrote: Unfortunately Chicken currently segfaults when you MAKE an inherited instance of generic: $ csi -q #;1 (define x (make-class (list generic) (list))) #;2 (make x

Re: [Chicken-users] Re: objc egg v0.4

2006-01-29 Thread Alex Shinn
At Sat, 28 Jan 2006 22:23:37 +0100, felix winkelmann wrote: An alternative would be some interface (web-based, or whatever) do manage eggs, their status and releases. Oh, and while we're at it: to-do lists, bug-reports, etc. Now if I just had more time... I'm not sure if this is of interest

Re: [Chicken-users] possible lazy-let macro?

2005-11-17 Thread Alex Shinn
At Fri, 18 Nov 2005 08:18:11 +0900, Daishi Kato wrote: Would it be worth improving the lazy-let macro so that it understands at least let and quote forms? Not let forms. Analyzing subforms of a macro is called code-walking, and the first thing you then need to do is sc-expand the body or

Re: [Chicken-users] possible lazy-let macro?

2005-11-16 Thread Alex Shinn
At Wed, 16 Nov 2005 18:18:00 +0900, Daishi Kato wrote: Does anyone know of any existence of a lazy-let macro, which does the following? convert from [...] (lazy-let ([a (get-a)][b (get-b)]) (if (condition) (begin (display a) a) (begin (display b) b))) into (if

Re: [Chicken-users] sassy and libffi

2005-11-15 Thread Alex Shinn
At Tue, 15 Nov 2005 16:52:21 -0800, Brandon J. Van Every wrote: felix winkelmann wrote: Hi! sassy, Jonathan Kraut's x86 assembler is available as an egg now: http://www.call-with-current-continuation.org/eggs/sassy.html I notice it requires libffi. Anyone know how deeply tied

Re: [Chicken-users] Updated eggs

2005-10-11 Thread Alex Shinn
At Wed, 12 Oct 2005 07:35:36 +0200, felix winkelmann wrote: Hm... Works fine on this machine. I'll try it on another tonight. Can someone else reproduce this problem? I can: $ csi -R numbers -eval '(bitwise-and (random (expt 2 64)) (- (expt 2 64) 1))' *** glibc detected *** double free or

Re: [Chicken-users] numbers egg slow?

2005-10-07 Thread Alex Shinn
At Thu, 06 Oct 2005 21:56:08 +0900, Daishi Kato wrote: (expt) however is slow for fixnum arithmetic. I reviewed the Bug in the numbers egg thread again, understand the background, and am seeking the solution. It would be nice to have a faster EXPT, but since there have already been a number

Re: [Chicken-users] i18n for Scheme programs?

2005-10-07 Thread Alex Shinn
At Thu, 6 Oct 2005 12:38:09 -0500, Alejandro Forero Cuervo wrote: Does anyone know of any frameworks to provide i18n for Scheme programs? There's a gettext-compatible Gauche module at http://synthcode.com/scheme/gettext.scm which is high on my TODO list to port. It provides a full

Re: [Chicken-users] numbers egg slow?

2005-10-06 Thread Alex Shinn
At Thu, 06 Oct 2005 14:50:18 +0900, Daishi Kato wrote: That is certainly understandable, except that I do not know if type-checking in scheme code is really slower than type-cheking in c code, if the scheme code is compiled properly or unsafely. (or inlined?) # Basically, there should not be

Re: [Chicken-users] Conflict between simple-macros and other extensions?

2005-10-04 Thread Alex Shinn
At Tue, 04 Oct 2005 15:43:00 -, Thomas Chust wrote: I hope I have put it as simply as possible while still being correct... These are only the procedures that concern themselves with *loading* of code, though. In addition there are at least two module systems available for CHICKEN:

Re: [Chicken-users] libcurl?

2005-09-28 Thread Alex Shinn
At Wed, 28 Sep 2005 17:26:24 -, Thomas Chust wrote: [...] But instead of binding to libcurl wouldn't it be nicer to program some convenient interface to OpenSSL instead I've been wanting this for a while, not just for HTTPS but for Yahoo Domain key support for the Hato mail server (right

Re: [Chicken-users] Strange hash-table behavior in compiled code

2005-09-26 Thread Alex Shinn
At Mon, 26 Sep 2005 23:42:23 -0400, Raffael Cavallaro wrote: On Sep 26, 2005, at 1:51 AM, felix winkelmann wrote: Here a patch for extras.scm: 1493d1492 ((##sys#permanent? x) (##core#inline C_hashptr x)) Not to pick nits, but Felix's patch seems to differ somewhat from

Re: [Chicken-users] Bug in the numbers egg?

2005-08-10 Thread Alex Shinn
At Wed, 10 Aug 2005 23:05:06 +0200, Thomas Chust wrote: #;2 (expt 10 100) 10110891155767964156222877689497504522960006971153529700550125477736178357726682741211136 The docs already note that expt gives incorrect results for exact numbers. In the meantime you can use something

Re: [Chicken-users] Bug in the numbers egg?

2005-08-10 Thread Alex Shinn
At Wed, 10 Aug 2005 20:37:21 -0500, Alex Shinn wrote: (define (power base e) ; like expt but e must be an integer Might as well go all the way. Attached is a patch to numbers-base.scm which modifies the above power function to work on any real numbers and defines the default expt case

Re: [Chicken-users] Re: Bug in format: can't iterate over 100 values?

2005-08-01 Thread Alex Shinn
At Mon, 1 Aug 2005 14:10:48 -0500, Alejandro Forero Cuervo wrote: As far as I can see, I'm missing support for the following sequences: ~R, ~F, ~E, ~G, ~$, ~, ~|, ~I, ~Y and ~Q. You may want to look at http://synthcode.com/scheme/cl-format.scm (Gauche Scheme, should be easily portable). It

Re: [Chicken-users] Re: Bug in format: can't iterate over 100 values?

2005-08-01 Thread Alex Shinn
At Mon, 1 Aug 2005 21:13:38 -0500, Alejandro Forero Cuervo wrote: It doesn't support ~{, ~;, ~}, ~[, ~^, ~}, right? Yes, so between the two of us I think we have about everything covered :) Would it be okay with you if I take some of the code there and include it as part of my

<    1   2   3