Re: CHICKEN meeting in June

2023-04-11 Thread Andy Bennett
Hi, I have updated the wiki page for the event at http://wiki.call-cc.org/event/village-chickens-2023 with some info regarding location and travel. Please contact me if you have any questions or need assistance. See you in June! I've just seen this. Is it too late to sign up? The wiki

Re: [Question] Is Chicken Scheme able to create shared/dynamic libraries (.so's or .dll's)?

2022-11-02 Thread Andy Bennett
Hi, I'm not a Chicken programmer yet but I'm interested very much in this language. I could see that in the installation of Eggs, a .o object file is created. So that, I have a question: Is Chicken Scheme able create shared/dynamic libraries a C/C++ does? Yes: eggs are also built as .so fil

Re: Bintracker: A modern chiptune editor

2020-06-07 Thread Andy Bennett
Hi, I've released the source code for Bintracker, a powerful, hackable "chiptune audio workstation" written in Chicken Scheme. The project is work-in-progress, and is currently in an early alpha stage. Basic features work and the editor is usable, though not necessarily useful ;) I'm publish

Re: [Chicken-users] [ANN] test-new-egg 1.0.0 released

2019-07-29 Thread Andy Bennett
Hi Mario, test-new-egg is a simple commmand line tool to test new CHICKEN eggs before they are added to the official repository of eggs. For more information, see [1]. The new release adds support for CHICKEN 5. See [2] for the release notes of this version. Note that the same changes apply t

Re: [Chicken-users] Gnuplot pipe

2019-01-20 Thread Andy Bennett
Hi Francesco, I put together a simple interface to Gnuplot, basically popen() with a couple of procedures to plot lists. The motivation is mainly to draw exploratory plots from the interpreter. If you think this may be useful as an egg I'm happy to add wiki documentation. Comments welcome.

[Chicken-users] [ANN] rest-bind egg ported to CHICKEN 5

2019-01-17 Thread Andy Bennett
Hi Chickens! The rest-bind egg for generating wrappers to REST-like HTTP APIS is now available for CHICKEN 5. https://api.call-cc.org/5/doc/rest-bind You should be able to install version 0.6 with `chicken-install rest-bind`. Thanks to Kooda for the patches! The CHICKEN 4 version remains a

[Chicken-users] [ANN] multipart-form-data egg ported to CHICKEN 5

2019-01-17 Thread Andy Bennett
Hi Chickens! The multipart-form-data egg for reading and decoding HTTP multipart/form-data requests is now available for CHICKEN 5. https://api.call-cc.org/5/doc/multipart-form-data You should be able to install version 0.2 with `chicken-install multipart-form-data`. Thanks to David Irela

[Chicken-users] [ANN] New waffle Egg

2019-01-16 Thread Andy Bennett
Hi Chickens! I'm pleased to announce the first release of my waffle egg! waffle is a toolkit for building HTML and other XML based pages through composition of discrete, user definable, widgets. Widgets comprise markup specified in SXML as well as a set of attributes which are rendered into t

[Chicken-users] Nuremberg Meetup

2016-09-27 Thread Andy Bennett
Hi Christian! Thanks so much for organising the Nuremberg Meetup at the weekend. It was thoroughly enjoyable and great fun to meet everyone again. Thanks also to everyone who attended for making it such a good couple of days. Regards, @ndy -- andy...@ashurst.eu.org http://www.ashurst.eu.o

Re: [Chicken-users] [SECURITY] spiffy-cgi-handlers and http-client updated to prevent "httpoxy" attack

2016-07-23 Thread Andy Bennett
Hi Peter! Thanks for all your work on this! > A vulnerability called "httpoxy" has been announced, which affects a > lot of software (server _and_ client) which speaks the HTTP protocol, > allowing a man in the middle attack to be made on servers. The > spiffy-cgi-handlers and http-client eggs a

Re: [Chicken-users] Asynchronous I/O Egg Release

2016-07-01 Thread Andy Bennett
Hi, > And of course, reads of files on the file > system never block at all A read from a file can block when the operating system needs to go to disk for the data. This happens when the buffer empties and it cannot be refilled before the next read call. Regards, @ndy -- andy...@ashurst.eu

Re: [Chicken-users] Variable Capture in message-digest

2016-04-26 Thread Andy Bennett
On 26/04/16 09:40, Peter Bex wrote: > On Tue, Apr 26, 2016 at 09:26:55AM +0100, Andy Bennett wrote: >> Thanks Peter! >> >> That is rather confusing: I thought each module imported its own >> identifiers and had its own namespace. > > It does, but the identifiers wh

Re: [Chicken-users] Variable Capture in message-digest

2016-04-26 Thread Andy Bennett
Hi, > It's in the "chicken" module, so (import (except chicken string->blob)) > should do the trick. Library is just the unit that defines this module's > identifiers. Yeah, this is confusing, and weird. Hopefully we'll fix > this situation with CHICKEN 5, where we'll define the modules more >

