Re: [Chicken-users] Passing floats to and from foreign functions

2013-05-11 Thread Jim Ursetto
Hi pluijzer ., You did not declare a prototype in test.scm (technically, test.c) for the functions in wrapper.c. I believe return values default to int if there is no prototype, and the float arg is promoted to double, but I'm not positive. Anyway, simply add the following to the top of

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

2013-05-29 Thread Jim Ursetto
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 code looks identical in both cases. Perhaps some previous register

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

2013-05-29 Thread Jim Ursetto
On May 29, 2013, at 3:53 PM, Peter Bex peter@xs4all.nl wrote: The fpsin expands to a C inline call to sin(), whereas the sin() call expands to a call to C_a_i_flonum_sin, which is not inlineable so it has to issue a proper function call. This then goes through libm, which is potentially

Re: [Chicken-users] problem building chicken 4.8.0.3 on mac 10.4

2013-06-04 Thread Jim Ursetto
Was that prior to the makefiles being completely rewritten, though? Maybe the rewrite uses a feature not available until 3.81, rather than being a bug in 3.80. On Jun 4, 2013, at 9:46, Felix fe...@call-with-current-continuation.org wrote: Hi! Using GNU Make 3.81 indeed solves the problem.

Re: [Chicken-users] socket egg: socket-receive blocks?

2013-06-14 Thread Jim Ursetto
Hi, It's a bug in the socket egg; nonblocking mode is only set during a socket-connect or socket-accept, which won't be called for UDP. Temporary workaround: (use posix) and then, after creating the socket, do either: (##sys#file-nonblocking! (socket-fileno *socket*)) or equivalently

Re: [Chicken-users] socket egg: socket-receive blocks?

2013-06-14 Thread Jim Ursetto
Should be fixed in 0.2.3. Let me know. Jim On Jun 14, 2013, at 3:24 PM, Jim Ursetto zbignie...@gmail.com wrote: Hi, It's a bug in the socket egg; nonblocking mode is only set during a socket-connect or socket-accept, which won't be called for UDP. Temporary workaround: (use

Re: [Chicken-users] socket egg: socket-receive blocks?

2013-06-14 Thread Jim Ursetto
On Jun 14, 2013, at 4:29 PM, Michele La Monaca mikele.chic...@lamonaca.net wrote: I've already reported this issue in the list: http://lists.nongnu.org/archive/html/chicken-users/2013-05/msg00025.html Sorry, it got lost in the shuffle. Could you create a ticket for the other two issues you

Re: [Chicken-users] Issues with socket egg

2013-06-14 Thread Jim Ursetto
On May 8, 2013, at 8:48 AM, Michele La Monaca mikele.chic...@lamonaca.net wrote: 2) The egg doesn’t install on Cygwin due to the unbound identifier 'SO_EXCLUSIVEADDRUSE' (mingw only?). Dropping the related option (so/exclusiveaddruse) solves the problem. When you get a chance, can you

Re: [Chicken-users] Issues with socket egg

2013-06-14 Thread Jim Ursetto
On Jun 14, 2013, at 6:07 PM, John Cowan co...@mercury.ccil.org wrote: You have to be a local Windows admin to set SO_EXCLUSIVEADDRUSE on at least some versions of Windows. I know. It falls back to SO_REUSEADDR in that case, which is broken on Windows but better than nothing. Jim

Re: [Chicken-users] Issues with socket egg

2013-06-17 Thread Jim Ursetto
On Jun 17, 2013, at 12:10 PM, Michele La Monaca mikele.chic...@lamonaca.net wrote: On Sat, Jun 15, 2013 at 1:00 AM, Jim Ursetto zbignie...@gmail.com wrote: I believe this should fix the Cygwin problem. Yes, it does. Thanks. If you care, in Mingw/Msys installation works but it does

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

2013-06-23 Thread Jim Ursetto
Ah, so the segfault also occurs with plain old `cat` then? I think we can close this bug ;) Thanks for tracking this down further. On Jun 23, 2013, at 7:14, Moritz Wilhelmy mor...@wzff.de wrote: On 21.06.2013 22:34, John Cowan wrote: I can confirm that on 32-bit Linux. On Cygwin, however,

