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

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

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

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

[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

[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

[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

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

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 --

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?

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)) >

[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

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've > been t

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

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

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 `((".*" .

[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] 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

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

[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

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

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! --

[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.

[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

[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:

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 got

[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 andy...@ashurst.eu.org To: Nathaniel Rudavsky-Brody nathan...@studio.cm Hi, Given

[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 andy...@ashurst.eu.org To: Nathaniel Rudavsky-Brody nathan...@studio.cm Hi, Given that it's happening with Firefox but not with Curl, I'd look

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

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? Of

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 an

[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 just

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 this.

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 so

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 outbuf 0 outbufsize)

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

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 with spiffy, but

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] 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 and

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 the

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? ;-) We

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?

[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] 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

[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:

[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!

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

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

[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

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 I guess

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] [quote]

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 in

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 --

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 on

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-install.

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,

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] 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 when setting other parts

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

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

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 quot; deserialisation when inside an attribute, we seem to get data from earlier in the stream introduced: I

[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:

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

[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

[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

[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] 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

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 on

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 --

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 which

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.org

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

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 -

[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] 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 process

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 wrapped in a list, but the

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

Re: [Chicken-users] Chicken Scheme Hacking Meetup Event US SF 2013

2013-07-17 Thread Andy Bennett
Hi, We will be doing the chicken hacking event in San Francisco the weekend of September 13th-15th. I look forward to seeing everyone! Now that we have the dates I'll work on nailing down the other details. It would be nice to have it mentioned in http://wiki.call-cc.org/events It seems

[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

Re: [Chicken-users] SPRING THING 2013 has ended.

2013-05-30 Thread Andy Bennett
Hi, CHICKEN U.S. San Francisco? :-) Seriously though I would be glad to organize a San Fransisco CHICKEN if a few people are interested. There's nothing like a bit of gamification to encourage things so I've taken the liberty of pulling together a leaderboard of all the meetups that I can

Re: [Chicken-users] SPRING THING 2013 has ended.

2013-05-30 Thread Andy Bennett
Hi, Note that there is http://wiki.call-cc.org/events already. Gha! I searched for the events and none of them came up in the search results. Regards, @ndy -- andy...@ashurst.eu.org http://www.ashurst.eu.org/ 0x7EBA75FF ___ Chicken-users

Re: [Chicken-users] Protocol Buffers for CHICKEN

2013-05-29 Thread Andy Bennett
Hi, during the CHICKEN spring thing in Cologne I started to work on a new egg [1] implementing the protocol buffer [2] serialization format, which is now in a usable and tested state. Wow! This looks super cool! I'm so sad to have missed the Spring Thing. I wonder if you might entertain

[Chicken-users] Scheme Internships at Knodium

2013-04-30 Thread Andy Bennett
Hi, I'm Andy and I work at Knodium (https://www.knodium.com/ ) where we're developing a collaboration webapp for students. Since we've written it entirely in Chicken Scheme I thought it might be of interest to people here that we're currently recruiting for Internship positions this Summer in

Re: [Chicken-users] hato multipart/alternative

2013-04-10 Thread Andy Bennett
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 case, and it would also be nice to automatically generate the boundary when

Re: [Chicken-users] hato multipart/alternative

2013-04-10 Thread Andy Bennett
Hi, You can log issues on hato.googlecode.com http://hato.googlecode.com. If it's a bug I'll try to fix it, but feature requests will largely be pending the port to R7RS. current-rfc-2822-date-string seems to generate the wrong thing on my machine. I'm currently in BST (GMT+1) but

[Chicken-users] hato multipart/alternative

2013-04-04 Thread Andy Bennett
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:Pat Andrews p...@knodium.com To: Andy Pandy andy...@knodium.com

Re: [Chicken-users] Parsing EMail

2013-03-25 Thread Andy Bennett
Hi. I'm relatively new to chicken and this list, so bear with me :) My aim is to parse EMails (for using with procmail, for instance) but I'm a little stuck/confused by my options. I've been playing with hato-mime.scm (hg cloned from google source project), and I also looked at

Re: [Chicken-users] [PATCH] PDF egg

2012-12-13 Thread Andy Bennett
Hi, Thanks for doing that! However, your patch is out of date. It is for version 1.0 of the egg, while the current version is 1.0.2. The patch failed on the setup file, but the fix was simple. I'm attaching an updated version; you might like to check it to see if it looks right. Hehe...

[Chicken-users] [PATCH] PDF egg

2012-12-10 Thread Andy Bennett
Hi, I've just realised that I have had the attached patch lurking around for a couple of years! It fixes up the pdf-font declarations and then ensures that they get installed. Regards, @ndy -- andy...@ashurst.eu.org http://www.ashurst.eu.org/ 0x7EBA75FF diff -ru pdf-orig/pdf-font.scm

[Chicken-users] eval and srfi-18 threads

2012-11-07 Thread Andy Bennett
Hi, I have found a race condition: please can anyone help me isolate it? I'm using 4.7.0. Currently I have a requirement for environments in my widget rendering code so I can't move to 4.8.0. I have produced the repro case below. I originally saw the behaviour in my app which uses spiffy,

[Chicken-users] [ANN] New OAuth Egg

2012-11-04 Thread Andy Bennett
Hi everyone, I've written an OAuth 1 client. It should work with 1.0, 1.0a and RFC 5849 with PLAINTEXT signing. However, I've only tested it with Dropbox's 1.0 implementation. Regards, @ndy -- andy...@ashurst.eu.org http://www.ashurst.eu.org/ 0x7EBA75FF

  1   2   >