Re: [Chicken-users] Variable Capture in message-digest

2016-04-26 Thread Andy Bennett
Hi, >> Here is my minimal test case: >> >> - >> (use message-digest sha2) >> >> (define (string->blob string) >> (abort "no way")) >> >> (define digest (initialize-message-digest (sha256-primitive))) >> >> (assert (message-digest? digest)) >> >> (message-digest-update-object digest "x") >> (

[Chicken-users] Variable Capture in message-digest

2016-04-25 Thread Andy Bennett
Hi, I've been using the message-digest egg and have happened upon an unfortunate scenario. Here is my minimal test case: - (use message-digest sha2) (define (string->blob string) (abort "no way")) (define digest (initialize-message-digest (sha256-primitive))) (assert (message-digest? dig

Re: [Chicken-users] Numbers weirdness

2016-04-22 Thread Andy Bennett
Hi, >> I'm mostly using log2 to work out if numbers are a power of two and find >> the highest bit that they have set. >> >> Is there a more robust way to do that in CHICKEN when using the numbers >> egg and bignums? > > It's probably better to do something like this: > > (= (arithmetic-shift 1

Re: [Chicken-users] Numbers weirdness

2016-04-01 Thread Andy Bennett
Hi, >> Is it just late on a Friday? Am I crazy? > > Floating point numbers are weird enough to drive anyone bat shit: > > #;1> (use numbers) > #;2> (define (log2 n) (/ (log n) (log 2))) > #;3> (log2 (expt 2 251)) > 251.0 > #;4> (flonum-print-precision 100) > 15 > #;5> (log2 (expt 2 251)) > 251.0

[Chicken-users] Numbers weirdness

2016-04-01 Thread Andy Bennett
Hi, In CHICKEN 4.9.0rc1 and 4.10.0 both with numbers 4.6: - #;1> (use numbers) #;2> (define (log2 n) (/ (log n) (log 2))) #;3> (= (log2 (expt 2 252)) (ceiling (log2 (expt 2 252 #t #;4> (= (log2 (expt 2 251)) (ceiling (log2 (expt 2 251 #f #;5> (log2 (expt 2 251)) 251.0 #;6> (ceiling (l

Re: [Chicken-users] CHICKEN hang / crash / memoize egg

2016-04-01 Thread Andy Bennett
On 01/04/16 15:28, Andy Bennett wrote: > Hi Peeps! > > I'm running CHICKEN 4.9.0rc1 and I'm trying out the memoize egg. > > I saw the tail-call-optimized version of the factorial procedure in the > memoize documentation at http://api.call-cc.org/doc/memoize and I'

Re: [Chicken-users] CHICKEN hang / crash / memoize egg

2016-04-01 Thread Andy Bennett
Hi, >> I'm running CHICKEN 4.9.0rc1 and I'm trying out the memoize egg. >> >> I saw the tail-call-optimized version of the factorial procedure in the >> memoize documentation at http://api.call-cc.org/doc/memoize and I've >> been trying to modify it so that it memoizes intermediate results such >>

[Chicken-users] CHICKEN hang / crash / memoize egg

2016-04-01 Thread Andy Bennett
Hi Peeps! I'm running CHICKEN 4.9.0rc1 and I'm trying out the memoize egg. I saw the tail-call-optimized version of the factorial procedure in the memoize documentation at http://api.call-cc.org/doc/memoize and I've been trying to modify it so that it memoizes intermediate results such that, for

Re: [Chicken-users] Starting up spiffy for dynamic content

2016-03-08 Thread Andy Bennett
Hi, >> Some preconceptions, yes, but I've used enough frameworks such as >> this to make sure that I keep such preconceptions pretty >> lightweight, so they're merely a guide as a search for how the >> system wants to be used. I thus did find vhost-map quickly, but the >> documentation appeared t

Re: [Chicken-users] Starting up spiffy for dynamic content

2016-03-08 Thread Andy Bennett
Hi, > Thanks for these clarifications. > > On 8 Mar 2016, at 12:40, Peter Bex wrote: > >> On Tue, Mar 08, 2016 at 12:02:29PM +, Norman Gray wrote: >>> It occurred to me that I could/should use the vhost-map to do this >>> dispatching, using something like >>> >>> (vhost-map `((".*" . ,(lambd

[Chicken-users] Happy New Haircut!

2016-01-02 Thread Andy Bennett
Hi Chickens! Happy New Year! I hope you're all having a wonderful 2016 already. I hope this slightly off-topic message finds you well and that you don't mind me bothering you with it; after all, my hair has been a talking point at many Chicken meetup and conference! :-) As some of you know, I

Re: [Chicken-users] Play with CHICKEN, Crepes-PHYS is out!

2015-12-17 Thread Andy Bennett
Hi, > It’s a tiny game made in a few weeks using CHICKEN. > A post-mortem blog post should follow in the next few days, along with > the projects’s source-code. I will try to explain the different states > the project went in, and how I built the binaries. That's really neat! I can't wait for th

Re: [Chicken-users] Hello! I'm new and need some pointers please ~

2015-11-29 Thread Andy Bennett
Hi Federico! > Hello there! I'm Federico, a.k.a gosukiwi. > > I'm a wen developer (JS, Ruby, PHP, etc) wanting to learn > Scheme/Lisp/functional programming. My first lisp dialect is CHICKEN. Welcome! > I decided to make a simple project using Scheme so I can get the hang of > it. I didn't use

Re: [Chicken-users] Homepage design proposal

2015-07-28 Thread Andy Bennett
Hi, Most modifications were done to chicken.css file, so changes are immediately applicable to probably 90% of CHICKEN site (exceptions are api.call-cc.org [10] and bugs.call-cc.org [11]). To make the page "responsive" to narrow screens (i.e. mobiles) we would need to add one line of HTML in

[Chicken-users] blob->s8vector/shared: types.db incorrect

2015-07-02 Thread Andy Bennett
Hi, types.db thinks that blob->s8vector/shared returns an u8vector! - $ cat >> /tmp/x.scm (use srfi-4) (s8vector-ref (blob->s8vector/shared #${000a}) 0) $ csc /tmp/x.scm Warning: at toplevel: (/tmp/x.scm:2) in procedure call to `s8vector-ref', expected argument #1 of type `(struct s

Re: [Chicken-users] New egg: clucker (Twitter API)

2015-06-30 Thread Andy Bennett
Hi, > I'm happy to announce the first release of the "clucker" egg, which > provides access methods to Twitter's public api endpoints. Great work Nick! :-) Regards, @ndy -- andy...@ashurst.eu.org http://www.ashurst.eu.org/ 0290 DA75 E982 7D99 A51F E46A 387A 7695 7EBA 75FF

Re: [Chicken-users] read-u8vector: types.db inconsistent with documentation

2015-06-25 Thread Andy Bennett
Hi, Thanks Andy, this warning is indeed incorrect. A patch has been posted to fix it. Thanks! :-) -- andy...@ashurst.eu.org http://www.ashurst.eu.org/ http://www.gonumber.com/andyjpb 0x7EBA75FF ___ Chicken-users mailing list Chicken-users@nongnu.o

[Chicken-users] http-client gets stuck in scheduler when reusing connections

2015-06-24 Thread Andy Bennett
Hi, I've been using CHICKEN to speak to HBase via the Stargate REST API. I've managed to build a binding with the rest-bind egg and it works. However, it's very slow but it doesn't saturate CPU or IO bandwidth. I have a benchmark where it requests 124 cells from HBase using the scanner API. Th

[Chicken-users] read-u8vector: types.db inconsistent with documentation

2015-06-24 Thread Andy Bennett
Hi, I'm using chicken-4.10rc1. When I use read-u8vector with #f for the LENGTH argument as specified in the docs (http://api.call-cc.org/doc/srfi-4/read-u8vector ) the compiler gives me - Warning: in local unknown procedure, in local unknown procedure, in toplevel procedure `stargate

Re: [Chicken-users] Inserting Binary Data with sql-de-lite

2015-06-24 Thread Andy Bennett
On Mon, 22 Jun 2015 16:36:52 -0500, Jim Ursetto wrote: Andy, What if you convert the string to a blob before passing it in? Yes! That fixes it. Thanks. My bad: I'd put read-string in to read the data from the port during prototyping and then forgotten about it. Thanks for the tips! -- an

[Chicken-users] Inserting Binary Data with sql-de-lite

2015-06-22 Thread Andy Bennett
Hi, I'm using a parameterized statement to insert binary data into sql-de-lite (0.6.6) on CHICKEN 4.10rc1. When I call sql-de-lite's exec procedure I get: - Error: (##sys#make-c-string) cannot represent string with NUL bytes as C string: "��\x00... ... Call history: s

Re: [Chicken-users] [Chicken-hackers] Any thoughts on performance woes?

2015-04-08 Thread Andy Bennett
Hi, > The difference is, this one is much better code, which doesn't exercise > the garbage collector, so it isn't much use as a GC benchmark. Code involving SSQL would be good for a GC benchmark. I recently reworked the query generation in Knodium to be up-front rather than at access-time and go

[Chicken-users] Fix date-literals to build & install date-literals.import.so

2015-04-08 Thread Andy Bennett
Hi, NhanH reported in IRC that they could not get the date-literals egg to work: (use date-literals) wasn't able to find the module. After some investigation, Peter pointed out that no import library was being installed. Here's a patch that builds and installs the import as well as increases the

Re: [Chicken-users] rest-bind request headers support

2015-03-29 Thread Andy Bennett
Hi, Thanks Kooda! I seem to have noticed this too but didn't actually push my changes! Our patches are very similar but mine respects the entire request object if passed by the user. Please can you try it and let me know if it works for you? The repository is at ssh://g...@bitbucket.org/knodium/

[Chicken-users] Fwd: Re: headers with nginx + awful

2015-03-27 Thread Andy Bennett
Is this thing on? I seem to be having trouble posting this. Forwarded Message Subject: Re: [Chicken-users] headers with nginx + awful Date: Tue, 24 Mar 2015 22:13:11 + From: Andy Bennett To: Nathaniel Rudavsky-Brody Hi, Given that it's happening with Firefox bu

[Chicken-users] Fwd: Re: headers with nginx + awful

2015-03-26 Thread Andy Bennett
Forwarded Message Subject: Re: [Chicken-users] headers with nginx + awful Date: Tue, 24 Mar 2015 22:13:11 + From: Andy Bennett To: Nathaniel Rudavsky-Brody Hi, Given that it's happening with Firefox but not with Curl, I'd look into the connection reuse bet

Re: [Chicken-users] [Chicken-hackers] mifgration of some files from call/cc.org to code.call-cc.org

2015-02-25 Thread Andy Bennett
Hi, > Should you still use CHICKEN 3 and chicken-setup reports problems (it > probably will), please contact me, and I can provide a patch to > chicken-setup to use the new location. Can you install a redirect rule in the web server / .htaccess? Regards, @ndy -- andy...@ashurst.eu.org http

Re: [Chicken-users] How to bootstrap developing a CHICKEN application?

2015-02-06 Thread Andy Bennett
Hi, > The nice thing about structuring your application as an egg is that you > get some interesting things for free. For example, cross-compilation > support and the availability of egg-related tools (e.g., salmonella). Isn't cross-compilation something you only get if you use the setup-api? O

Re: [Chicken-users] multiple mingw installations on windows

2014-12-20 Thread Andy Bennett
Hi, > On windows, then chicken compiler uses the gcc which is found in > PATH. This causes problems when there are multiple mingw > installations on a machine (or multiple gcc bundled with various > software). > > Is there a way to tell the chicken compiler which gcc to use? I am > looking for a

[Chicken-users] [ANN] OAuth Egg v0.2 Released

2014-12-18 Thread Andy Bennett
Hi everyone, I've released v0.2 of the OAuth Egg: http://wiki.call-cc.org/eggref/4/oauth This release brings support for HMAC-SHA1 signing and a few bug fixes when using the 1.0a and RFC 5849 modes. This egg has now been verified with at least the APIs of Dropbox and Twitter. Thanks to Nick

Re: [Chicken-users] Handling Errors

2014-12-14 Thread Andy Bennett
Hi, > (define (foo lis) (cdr lis)) > > Obviously LIS should neither be an empty list nor a list with only one > element. > What is the recommended way to deal with such constraints? Should I > enforce them by writing conditionals at the beginning of the > function[1]? Or is it conventional to

Re: [Chicken-users] sxpath does not preserve node order

2014-12-04 Thread Andy Bennett
Hi Sascha, > ((sxpath "//h1[@class='header']//*/text()") >(with-input-from-request > "http://www.imdb.com/title/tt0497465/"; > #f html->sxml)) This isn't a fix for your problem: it's a plug for my egg, rest-bind, which might be useful to you if you're binding a lot of HTTP APIs like

Re: [Chicken-users] OpenSSL egg option defaults poll

2014-11-28 Thread Andy Bennett
On 27/11/14 03:00, Florian Zumbiehl wrote: > Hi, > >> ... and now version (4) with the dynamic-wind in the correct place: > > I think the logic is correct now, just two small cosmectic issues: > >> diff -upr v1.6.4/openssl.import.scm v1.6.4-andyjpb-fix-4/openssl.import.scm >> --- v1.6.4/openssl.i

Re: [Chicken-users] qt-light egg patch for MacPorts compatibility

2014-11-26 Thread Andy Bennett
Hi, I'm not the maintainer for this egg, but welcome to the community! :-) I hope you enjoy CHICKEN. Thanks for putting the effort in to make the patch. :-) > I'm interested in developing with chicken on my mac and I was happy to find > that MacPorts had packaged chicken. I wanted to use Qt s

Re: [Chicken-users] OpenSSL egg option defaults poll

2014-11-25 Thread Andy Bennett
Hi, ... and now version (4) with the dynamic-wind in the correct place: - $ diff -upr v1.6.4-andyjpb-fix-3 v1.6.4-andyjpb-fix-4 Binary files v1.6.4-andyjpb-fix-3/openssl.import.so and v1.6.4-andyjpb-fix-4/openssl.import.so differ diff -upr v1.6.4-andyjpb-fix-3/openssl.scm v1.6.4-andyjpb-fix-

Re: [Chicken-users] OpenSSL egg option defaults poll

2014-11-25 Thread Andy Bennett
On 23/11/14 18:38, Florian Zumbiehl wrote: > Hi, > >> ;; close >> (lambda () >> (when (startup #t) >> (if outbuf >> - (begin >> - (output outbuf) >> - (set! outbuf ""))) >> + (begin >> + (unbuffered-write o

Re: [Chicken-users] OpenSSL egg option defaults poll

2014-11-23 Thread Andy Bennett
Hi, >>> I'd be glad if some of you could test this out and tell me what you >>> think about it >> >> Can you give some tips for how to test this from a spiffy applications? >> I usually just pass in ssl-accept instead of tcp-accept. >> [...] > > Hello, > > actually I have very little experience

Re: [Chicken-users] OpenSSL egg option defaults poll

2014-11-23 Thread Andy Bennett
Hi, >> * substring/shared is the same as substring in CHICKEN, AFAIK. > > That's only called once in the corner cases so it doesn't really matter > if it wastes a copy. It's just there to stop junk in the tail of the > buffer being sent to the user. Attached is new version of my patch which avoi

Re: [Chicken-users] OpenSSL egg option defaults poll

2014-11-23 Thread Andy Bennett
On 23/11/14 10:32, Mario Domenech Goulart wrote: > Hi Andy, > > On Sun, 23 Nov 2014 02:57:09 +0000 Andy Bennett > wrote: > >> + Introduces a dependency on srfi-13 for the string-copy! and >> substring/shared procedures. This is so that we can do buffer >>

Re: [Chicken-users] OpenSSL egg option defaults poll

2014-11-22 Thread Andy Bennett
Hi, > IIRC we were waiting for andyjpb and company to fix the breakage introduced > by the buffering patch so we could pull in current upstream and then push > the patches or something ... Please find attached a patch to v1.6.4 of the openssl egg. This patch: + Ensures that startup is called

Re: [Chicken-users] OpenSSL egg option defaults poll

2014-10-27 Thread Andy Bennett
Hi, Thanks for this Thomas! > I'd be glad if some of you could test this out and tell me what you > think about it :-) Can you give some tips for how to test this from a spiffy applications? I usually just pass in ssl-accept instead of tcp-accept. Regards, @ndy -- andy...@ashurst.eu.org

Re: [Chicken-users] [PATCH 4/4] openssl: disable interrupts

2014-10-16 Thread Andy Bennett
Hi, > Disable scheduling in order to prevent error checking races between threads. > --- > > Well, I still don't have a clue whether disabling interrupts is actually a > bad idea somehow, but I don't see any easy way to rewrite the code to avoid > preemptive context switches that could screw up t

Re: [Chicken-users] OpenSSL egg option defaults poll

2014-10-16 Thread Andy Bennett
Hi, > IIRC we were waiting for andyjpb and company to fix the breakage introduced > by the buffering patch so we could pull in current upstream and then push > the patches or something ... Oops... sorry. I can't find the mail relating to the details of the breakage. Please can someone remind me a

Re: [Chicken-users] OpenSSL egg option defaults poll

2014-10-16 Thread Andy Bennett
Hi, > Despite many valid reasons for keeping the old ones activated, I'd like > to see the old Versions dropped from the default setting. The longer > people keep them around the longer they will stay. Without my "running an actual webserver hat" on, I think I agree. Having said that, even with m

Re: [Chicken-users] OpenSSL egg option defaults poll

2014-10-16 Thread Andy Bennett
Hi, >> [...] >> Having said that, I'm not sure which clients on which operating systems >> are SSL 3.0 only. >> [...] Having read a bit more... I suspect (infer) that IE6 and possibly more things on Windows XP are the client side problems. I also suspect (infer) that the "SSL 3.0 only" (no TLS)

Re: [Chicken-users] OpenSSL egg option defaults poll

2014-10-15 Thread Andy Bennett
Hi Thomas! > So I would like to poll for opinions from people on this list concerning > this situation. Do you think the default options in the OpenSSL egg > should be "hardened"? Do you think more options should be introduced? Is > compatibility with the rest of the internet a concern at all? ;-)

Re: [Chicken-users] looking for name of an egg

2014-10-14 Thread Andy Bennett
Hi, > I remember reading about an egg that, among other things, had a > function that included/loaded a source file depending whether the > code was compiled/interpreted. > I cannot find the name of this egg, does somebody here know it? Was it the system egg or the autoload egg? http://api.call

[Chicken-users] [ANN] spiffy-cgi-handlers Egg Version 0.4 Released

2014-10-13 Thread Andy Bennett
Hi, I've released version 0.3 of the spiffy-cgi-handlers egg. spiffy-cgi-handlers adds support to spiffy for CGI and derivatives (currently only FastCGI). 0.3 reworks the FCGI header parsing to fix spurious line break issues. For more information see the Egg's wiki page: http://wiki.call-cc.or

Re: [Chicken-users] posix-extras: allow to set process title displayed by ps(1)

2014-10-13 Thread Andy Bennett
Hi, Alex has worked on a version that keeps track of the original argv[0] length: - (define (set-proc-title str) (print "setting proc title to " str) (receive (c v) (argc+argv) ((foreign-lambda* void ((c-string str) (c-pointer argv)) "static int ori

[Chicken-users] posix-extras: allow to set process title displayed by ps(1)

2014-10-13 Thread Andy Bennett
Hi, Alex Charlton & I worked through how to set the process name as displayed by ps(1). This might be a useful addition to the posix-extras egg. - (define (set-proc-title str) (receive (c v) (argc+argv) ((foreign-lambda* void ((c-string str) (c-pointer argv))

Re: [Chicken-users] Use Chicken 3 egg in 4

2014-10-12 Thread Andy Bennett
Hi, > is it possible to use a Chicken 3 egg like the the SMTP client in > Chicken 4? I can not find the SMTP client in the version 4 eggs. hato might be useful for you: http://code.google.com/r/datenhobel-hato-egg-update/ It's an out-of-tree egg but it works with Chicken 4. You might have to t

[Chicken-users] [ANN] New multipart-form-data Egg

2014-10-12 Thread Andy Bennett
Hi everyone, I've written an egg that can decode multipart/form-data HTTP requests. I've been using if for about a week on https://www.knodium.com/ . The functionality is not complete yet but I thought I'd put it out there in case it's useful to anyone else. Comments on the API are welcome! ht

Re: [Chicken-users] irregex and callbacks

2014-10-02 Thread Andy Bennett
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 see which submatch succeeded. Thanks Alex! I'm trying to avoid the linear scan as there are several tens of thousand entries in the databa

[Chicken-users] irregex and callbacks

2014-10-01 Thread Andy Bennett
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. What I want to do is compile all the regexes together and be able to add annotati

Re: [Chicken-users] Parsing Simple Markup

2014-09-22 Thread Andy Bennett
Hi, > Actually due to the possible presence of nested commands, it should > probably be something more generic, since in the last example: > > (bold (smallcap (size 2 "text"))) > > what the procedure 'bold' would be taking in is not a string "text", but > rather an expression...so this is where

Re: [Chicken-users] Parsing Simple Markup

2014-09-21 Thread Andy Bennett
Hi, > I am a new user to Scheme in general and to Chicken in particular, nice > to meet you all. Welcome! > A few examples of what I am trying to parse: > > 1. Tags that identify structural elements of a document: > [chapter] "Chapter Title" > [heading1] "Heading Title" > [list] > ... > [end]

Re: [Chicken-users] [SECURITY] Fix select() buffer overrun on Android platform

2014-09-06 Thread Andy Bennett
Hi, > [1] See original vulnerability announcement for details: > http://lists.nongnu.org/archive/html/chicken-users/2012-06/msg00031.html Is the "high-load-scheduler" mentioned in that link still available? I can't seem to find any trace of it in chickadee or the wiki. Regards, @ndy -- an

Re: [Chicken-users] Reset counters when profiling Chicken programs

2014-09-06 Thread Andy Bennett
Hi, > That would be great. > Another useful function would be to write current profile information > with a function like (profile-write file). In this way, one could > easily determine what happened between two given profile snapshots. This may not be directly useful to you, but I'm interested i

Re: [Chicken-users] reading file from post request

2014-08-12 Thread Andy Bennett
Hi, I think Andy mentioned on IRC that he was working on a "proper" multipart parser for Knodium. Maybe he can tell us what the status is on that. It's the #2 thing on my list at the moment. Down from #1 last week. Will probably be a climber tho'. We need it rather urgently so I'll be back o

Re: [Chicken-users] About Chicken Compiler CSC's Option

2014-06-10 Thread Andy Bennett
Hi, Yeah the Makefile is buggy. Please find my WIP patch attached to this email. This looks more comprehensive than my patch. As I just use hato-smtp.scm I get away without building most of it. I use the datenhobel-hato-egg and my approach is to do "make clean" followed by "chicken-instal

Re: [Chicken-users] bug update-uri in uri-common

2014-06-08 Thread Andy Bennett
Hi, So here's a new poll: a) The current behaviour of resetting port to #f if it's the default port for this scheme is ok. b) The port should not be reset, and the uri should be printed with an explicit port, even if it's the default for this scheme. c) The port should not be reset, bu

Re: [Chicken-users] bug update-uri in uri-common

2014-05-16 Thread Andy Bennett
On Friday, 16 May 2014 14:28:51 BST, Andy Bennett wrote: Hi, If anyone on this mailinglist has strong opinions either way, please let yourselves be heard: now's the time to speak up. The existing behaviour seems reasonable as it only does it when setting "scheme", not whe

Re: [Chicken-users] bug update-uri in uri-common

2014-05-16 Thread Andy Bennett
Hi, If anyone on this mailinglist has strong opinions either way, please let yourselves be heard: now's the time to speak up. If there was a vote then I'd vote to preserve an explicit port setting but dynamically choose the correct one, based on "scheme", when port is #f. I don't think we (

Re: [Chicken-users] [ANN] New egg: glls

2014-05-15 Thread Andy Bennett
Hi, > I'm pleased to announce glls Wow! Nice. :-) Good work. Regards, @ndy -- andy...@ashurst.eu.org http://www.ashurst.eu.org/ 0x7EBA75FF ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken

[Chicken-users] [ANN] rest-bind Egg Version 0.5 Released

2014-05-08 Thread Andy Bennett
Hi, I've released version 0.5 of the rest-bind egg. rest-bind Generates wrappers to REST-like HTTP APIs. 0.5 Provides a bugfix for the ordering of the bound arguments which manifests when binding more than one argument. The manual is up-to-date and in the usual place: http://wiki.call-cc.or

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

2014-05-08 Thread Andy Bennett
Hi, Empty attributes now seem to decode to the string "()". Fixed. Thanks! :-) That works for me now: - #;4> (html->sxml empty) (*TOP* (div (@ (data "")) "empty")) - During " deserialisation when inside an attribute, we seem to get data from earlier in the stream introduced: I c

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

2014-05-08 Thread Andy Bennett
Hi, Thanks for your email. I'm somewhat confused by what you say. Through investigation, it seems html->sxml will decode entities, so long as they aren't within a HTML element attribute. Could you clarify on whether that default applies globally or just to attributes? Yes, sorry, I misread

[Chicken-users] [ANN] spiffy-cgi-handlers Egg Version 0.2 Released

2014-05-04 Thread Andy Bennett
Hi, I've released version 0.2 of the spiffy-cgi-handlers egg. spiffy-cgi-handlers adds support to spiffy for CGI and derivatives (currently only FastCGI). 0.2 adds support to fcgi-handler (the module that provides FastCGI support) for the non-blocking sockets produced by the socket egg in versio

[Chicken-users] [ANN] rest-bind Egg Version 0.4 Released

2014-05-04 Thread Andy Bennett
Hi, I've released version 0.4 of the rest-bind egg. rest-bind Generates wrappers to REST-like HTTP APIs. 0.4 makes the support for APIs that have constant path-fragments after the arguments generally available. This has been sitting in trunk since last July and no one seems to have had any probl

Re: [Chicken-users] CHICKEN 4.9.0rc1 is available

2014-05-04 Thread Andy Bennett
Hi, > The Knodium codebase also seems to build and run. > A few cursory tests suggest that it's OK but I'll stick with it for a > while and let you know how it goes. https://www.knodium.com/ is now running with binaries built from CHICKEN 4.9.0rc1 Performance seems similar to that of the 4.7.0 b

Re: [Chicken-users] [PATCH] Re: 4.9.0rc1: Error: (assv) bad argument type: null

2014-05-04 Thread Andy Bennett
Hi, > + (assert-error (alist-ref 'foo 'bar cmp)) > + (assert-error (alist-ref 'foo '(bar) cmp))) What's a good predicate to use to check whether what will be passed to alist-ref will not throw an exception? The 2nd assert-error rules out a simple list? or an O(1) algorithm. (Tho' list? is alre

Re: [Chicken-users] [Chicken-hackers] 4.9.0rc1: Error: (assv) bad argument type: null

2014-05-04 Thread Andy Bennett
Hi, > The error on 4.9.0rc1 is likely due to 0a52536, which made `assoc`, > `member` et al. signal errors when their second arguments aren't lists > instead of just returning #f (or the sentinel value). This is new > behavior since 4.7.0, and IIRC there were a couple of places in CHICKEN > itself

[Chicken-users] 4.9.0rc1: Error: (assv) bad argument type: null

2014-05-03 Thread Andy Bennett
Hi, I have some code thus: - (define p (lambda (m state) (printf "m: ~S\nstate: ~S\n\n" m state) (let ((k (car m)) (v (cdr m))) (case k ((team) (append `((team/name . ,(alist-ref 'name v eqv? 'sentinel))) state))

Re: [Chicken-users] CHICKEN 4.9.0rc1 is available

2014-04-23 Thread Andy Bennett
Hi, Please, give it a test and report back to the mailing list your findings. Here's a suggested test procedure: $ make PLATFORM= PREFIX= install check $ /bin/chicken-install pastiche I'm happy to report that this works for me. If you can, please let us know the following information

Re: [Chicken-users] Tools to make a graphviz dot map of a scheme program?

2014-02-24 Thread Andy Bennett
Hi, > I made a hack to try this out and although very interesting the output > (i) is crude. The script itself (ii) is an awful mess. > > Somehow though it seems to me there could be some useful insight to be > gained from something visual like this and I imagine it has been done > before. Any po

Re: [Chicken-users] Wiki design

2013-12-19 Thread Andy Bennett
Hi, >> I hope you like it. If you don't, please let me know how I could do a >> better job! Thanks in advance! > > I have to say, I like it! Thanks for the suggestion! What do the > others think? Yes! This looks great! Thanks Arthur! The only thing I notice is that the show/edit/history links

Re: [Chicken-users] trying to gracefully stop threads

2013-12-09 Thread Andy Bennett
On 07/12/13 19:23, Michael Greenly wrote: > I've been trying to learn how threads work but have become a bit stumped > by this example: > > https://gist.github.com/mgreenly/7847072#file-graceful-scm > > My assumption is that the thread would be started and recurs until done > becomes false at whi

Re: [Chicken-users] trying to gracefully stop threads

2013-12-09 Thread Andy Bennett
Hi, > I've been trying to learn how threads work but have become a bit stumped > by this example: > > https://gist.github.com/mgreenly/7847072#file-graceful-scm Also, beware bug #1067 when using 'done' like this in compiled code: http://bugs.call-cc.org/ticket/1067 Regards, @ndy -- andy...

Re: [Chicken-users] go routines for chicken

2013-11-23 Thread Andy Bennett
Hi, > However, the Go runtime will exploit OS-level threads under the hood if a > goroutine blocks, and Chicken will not. If you're not using the FFI and the Chicken runtime blocks due to a SRFI-18 thread blocking then, AIUI, there is a bug in Chicken. Regards, @ndy -- andy...@ashurst.eu.or

Re: [Chicken-users] Turn on profiling and app panics with out of memory - can profiling work if using iup gui?

2013-11-04 Thread Andy Bennett
Hi, > Before I spend a lot of time debugging this I wanted to ask the list if > it should be expected to work. I know the iup egg uses that trampoline > stuff, is this likely to be a problem for the profiler? > > I'm using chicken 4.8.0. > > [panic] out of memory - heap full while resizing - ex

Re: [Chicken-users] [Chicken-hackers] Redefinition of imported binding gets implicitly exported

2013-11-04 Thread Andy Bennett
Hi, > I looked into this recently since it also seemed like a bug to me, but > the behavior seems to be intentional judging from the code. Even if the behaviour is intentional, there is possibly still a bug. This worked find on my own machine but failed on others so the implicit ordering of somet

Re: [Chicken-users] Redefinition of imported binding gets implicitly exported

2013-10-25 Thread Andy Bennett
Hi, > I get the wrong binding for process when I (use m): > > - > #;1> (use m) > ; loading ./m.import.so ... > ; loading ./m.so ... > #;2> (process) > hello > - Of course... I was expecting the posix unit's binding for process: - #;1> (use posix) ; loading library posix ... #;2> pro

[Chicken-users] Redefinition of imported binding gets implicitly exported

2013-10-25 Thread Andy Bennett
Hi, With the following in m.scm: - (module m (do-something) (import chicken scheme) (use posix) (define process (make-parameter 'hello)) (define (do-something) (printf "Doing something...\n")) ) - ...and compiled thusly: csc -s -O2 -d1 m.scm -j m -o m.so csc -s m.import.scm

Re: [Chicken-users] Another lowdown->sxml-serializer problem

2013-10-11 Thread Andy Bennett
Hi, >> 2. Convert w/ markdown->sxml: >> >> ((p "This" (#\space) "fragment" >> (a (@ (href ("http://call-cc.org/";))) "Chicken" (#\space) "Scheme") ".")) > > Well, evidently this is a bug in markdown->sxml, since the above is not > well-formed SXML. Not only is the URL incorrectly being wra

Re: [Chicken-users] losing 'shuffle' ?

2013-10-02 Thread Andy Bennett
Hi, >> I've started working with the development snapshot, 4.7.3, but see in the >> NEWS: >> >>> "shuffle" has been deprecated >> >> Is it being moved? Or is there an alternative function? > > It didn't think that anybody used it. Should it stay? Ooop! I've just realised that this has gone in

[Chicken-users] Timezone bugs in the posix module

2013-09-29 Thread Andy Bennett
Hi, There seem to be some inconsistencies in the timezone handling in the posix module. http://api.call-cc.org/doc/library/current-seconds - (current-seconds) procedure Returns the number of seconds since midnight, Jan. 1, 1970. - This seems to be true and it appears to be in Zulu

[Chicken-users] Weird stdout buffering during (load ...)

2013-07-17 Thread Andy Bennett
Hi, http://paste.call-cc.org/paste?id=e3ae15323d083667cc21eba9db9e0b2ed2ee77fd In the paste above I have some code which seems to print the same thing to stdout three times unless I call (newline), in which case, the thing is printed only once. I modified things such that I print to stdout and a

  1   2   >