Re: [Chicken-users] Exact flownums not properly displayed in mingw

2013-07-09 Thread Peter Bex
On Tue, Jul 09, 2013 at 05:15:31PM +0200, Michele La Monaca wrote: On Tue, Jul 9, 2013 at 3:44 PM, John Cowan co...@mercury.ccil.org wrote: Chicken uses the local C's idea of number-to-string conversion. Not the best approach I think. I would rather prefer a consistent behavior. Windows is

Re: [Chicken-users] Exact flownums not properly displayed in mingw

2013-07-09 Thread Peter Bex
On Tue, Jul 09, 2013 at 12:56:19PM -0500, Jim Ursetto wrote: Heh. That is pretty amusing, but more a formatting issue on the part of chicken-status. Or you could chalk it up to the egg's use of a flonum instead of a string or symbolic version number (0.2.3 is read as a symbol, whereas 0.2

Re: [Chicken-users] Line numbers in error output?

2013-07-07 Thread Peter Bex
On Sat, Jul 06, 2013 at 04:33:45PM -0700, J Altfas wrote: However, the bigger (and current) problem involves using the embedding API, that is, Scheme embedded in C. In this case, the command line args are handed to the C main() function, which parses argv[] for the inputs it uses, and

Re: [Chicken-users] I/O blocking?

2013-07-06 Thread Peter Bex
On Fri, Jul 05, 2013 at 08:55:41PM -0700, Estevo wrote: From the docs for the epoll egg: Something I've been considering working on is bindings for libevent. If someone else wants to work on a libevent egg I'm all for it. If no one else does it I will. Does Chicken block, by default, on

Re: [Chicken-users] Line numbers in error output?

2013-07-06 Thread Peter Bex
On Sat, Jul 06, 2013 at 11:49:44AM -0700, J Altfas wrote: On Sat, 6 Jul 2013 12:22:12 -0400, Frank frankdmarti...@gmail.com wrote: Hi, Is there a way to get line numbers in the error output of the interpreter? I would add that this would be extremely helpful in compiled code

Re: [Chicken-users] Line numbers in error output?

2013-07-06 Thread Peter Bex
On Sat, Jul 06, 2013 at 02:16:16PM -0700, J Altfas wrote: Error: (string-append) bad argument type - not a string: () Call history: httm.scm:42: indent-sz httm.scm:42: make-string httm.scm:87: ##sys#print httm.scm:87: ##sys#print

Re: [Chicken-users] and-let* syntax too permissive?

2013-06-30 Thread Peter Bex
On Mon, Jun 24, 2013 at 11:34:02AM +0200, Michele La Monaca wrote: I think it's dangerous to leave it as it is. For example: #;3 (and-let* (((or #f #t))) 1);; correct 1 #;4 (and-let* ((or #f #t)) 1) ;; WRONG! - a stricter syntax would catch this error #f I agree this type of

Re: [Chicken-users] and-let* syntax too permissive?

2013-06-30 Thread Peter Bex
On Sun, Jun 30, 2013 at 03:10:59PM +0200, Peter Bex wrote: On Mon, Jun 24, 2013 at 11:34:02AM +0200, Michele La Monaca wrote: I think it's dangerous to leave it as it is. For example: #;3 (and-let* (((or #f #t))) 1);; correct 1 #;4 (and-let* ((or #f #t)) 1) ;; WRONG

Re: [Chicken-users] Error: unbound variable: define-macro

