Re: [Chicken-users] is the readline egg dead?

2019-03-28 Thread Alex Shinn
There's also (chibi term edit-line) which is a pure R7RS implementation and should work with Chicken. I haven't put it up on snow-fort yet though. -- Alex On Sat, Mar 23, 2019 at 10:17 PM Juergen Lorenz wrote: > Hi all, > there is a very easy to use and simple alternative to readline and >

Re: [Chicken-users] two-dimensional syntax-rules

2017-03-11 Thread Alex Shinn
It's not a bug, it's the template which is an error. See the discussion on the chibi list: https://groups.google.com/d/msg/chibi-scheme/7fTzofNrPrI/Yy_aibRdBQAJ -- Alex On Fri, Mar 10, 2017 at 7:16 PM, Peter Bex wrote: > On Fri, Mar 10, 2017 at 11:10:35AM +0100, Sascha

[Chicken-users] Second CFP for Scheme and Functional Programming Workshop 2016

2016-05-28 Thread Alex Shinn
w-fort.org/ Organizers: Alex Shinn (general chair) Kathy Gray (program chair) (Apologies for duplications from cross-posting.) ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

[Chicken-users] [CFP] Scheme and Functional Programming Workshop 2016

2016-02-17 Thread Alex Shinn
of 6 to 12 pages. Presentation submissions should include an outline of the material. Talks are 40 minutes, including questions and answers. More information available at: http://scheme2016.snow-fort.org/ Organizers: Alex Shin

Re: [Chicken-users] Using fmt and numbers eggs together

2016-01-05 Thread Alex Shinn
On Sun, Jan 3, 2016 at 1:48 AM, Peter Bex wrote: > On Sat, Jan 02, 2016 at 11:40:47AM -0500, Sudarshan S Chawathe wrote: > > I seem to get incorrect output and errors in some cases when using the > > fmt and numbers eggs together. A brief transcript illustrating the > >

Re: [Chicken-users] Help with columnar formatting in the fmt egg

2015-11-30 Thread Alex Shinn
On Fri, Nov 20, 2015 at 5:53 AM, Christian Kellermann wrote: > > I would like to ask some help for finding the right fmt expression to > print entries formatted as like this: > > 2015-11-20 foo bar baz... Some·Label Some·Other·Label > -123.23

Re: [Chicken-users] Regex fail?

2015-11-01 Thread Alex Shinn
On Fri, Oct 30, 2015 at 10:01 PM, John Cowan wrote: > Peter Bex scripsit: > > > Note the nonl, which the manual states is equivalent to ".", but of > > course nonl means "no newline". > > Dot in regular expressions has *always* meant "match any character but a > newline".

Re: [Chicken-users] utf8 failing to "deploy" and request for suggestions on how to install multiple versions of an egg.

2015-10-05 Thread Alex Shinn
On Mon, Oct 5, 2015 at 11:42 PM, Matt Welland wrote: > I need to install multiple versions of my refdb and logpro eggs. My first > thought was to take advantage of deploy but I get the error below. Other > than hacking them to make a local install I'm out of ideas, any

Re: [Chicken-users] u8vector to numbers bignum

