Re: [Chicken-users] [Chicken-hackers] [PATCH] Fix MAKEDIR_COMMAND when INSTALL_PROGRAM is set

2015-06-13 Thread Peter Bex
From 612f865cddb7f65c8795dc85920a30b63f0c7ac1 Mon Sep 17 00:00:00 2001 From: Michele La Monaca bitbuc...@lamonaca.net Date: Fri, 12 Jun 2015 16:08:16 +0200 Subject: [PATCH] fix MAKEDIR_COMMAND when INSTALL_PROGRAM is set Signed-off-by: Peter Bex pe...@more-magic.net --- defaults.make | 2 +- 1

Re: [Chicken-users] [Chicken-announce] CHICKEN 4.10.0 release candidate 1 available

2015-06-09 Thread Peter Bex
On Tue, Jun 09, 2015 at 09:24:34AM +0200, Kristian Lein-Mathisen wrote: Great work Moritz and the team! Looking forward to test this on our systems. Excellent! I'd love to hear your feedback. We are building from the git repo, is there a tag/branch for 4.10.0? prerelease perhaps? Yes,

Re: [Chicken-users] [Chicken-announce] CHICKEN 4.10.0 release candidate 1 available

2015-06-09 Thread Peter Bex
On Sun, Jun 07, 2015 at 05:16:07PM +0200, Moritz Heidkamp wrote: If you can, please let us know the following information about the environment you tested the RC tarball on: Operating system: FreeBSD 10.0 Hardware platform: x86-64 C Compiler: clang-3.3 Installation works?: yes Tests work?: yes

Re: [Chicken-users] [Chicken-announce] CHICKEN 4.10.0 release candidate 1 available

2015-06-09 Thread Peter Bex
On Sun, Jun 07, 2015 at 05:16:07PM +0200, Moritz Heidkamp wrote: If you can, please let us know the following information about the environment you tested the RC tarball on: Operating system: Debian 8.1 Hardware platform: Powerpc (32 bits, iBook G4) C Compiler: GCC 4.9.2 Installation works?:

Re: [Chicken-users] unbound variable: or

2015-06-03 Thread Peter Bex
On Tue, Jun 02, 2015 at 07:27:11PM -0400, John Cowan wrote: Define-macro was never part of any Scheme standard. Nonetheless, of the 33 Schemes in my test suite with macros of some kind, all have syntax-rules, 15 have define-macro (MIT is not one of them), 13 have syntax-case, 5 have explicit

Re: [Chicken-users] unbound variable: or

2015-06-03 Thread Peter Bex
On Thu, Jun 04, 2015 at 01:12:50AM +1200, arc wrote: On 03/06/15 19:00, Peter Bex wrote: It's pretty cool in that it supports both er/ir macros *and* syntactic closures. I was under the impression that explicit renaming macros could be implemented in syntactic closures, and that is what

Re: [Chicken-users] unbound variable: or

2015-05-31 Thread Peter Bex
On Sat, May 30, 2015 at 10:30:38PM -0700, chi wrote: On 05/30/2015 07:02 AM, Peter Bex wrote: As has been pointed out time and again, it is fundamentally broken. Generally when that is true, you can link to a prepared document explaining it clearly and unambiguously. It's all about hygiene

Re: [Chicken-users] [Chicken-hackers] numbers stuff

2015-05-31 Thread Peter Bex
On Tue, May 26, 2015 at 10:57:15PM +0200, Peter Bex wrote: Your mail wasn't CC'ed to the mailing list, so this mail will serve as the final opportunity for people to voice any objections against adding full numeric tower support. If nobody objects, I will merge it somewhere during the weekend

Re: [Chicken-users] unbound variable: or

2015-05-30 Thread Peter Bex
On Fri, May 29, 2015 at 10:23:03PM -0400, John Cowan wrote: Googling for syntax-rules will point you to a lot of basic tutorials. When you want something more advanced, look for JRM's Syntax-rules Primer for the Mildly Eccentric. Read that until you have trouble understanding it; you now know

Re: [Chicken-users] unbound variable: or

2015-05-30 Thread Peter Bex
On Sat, May 30, 2015 at 03:42:41PM +0200, Michele La Monaca wrote: On Sat, May 30, 2015 at 4:23 AM, John Cowan co...@mercury.ccil.org wrote: Jinsong Liang scripsit: I want to learn some basic macro programming in Chicken. However, it seems there are multiple macro definition APIs in

Re: [Chicken-users] u8vector to numbers bignum

2015-05-29 Thread Peter Bex
On Thu, May 28, 2015 at 08:18:14PM -0700, chi wrote: Also, a number-u8vector function would be nice. Converting a number to a hex string, then taking every 2 characters of that and converting that back to a number, for each element of the u8vector, just to keep me from accessing the number's

Re: [Chicken-users] u8vector to numbers bignum