Re: [Chicken-users] my errors with eval

2013-07-02 Thread Jim Ursetto
You can't access internal defines in an eval, just as you can't access the lexical variable a. To get around this you could use set! instead to define the variables at toplevel. (let ((a 1)) (set! inc (lambda () (set! a (+ 1 a)) (print a))) (set! runTwice (lambda (op) (op) (op))) (eval

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

2013-07-09 Thread Jim Ursetto
If you're really concerned about this (which is ultimately aesthetic) then you should consider setting flonum-print-precision to 17, which will make an actual difference in rare cases. http://api.call-cc.org/doc/library/flonum-print-precision On Jul 9, 2013, at 10:15 AM, Michele La Monaca

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

2013-07-09 Thread Jim Ursetto
On Jul 9, 2013, at 12:12 PM, Michele La Monaca mikele.chic...@lamonaca.net wrote: On Tue, Jul 9, 2013 at 6:31 PM, Jim Ursetto zbignie...@gmail.com wrote: If you're really concerned about this (which is ultimately aesthetic) Is this acceptable? C:\TMPchicken-status | tail -3 socket

Re: [Chicken-users] Building 32-bit chicken scheme on OS X

2013-07-15 Thread Jim Ursetto
, at 2:21 AM, Daniel P. Wright d...@dpwright.com wrote: Jim Ursetto (Thu, Jan 10, 2013 at 12:20:05PM -0600) Dani, ASSEMBLER_OPTIONS is missing: make PLATFORM=macosx ARCH=x86 C_COMPILER_OPTIONS=-no-cpp-precomp -fno-strict-aliasing -fwrapv -fno-common -DHAVE_CHICKEN_CONFIG_H -m32

Re: [Chicken-users] Building 32-bit chicken scheme on OS X

2013-07-15 Thread Jim Ursetto
I put the tarball here: http://3e8.org/pub/chicken/stability-tmp/chicken-4.8.0.3-b39ebad.tar.gz On Jul 15, 2013, at 5:56 PM, Jim Ursetto zbignie...@gmail.com wrote: Hi there. The culprit appears to be a bug in our use of sigsetjmp, which is actually already fixed in recent stability/4.8.0

Re: [Chicken-users] Building 32-bit chicken scheme on OS X

2013-07-15 Thread Jim Ursetto
Thanks. Nicholas confirmed 32-bit Macs work so I'm going to officially release 4.8.0.4. Jim On Jul 15, 2013, at 11:12 PM, Daniel P. Wright d...@dpwright.com wrote: Hello, 2013/7/16 Jim Ursetto zbignie...@gmail.com I put the tarball here: http://3e8.org/pub/chicken/stability-tmp/chicken

Re: [Chicken-users] Big integers as statement parameters in sql-de-lite

2013-07-22 Thread Jim Ursetto
It's not that the values are too large, it's that srfi 19 represents them as bignums, which is not currently supported by sql-de-lite. However, they work as floats (they will be converted to integers before being passed to the database, due to the column type). Even on 32-bit systems, we fully

Re: [Chicken-users] new eggs

2013-07-29 Thread Jim Ursetto
On Jul 29, 2013, at 11:33, Mario Domenech Goulart mario.goul...@gmail.com wrote: I don't see why we should have/allow core units in .meta's forms. Maybe I'm overlooking something. If that's the case, please let me know. There's one reason I can think of -- it makes it easier to move a core

Re: [Chicken-users] Strange problems with args egg

2013-08-03 Thread Jim Ursetto
This patch to the args egg should fix things -- could you try it? Jim Index: args.scm === --- args.scm(revision 29488) +++ args.scm(working copy) @@ -268,7 +268,7 @@ ) (let* ((srfi37-names (map (lambda

Re: [Chicken-users] Strange problems with args egg

2013-08-04 Thread Jim Ursetto
Did you try my patch? You don't have to rewrite anything, it's a bug in the args egg. On Aug 4, 2013, at 2:13 AM, Jonathan Chan j...@fastmail.fm wrote: Thank you for the help! This is definitely a very interesting language to learn. On 08/03/2013 09:06 AM, John Cowan wrote: Jonathan

Re: [Chicken-users] Strange problems with args egg

2013-08-06 Thread Jim Ursetto
AM, Jim Ursetto wrote: Did you try my patch? You don't have to rewrite anything, it's a bug in the args egg. On Aug 4, 2013, at 2:13 AM, Jonathan Chan j...@fastmail.fm wrote: Thank you for the help! This is definitely a very interesting language to learn. On 08/03/2013 09:06 AM, John

Re: [Chicken-users] Lowdown sxml-serializer not working together

2013-08-21 Thread Jim Ursetto
I don't remember offhand what the rationale was for this in sxml-serializer -- I can take a look but it might not be until this weekend. On Aug 21, 2013, at 22:38, Matt Gushee m...@gushee.net wrote: Hi, chickeneers-- I am working on an application that uses the lowdown egg to process

Re: [Chicken-users] Lowdown sxml-serializer not working together

2013-08-24 Thread Jim Ursetto
Matt, On Aug 22, 2013, at 3:28 PM, Matt Gushee m...@gushee.net wrote: Sounds good. I was actually hoping to be able to blame lowdown for this, since I don't really like the way it makes every word and every space a separate text node. But maybe that's more efficient? And actually, I'm

Re: [Chicken-users] Lowdown sxml-serializer not working together

2013-08-24 Thread Jim Ursetto
On Aug 23, 2013, at 11:24 PM, Matt Gushee m...@gushee.net wrote: Hello again-- Well, I'm running into a new problem with SRV:send-reply. By following the documentation, I managed to create a rule set that escaped problem characters i the manner I want. But now, working with the complete

Re: [Chicken-users] Lowdown sxml-serializer not working together

2013-08-25 Thread Jim Ursetto
On Aug 24, 2013, at 5:25 PM, Jim Ursetto zbignie...@gmail.com wrote: Unfortunately it doesn't declare the default namespace for html. You can work around this by providing a default namespace prefix *and* using the actual prefix (below, xhtml:) on your elements. This is kind of ugly

Re: [Chicken-users] (no subject)

2013-08-28 Thread Jim Ursetto
For whatever reason the docs are outdated and the example is too. You have to (use ports) if you want to compile it. Jim On Aug 28, 2013, at 10:20, Matthew Phillips matt...@phillipsoft.biz wrote: Im playing with this egg example: http://wiki.call-cc.org/eggref/4/args. It compiles fine, but

Re: [Chicken-users] (no subject)

2013-08-29 Thread Jim Ursetto
The doc is erroneous -- you have to add (use ports) after (use args). Jim On Aug 28, 2013, at 10:20 AM, Matthew Phillips matt...@phillipsoft.biz wrote: Im playing with this egg example: http://wiki.call-cc.org/eggref/4/args. It compiles fine, but when I run it with the -h flag I get this

Re: [Chicken-users] Timezone bugs in the posix module

2013-10-03 Thread Jim Ursetto
Posix is pretty much useless for handling timezones correctly; behavior varies greatly based on the OS, and I am fairly sure the direction of the wind plays a part as well. Jim On Sep 29, 2013, at 12:28, Andy Bennett andy...@ashurst.eu.org wrote: Hi, There seem to be some

Re: [Chicken-users] 4.8.0.5 compiled ... on message not quite correct

2013-10-30 Thread Jim Ursetto
There was some noise on the list a few months ago in re changing the compilation message to reflect where the .c to .o compile occurred. Not sure if it went anywhere. I don't really care either way, it is basically cosmetic IMO. On Oct 30, 2013, at 11:02, Mario Domenech Goulart

Re: [Chicken-users] 4.8.0.5 compiled ... on message not quite correct

2013-10-30 Thread Jim Ursetto
buildtag; you have to define C_BUILD_TAG to . The code could be updated to accept a missing build tag (and/or to remove the resulting blank line); I can provide a patch if you like. Jim On Oct 30, 2013, at 3:11 PM, Jim Ursetto zbignie...@gmail.com wrote: There was some noise on the list a few

Re: [Chicken-users] 4.8.0.5 compiled ... on message not quite correct

2013-10-30 Thread Jim Ursetto
] bootstrapped 2013-10-31 On Oct 30, 2013, at 8:36 PM, Jim Ursetto zbignie...@gmail.com wrote: Matt, Easiest way to fix this in the tarball is, prior to `make`: echo #define C_BUILD_TAG \compiled $(date +%Y-%m-%d) on $(hostname)\ buildtag.h or echo '#define C_BUILD_TAG ' buildtag.h

Re: [Chicken-users] schemish/chickenish way to make configurable executables?

2013-11-03 Thread Jim Ursetto
There is also the feature-test egg which is useful in combination with the FFI. Jim On Nov 3, 2013, at 9:56, Matt Welland estifo...@gmail.com wrote: Hi Peter, It looks like cond-expand does enough to achieve what I want. Thanks! Matt -=- On Sun, Nov 3, 2013 at 2:58 AM, Peter Bex

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

2013-11-22 Thread Jim Ursetto
Alex, Looks like there's a regression of sorts in html-parser 0.5.1. 0.5.0 #; (html-sxml foo bar/foo) (*TOP* (foo (@ (bar 0.5.1 #; (html-sxml foo bar/foo) Error: (cadr) bad argument type: () Arguably, empty attributes should result in a value of as per

Re: [Chicken-users] Bug in socket egg and patch

2013-11-27 Thread Jim Ursetto
Thanks. I'll take a look this weekend. Jim On Nov 27, 2013, at 2:29, Jonathan Chan j...@fastmail.fm wrote: Hello, While writing a socket server in Chicken for kicks I think I run into a bug in the sockets egg where socket-accept would not handle the error generated by select() if the

Re: [Chicken-users] Bug in socket egg and patch

2013-11-29 Thread Jim Ursetto
Patch looks good, applied in socket 0.2.5. Thanks. Jim On Nov 27, 2013, at 2:29 AM, Jonathan Chan j...@fastmail.fm wrote: Hello, While writing a socket server in Chicken for kicks I think I run into a bug in the sockets egg where socket-accept would not handle the error generated by

Re: [Chicken-users] Nevermind--Re: Problem with read-line

2013-12-05 Thread Jim Ursetto
The http://api.call-cc.org/doc/big-chicken extension is good for times like these. Jim On Dec 5, 2013, at 16:50, Dan Wilckens dwilck...@gmx.com wrote: On 12/4/2013 7:01 PM, Dan Wilckens wrote: Hi, I built Chicken 4.8.0.5 from source on the mingw-msys platform (under windows vista).

Re: [Chicken-users] Declare large expressions as read-only and not gc-able?

2014-01-05 Thread Jim Ursetto
I'll bet if you define a 100MB literal, the resulting C file would be at least a gigabyte and neither CHICKEN nor gcc would be able to handle it. You could try it and let us know. You could evict it theoretically, but for something that big, you may have to create your own data structure in C

Re: [Chicken-users] Declare large expressions as read-only and not gc-able?

2014-01-05 Thread Jim Ursetto
On Jan 5, 2014, at 11:48, Peter Bex peter@xs4all.nl wrote: Perhaps you can use object-evict!, but that means it won't ever be reclaimed by the GC. I haven't used this myself yet, so I don't know if there's a way to un-evict the object when it can be GC'ed.

Re: [Chicken-users] Declare large expressions as read-only and not gc-able?

2014-01-05 Thread Jim Ursetto
Not sure why this message got truncated, but it was in reference to moving an object back into the heap, in other words unevicting it. Felix says object-evict! is considered harmful, so keep that in mind. (It works fine in the limited context I have used it.) On Jan 5, 2014, at 15:27, Jim

Re: [Chicken-users] 4.8.0.5 syntax weirdness

2014-03-10 Thread Jim Ursetto
This is the fix: commit f8230a466ce3a86f360178f115fb62ee124448b9 Author: Peter Bex peter@xs4all.nl Date: Sun Jun 30 18:50:09 2013 +0200 Fix meta-evaluation to actually take place in the meta environment and add tests Signed-off-by: Christian Kellermann ck...@pestilenz.org It

Re: [Chicken-users] 4.8.0.5 syntax weirdness

2014-03-11 Thread Jim Ursetto
Ok. May not be able to make a full release for a few days but will push out the change Wednesday, at least. On Mar 11, 2014, at 2:31, Peter Bex peter@xs4all.nl wrote: On Mon, Mar 10, 2014 at 11:22:53PM -0500, Jim Ursetto wrote: This is the fix: commit

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

2014-04-26 Thread Jim Ursetto
Success-- Operating system: Mac OS X 10.9.2 Hardware platform: x86-64 C Compiler: Xcode 5.0.2 gcc -- Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) Installation works?: yes Tests work?: yes Installation of eggs works?: yes (pastiche, chickadee) Execution of eggs works?: yes

Re: [Chicken-users] sxml and more

2014-07-27 Thread Jim Ursetto
I've got a couple of blog posts on SXML and namespaces, if you haven't already seen them: http://3e8.org/blog/2010/07/30/namespaces-in-sxml-part-1/ http://3e8.org/blog/2010/07/31/namespaces-in-sxml-part-2/ http://3e8.org/blog/2010/08/01/default-namespaces-in-sxml/ but these are higher-level and

Re: [Chicken-users] Help with udp6 / socket

2015-02-17 Thread Jim Ursetto
for me, thanks for the clear example! I didn't even think to check if (udp-open-socket) also accepted extra arguments. Thanks again! Scott On Tue, Feb 17, 2015 at 4:17 AM, Jim Ursetto zbignie...@gmail.com mailto:zbignie...@gmail.com wrote: Scott, This works on my system (10.10.2, CHICKEN

Re: [Chicken-users] Help with udp6 / socket

2015-02-16 Thread Jim Ursetto
Scott, This works on my system (10.10.2, CHICKEN 4.8.0.6). Note the undocumented argument to udp-open-socket… not sure what I was thinking. If this works for you, I will document the argument and add the example to the wiki. (use udp6) (define s (udp-open-socket 'inet6)) (udp-bind! s ::

Re: [Chicken-users] csc/csi man pages deficient

2015-01-12 Thread Jim Ursetto
If you have chicken-doc installed, another option is to run e.g. chicken-doc csi or consult either of these links, from which the above is taken: http://api.call-cc.org/doc/csi http://wiki.call-cc.org/man/4/Using%20the%20interpreter On Jan 12, 2015, at 12:57, Evan Hanson ev...@foldling.org

Re: [Chicken-users] about egg/pty

2015-02-20 Thread Jim Ursetto
1024 is the default value of FD_SETSIZE i.e. the largest fd one can use with select(), so I think you have the right idea. Use of a magic constant might be reconsidered though. Could also convert the code to use poll() like Chicken core was some time ago. Jim On Feb 20, 2015, at 02:27,

Re: [Chicken-users] Termbox using

2015-05-06 Thread Jim Ursetto
Hi frad, If I may make a suggestion. Lists are not random-access like arrays are. Similarly, checking a list's length traverses the whole list. You should always iterate over a list by using car and cdr, not list-ref. So, to your do loop, you could add another loop variable over the list

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

2015-05-13 Thread Jim Ursetto
On May 13, 2015, at 11:55, Jim Ursetto zbignie...@gmail.com wrote: #t does seem to make sense ... the existing behavior comes from the srfi-37 implementation which sets the value to #f for #:none args. I could modify the args egg to change #f to #t in this case; I don't think this would

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

2015-05-13 Thread Jim Ursetto
On Wed, May 13, 2015 at 4:52 AM, Peter Bex pe...@more-magic.net wrote: 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

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

2015-06-22 Thread Jim Ursetto
Andy, What if you convert the string to a blob before passing it in? Jim On Jun 22, 2015, at 12:16, Andy Bennett andy...@ashurst.eu.org wrote: 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

Re: [Chicken-users] regex to be actively deprecated some day?

2015-09-09 Thread Jim Ursetto
Matt, In fact, there might be a bug in the \1 substitution mechanism, so it is not a bad idea to use the irregex-style replacement anyway, even if you are sticking with POSIX REs. I noticed this a few days ago when attempting to escape characters using a backslash. On the other hand, I could

Re: [Chicken-users] regex to be actively deprecated some day?

2015-09-09 Thread Jim Ursetto
ecomes the text \1. Anyway, the upshot is, the irregex version is better. Jim > On Sep 9, 2015, at 23:24, Jim Ursetto <zbignie...@gmail.com> wrote: > > Matt, > > In fact, there might be a bug in the \1 substitution mechanism, so it is not > a bad idea to use the irregex-

Re: [Chicken-users] example from rpc egg crashes at around 2k calls for me ....

2015-12-10 Thread Jim Ursetto
It would coincide with a typical fd ulimit of 2048. If the issue is actually too many tcp connections, I can't see why, as both the client and server should close the connection after completion. And, you are running these client connections serially. Maybe try dummying out the database calls.

Re: [Chicken-users] Bug with #:optional in args egg?

2017-09-03 Thread Jim Ursetto
On Jun 19, 2017, at 4:25 PM, Diego A. Mundo wrote: > > With the example on the args eggref > (http://wiki.call-cc.org/eggref/4/args#examples > ) slightly modified to this: > … > You can see how the behavior of using

[Chicken-users] cenv -- Chicken 5 virtual environments

2019-05-09 Thread Jim Ursetto
Hola, amigos. I’ve written a little script, cenv, which takes the pain out of using user repositories. It's called cenv because coops was taken. It’s modeled somewhat on Python virtualenv, though it’s more simplistic. See https://github.com/ursetto/cenv , or

Re: Docker container of Chicken's git master

2020-05-03 Thread Jim Ursetto
Neat, I started something like this for Chicken and Chickadee about a year ago and never released it. Feel free to mine my code on the slight chance there is anything useful. https://github.com/ursetto/chicken-docker

Re: chicken-doc instructions recommend extracting tar file as root

2021-05-08 Thread Jim Ursetto
Hi there, Thanks for your interest. I recommend checking out a copy of the svn wiki repo and using chicken-doc-admin to import it, instead of using the tarball. For details see the Quick Start section in https://api.call-cc.org/5/doc/chicken-doc-admin. Or, extract the tarball somewhere in

Re: Make the args egg stop truncating long options in args:usage

2021-09-13 Thread Jim Ursetto
> On Sep 9, 2021, at 3:00 PM, T. Kurt Bond wrote: > > I know that you can parameterize args:width to change the width of the > options display, but wouldn't it be better to NOT truncate things if > args:width is too narrow, and instead output the whole option display, > end the line, and then

Re: After upgrade to 5.3.0 chickadee is broken

2021-12-24 Thread Jim Ursetto
This does look suspicious. I don’t remember seeing this in 5.2 though (you had opened this ticket 16 months ago). Did this just manifest itself suddenly? > On Dec 24, 2021, at 11:06, Kon Lovett wrote: > > similar - https://bugs.call-cc.org/ticket/1721 > >> On Dec 24, 2021, at 8:49 AM, T.

Re: Reository Path, FAQ, and Index Questions

2021-11-15 Thread Jim Ursetto
> On Nov 15, 2021, at 8:06 AM, Christian Himpe > wrote: > > Lastly, I would like to ask if CHICKEN Scheme has a function/symbol index, as > for example Chez Scheme has: > > https://www.scheme.com/csug8/csug_1.html https://api.call-cc.org/5/doc might do what

Re: new egg: cmark

2021-11-03 Thread Jim Ursetto
> On Nov 3, 2021, at 3:44 PM, Harley Swick wrote: > > There is a different cmark egg for Chicken 4. Since my additions are > significantly larger than > the total of the old egg, I didn't feel it was fair to drop a bunch of > strange code on someone > who may not want to be stuck maintaining

<    1   2   3   4