2015-05-28 Thread Alex Shinn
On Thu, May 28, 2015 at 3:59 PM, Peter Bex pe...@more-magic.net wrote: Yeah, the numbers random implementation is shitty, which is why I decided to omit it from my port to CHICKEN core (CHICKEN 5's random is still fixnum only). This is surprisingly hard to do well - the Chibi SRFI-27

Re: [Chicken-users] Strange memory leak with lazy-seq

2015-02-24 Thread Alex Shinn
On Tue, Feb 24, 2015 at 7:17 PM, Moritz Heidkamp mor...@twoticketsplease.de wrote: Hi Alex, On 24 February 2015 00:13 CET, Alex Shinn wrote: You may be falling short of the issue described by SRFI 45, which is that in all known Scheme implementations: (define (loop) (delay (force

Re: [Chicken-users] Strange memory leak with lazy-seq

2015-02-23 Thread Alex Shinn
On Mon, Feb 23, 2015 at 9:57 PM, Kooda ko...@upyum.com wrote: Hi! I’ve been playing with lazy-seq for the past few days and found a very strange behaviour: The heap of the following program keeps growing rapidly in csi, running the same program after compilation seems to slow down the

Re: [Chicken-users] Parsing HTML, best practice with Chicken

2014-12-29 Thread Alex Shinn
On Tue, Dec 30, 2014 at 3:47 AM, mfv m...@freeshell.de wrote: Hello, I somehow always manage to get it working with sxpath when I need to do some web scraping, but it's somewhat painful. Thanks, I will have a look at sxpath. Are there any packages like Python's Beautifulsoup in the

Re: [Chicken-users] Happy Christmas

2014-12-25 Thread Alex Shinn
Merry Christmas and Happy New Year from Tokyo! May 2015 be filled with Scheming! -- Alex On Thu, Dec 25, 2014 at 1:39 PM, Bahman Movaqar bah...@bahmanm.com wrote: Merry Christmas and happy new year. With best of wishes for CHICKEN'ers and their families from ancient Iran. Bahman

Re: [Chicken-users] Installing combinatorics - cock missing

2014-12-16 Thread Alex Shinn
arithmetic -Dan On 14-12-15 03:01 PM, Alex Shinn wrote: On Tue, Dec 16, 2014 at 2:51 AM, Bahman Movaqar bah...@bahmanm.com wrote: Hah! Great guess on #chicken Mario! It was my ISP...it installed smoothly after bypassing that stupid filter. Thanks for the help. There was a porn

Re: [Chicken-users] Installing combinatorics - cock missing

2014-12-15 Thread Alex Shinn
On Tue, Dec 16, 2014 at 2:51 AM, Bahman Movaqar bah...@bahmanm.com wrote: Hah! Great guess on #chicken Mario! It was my ISP...it installed smoothly after bypassing that stupid filter. Thanks for the help. There was a porn filter applied to all internet traffic which removed the cock egg?

Re: [Chicken-users] SRFI-99 - What is a variant type?

2014-12-14 Thread Alex Shinn
This appears to be a chicken-specific extension: http://www.chust.org/fossils/srfi-99/wiki?name=variant+types I'm not sure I understand that description, but appears to be something like a union type? -- Alex On Mon, Dec 15, 2014 at 12:12 PM, Bahman Movaqar bah...@bahmanm.com wrote: Reading

Re: [Chicken-users] [Chicken-hackers] CHICKEN in production

2014-10-05 Thread Alex Shinn
On Fri, Oct 3, 2014 at 6:19 AM, r d...@bk.ru wrote: Whole logic in Chicken with ffi to platform specific HAL C libraries, our audio/video player library uses CPS control-flow to manage complex hardware accelerators state so its also pretty schemish even if written in C. GUI based on the

Re: [Chicken-users] irregex and callbacks

2014-10-02 Thread Alex Shinn
On Thu, Oct 2, 2014 at 10:05 PM, Peter Bex peter@xs4all.nl wrote: On Thu, Oct 02, 2014 at 01:47:15PM +0100, Andy Bennett wrote: Hi, You could use submatch info and check which submatch matched. This would keep the matching as a single regexp, but you'd then need a linear scan to

Re: [Chicken-users] irregex and callbacks

2014-10-01 Thread Alex Shinn
On Thu, Oct 2, 2014 at 8:22 AM, Andy Bennett andy...@ashurst.eu.org wrote: Hi, I am trying to use the browscap.org database to do HTTP User Agent Classification. This database consists of a (large) number of regexes and data about the browser should the user agent string match that regex.

Re: [Chicken-users] Using epsilon in test egg

2014-07-30 Thread Alex Shinn
On Wed, Jul 30, 2014 at 9:33 PM, John Cowan co...@mercury.ccil.org wrote: Peter Bex scripsit: While you're looking at that, could you also take a look at this ticket? https://bugs.call-cc.org/ticket/935 That was from 22 months ago... I don't remember exactly when it was fixed but it works

Re: [Chicken-users] Using epsilon in test egg

2014-07-28 Thread Alex Shinn
On Mon, Jul 28, 2014 at 9:30 PM, John Cowan co...@mercury.ccil.org wrote: Alex Shinn scripsit: The solution is definitely not to write your own comparison function, and trust that the test egg is doing the right thing. It isn't, though, not quite. What it needs to do is not a dichotomy

Re: [Chicken-users] Using epsilon in test egg

2014-07-28 Thread Alex Shinn
On Mon, Jul 28, 2014 at 10:09 PM, John Cowan co...@mercury.ccil.org wrote: Alex Shinn scripsit: If people think it's useful I'd consider walking pairs and vectors. They are the most important cases, because the expected value is expressed as a literal value, and that can only be a list

Re: [Chicken-users] Using epsilon in test egg

2014-07-27 Thread Alex Shinn
On Sun, Jul 27, 2014 at 10:03 AM, Matt Gushee m...@gushee.net wrote: Hmm, just realized something. The test egg documentation also says: Percentage difference allowed ... So if the expected value is 0, then no variance is allowed? If that's true, then epsilon isn't what I want anyway. I

Re: [Chicken-users] Using epsilon in test egg

2014-07-26 Thread Alex Shinn
On Sun, Jul 27, 2014 at 10:03 AM, Matt Gushee m...@gushee.net wrote: Hmm, just realized something. The test egg documentation also says: Percentage difference allowed ... So if the expected value is 0, then no variance is allowed? Naturally we handle this case correctly and check the

Re: [Chicken-users] Using epsilon in test egg

2014-07-26 Thread Alex Shinn
On Sun, Jul 27, 2014 at 11:02 AM, Alex Charlton alex.n.charl...@gmail.com wrote: Matt Gushee writes: I guess my explanation wasn't entirely clear, but that's pretty much what I was already doing. I showed the equality predicate I was using, which tests individual values in the list with

Re: [Chicken-users] [Chicken-hackers] [Scheme-reports] R7RS-small draft ratified by Steering Committee

2014-07-12 Thread Alex Shinn
On Sat, Jul 12, 2014 at 4:03 PM, John Cowan co...@mercury.ccil.org wrote: Alex Shinn scripsit: There are actually many implementations for which this is an error. Notably R6RS requires it to be an error. Not too many outside R6RS, actually: only RScheme, SXM, SigScheme, UMB, Dfsch

Re: [Chicken-users] UTF-8 support in eggs

2014-07-10 Thread Alex Shinn
On Fri, Jul 11, 2014 at 7:20 AM, Oleg Kolosov bazur...@gmail.com wrote: On 07/09/14 09:00, Alex Shinn wrote: The clean way to handle this is to duplicate the useful string APIs for bytevectors. This could be done without code duplication with the use of functors, though compiler

Re: [Chicken-users] UTF-8 support in eggs

2014-07-10 Thread Alex Shinn
On Fri, Jul 11, 2014 at 6:53 AM, Michele La Monaca mikele.chic...@lamonaca.net wrote: Wouldn't be simpler and more effective this other path? 1) keep current string functions as they are (i.e. byte-oriented) and keep abusers abusing (and happy) 2) provide new utf8/cursor-oriented functions

Re: [Chicken-users] UTF-8 support in eggs

2014-07-09 Thread Alex Shinn
On Wed, Jul 9, 2014 at 7:15 AM, Oleg Kolosov bazur...@gmail.com wrote: IMO just enable utf8 by default and let them break. Is it's not 80's anymore, latin1 only software should die. I agree that if people want latin1 only there should at best be a compiler option for this which is disabled

Re: [Chicken-users] UTF-8 support in eggs

2014-07-08 Thread Alex Shinn
On Tue, Jul 8, 2014 at 11:00 PM, Mario Domenech Goulart mario.goul...@gmail.com wrote: On Tue, 8 Jul 2014 12:42:21 +0900 Alex Shinn alexsh...@gmail.com wrote: 4. Make affected eggs functors on the set of basic string operations. Wouldn't 4 be an implementation method of 2? Yes

Re: [Chicken-users] UTF-8 support in eggs

2014-07-07 Thread Alex Shinn
Hi, On Tue, Jul 8, 2014 at 5:58 AM, Mario Domenech Goulart mario.goul...@gmail.com wrote: Hi, I want to use some eggs and I need them to handle UTF-8. By handle UTF-8 I mean treat strings as UTF-8, so that (string (string-ref ç 0)) = ç for example. CHICKEN's string-related

Re: [Chicken-users] UTF-8 support in eggs

2014-07-07 Thread Alex Shinn
On Tue, Jul 8, 2014 at 12:59 PM, John Cowan co...@mercury.ccil.org wrote: The same approaches also apply to eggs needing the full numeric tower, though with UTF-8 there's less chance of breakage when mixing eggs which do and don't use the utf8 egg. I would say that UTF-8 has *more*

Re: [Chicken-users] html-sxml (html-parser egg) does not decode entities in html attributes, ideas why?

2014-05-08 Thread Alex Shinn
On Fri, May 9, 2014 at 6:44 AM, Andy Bennett andy...@ashurst.eu.org wrote: Empty attributes now seem to decode to the string (). Fixed. During quot; deserialisation when inside an attribute, we seem to get data from earlier in the stream introduced: I couldn't reproduce this. Could you

Re: [Chicken-users] html-sxml (html-parser egg) does not decode entities in html attributes, ideas why?

2014-05-08 Thread Alex Shinn
On Fri, May 9, 2014 at 8:26 AM, Andy Bennett andy...@ashurst.eu.org wrote: Which CHICKEN are you using? I can reproduce it with 0.5.2 on 4.9.0rc1: Nevermind, I had only checked 0.5.3. I can see it in 0.5.2. ___ Chicken-users mailing list

Re: [Chicken-users] chicken 4.8.0.5 on cygwin - stty ECHOPRT

2014-04-03 Thread Alex Shinn
On Mon, Mar 31, 2014 at 3:15 AM, Claude Marinier claudem...@gmail.comwrote: On Sun, 30 Mar 2014, Claude Marinier wrote: I just built chicken 4.8.0.5 on MS Windows Vista with a somewhat recent cygwin. The installation process went well but csi could not find parley. Turns out parley needs

Re: [Chicken-users] Review my Caesar Cipher?

2014-03-12 Thread Alex Shinn
On Tue, Mar 11, 2014 at 9:20 PM, Daniel Carrera dcarr...@gmail.com wrote: On 11 March 2014 12:41, Alex Shinn alexsh...@gmail.com wrote: Chibi has string-map in (chibi string). But actually, if you're aiming for R7RS support then string-map is in (scheme base). Just replace the cond

Re: [Chicken-users] Review my Caesar Cipher?

2014-03-11 Thread Alex Shinn
On Tue, Mar 11, 2014 at 7:15 PM, Daniel Carrera dcarr...@gmail.com wrote: With the last suggestion from Alex, and a tip to use cond-expand from Kon, I have settled on the following: - ; ; Works with Chicken Scheme and Gauche. ; (cond-expand (chicken (use

Re: [Chicken-users] Review my Caesar Cipher?

2014-03-10 Thread Alex Shinn
On Tue, Mar 11, 2014 at 6:16 AM, Daniel Carrera dcarr...@gmail.com wrote: On 10 March 2014 20:04, Daniel Carrera dcarr...@gmail.com wrote: I am trying to write an R7RS-compliant version. R7RS would give me import, as well as char-integer and integer-char. The problem I'm having is that my

Re: [Chicken-users] R7RS: (current-jiffy) and (jiffies-per-second)

2014-03-10 Thread Alex Shinn
On Sun, Mar 9, 2014 at 7:51 PM, Daniel Carrera dcarr...@gmail.com wrote: Hello, I hope nobody minds an R7RS question. This list seems to have people knowledgeable of R7RS. It seems weird that R7RS would specify the functions: There's also scheme-repo...@scheme-reports.org but I doubt people

Re: [Chicken-users] irregex-replace return value

2014-03-03 Thread Alex Shinn
On Sun, Mar 2, 2014 at 8:51 PM, Michele La Monaca mikele.chic...@lamonaca.net wrote: While writing my own version of irregex-replace can be (hopefully) an enjoyable 6-line coding experience (btw, irregex-apply-match is not documented): Oops, thanks, I'll document it. (define

Re: [Chicken-users] irregex-replace return value

2014-03-02 Thread Alex Shinn
Hi Michele, On Sat, Mar 1, 2014 at 7:32 AM, Michele La Monaca mikele.chic...@lamonaca.net wrote: Hi, I've noticed that irregex-replace returns the original string if no replacement takes place. I think its a very poor choice. Whether or not a replacement was actually made can be an

Re: [Chicken-users] html-sxml (html-parser egg) does not decode entities in html attributes, ideas why?

2013-11-23 Thread Alex Shinn
empty. Given that I can see pros and cons to both approaches, I'm inclined to leave as-is for now. -- Alex Jim On Sep 8, 2013, at 7:30 AM, Alex Shinn alexsh...@gmail.com wrote: On Thu, Sep 5, 2013 at 12:39 AM, Philip Kent phi...@knodium.com wrote: Hi Alex, Excellent! Thanks

Re: [Chicken-users] iset egg, wrong intersection result

2013-11-08 Thread Alex Shinn
On Mon, Oct 28, 2013 at 12:40 PM, Alex Shinn alexsh...@gmail.com wrote: On Sat, Oct 26, 2013 at 1:13 AM, r d...@bk.ru wrote: Hi, i have found that on some numbers iset-intersection produce wrong results. example in attachment, all numbers in fixnum range Thanks for the report! If I

Re: [Chicken-users] iset egg, wrong intersection result

2013-10-27 Thread Alex Shinn
On Sat, Oct 26, 2013 at 1:13 AM, r d...@bk.ru wrote: Hi, i have found that on some numbers iset-intersection produce wrong results. example in attachment, all numbers in fixnum range Thanks for the report! If I don't have time before I'll fix this on the weekend. iset b a:(44189 50194

Re: [Chicken-users] an oddly slow regex ...

2013-10-27 Thread Alex Shinn
On Sun, Oct 27, 2013 at 3:38 AM, Peter Bex peter@xs4all.nl wrote: On Sat, Oct 26, 2013 at 10:37:36AM -0700, Matt Welland wrote: This regex is so slow that you don't need a timer to see the impact (at least not on my machine with chicken 4.8.0): (string-match [a-z][a-z0-9\\-_.]{0,20}

Re: [Chicken-users] Issue w/ string-trim functions in utf8-srfi-13

2013-09-22 Thread Alex Shinn
On Fri, Sep 20, 2013 at 9:30 AM, Matt Gushee m...@gushee.net wrote: Hi, Alex-- On Thu, Sep 19, 2013 at 5:33 PM, Alex Shinn alexsh...@gmail.com wrote: This looks like an oversight. The fix is simple, but my dev machine just died so it may take me a couple days to get to it. Fair enough

Re: [Chicken-users] Issue w/ string-trim functions in utf8-srfi-13

2013-09-19 Thread Alex Shinn
On Fri, Sep 20, 2013 at 5:55 AM, Matt Gushee m...@gushee.net wrote: Hello-- I've noticed the following unexpected behavior with the string trimming functions in utf8-srfi-13: [...] csi (use utf8-srfi-13) ; loading /usr/lib/chicken/6/utf8-srfi-13.import.so ... ; etc. csi (map

Re: [Chicken-users] html-sxml (html-parser egg) does not decode entities in html attributes, ideas why?

2013-09-08 Thread Alex Shinn
On Thu, Sep 5, 2013 at 12:39 AM, Philip Kent phi...@knodium.com wrote: Hi Alex, Excellent! Thanks for looking into it and for the tip re custom parsers - I was trying to understand that code! It should work now, let me know if you have any problems. -- Alex

Re: [Chicken-users] hato multipart/alternative

2013-04-10 Thread Alex Shinn
On Thu, Apr 11, 2013 at 1:48 AM, Andy Bennett andy...@ashurst.eu.orgwrote: Hi, When specifying your own multiple Content-Type, you need to include the boundary: Content-Type: multipart/alternative; boundary=xyzzy Boundary: xyzzy [Ideally it should infer the boundary in this

Re: [Chicken-users] hato multipart/alternative

2013-04-06 Thread Alex Shinn
Hi Andy, On Fri, Apr 5, 2013 at 9:30 AM, Andy Bennett andy...@ashurst.eu.org wrote: Hi, Can anyone offer guidance on how to send a multipart/alternative mail with hato? I'm trying to send HTML mail with a text/plain alternative. For my proof of concept I tried: - (send-mail From:

Re: [Chicken-users] UTF-8 support in Chicken core [Was: [Q] uri-common has problem with UTF-8 uri.]

2013-01-27 Thread Alex Shinn
the correct answers when passed wide chars. -- Alex Ivan On Sat, Jan 26, 2013 at 1:42 PM, Alex Shinn alexsh...@gmail.com wrote: On Wed, Jan 23, 2013 at 5:09 PM, Alex Shinn alexsh...@gmail.com wrote: On Wed, Jan 23, 2013 at 3:45 PM, Ivan Raikov ivan.g.rai...@gmail.comwrote: Yes, I ran

Re: [Chicken-users] [Q] uri-common has problem with UTF-8 uri.

2013-01-25 Thread Alex Shinn
On Wed, Jan 23, 2013 at 5:09 PM, Alex Shinn alexsh...@gmail.com wrote: On Wed, Jan 23, 2013 at 3:45 PM, Ivan Raikov ivan.g.rai...@gmail.comwrote: Yes, I ran into this when I was adding UTF-8 support to mbox... If you were to add wide char support in srfi-14, is there a way to quantify

Re: [Chicken-users] [Q] uri-common has problem with UTF-8 uri.

2013-01-22 Thread Alex Shinn
On Thu, Jan 17, 2013 at 4:51 AM, Peter Bex peter@xs4all.nl wrote: On Tue, Jan 15, 2013 at 02:44:08PM +0900, Alex Shinn wrote: This result looks broken. As I noted in my previous mail, the URI representation already handles non-ASCII characters and escapes on output: $ csi -R uri

Re: [Chicken-users] [Q] uri-common has problem with UTF-8 uri.

2013-01-15 Thread Alex Shinn
On Tue, Jan 15, 2013 at 3:03 PM, Ivan Raikov ivan.g.rai...@gmail.comwrote: Percent-encoded sequences of more than one octet will not get touched by pct-decode in the current implementation, so you will not get double escaping. Percent-encoded sequences of one octet will get decoded if they

Re: [Chicken-users] [Q] uri-common has problem with UTF-8 uri.

2013-01-15 Thread Alex Shinn
On Tue, Jan 15, 2013 at 7:48 PM, Peter Bex peter@xs4all.nl wrote: These special characters are called reserved in the BNF. As you can see, the question mark, equals sign and ampersand is in there. For query urlencoded query strings, these *cannot* be decoded, because then you can't

Re: [Chicken-users] [Q] uri-common has problem with UTF-8 uri.

2013-01-15 Thread Alex Shinn
On Wed, Jan 16, 2013 at 12:59 AM, Peter Bex peter@xs4all.nl wrote: On Wed, Jan 16, 2013 at 12:39:16AM +0900, Alex Shinn wrote: The internal representation is either decoded, or it is encoded. Either can be made to work. In this case, the decoded uri-common representation

Re: [Chicken-users] [Q] uri-common has problem with UTF-8 uri.

2013-01-14 Thread Alex Shinn
On Tue, Jan 15, 2013 at 7:35 AM, Sungjin Chun chu...@gmail.com wrote: Thank you very much. :-) My proposed hack(yes, no solution) just works for me but I found that it is just wrong w.r.t RFC. I'll try your modification and and let you know whether it works or not. Thank you again. On

Re: [Chicken-users] [Q] uri-common has problem with UTF-8 uri.

2013-01-14 Thread Alex Shinn
On Tue, Jan 15, 2013 at 11:50 AM, Sungjin Chun chu...@gmail.com wrote: My intention is to create search client for Solr (search server using lucene); where I should send request URL like this; http://127.0.0.1:8983/solr/select?q=삼계탕start=0rows=10 I've tried to create this client using

Re: [Chicken-users] [Q] uri-common has problem with UTF-8 uri.

2013-01-14 Thread Alex Shinn
On Tue, Jan 15, 2013 at 2:23 PM, Ivan Raikov ivan.g.rai...@gmail.comwrote: Hi again, I have now extended the utf8 code in uri-generic, so that UTF-8 sequences are percent-encoded as lists of the form '(% h1 h2 [% h3 h4 ...])). The percent-decoding routine is not going to decode sequences

Re: [Chicken-users] [Q] uri-common has problem with UTF-8 uri.

2013-01-13 Thread Alex Shinn
On Mon, Jan 14, 2013 at 1:36 PM, Sungjin Chun chu...@gmail.com wrote: As far as I know, revised RFC permits UTF-8 characters in the URL without encoding. Am I wrong here? The latest URI RFC is 3986. The relevant description in prose is: Local names, such as file system names, are stored

Re: [Chicken-users] string-join not in utf8-srfi-13

2012-11-02 Thread Alex Shinn
Added. On Fri, Nov 2, 2012 at 11:52 PM, .alyn.post. alyn.p...@lodockikumazvati.org wrote: I'm trying to use string-join in my egg git-hooks-mediawiki[1]. This egg imports utf8-srfi-13, and I am getting an error message about this routine: Warning: reference to possibly unbound identifier

Re: [Chicken-users] Alex Shinn, Kon Lovett: list of eggs needing new releases

2012-10-06 Thread Alex Shinn
that the deprecated features used in these eggs are the primary reasons for the majority of the test failures. The owners of these eggs are active here: Alex Shinn + utf8 Kon Lovett + condition-utils + lookup-table + srfi-41 + stack I don't have the required permission in svn

Re: [Chicken-users] Neophyte in scheme: string-split not quite what I want

2012-07-20 Thread Alex Shinn
On Fri, Jul 20, 2012 at 8:56 PM, Дмитрий dm...@yandex.ru wrote: As for the character classes, they can be generated quite easily from the UnicodeData.txt[1] file. We can get a general category[2] from this file by sth like (string-symbol (caddr (string-split line ,))); then we just need to

Re: [Chicken-users] Neophyte in scheme: string-split not quite what I want

2012-07-20 Thread Alex Shinn
On Sat, Jul 21, 2012 at 3:19 AM, Charles Hixson charleshi...@earthlink.net wrote: On 07/20/2012 04:05 AM, Дмитрий wrote: Hello. Does IrRegex support Unicode character classes? E.g. Will IrRegex consider accented letters (á) or Cyrillic letters (я) as alpha? Wil IrRegex consider Chinese wide

Re: [Chicken-users] Unbounded stack growth

2012-07-12 Thread Alex Shinn
On Thu, Jul 12, 2012 at 4:39 PM, Alex Queiroz asand...@gmail.com wrote: Hallo, On Thu, Jul 12, 2012 at 4:25 AM, Alex Shinn alexsh...@gmail.com wrote: I disagree - I think a stack grown too large is likely indicative of a programming error, or at the very least an inefficient algorithm

Re: [Chicken-users] Unbounded stack growth

2012-07-12 Thread Alex Shinn
On Thu, Jul 12, 2012 at 4:51 PM, Alex Queiroz asand...@gmail.com wrote: On Thu, Jul 12, 2012 at 9:47 AM, Alex Shinn alexsh...@gmail.com wrote: Wow, if you've got a magical Scheme compiler that can read my mind and fix all my bugs for me I'll switch right now! :) Are you really saying

Re: [Chicken-users] Unbounded stack growth

2012-07-11 Thread Alex Shinn
On Thu, Jul 12, 2012 at 10:52 AM, Marc Feeley fee...@iro.umontreal.ca wrote: On 2012-07-11, at 5:59 PM, Felix wrote: Performance should not trump safety and correctness. Absolutely right, yet everybody has a different perception of what performance, safety and correctness means.

Re: [Chicken-users] ANN: lazy-seq, a port of Clojure's lazy sequence API

2012-06-03 Thread Alex Shinn
On Sun, Jun 3, 2012 at 4:05 PM, John Cowan co...@mercury.ccil.org wrote: Peter Danenberg scripsit: Stream-cons, stream-lambda, c. are so fucking verbose! Only two letters longer than lazy-length, lazy-map, lazy-head, lazy-tail, etc. Why not a macro with-lazy that rewrites car, cdr, lambda,

Re: [Chicken-users] ANN: lazy-seq, a port of Clojure's lazy sequence API

2012-06-03 Thread Alex Shinn
On Sun, Jun 3, 2012 at 5:31 PM, Peter Danenberg p...@roxygen.org wrote: Quoth Alex Shinn on Prickle-Prickle, the 8th of Confusion: Now, if we have a whole program or library which consistently uses lazy streams instead of lists, we can import srfi-41 renaming all the stream-* bindings

Re: [Chicken-users] ANN: lazy-seq, a port of Clojure's lazy sequence API

2012-06-03 Thread Alex Shinn
On Sun, Jun 3, 2012 at 8:31 PM, Moritz Heidkamp mor...@twoticketsplease.de wrote: Alex Shinn alexsh...@gmail.com writes: First, the srfi-41 vs. lazy-seq comparison in the blog post was an apples to oranges comparison of a clumsy letrec vs a compact named let.  If we rewrite the srfi-41

Re: [Chicken-users] compiling chicken on (crippled) embedded platforms

2012-02-13 Thread Alex Shinn
Hi Attila, On Mon, Feb 13, 2012 at 10:32 PM, Attila Lendvai attila.lend...@gmail.com wrote: my problem with chibi is that once i've flashed the firmwares and the devices are sent out, then an FFI bug is a real headache. chicken seems to be more mature on this front. Could you clarify, is

Re: [Chicken-users] Dynamic wind problem in with-input-from-file

2011-12-19 Thread Alex Shinn
Hi, As I explained on the Chibi list, this is not technically a bug: The specification of with-input-from-file (in R5RS and R7RS) states: If an escape procedure is used to escape from the continuation of these procedures, their behavior is implementation dependent. Hence Chibi

Re: [Chicken-users] Dynamic wind problem in with-input-from-file

2011-12-19 Thread Alex Shinn
On Tue, Dec 20, 2011 at 1:56 AM, obscurolocon...@googlemail.com wrote: I see. The old RnRS problem. Everything is either implementation dependent or unspecified: $ grep -io implementation-dependent\|unspecified r7rs-draft-1.txt |wc -l 109 The return value of every side-effecting procedure

Re: [Chicken-users] unbound variable: sxml:sxml-xml

2011-12-07 Thread Alex Shinn
On Thu, Dec 8, 2011 at 2:17 AM, Vok Vojwo cev...@gmail.com wrote: 2011/12/7 Peter Bex peter@xs4all.nl: Actually, the main reason is that SSAX is a horrible mess which has many completely unrelated procedures all mixed together. There are several egg that provide different sets of

Re: [Chicken-users] Bugs in documentation and Mac OS X 10.6.8 executable generation broken

2011-12-05 Thread Alex Shinn
On Tue, Dec 6, 2011 at 4:05 AM, Christian Kellermann ck...@pestilenz.org wrote: Watson, * Mario Domenech Goulart mario.goul...@gmail.com [111205 18:27]: So what is the correct way to compile an SRFI-22 compliant script to an executable? Maybe you are assuming a `main' procedure would be

Re: [Chicken-users] test egg

2011-11-01 Thread Alex Shinn
On Tue, Nov 1, 2011 at 6:47 PM, Mario Domenech Goulart mario.goul...@gmail.com wrote: Hi Curtis, On Mon, 31 Oct 2011 20:07:57 -0700 Curtis Cooley curtis.coo...@gmail.com wrote: I'm trying to get the test egg working, but I'm not getting very far. I'm using chicken to learn scheme, so I'm

Re: [Chicken-users] test egg

2011-11-01 Thread Alex Shinn
On Tue, Nov 1, 2011 at 7:24 PM, Christian Kellermann ck...@pestilenz.org wrote: * Alex Shinn alexsh...@gmail.com [01 11:06]: #;2 (test 4 (+ 2 2)) Error: (cdr) bad argument type: #f I'll fix this as soon as I get home, but it's not very meaningful to use tests without any group. Ah

Re: [Chicken-users] two minor tweaks to runtime.c

2011-09-28 Thread Alex Shinn
On Wed, Sep 28, 2011 at 4:29 AM, Alan Post alanp...@sunflowerriver.org wrote: I don't have enough data to say that it matters in this case, but in principle it surely does. In theory, theory and practice are the same. In practice, they're different. The problem here specifically is the lack

Re: [Chicken-users] two minor tweaks to runtime.c

2011-09-28 Thread Alex Shinn
On Thu, Sep 29, 2011 at 12:25 PM, Alan Post alanp...@sunflowerriver.org wrote: How did irregex, which by account is slower, replace the existing regex code? I didn't make the call, but as I understand that was motivated by portability concerns, simplifying the Chicken distribution, and

Re: [Chicken-users] obsolete code

2011-09-27 Thread Alex Shinn
On Tue, Sep 27, 2011 at 5:30 PM, Jörg F. Wittenberger joerg.wittenber...@softeyes.net wrote: But not including those two definitions should IMHO not do any harm. I simply can not see where those would be used within irregex.scm. Sorry, I thought you were suggesting importing srfi-1 instead of

Re: [Chicken-users] obsolete code

2011-09-26 Thread Alex Shinn
On Tue, Sep 27, 2011 at 3:39 AM, Jörg F. Wittenberger joerg.wittenber...@softeyes.net wrote: I found theses definitions in the irregex code mirroring srfi-1 simplified cases. (define (filter pred ls)  (let lp ((ls ls) (res '()))   (if (null? ls)       (reverse res)       (lp (cdr ls) (if

Re: [Chicken-users] Code for parsing multipart/form-data

2011-09-20 Thread Alex Shinn
On Tue, Sep 20, 2011 at 4:10 PM, Peter Bex peter@xs4all.nl wrote: And Alex Shinn's hato library also includes some MIME handling code you might want to use: http://synthcode.com/scheme/hato (note that the link to the docs are wrong, they should point to

Re: [Chicken-users] [wish list] chicken-install: show available eggs, upgrade all installed eggs?

2011-05-09 Thread Alex Shinn
On Thu, May 5, 2011 at 7:18 PM, Peter Bex peter@xs4all.nl wrote: With Lisp/Scheme code, the only sensible indentation style really is spaces.  With braces-like languages like C it makes sense to use tabs if used consistently, but even there it's a good source of flamewars. You get exactly

[Chicken-users] ANN: first draft of R7RS small language available

2011-04-15 Thread Alex Shinn
are available in the (scheme time) module. * A complete set of integer division operators is available in the (scheme division) module. * Transcript-on and transcript-off have been removed. Thank you. -- Alex Shinn, WG1 Chair ___ Chicken-users mailing

Re: [Chicken-users] amb-extras: distinct? expects srfi-1 member

2011-03-28 Thread Alex Shinn
On Tue, Mar 29, 2011 at 1:21 AM, John Cowan co...@mercury.ccil.org wrote: Markus Klotzbuecher scripsit: distinct? from amb-extras fails with an bad argument count error when srfi-1 is not loaded. In that case the member procedure from 'scheme' and not srfi-1 is used, which doesn't take a

Re: [Chicken-users] Save the Gazette!

2011-02-17 Thread Alex Shinn
On Thu, Feb 17, 2011 at 10:51 PM, John Cowan co...@mercury.ccil.org wrote: Andy Bennett scripsit: Strange! The first part of the first sed is supposed to remove the '*' that indicates the currently checked out branch. The meaning of the regex /^*/ is implementation-dependent: it can be read

Re: [Chicken-users] matchable 3.0 and SRFI-9 records

2011-02-15 Thread Alex Shinn
On Sun, Feb 13, 2011 at 6:52 PM, Ivan Raikov ivan.g.rai...@gmail.com wrote:   It appears that the following pattern no longer works with matchable 3.0 (Chicken 4.6.5): Sorry about that, stupid copypaste error, fixed now. -- Alex ___ Chicken-users

Re: [Chicken-users] matchable 3.0 and SRFI-9 records

2011-02-15 Thread Alex Shinn
On Sun, Feb 13, 2011 at 9:52 PM, Felix fe...@call-with-current-continuation.org wrote: Talking about matchable: I always wondered whether this should work:  (match '(...)    (('...) 'yep)) This is: (match (quote ...) ((quote ...) 'yep)) so the pattern is trying to match a list and

Re: [Chicken-users] matchable 3.0 and SRFI-9 records

2011-02-13 Thread Alex Shinn
On Sun, Feb 13, 2011 at 6:52 PM, Ivan Raikov ivan.g.rai...@gmail.com wrote:   It appears that the following pattern no longer works with matchable 3.0 (Chicken 4.6.5): [...]  (match-let ((($ test x y z) (make-test 'a 1 two)))               (print x y z))  Error: (match) no matching

Re: [Chicken-users] is there a egg for sending smtp email?

2011-02-05 Thread Alex Shinn
2011/2/6 Joe Python jopyt...@gmail.com: is there a egg for sending smtp email? The hato-smtp library makes this very easy: http://code.google.com/p/hato/ -- Alex ___ Chicken-users mailing list Chicken-users@nongnu.org

Re: [Chicken-users] matchable egg usage question

2011-01-29 Thread Alex Shinn
On Sun, Jan 30, 2011 at 12:09 PM, Alan Post alanp...@sunflowerriver.org wrote: Alex, will you explain what I'd doing wrong here using tree searching patterns? (pretty-print (map  (match-lambda    (('foo *** '(bar 1)) #t)    (_ #f))  '((foo (bar 1))    (foo (a (bar 1)))    (foo (a (b

Re: [Chicken-users] matchable egg usage question

2011-01-29 Thread Alex Shinn
On Sun, Jan 30, 2011 at 1:33 PM, Alan Post alanp...@sunflowerriver.org wrote: Wonderful!  This is working for the test cases I sent, but it doesn't seem to work when I have a list where the first element is also a list:  (pretty-print (map    (match-lambda      (('foo (_ *** '(bar 1))) #t)

Re: [Chicken-users] matchable egg usage question

2011-01-29 Thread Alex Shinn
On Sun, Jan 30, 2011 at 1:40 PM, Alex Shinn alexsh...@gmail.com wrote: Because it searches for patterns where the head of the tree at each step along the path matches _, and the leaf matches '(bar 1).  The head is not searched as a potential leaf. Sorry, whether the head is checked as a leaf

Re: [Chicken-users] Re: matchable egg ticket #487

2011-01-28 Thread Alex Shinn
On Fri, Jan 28, 2011 at 12:15 AM, Alan Post alanp...@sunflowerriver.org wrote: I'm only going to get more demanding out of what I'd like match to do, I would like the latest version. I've updated matchable from the latest upstream, which includes the fix. -- Alex

Re: [Chicken-users] matchable egg usage question

2011-01-28 Thread Alex Shinn
On Fri, Jan 28, 2011 at 2:21 PM, Alan Post alanp...@sunflowerriver.org wrote: I'm trying to use the matchable egg to detect #!key parameters in functions I've constructed.  I have functions that accept multiple #!key parameters, and I'm not sure how to make the matchable egg match |(func ...

Re: [Chicken-users] Re: matchable egg ticket #487

2011-01-27 Thread Alex Shinn
, Alan Post alanp...@sunflowerriver.org wrote: On Tue, Jan 25, 2011 at 07:51:12AM +0900, Alex Shinn wrote: On Sun, Jan 23, 2011 at 3:01 PM, Alan Post alanp...@sunflowerriver.org wrote: I've just come across a bug in the matchable egg which I've documented in ticket #487:  http

Re: [Chicken-users] UTF8 egg case conversion problem

2011-01-26 Thread Alex Shinn
On Tue, Jan 25, 2011 at 11:46 PM, Mehmet Kose mehmet.k...@gmail.com wrote: #;13 (use utf8-case-map) #;14 (utf8-string-downcase İ tr) ; this code should return i I Oops, indeed, and if I had actually applied the patch I recommended in my earlier mail this would have worked. Unfortunately I only

Re: [Chicken-users] UTF8 egg case conversion problem

2011-01-24 Thread Alex Shinn
On Mon, Jan 24, 2011 at 10:36 PM, Mehmet Kose mehmet.k...@gmail.com wrote: Problem persists Sir, utf8-case-map.scm line 323. Considering that's a different function it would have to be a different problem. Can you give me a test case that fails? -- Alex

[Chicken-users] Re: matchable egg ticket #487

2011-01-24 Thread Alex Shinn
On Sun, Jan 23, 2011 at 3:01 PM, Alan Post alanp...@sunflowerriver.org wrote: I've just come across a bug in the matchable egg which I've documented in ticket #487:  http://bugs.call-cc.org/ticket/487 A call is made to |length| even when the input isn't a list if a production contains

Re: [Chicken-users] UTF8 egg case conversion problem

2011-01-16 Thread Alex Shinn
Fixed. On Tue, Jan 4, 2011 at 8:08 PM, Christian Kellermann ck...@pestilenz.org wrote: Dear Alex, * Alex Shinn alexsh...@gmail.com [110104 03:38]: I'll double check some of these cases and release a new version shortly. While you are at the code, can you change the one 'noop' symbol

  1   2   3   >