2013-06-25 Thread Peter Bex
On Tue, Jun 25, 2013 at 03:17:22AM -0500, Daniel Ajoy wrote: I pasted this code: (define-macro (ez-debug var) (let ((name (symbol-string var))) `(print ,name : ,var))) from http://wiki.call-cc.org/chicken-for-ruby-programmers#macros and got Error: unbound variable:

Re: [Chicken-users] pressed Ctrl-\ and got segmentation fault

2013-06-18 Thread Peter Bex
On Tue, Jun 18, 2013 at 12:02:56AM -0500, Daniel Ajoy wrote: This is my .csirc (use readline irregex) (current-input-port (make-gnu-readline-port)) (gnu-readline-parse-and-bind set editing-mode vi) (gnu-history-install-file-manager (string-append (or (get-environment-variable HOME) .)

Re: [Chicken-users] About define-syntax and expansion environment

2013-06-14 Thread Peter Bex
On Fri, Jun 14, 2013 at 10:30:28PM +0800, Xin Wang wrote: Hi, I encountered a problem that previously defined macro can not be used inside other macro defination. It seems that newly defined syntax does not available in macro expansion environment, is it intended? That's correct; this

Re: [Chicken-users] Chicken C interface

2013-06-05 Thread Peter Bex
On Wed, Jun 05, 2013 at 08:47:45AM -0700, Dan Leslie wrote: I do this a fair bit in the Allegro egg. Here's an example: https://github.com/dleslie/allegro-egg/blob/985ca2ceef0f5b4028af3f97729f13cba2976fe5/color.scm Basically, use C_alloc to allocate the memory required to host both the

Re: [Chicken-users] Chicken C interface

2013-06-05 Thread Peter Bex
On Wed, Jun 05, 2013 at 07:57:49PM +0200, Thomas Chust wrote: Hello, but it's trivial to detect cyclic lists during the traversal using either a set of seen elements or just two iteration pointers travelling at different speeds. In C that's rather painful. Note that the OP was asking

Re: [Chicken-users] Chicken C interface

2013-06-05 Thread Peter Bex
On Wed, Jun 05, 2013 at 08:19:15PM +0200, Thomas Chust wrote: On 2013-06-05 20:11, Peter Bex wrote: On Wed, Jun 05, 2013 at 07:57:49PM +0200, Thomas Chust wrote: but it's trivial to detect cyclic lists during the traversal using either a set of seen elements or just two iteration pointers

[Chicken-users] [PATCH] Make library tests compare numbers within epsilon [Was Re: Is chicken supported on 32 bit Linux?]

2013-05-29 Thread Peter Bex
CHICKEN succeeds with the attached patch? Cheers, Peter -- http://www.more-magic.net From d4f4ed53a292de6b25b64e7e1e2251bed06f92ff Mon Sep 17 00:00:00 2001 From: Peter Bex peter@xs4all.nl Date: Wed, 29 May 2013 19:05:32 +0200 Subject: [PATCH] Use inexact comparison for flonum tests. GCC

Re: [Chicken-users] [Chicken-hackers] [PATCH] Make library tests compare numbers within epsilon

2013-05-29 Thread Peter Bex
On Wed, May 29, 2013 at 03:41:30PM -0500, Jim Ursetto wrote: I am curious why this happens though. The only thing I could think of was the number is being constant folded in one case or being computed in one case via a hardware intrinsic instead of libm in the other, but the generated C

Re: [Chicken-users] [Chicken-hackers] [PATCH] Make library tests compare numbers within epsilon

2013-05-29 Thread Peter Bex
On Wed, May 29, 2013 at 10:53:32PM +0200, Peter Bex wrote: It must be due to gcc spotting the call to sin() with a constant, then replacing it with a precalculated constant in the generated machine code. Urgh, this is exactly what you said. Sorry for the noise. Cheers, Peter -- http

Re: [Chicken-users] Is chicken supported on 32 bit Linux?

2013-05-28 Thread Peter Bex
On Tue, May 28, 2013 at 02:25:09PM +, John Long wrote: Hi Christian, Here's the part of the test that crashed. If you need the prior stuff just let me know, I didn't want to post too hugely to the list! Error: (library-tests.scm:210) assertion failed: (= (sin 42.0) (fpsin 42.0)) fpsin

Re: [Chicken-users] Is chicken supported on 32 bit Linux?

2013-05-28 Thread Peter Bex
On Tue, May 28, 2013 at 02:47:15PM +, John Long wrote: On Tue, May 28, 2013 at 04:36:11PM +0200, Christian Kellermann wrote: Yes, some more info would be nice. Did you just download the 4.8.0.3 tarball untarred it, ran make make install make check? Yes, except I didn't know how to

Re: [Chicken-users] Is chicken supported on 32 bit Linux?

2013-05-28 Thread Peter Bex
On Tue, May 28, 2013 at 03:19:00PM +, John Long wrote: On Tue, May 28, 2013 at 04:49:48PM +0200, Peter Bex wrote: It could be that your compiler is performing some optimization which causes this value to be (slightly?) different. It sounds like you nailed it. The tests run fine at -Os

Re: [Chicken-users] Is chicken supported on 32 bit Linux?

2013-05-28 Thread Peter Bex
On Tue, May 28, 2013 at 07:20:14PM +0200, Peter Bex wrote: Well, possibly the tests are wrong (flonum equality is Hard). I'll have a look and see if this can be improved. If it's indeed an optimization that causes a small difference in flonums, it shouldn't cause any problems in practice so

Re: [Chicken-users] Named let*

2013-05-24 Thread Peter Bex
On Fri, May 24, 2013 at 11:37:12PM +0200, Michele La Monaca wrote: Hi all, R5RS doesn't specify this kind of syntax (nor Chicken supports it): (let* loop ((a init) (b a)) body) To me it seems a missing piece of syntax. Am I wrong? I've missed it occasionally as well, but I'm not

Re: [Chicken-users] Spiffy subprocess cleanup

2013-05-23 Thread Peter Bex
On Wed, May 22, 2013 at 10:29:03PM -0700, Evan Hanson wrote: After looking at a bit more, here's what I believe is *actually* happening: The invalid call to process* is signaling an exception in the child, which is handled internally by spiffy (spiffy.scm:470), causing that process to loop

Re: [Chicken-users] Spiffy subprocess cleanup

2013-05-23 Thread Peter Bex
to do that even if the program I tried to execute existed, so that must be a case of PEBKAC. Cheers, Peter -- http://www.more-magic.net From d4de7eb646e57e8c2d2e3d3649cf1a3ec1b65cd8 Mon Sep 17 00:00:00 2001 From: Peter Bex peter@xs4all.nl Date: Thu, 23 May 2013 21:15:19 +0200 Subject: [PATCH

Re: [Chicken-users] need help with hygienic macros

2013-05-12 Thread Peter Bex
On Sun, May 12, 2013 at 02:41:05PM +0200, Jörg F. Wittenberger wrote: Here my current state of affairs: ;; The definer: (define-syntax deftig (syntax-rules () ((_ name . body) ;; Within this body I want some rewrites. (define name (lambda (x y) (let-syntax

Re: [Chicken-users] need help with hygienic macros

2013-05-12 Thread Peter Bex
On Sun, May 12, 2013 at 06:57:12PM +0200, Jörg F. Wittenberger wrote: The idea is to have a definer, `deftig` here, which only abstracts the argument list of the defined procedure away. Here a literal of the original macro (as used in a limited/extended XSLT implementation to be changed).

Re: [Chicken-users] need help with hygienic macros

2013-05-12 Thread Peter Bex
On Sun, May 12, 2013 at 07:36:32PM +0200, Jörg F. Wittenberger wrote: Hm, wait... you're not talking about parameterize as in srfi-39 do you? Yes, I was. a) Way too much overhead. b) no way: atop of the usually straight-forward evaluation it's sometimes subject to delay'ed evaluation...

Re: [Chicken-users] [Chicken-announce] [SECURITY] Incomplete fix for CVE-2012-6122 (select() fs_set buffer overrun)

2013-05-11 Thread Peter Bex
On Wed, May 08, 2013 at 08:18:21PM +0200, Peter Bex wrote: Recently, we fixed a problem related to the use of POSIX select(), which was assigned CVE-2012-6122. See http://lists.nongnu.org/archive/html/chicken-users/2012-06/msg00031.html for more details on the original bug. We fixed

Re: [Chicken-users] Thanks Chicken Scheme

2013-05-11 Thread Peter Bex
On Sat, May 11, 2013 at 05:03:24PM -0400, Mathieu Desrochers wrote: Many thanks for making it possible to write software in scheme. I just spent a few months hacking a web application handled by the Chicken Scheme runtime.Just posting a link to the project page in the hope of giving

Re: [Chicken-users] [Chicken-hackers] z3 lib update

2013-05-08 Thread Peter Bex
On Wed, May 08, 2013 at 08:10:34AM -0700, Thomas Hintz wrote: Thanks felix! All good on my system: FreeBSD 9.1-RELEASE Works fine here too, on NetBSD 6.0. Cheers, Peter -- http://www.more-magic.net ___ Chicken-users mailing list

[Chicken-users] [SECURITY] Incomplete fix for CVE-2012-6122 (select() fs_set buffer overrun)

2013-05-08 Thread Peter Bex
Hello CHICKEN users, Recently, we fixed a problem related to the use of POSIX select(), which was assigned CVE-2012-6122. See http://lists.nongnu.org/archive/html/chicken-users/2012-06/msg00031.html for more details on the original bug. We fixed the scheduler, but there remained other places in

Re: [Chicken-users] gnuplot subprocess: python-chicken

2013-04-30 Thread Peter Bex
On Tue, Apr 30, 2013 at 10:41:14AM -0700, Bryan Vicknair wrote: Hello, Hi! I'm having trouble interacting with a gnuplot subprocess. Here is an example Python script that will generate an ugly graph @ /tmp/graph-py.png:: [...] def go(): gnuplot = Popen(gnuplot, stdin=PIPE,

Re: [Chicken-users] gnuplot subprocess: python-chicken

2013-04-30 Thread Peter Bex
On Tue, Apr 30, 2013 at 08:25:25PM +0200, Peter Bex wrote: On Tue, Apr 30, 2013 at 10:41:14AM -0700, Bryan Vicknair wrote: (define go (lambda () (define-values (i o pid stderr) (process* gnuplot)) (write-line cmd o) (write-line exit o

Re: [Chicken-users] [Chicken-announce] [SECURITY] Incomplete escaping in qs procedure may lead to arbitrary shell code execution

2013-04-29 Thread Peter Bex
On Sun, Apr 21, 2013 at 03:44:51PM +0200, Peter Bex wrote: Hello Chicken users, It was discovered that the qs procedure from the utils module performs incomplete escaping. This issue has been assigned CVE-2013-2024. Kind regards, The Chicken team

[Chicken-users] [SECURITY] Incomplete escaping in qs procedure may lead to arbitrary shell code execution

2013-04-21 Thread Peter Bex
Hello Chicken users, It was discovered that the qs procedure from the utils module performs incomplete escaping. On Windows (mingw32), this procedure quoted the string but did not escape embedded quote characters. On Unix, this procedure did not escape the pipe character. On both systems, the

Re: [Chicken-users] Crypt egg build error

2013-04-12 Thread Peter Bex
On Thu, Apr 11, 2013 at 08:35:20PM -0600, Matt Gushee wrote: Hello, Chickeneers-- Hello Matt, I am attempting to install the crypt egg on 32-bit Linux (up-to-date Arch Linux w/ glibc-2.17), but I am getting the following error: [...] Anyone know what is going on here? Thanks for the

Re: [Chicken-users] Crypt egg build error

2013-04-12 Thread Peter Bex
On Fri, Apr 12, 2013 at 07:18:26AM -0600, Matt Gushee wrote: Hi, Peter-- On Fri, Apr 12, 2013 at 4:02 AM, Peter Bex peter@xs4all.nl wrote: The reason it's erroring out is probably because your libc's crypt() returns NULL for unsupported setting strings, whereas some other crypt

Re: [Chicken-users] ANN: civet 0.1, an X(HT)ML templating library

2013-04-02 Thread Peter Bex
On Tue, Apr 02, 2013 at 11:03:25AM -0600, Matt Gushee wrote: Also, if you have specific questions or suggestions about the code, I'd like to use the GitHub issue tracker for that. Sound OK? That's just fine. Would you like this egg to be made available through chicken-install? If so, please

Re: [Chicken-users] to uses or not to uses

2013-03-25 Thread Peter Bex
On Mon, Mar 25, 2013 at 10:07:15AM +0100, Jörg F. Wittenberger wrote: What's more tricky is that bindings, e.g., make-hash-table resolve to unbond in the runtime initialization even though there is an (import srfi-69) in the module. I can fix this by giving a (uses srfi-69) before the

Re: [Chicken-users] to uses or not to uses

2013-03-25 Thread Peter Bex
On Mon, Mar 25, 2013 at 10:52:39AM +0100, Jörg F. Wittenberger wrote: On Mar 25 2013, Peter Bex wrote: These both don't cut it for me. I'm using rather often (import (only module ) (except from sonthing)) Both use and require-extension seem to import all bindings. Please read

Re: [Chicken-users] to uses or not to uses

2013-03-25 Thread Peter Bex
On Mon, Mar 25, 2013 at 11:12:56AM +0100, Jörg F. Wittenberger wrote: On Mar 25 2013, Peter Bex wrote: Please read the manual; USE accepts these import specifiers as well, and Sorry, I'm confused. A moment ago I tried and it complained. Dunno what I did wrong. This has been added in 4.4.0

Re: [Chicken-users] can't get 'the' to work

2013-03-25 Thread Peter Bex
On Mon, Mar 25, 2013 at 02:13:10PM +0100, Jörg F. Wittenberger wrote: Hm, the example is stripped down from some argument parsing. Given N many bindings, wouldn't it be it a bit expensive to unroll the simple case-dispatch into N eq?-Tests? Let alone that the code would become quite

Re: [Chicken-users] Namespace issues in SXML

2013-03-25 Thread Peter Bex
On Mon, Mar 25, 2013 at 01:58:48PM -0600, Matt Gushee wrote: SXML itself is clearly a good thing, and the tools seem to work very well. And yet, looking at the APIs, there are these maddening inconsistencies, and even looking at each egg in isolation ... for example, what's up with the name

Re: [Chicken-users] to uses or not to uses

2013-03-24 Thread Peter Bex
On Sun, Mar 24, 2013 at 11:05:49PM +0100, Jörg F. Wittenberger wrote: For some reason, several - though not all - procedures turn out to be undefined (e.g. resolve to an unbound value and then segfault accordingly). Segfaults should only happen if aggressive optimizations are enabled. To

Re: [Chicken-users] Valuable SXPath documentation found

2013-03-21 Thread Peter Bex
On Thu, Mar 21, 2013 at 12:47:53AM -0600, Matt Gushee wrote: The other day I was struggling to figure out how to write a certain expression in native sxpath syntax. As has been discussed before, the available documentation leaves many questions unanswered, and some important documents are on

Re: [Chicken-users] [Chicken-announce] [SECURITY] Untrusted startup file inclusion

2013-03-20 Thread Peter Bex
On Tue, Mar 19, 2013 at 05:51:48PM +0100, Peter Bex wrote: Hello Chicken users, A problem was detected in the way the Chicken Scheme Interpreter (csi) reads its startup files. This issue has been assigned CVE-2013-1874. Kind regards, The Chicken Team

[Chicken-users] [SECURITY] Untrusted startup file inclusion

2013-03-19 Thread Peter Bex
Hello Chicken users, A problem was detected in the way the Chicken Scheme Interpreter (csi) reads its startup files. Normally it will read ~/.csirc, but when a file named .csirc is found in the current working directory, it will be loaded instead, regardless of who placed the file there. This

[Chicken-users] Errata for [SECURITY] Untrusted startup file inclusion

2013-03-19 Thread Peter Bex
On Tue, Mar 19, 2013 at 05:51:48PM +0100, Peter Bex wrote: This allows a local attacker to cause arbitrary code to be executed when csi is started from a directory which the attacker has write access to. Correction: This *only* happens when csi is directly executed from this directory. Scripts

Re: [Chicken-users] More thoughts on Ersatz

2013-03-13 Thread Peter Bex
On Wed, Mar 13, 2013 at 05:13:10PM -0600, Matt Gushee wrote: On Tue, Mar 12, 2013 at 1:11 PM, Peter Bex peter@xs4all.nl wrote: Not to sound like a broken record, but I'd add that this applies 100% to HTML/XML as well. I would suggest using SXML or something similar over a string-based

Re: [Chicken-users] More thoughts on Ersatz

2013-03-12 Thread Peter Bex
On Tue, Mar 12, 2013 at 07:04:54PM +0100, Moritz Heidkamp wrote: Hi Matt, Matt Gushee m...@gushee.net writes: 3) {% if not loop.last %} also raises a parser error. This was a fairly important feature for me, because I have a couple of templates that generate JSON from arbitrary-length

Re: [Chicken-users] More thoughts on Ersatz

2013-03-12 Thread Peter Bex
On Tue, Mar 12, 2013 at 08:15:14PM +, Ivan Shmakov wrote: Not to sound like a broken record, but I'd add that this applies 100% to HTML/XML as well. I would suggest using SXML or something similar over a string-based templating language. This allows you to prevent injection bugs

Re: [Chicken-users] vector-copy! compatibility and handling + what else changed around -extend?

2013-03-04 Thread Peter Bex
On Mon, Mar 04, 2013 at 10:58:05AM +0100, Jörg F. Wittenberger wrote: Hi all, as usual it's challenging to compile an application using a new version of chicken. (In this case I try to upgrade from 5.7.5 to current git master.) Somehow the initialization has changed. Now it breaks upon

Re: [Chicken-users] postgresql tests/run.scm line 17 ff.

2013-03-03 Thread Peter Bex
On Sun, Mar 03, 2013 at 12:05:34AM +0100, Herr wrote: Hi, Hi! The following does not look good: (test-assert reset-connection returns a connection (let* ((conn (connect '((dbname . test (isconn (connection? conn)))

Re: [Chicken-users] postgresql tests/run.scm line 17 ff.

2013-03-03 Thread Peter Bex
On Sun, Mar 03, 2013 at 04:03:29PM +0100, Herr wrote: Am 03.03.2013 11:30, schrieb Peter Bex: Like I said, it just checks the object type, not whether the connection is still alive. libpq offers no way to check this. I could check whether the connection-pointer is NULL, but it being

Re: [Chicken-users] postgresql tests/run.scm line 17 ff.

2013-03-03 Thread Peter Bex
On Sun, Mar 03, 2013 at 05:50:30PM +0100, Herr wrote: I hope you find this more convenient than the shitty functions provided by PHP. I always get frustrated having to write code for handling booleans and arrays in PHP all the time, over and over again. How is TCL's interface? PHP:

Re: [Chicken-users] Wish list

2013-02-11 Thread Peter Bex
On Mon, Feb 11, 2013 at 09:33:01AM +0100, Christian Kellermann wrote: Henrietta cache does check each source specified in the egg-locations file every hour for new releases, then downloads the source tarballs for these and chicken-install will rely on these stored tarballs. This is not

[Chicken-users] [ANN] Official CHICKEN security policy

2013-02-08 Thread Peter Bex
Hello Schemers! Recently a few security vulnerabilities have been found and fixed in CHICKEN. In order to more effectively keep track of the state of our security, the CHICKEN Team has decided to adopt an official policy. As always, we've tried to keep things as simple and as informal as

Re: [Chicken-users] How do I build chicken for the MIPS arch?

2013-02-07 Thread Peter Bex
On Thu, Feb 07, 2013 at 03:13:00PM -0500, John Cowan wrote: Ivan Reche scripsit: I've tried to achieve it like the following: C_COMPILER=mipsel-linux-uclibc-gcc make PLATFORM=linux That's never going to work. You have to write, beg, borrow, or steal a translation of apply-hack into

Re: [Chicken-users] [patch] remove the initial check on directory existance

2013-02-03 Thread Peter Bex
On Sun, Feb 03, 2013 at 06:42:55PM +1100, richo wrote: 3) expose a new function that raises errors if the directory exists so that an atomic mkdir is available. My thought is to just name it mkdir, but I'm not sure where it belongs. Please don't do that. This sort of design leads to

Re: [Chicken-users] Segfault with large data-structures (bug)

2013-02-03 Thread Peter Bex
On Sat, Feb 02, 2013 at 08:06:41PM -0600, Jim Ursetto wrote: (bug found -- tl;dr see end of message) Figured it out: you're exceeding the default maximal heap size, which is 2GB. Speaking of which, I wondered about this before: why do we even _have_ a maximum heap size? This is arbitrary and

Re: [Chicken-users] [patch] remove the initial check on directory existance

2013-02-03 Thread Peter Bex
On Sun, Feb 03, 2013 at 10:22:45AM -0500, John Cowan wrote: Peter Bex scripsit: Better to either keep it the way it is, change the semantics and breaking compat (so be it), or convert to keyword args and make it an optional feature (my least favorite alternative). I'm not a big fan

Re: [Chicken-users] Segfault with large data-structures (bug)

2013-02-03 Thread Peter Bex
On Sun, Feb 03, 2013 at 11:15:12AM -0500, John Cowan wrote: Peter Bex scripsit: Speaking of which, I wondered about this before: why do we even _have_ a maximum heap size? This is arbitrary and awkward. For instance, on my trusty old G4 iBook, 2G was way more than I actually had (512 MB

Re: [Chicken-users] Segfault with large data-structures (bug)

2013-02-03 Thread Peter Bex
On Sun, Feb 03, 2013 at 11:37:42PM +0100, Felix wrote: The intention is to provide some sort of soft ulimit at the application level, in case you want to make sure a certain maximum amount of memory is not exceeded. Or if you want to benchmark memory consumption, or do other whacky things. So

Re: [Chicken-users] Segfault with large data-structures (bug)

2013-02-03 Thread Peter Bex
On Mon, Feb 04, 2013 at 12:10:16AM +0100, Felix wrote: But why not just use ulimit? It can be set per process, so I don't see the need to have a second ulimit-like limit inside each process. Not everybody uses UNIX, you know. I keep forgetting not everybody is lucky enough to use it.

Re: [Chicken-users] [patch] remove the initial check on directory existance

2013-02-02 Thread Peter Bex
On Sun, Feb 03, 2013 at 02:20:59AM +1100, richo wrote: This patch removes the internal check for directory existance in create-directory, meaning that it can be treated as atomic on platforms where mkdir(2) is. This makes it inconsistent with the documentation (which, iiuc is already the case

Re: [Chicken-users] Msgpack implementation for scheme (and some questions)

2013-01-31 Thread Peter Bex
On Thu, Jan 31, 2013 at 09:14:32AM +, Alaric Snell-Pym wrote: On 01/31/2013 01:06 AM, Hugo Arregui wrote: That's right, in fact, when I started the project I think to do so, just create the bindings, but, to be honest, I think it will more fun if I do it from scratch. In general, I

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

2013-01-23 Thread Peter Bex
On Wed, Jan 23, 2013 at 03:29:01PM +0900, Ivan Raikov wrote: Hi Peter, I think uri-generic does not silently mangle input upon receiving UTF-8, it just returns #f. When parsing, yes. I think this should stay the way it is (see below). What I was referring to here was the example in my

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

2013-01-17 Thread Peter Bex
On Thu, Jan 17, 2013 at 09:35:36AM +0900, Ivan Raikov wrote: Hi Peter, I think that allowing raw UTF-8 sequences in uri-generic breaks compatibility with RFC 3986. In other words, if you construct a URI with a UTF-8 sequence that happens to include reserved ASCII characters, those ASCII

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

2013-01-16 Thread Peter Bex
On Wed, Jan 16, 2013 at 11:22:57AM +0900, Alex Shinn wrote: Anyway, this isn't really important. I'm mostly concerned with making utf8 do the right thing, and was wondering what the API was because it's not clear from the docs. OK, I think it's worth figuring this out. Put another way, do

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

2013-01-16 Thread Peter Bex
copy) @@ -17,7 +17,7 @@ ; A list of eggs uri-generic depends on. - (needs matchable defstruct) + (needs matchable defstruct utf8) (test-depends test) (author Ivan Raikov and Peter Bex) Index: tests/run.scm === --- tests

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

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

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

2013-01-15 Thread Peter Bex
On Tue, Jan 15, 2013 at 07:30:07PM +0900, Alex Shinn wrote: Right, I'm familiar with the evil standards :) I'm also hoping that we can have some basic compatibility between Chicken's uri module and Chibi's (and whatever R7RS WG2 comes up with). That would be nice indeed. It seems to me the

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

2013-01-15 Thread Peter Bex
On Wed, Jan 16, 2013 at 12:39:16AM +0900, Alex Shinn wrote: The internal representation is either decoded, or it is encoded. Either can be made to work. In this case, the decoded uri-common representation of the former is: ((bool-expr . xy=1)) and the decoded representation of the

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

2013-01-14 Thread Peter Bex
On Mon, Jan 14, 2013 at 02:42:40PM +0900, Alex Shinn wrote: On Mon, Jan 14, 2013 at 1:36 PM, Sungjin Chun chu...@gmail.com wrote: As far as I know, revised RFC permits UTF-8 characters in the URL without encoding. Am I wrong here? Thus you can't use raw non-ASCII bytes in a URI - they must

Re: [Chicken-users] [new egg] pilgrim

2013-01-13 Thread Peter Bex
On Mon, Jan 14, 2013 at 12:31:35AM +1100, richo wrote: I've been working on another http engine for chicken (I know, reinventing the wheel. but it seemed like a fun way to learn about how it worked). We don't mind, in fact we slightly encourage a sense of anarchy and diversity in our

Re: [Chicken-users] [new egg] pilgrim

2013-01-13 Thread Peter Bex
On Mon, Jan 14, 2013 at 02:10:04AM +1100, richo wrote: On 13/01/13 16:02 +0100, Peter Bex wrote: To the relevant locations (and let me know if I did it right? Done! You did it right, AFAICT So I just post to the list again with each new version? Or will it enumerate my tags automagically

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

2013-01-13 Thread Peter Bex
On Mon, Jan 14, 2013 at 07:04:05AM +0900, Sungjin Chun wrote: For testing solr, lucene based client, I have to create url which contains utf-8 encoding(for Korean). But having this encoding uri-common cannot create uri. Can any one help me on this? Thanks. Hello Sungjin, As far as I

Re: [Chicken-users] Windows Installer

2013-01-07 Thread Peter Bex
On Mon, Jan 07, 2013 at 12:01:01PM +0200, Răzvan Rotaru wrote: Hi, Hi! I have made a windows installer for chicken. You can get it from https://bitbucket.org/roti/chicken-installer/downloads It includes the MinGW GCC compiler. I would appreciate any feedback if there are windows users

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

2012-12-16 Thread Peter Bex
On Sat, Dec 15, 2012 at 07:38:37PM -0700, Matt Gushee wrote: Hi, Andy (and anyone interested in PDF generation)-- What *I* would like to see is a PDF lib that graphic designers will like--and font embedding is a key part of that. +1. Personally, I think the killer feature of a good PDF

Re: [Chicken-users] error with srfi-19: /usr/lib/chicken/6/locale-posix.so: undefined symbol: C_fixnum_modulo

2012-12-13 Thread Peter Bex
On Thu, Dec 13, 2012 at 08:10:19PM +0100, Felix wrote: From: Hugo Arregui hugo.arre...@gmail.com [...] csi: symbol lookup error: /usr/lib/chicken/6/locale-posix.so: undefined symbol: C_fixnum_modulo I tried reinstalling srfi-19 with chicken-install, but I get the same result.

Re: [Chicken-users] error with srfi-19: /usr/lib/chicken/6/locale-posix.so: undefined symbol: C_fixnum_modulo

2012-12-13 Thread Peter Bex
On Thu, Dec 13, 2012 at 07:10:51PM -0300, Hugo Arregui wrote: Well, it's finally working!. I just remove the complete chicken installation, and then rebuild from zero. Good to hear! It's unfortunate we don't know what caused it though, in case someone else runs into it again. Ah well :)

Re: [Chicken-users] error with srfi-19: /usr/lib/chicken/6/locale-posix.so: undefined symbol: C_fixnum_modulo

2012-12-13 Thread Peter Bex
On Thu, Dec 13, 2012 at 04:33:17PM -0600, Peter Danenberg wrote: I have to completely reinstall Chicken, incidentally, when I start getting `undefined symbol' errors. They start cropping up for benign-looking things like srfi-13 symbols; it's bizarre. It may be more of a mandelbug than a

Re: [Chicken-users] using flymake with chicken

2012-11-24 Thread Peter Bex
On Sat, Nov 24, 2012 at 08:21:05PM +0100, Felix wrote: Also: is there a way to show the error message? I found flymake-display-err-menu-for-current-line, but that gives an annoying popup with the message, which is cut off so you can't read the most important parts. Oh, look:

Re: [Chicken-users] hash table questions

2012-11-23 Thread Peter Bex
On Thu, Nov 22, 2012 at 07:56:31PM -0500, Claude Marinier wrote: Greetings fellow Schemers, Hello again, Having established in a previous post that using a u8vector as a key for a hash table is expected to work, I have some specific questions. I am still learning how to post questions

Re: [Chicken-users] using flymake with chicken

2012-11-23 Thread Peter Bex
On Fri, Nov 23, 2012 at 08:27:32PM +0100, Peter Bex wrote: Suggestions are welcome. Flymake doesn't have default key bindings for going to the next/prev error. Maybe the mode can set up something like M-n and M-p to step between errors? Or does it make more sense to let the user do this so

Re: [Chicken-users] undefined reference to `C_numbers_toplevel'

2012-11-23 Thread Peter Bex
On Fri, Nov 23, 2012 at 12:27:29PM -0800, Miguel Fernandez wrote: Hey everyone, Hello Miguel! I'm just starting out in Scheme, and trying to compile a small snippet that uses complex numbers. The code is as follows: (use numbers) (begin (display 3+3i) (newline)

Re: [Chicken-users] hash table questions

2012-11-23 Thread Peter Bex
On Fri, Nov 23, 2012 at 02:19:10PM -0800, Kon Lovett wrote: On Nov 23, 2012, at 1:58 PM, Kevin Wortman kwort...@gmail.com wrote: Hi, This may or may not be helpful, but I'll add that, if it were me, I'd represent an IP address as a list of four fixnums rather than a u8vector. Then

Re: [Chicken-users] Modules in shared libs?

2012-11-21 Thread Peter Bex
On Wed, Nov 21, 2012 at 02:13:39PM -0700, Matt Gushee wrote: I think what I want to do is to load shared libraries containing modules into compiled code. [...snip...] And here's what happens when I try to work with them: $ csc -dynamic a.scm $ csc -dynamic b.scm $ csc -dynamic

Re: [Chicken-users] Modules in shared libs?

2012-11-21 Thread Peter Bex
On Wed, Nov 21, 2012 at 04:34:49PM -0500, John Cowan wrote: Peter Bex scripsit: You'll need to use csc -j c c.scm to emit file c.import.scm, then compile that. Is there a significant benefit to compiling import libraries? I have never bothered to do so. There is if you have big

Re: [Chicken-users] How can I check a new build of chicken?

2012-11-19 Thread Peter Bex
On Mon, Nov 19, 2012 at 09:19:33PM +0100, Felix wrote: From: John Long codeb...@inbox.lv Subject: Re: [Chicken-users] How can I check a new build of chicken? Date: Sun, 18 Nov 2012 14:36:43 + Warning: reference to possibly unbound identifier `values' ../libchicken.so.6.0: warning:

Re: [Chicken-users] Installing the SDL Egg on OSX Montain Lion

2012-11-14 Thread Peter Bex
On Tue, Nov 13, 2012 at 10:30:25PM -0300, Stephen Eilert wrote: Hello guys, Before I don the full diving suit, I'd like to know if any of you have pointers regarding building the SDL egg on OSX. I am doing some experiments which depend on SDL and Cairo which are both easy to install under

Re: [Chicken-users] struggling with macros

2012-11-11 Thread Peter Bex
On Sun, Nov 11, 2012 at 01:23:13PM +0100, Răzvan Rotaru wrote: Hi, Hi! I'm trying to write a simple javascript DSL, and got stuck in the macros :). (I'm coming from lisp macros) Take for example this one: (define-syntax js (ir-macro-transformer (lambda (expr inject compare)

Re: [Chicken-users] struggling with macros

2012-11-11 Thread Peter Bex
On Sun, Nov 11, 2012 at 02:24:17PM +0100, Răzvan Rotaru wrote: On 11 November 2012 13:30, Peter Bex peter@xs4all.nl wrote: Yes, behaviour is correct, but implementation is not complete, hence the next version of js-macro. You're trying to use MAP on a macro. That's not possible because

Re: [Chicken-users] building under windows

2012-11-06 Thread Peter Bex
On Tue, Nov 06, 2012 at 10:27:58AM +0100, Răzvan Rotaru wrote: Hi, I tried to build from the release tarball 4.8.0 ( http://code.call-cc.org/releases/4.8.0/chicken-4.8.0.tar.gz). The command run was: D:\kit\chicken-4.8.0mingw32-make PLATFORM=mingw PREFIX=d:/programs/chicken stderr.txt

Re: [Chicken-users] A poor man's continuous integration server with awful+spiffy

2012-11-05 Thread Peter Bex
On Mon, Nov 05, 2012 at 09:49:36AM +0900, Ivan Raikov wrote: Hi all, Hi Ivan, I recently had the need to automatically produce native binaries for nemo, one of my applications written in Scheme. So I decided to try using awful to construct a simple server script that can fetch the latest

Re: [Chicken-users] building under windows

2012-11-05 Thread Peter Bex
On Mon, Nov 05, 2012 at 09:52:49PM +0100, Răzvan Rotaru wrote: Hi, Hi Răzvan, I'm currently trying to build chicken for windows, and am stuck in the following step: GNUmakefile:60: recipe for target 'boot-chicken' failed mingw32-make: *** [boot-chicken] Error 2 It seems like I need to

[Chicken-users] [ANN] Spiffy 5.0 has been released

2012-11-05 Thread Peter Bex
Hello everyone, I would like to announce Spiffy version 5.0. It's the first major release to have come out in 3 years. The main feature is that most of the extra handlers that used to be shipped with Spiffy have been moved out of the main distribution, making it lean and mean and quicker to

Re: [Chicken-users] http-client: 304 Not Modified

2012-11-01 Thread Peter Bex
On Thu, Nov 01, 2012 at 05:30:18PM +, Andy Bennett wrote: Hi, Hi! When http-client receives a 304 Not Modified response it tries to read-string until the end of the connection. 304 Not Modified responses must not have a body and therefore, on keep-alive connections, the read hangs until

Re: [Chicken-users] Is there any documentation about SXpath available?

2012-10-30 Thread Peter Bex
On Tue, Oct 30, 2012 at 01:51:01PM +0100, Felix wrote: Hi, again! I tried the link mario gave me but what I am looking for is some documentation on the _highlevel_ XPath syntax. The link on the metapaper.com (or whatever) page to a tutorial describing this is broken. Of course. So, once

Re: [Chicken-users] Pipe and thread problem

2012-10-24 Thread Peter Bex
On Wed, Oct 24, 2012 at 03:21:15AM -0400, Felix wrote: Anyone with a better understanding of Chicken's internals able to comment on which cases poll() is called and how the timeout value is selected? poll(2) is not used in the runtime system. I think some libcs might implement select()

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