2015-05-28 Thread Peter Bex
On Thu, May 28, 2015 at 10:34:55PM +0200, Michele La Monaca wrote: On Thu, May 28, 2015 at 8:59 AM, 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

Re: [Chicken-users] u8vector to numbers bignum

2015-05-28 Thread Peter Bex
On Wed, May 27, 2015 at 03:53:39PM -0700, chi wrote: How would I convert a u8vector to a bignum? I'd like a good large random number, and there's srfi 27 for decent random sources, and there's 'numbers' for bignum support, but srfi-27 only produces fixnums or u8vectors. I don't know

Re: [Chicken-users] unbound variable: or

2015-05-27 Thread Peter Bex
On Wed, May 27, 2015 at 08:34:12PM +, Mario Domenech Goulart wrote: On Wed, 27 May 2015 16:25:33 -0400 Jinsong Liang jinsongli...@gmail.com wrote: In Chicken, (apply + '(1 2)) returns 3, which is expected. However, if I try: (apply or '(#t #f)) Error: unbound variable: or

Re: [Chicken-users] [Chicken-hackers] numbers stuff

2015-05-26 Thread Peter Bex
On Tue, May 26, 2015 at 03:16:26PM +0200, felix.winkelm...@bevuta.com wrote: On Mon, May 18, 2015 at 12:49:09PM +0200, Peter Bex wrote: I just pushed this, along with some tests, which exposed a few more bugs which I also fixed: I had forgotten to update the size calculations

Re: [Chicken-users] Minor problem with args egg

2015-05-13 Thread Peter Bex
On Wed, May 13, 2015 at 03:38:41AM -0600, Matt Gushee wrote: Anyway, it seems that if you specify an option with no arguments, e.g. (args:make-option (v version) #:none Display compiled versions.) ... then when the user invokes the program with that option,

Re: [Chicken-users] Openssl with csc -deploy

2015-05-08 Thread Peter Bex
On Thu, May 07, 2015 at 11:40:40PM -0400, Nick Van Horn wrote: Thanks for the reply Peter. This won't help because Spiffy has a run-time dependency on openssl, which it tries to load via something like this: (define ssl-port? (handle-exceptions _ #f (eval `(let () (use ssl)

Re: [Chicken-users] Openssl with csc -deploy

2015-05-08 Thread Peter Bex
On Fri, May 08, 2015 at 11:52:06AM -0400, Nick Van Horn wrote: Then this is probably a bug: it seems that in deploy mode, evaled code does not use the deployment search path. I've created a ticket to track this bug: https://bugs.call-cc.org/ticket/1191 Great---thanks for doing this. This

Re: [Chicken-users] Openssl with csc -deploy

2015-05-07 Thread Peter Bex
On Thu, May 07, 2015 at 01:19:34AM -0400, Nick Van Horn wrote: The problem arises when I try to deploy with: csc -deploy foo.scm chicken-install -deploy -p ./foo openssl [... +other extensions] Both commands run without error. All extensions install in the deployment repository without

Re: [Chicken-users] Some syntax help?

2015-05-03 Thread Peter Bex
On Sat, May 02, 2015 at 07:13:55PM -0700, Dan Leslie wrote: First off, thank-you for the aid! You're welcome! Peter Bex pe...@more-magic.net writes: I'm sorry to say it, but this egg contains a lot of strange mistakes and weird things; for example, the setup-file tries to emit a module

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

2015-04-08 Thread Peter Bex
On Wed, Apr 08, 2015 at 08:26:43PM +1200, arc wrote: I would also caution against generalising from Usenet to some wider community. I haven't visited comp.lang.scheme in years, but I am on my second go at trying to make sense of Forth, so I've been lurking in comp.lang.forth, and it's also

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

2015-04-07 Thread Peter Bex
On Tue, Apr 07, 2015 at 09:43:55AM +0200, Felix Winkelmann wrote: A discussion has been raised on comp.lang.scheme regarding a simple raytracer and the performance it poses in various schemes. In this, Gauche an Racket outperform Chicken, and Racket does so resoundingly. To be frank, it

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

2015-04-07 Thread Peter Bex
On Tue, Apr 07, 2015 at 10:41:32AM +0200, Felix Winkelmann wrote: Indeed, I was not trying to make it look otherwise. Apparently Flatt and Kawei did an excellent job in optimizing their implementations, no doubt about that. Or maybe there's some small mistake in our implementation that causes

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

2015-04-07 Thread Peter Bex
On Tue, Apr 07, 2015 at 11:32:39AM +0200, Peter Bex wrote: On Tue, Apr 07, 2015 at 10:41:32AM +0200, Felix Winkelmann wrote: Indeed, I was not trying to make it look otherwise. Apparently Flatt and Kawei did an excellent job in optimizing their implementations, no doubt about that. I tried

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

2015-04-07 Thread Peter Bex
On Tue, Apr 07, 2015 at 12:35:38PM +, Mario Domenech Goulart wrote: Hi, On Tue, 7 Apr 2015 11:32:39 +0200 Peter Bex pe...@more-magic.net wrote: If anyone wants to add it to the chicken-benchmark repo, I would recommend removing the writing of the output file, as that's really

Re: [Chicken-users] Chicken-users Digest, Vol 149, Issue 2

2015-04-07 Thread Peter Bex
On Tue, Apr 07, 2015 at 09:33:49AM -0400, F. Rafael Leon wrote: Even when editing the C code, I wrap it in chicken and dynamically load it over and over again as I refine the inner loop. Hey, that sounds interesting! How do you do that? No implementation is as fast as 10 lines of

Re: [Chicken-users] Cryptic SSAX error message

2015-03-19 Thread Peter Bex
On Wed, Mar 18, 2015 at 08:56:06PM -0600, Matt Gushee wrote: On Tue, Mar 17, 2015 at 2:13 AM, Peter Bex airh...@users.sourceforge.net wrote: You shouldn't parse HTML with an XML parser. Not in general, no. But wouldn't you agree that, regardless of what is wrong with the input file and why

Re: [Chicken-users] GC root gets garbage collected

2015-03-19 Thread Peter Bex
On Thu, Mar 19, 2015 at 12:21:47PM -0700, Christopher Collins wrote: The way I understood it, the returned mystruct instance would never get garbage collected until I explicitly call CHICKEN_delete_gc_root(). I never actually delete the root (I set a breakpoint on CHICKEN_delete_gc_root in

Re: [Chicken-users] Cryptic SSAX error message

2015-03-19 Thread Peter Bex
On Thu, Mar 19, 2015 at 02:26:06PM +0100, Jörg F. Wittenberger wrote: On Mar 19 2015, Peter Bex wrote: there suck in a variety of different ways), so I'm sure a CMS in Scheme is going to make the lives of people like my former self more pleasant. 2 questions: * What features need

Re: [Chicken-users] Cryptic SSAX error message

2015-03-17 Thread Peter Bex
On Mon, Mar 16, 2015 at 09:27:36PM -0600, Matt Gushee wrote: I was building a new blog with Coq au vin, which uses Civet to process templates, which in turn uses SSAX ... and one of my XHTML templates caused [an] error. [error elided] Now that's a helpful error message. It turns out the

Re: [Chicken-users] Updating the zmq egg

2015-03-05 Thread Peter Bex
On Thu, Mar 05, 2015 at 06:24:26PM -0700, Matt Gushee wrote: Thanks, but I guess my question wasn't sufficiently clear. My updated code already has: *(foreign-lambda int zmq_recv socket message size_t int); and (foreign-lambda int zmq_send socket message size_t int)* What I was

Re: [Chicken-users] how to unintern a symbol

2015-02-02 Thread Peter Bex
On Mon, Feb 02, 2015 at 11:34:05AM -0800, Dan Leslie wrote: Is that a function composition function I spy? I wasn't aware of such a thing in R5RS or R7RS, is it a chicken extension or a part of one of the Unity libraries? It's a CHICKEN extension :) There's also compose for when the

Re: [Chicken-users] how to unintern a symbol

2015-02-02 Thread Peter Bex
On Mon, Feb 02, 2015 at 10:51:26AM -0700, Alexej Magura wrote: Does Chicken have anything comparable to Common Lisp's /unintern/? I thought that it might be under /##sys/, since other features present in Common Lisp, but absent in Chicken are available under that namespace, but it doesn't seem

Re: [Chicken-users] how to unintern a symbol

2015-02-02 Thread Peter Bex
On Mon, Feb 02, 2015 at 11:55:12AM -0700, Alexej Magura wrote: AFAICT that just defines a symbol to itself, and only then if you run: (define foo 1) (define foo (unintern 'foo)) (eq? foo |foo|) = #t But, as I said, that only defines 'foo as |foo|: it doesn't /undefine/ the symbol, and it

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

2015-02-01 Thread Peter Bex
On Sun, Feb 01, 2015 at 03:57:40AM +0330, Bahman Movaqar wrote: A naive question but suppose I want to write an application (not an egg); an application in the sense that it will not be installed in CHICKEN repository. What is the recommended directory structure? How can I run the tests (like

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

2015-02-01 Thread Peter Bex
On Sun, Feb 01, 2015 at 11:21:47AM +0100, Peter Bex wrote: Some examples of eggs that install binaries are: hyde, awful, slatex, {svn-,git-,}egg-author, chicken-belt. Correction: egg-author is not an egg but a Mercurial extension. The other two *-egg-author are programs distributed as eggs

Re: [Chicken-users] readline egg v2.0 feedback

2015-01-27 Thread Peter Bex
On Tue, Jan 27, 2015 at 09:10:31AM +0100, Shawn Rutledge wrote: On 26 January 2015 at 00:02, Matt Welland mattrwell...@gmail.com wrote: From http://wiki.call-cc.org/man/4/Using%20the%20interpreter the ,commands are called toplevel commands and you can define them with: (toplevel-command

Re: [Chicken-users] Homepage design proposal

2015-01-23 Thread Peter Bex
On Fri, Jan 23, 2015 at 07:17:17PM +0330, Bahman Movaqar wrote: I strongly disagree with using CHICKEN for the website. Let's keep things simple by using the right tool for the job. I think you're mixing up two things. One is the tool to generate the website and the other is the online try

[Chicken-users] [ANN] Numbers 4.0 released

2015-01-18 Thread Peter Bex
Hello CHICKEN users, I would like to announce the fourth and (hopefully) final major release of the numbers egg. This version features a change in the representation to use the full machine word. Previous versions were based on the Scheme48 representation, which left 2 bits unused. This change

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

2015-01-13 Thread Peter Bex
On Mon, Jan 12, 2015 at 11:49:32AM +0100, m...@freeshell.de wrote: First, to lighten up spirits a bit: at least for me it was easier to start with Chicken than with Clojure. That's good news :) That being said, I think it is hard to compete against Python in terms of documentation, number of

Re: [Chicken-users] Chicken Scheme's license

2015-01-06 Thread Peter Bex
On Mon, Jan 05, 2015 at 10:07:50PM -0700, Alexej Magura wrote: What's Chicken Scheme licensed with? I did a brief search of the website, but I didn't see anything about licensing; sspecifically, is Chicken Scheme open source? It's right there on the homepage at http://www.call-cc.org: -

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

2014-12-29 Thread Peter Bex
On Mon, Dec 29, 2014 at 03:28:15AM +0100, mfv wrote: So far, I have been getting the site with http-client, the raw html to sxml with html-parser, and trying to process the resulting list with matchable/srfi-13. I would recommend avoiding that, as it can get really messy. sxpath is meant for

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

2014-12-29 Thread Peter Bex
On Mon, Dec 29, 2014 at 07:47:33PM +0100, mfv wrote: All in all, I must say that it is much more difficult to get going with Chicken then with Python. The overall language is simple, but the learning curve is fairly steep - and I am not sure whether it will pay off. Hm, that's unfortunate.

Re: [Chicken-users] Strange behavior of Chicken Scheme interpreter on Windows 7

2014-12-04 Thread Peter Bex
On Tue, Dec 02, 2014 at 03:20:05PM +0100, comb...@laposte.net wrote: Thank you for your fast answer :) My target is to have a standalone archive file (including Chicken + GCC) that I can copy on my USB key and use on different computers. Usage: portable Chicken scheme development

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

2014-12-04 Thread Peter Bex
On Thu, Dec 04, 2014 at 09:25:38PM +0100, Sascha Ziemann wrote: It seems to me that the use of //* duplicates the inner 'a' node: (begin (newline) (pp ((sxpath //h1[@class='header']//*) (with-input-from-request http://www.imdb.com/title/tt0497465/; #f html-sxml

Re: [Chicken-users] Strange behavior of Chicken Scheme interpreter on Windows 7

2014-12-01 Thread Peter Bex
On Mon, Dec 01, 2014 at 03:40:10PM +0100, comb...@laposte.net wrote: Hi everybody, Hello and welcome to CHICKEN! My problem is not really an issue, since the scheme interpreter is working correctly in my test conditions. But I noticed a strange behavior on Chicken interpreter with my

Re: [Chicken-users] Visual Studio is here

2014-11-24 Thread Peter Bex
On Sat, Nov 22, 2014 at 11:42:29PM +0300, Oleg Kolosov wrote: Well, merging back into the core will make me happy, but, before that, I plan to actually implement the aforementioned features. Right now I have only barely working prototypes. You, as an upstream, have strong policies and

Re: [Chicken-users] Visual Studio is here

2014-11-24 Thread Peter Bex
On Mon, Nov 24, 2014 at 10:18:10PM +0300, Oleg Kolosov wrote: On 24 Nov 2014, at 12:44, Peter Bex peter@xs4all.nl wrote: The main benefit from this is that there is no more “cross chicken”: just host and target. So it’s actually possible. This sounds interesting. I don't know much about

Re: [Chicken-users] Visual Studio is here

2014-11-22 Thread Peter Bex
On Sat, Nov 22, 2014 at 07:01:44PM +0300, Oleg Kolosov wrote: Hello! Considering that Visual Studio 2013 is now essentially free (http://www.visualstudio.com/products/visual-studio-community-vs) I’m taking the opportunity to announce again that I’m working on a version of CHICKEN Scheme

[Chicken-users] [ANN] Numbers 3.1 released [Was: Re: [Chicken-announce] [ANN] Numbers 3.0 released]

2014-11-16 Thread Peter Bex
On Sat, Oct 04, 2014 at 09:23:26PM +0200, Peter Bex wrote: The performance of various operations (notably number reading and writing, division and ratnum operations) has been radically improved, and is now competitive with many common Scheme implementations which are not aggressively optimised

Re: [Chicken-users] Redefining macros and special forms

2014-10-29 Thread Peter Bex
On Tue, Oct 28, 2014 at 11:02:40PM +0100, Michele La Monaca wrote: On Tue, Oct 28, 2014 at 9:35 PM, Peter Bex peter@xs4all.nl wrote: Yes, this is according to spec. Macros aren't first-class, so whenever you use the same identifier in a non-application context it will look up

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

2014-10-28 Thread Peter Bex
On Tue, Oct 28, 2014 at 07:35:00AM +0100, Florian Zumbiehl wrote: Hi, Therefore I took another route: The existing procedures keep their current defaults, but there is a new set of object constructors that uses only keyword arguments and configures things in a more secure way by

Re: [Chicken-users] Warning: exit called while processing on-exit tasks

2014-10-28 Thread Peter Bex
On Tue, Oct 28, 2014 at 02:13:51PM +, Richard wrote: Hello everybody, If I link multiple units into a shared object, load the shared object and call (exit) I get the warning: Warning: exit called while processing on-exit task. If I'm doing this in the interpreter, csi will not exit.

Re: [Chicken-users] Redefining macros and special forms

2014-10-28 Thread Peter Bex
On Tue, Oct 28, 2014 at 09:31:44PM +0100, Michele La Monaca wrote: Hi, shadowing a macro doesn't seem to work properly in all the cases: (define-syntax my-begin (syntax-rules () ((_ x ...) (begin x ... (let ((my-begin -)) (my-begin 0 1)) ; = -1 (ok) (define my-begin -) (apply

Re: [Chicken-users] Compile time modules query

2014-10-27 Thread Peter Bex
On Mon, Oct 27, 2014 at 03:02:12PM +1100, James Baker wrote: Hey Folks, Have been toying around with Chicken lately and just started learning the module system which seems really nice to use so far. Just have one question which is probably obvious but I'm not seeing how to do it. Hello

[Chicken-users] [PATCH] Fix cond behaviour of = with constant condition [Was: Re: Unbound = in cond statements]

2014-10-17 Thread Peter Bex
://www.more-magic.net From f66efec38cb6b7ebf34d70cfabafe9552807c9bd Mon Sep 17 00:00:00 2001 From: Peter Bex peter@xs4all.nl Date: Fri, 17 Oct 2014 20:46:15 +0200 Subject: [PATCH] Fix incorrect optimization in cond expansion. When a constant is used as the condition, the consequence would be simply

Re: [Chicken-users] How to compile with openssl?

2014-10-07 Thread Peter Bex
On Tue, Oct 07, 2014 at 01:19:55PM +0200, Sascha Ziemann wrote: I tried to load all directly imported modules and also the indirectly imported openssl module before compilation: (begin-for-syntax (require-extension openssl) (require-extension http-client) (require-extension uri-common)

Re: [Chicken-users] How to load modules for compilation

2014-10-06 Thread Peter Bex
On Mon, Oct 06, 2014 at 03:44:38PM +0200, Sascha Ziemann wrote: But when I try to compile it I get an error: $ csc -R blowfish -ss curtain.scm Error: during expansion of (curtain ...) - unbound variable: blowfish#make-blowfish-encryptor I am wondering why the blowfish function is unbound

Re: [Chicken-users] chunk-vector

2014-10-05 Thread Peter Bex
On Sun, Oct 05, 2014 at 08:12:59PM +, Richard wrote: Hello all, I have created a egg called 'chunk-vector' which is a dyn-vector-like (http://wiki.call-cc.org/eggref/4/dyn-vector) library capable of storing other srfi-4 vectors inside a dense array. Hi Richard, Thanks! The stored

[Chicken-users] [ANN] Numbers 3.0 released

2014-10-04 Thread Peter Bex
Dear CHICKEN users, I just released version 3.0 of the numbers egg. As some of you may know I've been busy these past few weeks on making this egg more suitable for a possible integration into the core system. Whether that will become reality remains to be seen, but the big refactoring I

Re: [Chicken-users] [Chicken-announce] [ANN] Numbers 3.0 released

2014-10-04 Thread Peter Bex
On Sat, Oct 04, 2014 at 04:25:16PM -0400, John Cowan wrote: I think this is the basic objection to putting unbounded bignums into core. I mentioned before the idea of dividing bignums into smaller (bignum) and larger (biggernum) versions, though med(i)num and bignum are probably better names.

Re: [Chicken-users] irregex and callbacks

2014-10-02 Thread Peter Bex
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 see which submatch succeeded. Thanks Alex! I'm trying to avoid the

Re: [Chicken-users] New egg: hardwood

2014-10-01 Thread Peter Bex
On Wed, Oct 01, 2014 at 10:18:18AM +0200, Kooda wrote: Hello fellow CHICKEN users, I’d like to announce my first egg contribution: the Hardwood egg. This egg is an attempt at reviving a Termite-like API. This first release provides the basic constructs for creating processes and pass

Re: [Chicken-users] T-DOSE 2014?

2014-09-22 Thread Peter Bex
On Fri, Jun 20, 2014 at 01:55:26PM +0200, Peter Bex wrote: See y'all at T-DOSE! Just a quick reminder and an update that the schedule has been published: http://www.t-dose.org/2014/schedule/full Cheers, Peter -- http://www.more-magic.net ___ Chicken

Re: [Chicken-users] Parsing Simple Markup

2014-09-21 Thread Peter Bex
On Sat, Sep 20, 2014 at 11:19:08AM -0400, Yves Cloutier wrote: Hello, I am a new user to Scheme in general and to Chicken in particular, nice to meet you all. Hello Yves, and welcome to the CHICKEN community! I came to scheme looking for an alternative to Perl for doing a personal

Re: [Chicken-users] Macros and loading compiled code

2014-09-10 Thread Peter Bex
On Wed, Sep 10, 2014 at 12:01:54AM -0700, alex wrote: Hi, Hello Alex, I defined a macro. I compiled it separately and built it into my main program. When my main program calls the load procedure on normal Scheme source files, the procedures in these files use the macro without complaint.

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

2014-08-29 Thread Peter Bex
On Fri, Aug 29, 2014 at 09:03:52AM +0200, Sven Hartrumpf wrote: Hi all. Is there a Chicken function to reset all counters (to 0) when a program is run in profile mode? Background: I need profiling results, but only after my program reached a specific point and until it terminates.

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

2014-08-12 Thread Peter Bex
On Tue, Aug 12, 2014 at 12:36:23PM +0002, Nathaniel Rudavsky-Brody wrote: Thanks a lot, that works perfectly. By the way, is there a best way to parse multipart-form data? I tried with a horrible mix of read-line and read-char, and lost count pretty quickly. Right now there's no parser

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

2014-08-09 Thread Peter Bex
On Sat, Aug 09, 2014 at 05:40:31PM +0002, Nathaniel Rudavsky-Brody wrote: Hello, In an Awful web app, I'm trying to read an image posted as raw data to the server, since it seems multipart/form-data isn't supported. (Is that right?) But I get the feeling I'm missing something regarding

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

2014-07-30 Thread Peter Bex
On Mon, Jul 28, 2014 at 09:46:57PM +0900, Alex Shinn wrote: Regardless, I'll add a utility to make defining tests with your own comparator easier, and explicitly export test-approx-equal? so you don't have to capture the initial test comparator. While you're looking at that, could you also

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

2014-07-30 Thread Peter Bex
On Wed, Jul 30, 2014 at 10:00:00PM +0900, Alex Shinn wrote: 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

Re: [Chicken-users] fnmatch egg

2014-07-27 Thread Peter Bex
On Sun, Jul 27, 2014 at 11:54:07AM +0100, Caolan McMahon wrote: I've just written some bindings to fnmatch(3), which provides shell-style wildcard pattern matching for filenames. Much like `glob` from the posix module, only it matches two strings, returning a boolean rather than descending

Re: [Chicken-users] New leveldb eggs

2014-07-27 Thread Peter Bex
On Sun, Jul 27, 2014 at 12:34:08PM +0100, Caolan McMahon wrote: I published leveldb bindings a while ago. It turns out the implementation had some issues with mangled keys in some circumstances. I've now fixed these issues and created some additional eggs to compliment leveldb. The new eggs

Re: [Chicken-users] sxml and more

2014-07-25 Thread Peter Bex
On Fri, Jul 25, 2014 at 08:54:02PM +0200, Nathaniel Rudavsky-Brody wrote: Hello, Since this is my first post, let me say how happy I've been since I discovered Chicken: thanks everyone for creating such a well-thought-out environment. Hi Nathaniel, and welcome to the coop :) I've got a

Re: [Chicken-users] How to catch an error when http-client can't connect?

2014-07-23 Thread Peter Bex
On Wed, Jul 23, 2014 at 10:10:05PM +0200, Christian Kellermann wrote: Matt Welland estifo...@gmail.com writes: I'd like to handle the case where http-client gets denied a connection. I wrapped the call to with-input-from-request with a handle-exceptions but that doesn't catch the error.

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

2014-07-12 Thread Peter Bex
On Fri, Jul 11, 2014 at 10:58:39AM -0700, ceving wrote: Am Freitag, 8. November 2013 18:57:32 UTC+1 schrieb John Cowan: The final draft of R7RS-small has been ratified by a unanimous vote of the Scheme Language Steering Committee.

Re: [Chicken-users] Determine if program has been compiled

2014-07-12 Thread Peter Bex
On Sat, Jul 12, 2014 at 11:09:24AM -0700, Christopher Collins wrote: Hello chicken users, Is there a way to determine, in code, whether a chicken program has been compiled? I am thinking of something similar to: (cond-expand (chicken-script ... ) ...but with an identifer

[Chicken-users] T-DOSE 2014?

2014-06-20 Thread Peter Bex
Hi all, I got an email from the T-DOSE organisation stating they're hoping we'll have a booth and/or presentations at this year's T-DOSE (held on the 25 and 26th of October). The CFP is here: http://www.t-dose.org/2014/cfp Last year I had to cancel our booth due to a lack of interest from the

Re: [Chicken-users] T-DOSE 2014?

2014-06-20 Thread Peter Bex
On Fri, Jun 20, 2014 at 01:10:48PM +0200, Kristian Lein-Mathisen wrote: Hello Peter, Great initiative! Me and Peder would like to participate as well. K. On Jun 20, 2014 11:48 AM, Richard plui...@freeshell.de wrote: Hello Peter, I would be interested in volunteering for booth duty.

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

2014-06-14 Thread Peter Bex
On Sat, Jun 07, 2014 at 02:19:22PM +0200, Peter Bex wrote: 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

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

2014-06-10 Thread Peter Bex
On Tue, Jun 10, 2014 at 05:56:55PM +0800, blueperson wrote: Thanks for your help! I get a clone use hg clone https://code.google.com/r/datenhobel-hato-egg-update/;. But get the same error csc: invalid option `-G' when I make it. I use chicken 4.8.0.3 in gentoo. Have you tried simply

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

2014-06-10 Thread Peter Bex
On Tue, Jun 10, 2014 at 07:23:51PM +0800, blueperson wrote: 于 2014年06月10日 18:07, Peter Bex 写道: I have removed the -G option when I get the error first time, but it shows another error that seems really strange. It shows: Syntax error (import): cannot import from undefined module domain-keys

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

2014-06-08 Thread Peter Bex
On Sat, Jun 07, 2014 at 09:01:01PM -0400, John Cowan wrote: Peter Bex scripsit: c) The port should not be reset, but the uri should be printed without port if it's the default for this scheme. +1 for (c). hm, but if you really want to print http://foo:80/blabla, how should that work

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

2014-06-07 Thread Peter Bex
On Wed, May 28, 2014 at 11:18:14AM +0200, Kristian Lein-Mathisen wrote: I realize I already put down my vote, but I'd like to promote my case after some thought. I guess what we're trying to find out is what's more troublesome and/or surprising: 1. having to set the port explicitly (to #f?)

[Chicken-users] [ANN] CHICKEN 4.9.0.1 has been released [was: Re: [Chicken-announce] [ANN] CHICKEN 4.9.0 has been released]

2014-06-07 Thread Peter Bex
On Mon, Jun 02, 2014 at 05:35:01PM +0200, Peter Bex wrote: Dear CHICKEN users, We are pleased to announce the immediate availability of CHICKEN 4.9.0 at the following URL: http://code.call-cc.org/releases/4.9.0/chicken-4.9.0.tar.gz Dear CHICKEN users, It has been pointed out that 4.9.0

Re: [Chicken-users] [Chicken-announce] [ANN] CHICKEN 4.9.0.1 has been released [was: Re: [ANN] CHICKEN 4.9.0 has been released]

2014-06-07 Thread Peter Bex
On Sat, Jun 07, 2014 at 04:06:51PM +0200, Peter Bex wrote: The tarball is available in the usual location: http://code.call-cc.org/releases/4.9.0.1/chicken-4.9.0.1.tar.gz Of course that URL should be http://code.call-cc.org/releases/4.9.0/chicken-4.9.0.1.tar.gz Kind regards, The CHICKEN Team

[Chicken-users] [ANN] CHICKEN 4.9.0 has been released

2014-06-02 Thread Peter Bex
Dear CHICKEN users, We are pleased to announce the immediate availability of CHICKEN 4.9.0 at the following URL: http://code.call-cc.org/releases/4.9.0/chicken-4.9.0.tar.gz There are a great many changes in this release since 4.8.0. The most important bugfixes are those which address 6 security

Re: [Chicken-users] destructive sort! really destructive

2014-05-23 Thread Peter Bex
On Sat, May 24, 2014 at 02:03:04AM +0400, Loïc Faure-Lacroix wrote: I guess that I understand why I get such result. Since the list is sorted destructively, the elements within the list are changed. Except the variable “a” is still pointing to the cons of (23 14 19) . rest. For that reason,

Re: [Chicken-users] [Chicken-announce] [SECURITY] Buffer-overrun in some uses of read-u8vector

2014-05-19 Thread Peter Bex
On Sun, May 18, 2014 at 01:27:36PM +0200, Peter Bex wrote: Hello CHICKEN users, A problem was found with the read-u8vector! procedure from the srfi-4 unit, which is almost identical to CVE-2013-4385 (which related to the read-string! procedure, see https://lists.nongnu.org/archive/html

[Chicken-users] [SECURITY] Buffer-overrun in some uses of read-u8vector

2014-05-18 Thread Peter Bex
Hello CHICKEN users, A problem was found with the read-u8vector! procedure from the srfi-4 unit, which is almost identical to CVE-2013-4385 (which related to the read-string! procedure, see https://lists.nongnu.org/archive/html/chicken-announce/2013-09/msg0.html for details). If

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

2014-05-13 Thread Peter Bex
On Tue, May 13, 2014 at 01:38:16PM +0200, Kristian Lein-Mathisen wrote: Hi guys, I have come across som a bug or unintuitive behaviour in uri-common. The port parameter is reset on update-uri. uri-generic works like expected: csi -R uri-generic #;1 (update-uri (make-uri port: 100) scheme:

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

2014-05-13 Thread Peter Bex
On Tue, May 13, 2014 at 11:25:23PM +0200, Kristian Lein-Mathisen wrote: Hmmm ... The scheme is changed, like you say, but the port is too, from 100 to #f, which is what I find surprising. I cannot seem to find a way to update the uri without loosing the port. What am doing wrong here? Try

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

2014-05-13 Thread Peter Bex
On Tue, May 13, 2014 at 11:37:53PM +0200, Kristian Lein-Mathisen wrote: A, of course, now I understand what you were trying to tell me previously. That makes sense. Thanks for clarifying, Peter. Glad my ramblings were helpful! In my particular use-case, I am changing to a custom scheme and

Re: [Chicken-users] 4.9.0rc1 regression on Cygwin, ticket #919

2014-05-11 Thread Peter Bex
On Sat, May 10, 2014 at 07:40:21PM -0400, John Cowan wrote: The subject line says it all. See http://bugs.call-cc.org/ticket/919 The workaround for ticket #962 does not help here. Could you be more specific on how to reproduce this? I've tried CHICKEN on cygwin a number of times, and didn't

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

2014-05-08 Thread Peter Bex
On Thu, May 08, 2014 at 12:32:16AM +0200, Michele La Monaca wrote: Hi, Could you try the attached patch instead? I've tested it on Debian (with zsh and csh), OpenIndiana, Haiku, Cygwin and Mingw-msys. Works fine on Solaris. Thanks for testing. I've pushed this to master *and*

Re: [Chicken-users] utc-time-seconds and local-time-seconds rationale?

2014-05-07 Thread Peter Bex
On Tue, May 06, 2014 at 11:54:35PM +0200, Michele La Monaca wrote: On a side note, I've noticed these discrepancies on solaris, cygwin and mingw: (use posix) (print (time-string (seconds-local-time) %z) - (vector-ref (seconds-local-time) 9)) +0200 - -7200 (osx,

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

2014-05-07 Thread Peter Bex
Domenech Goulart mario.goul...@gmail.com Signed-off-by: Peter Bex peter@xs4all.nl --- tests/runtests.sh |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/runtests.sh b/tests/runtests.sh index d2ffe72..5007f8a 100755 --- a/tests/runtests.sh +++ b/tests

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

2014-05-05 Thread Peter Bex
On Sun, May 04, 2014 at 03:54:55PM +0200, Michele La Monaca wrote: OS : Solaris 10 ARCH : sparc C_COMP : Sun C 5.11 Installation works? : yes Installation of eggs works? : yes Tests work? : almost - ===private repository test ... Error:

Re: [Chicken-users] SRFI 4 vectors size limitation.

2014-05-05 Thread Peter Bex
On Mon, May 05, 2014 at 07:33:28PM +0200, Jubjub wrote: I've noticed that srfi-4 homogeneous numeric vectors are limited to 0xF bytes, regardless of their type. This amounts to 16MB of data, which I've found insufficient since they're the most widely used and convenient way to manipulate

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

2014-05-04 Thread Peter Bex
in this procedure's definition, too. Cheers, Peter -- http://www.more-magic.net From 68debfa6e9321bc99bcc6ea9ee23296d610a0440 Mon Sep 17 00:00:00 2001 From: Peter Bex peter@xs4all.nl Date: Sun, 4 May 2014 11:27:10 +0200 Subject: [PATCH] For consistency, raise an exception from alist-ref when passed a non-list

<    1   2   3   4   5   6   7   8   9   10   >