Re: Not compiling statically

2023-02-22 Thread Jim Ursetto
On Feb 22, 2023, at 4:20 AM, felix.winkelm...@bevuta.com wrote: > >> Hi everyone. Sorry if this is an obvious question, but can I *not* compile >> an extension statically? > > I think this may require a csc option (to override the > default setting). I can look into this, but currently it > is

Not compiling statically

2023-02-20 Thread Jim Ursetto
Hi everyone. Sorry if this is an obvious question, but can I *not* compile an extension statically? In other words, I’m trying to build chickadee, and I believe it's taking around twice as long as expected because it is building every egg dependency dynamically and then again statically. Is

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

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

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

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] (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] (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] 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] 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-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] 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] 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-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] 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] 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] 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] 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] 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] 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] 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] 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] 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] [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] 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] Missing file-type in posix import

2013-04-24 Thread Jim Ursetto
I also pushed this to stability. Thanks. Jim On Apr 24, 2013, at 2:40 AM, Christian Kellermann wrote: Hi Jules, * J Altfas p...@bmedctr.com [130424 08:52]: When I was trying to use (file-type ...) in a compiled module, it was a big surprise when csc instantly ground to a halt, issuing an

[Chicken-users] egg documentation with subpages

2013-04-15 Thread Jim Ursetto
Hi, It is now possible to break up egg documentation into several pages. This was previously possible on the wiki, but is now supported by chicken-doc as well. Procedure: instead of creating a file, create a directory and populate it with subpage files. To document the main page, call the

Re: [Chicken-users] local egg documentation (experimental)

2013-04-03 Thread Jim Ursetto
Hi Matt. On Apr 2, 2013, at 4:13 PM, Matt Gushee wrote: I wonder if there is a program that converts Markdown to Chicken Wiki format? There is not, mostly because markdown is not really extensible and doesn't support marking up procedure identifiers and so on (without terrible hacks).

Re: [Chicken-users] Civet egg ready for release

2013-04-03 Thread Jim Ursetto
Two reasons: 1) You didn't tag version 0.2.1 2) Your tags say release-0.2 instead of 0.2, so you have to change (uri targz https://github.com/mgushee/{egg-name}/tarball/{egg-release};) to (uri targz https://github.com/mgushee/{egg-name}/tarball/release-{egg-release};) I think this should work.

Re: [Chicken-users] Access to wiki

2013-03-08 Thread Jim Ursetto
John, I tried in a bunch of different browsers (google search Chicken Scheme, click on result associated with wiki.call-cc.org/manual/index, and still can't reproduce the problem: OS X 10.7, Safari 6 OS X 10.7, Firefox 19 Windows XP, IE 6.0 Windows XP, IE 8.0 Windows XP, Firefox 3.0 They all

Re: [Chicken-users] New string manipulation module

2013-02-21 Thread Jim Ursetto
On Feb 21, 2013, at 1:50 PM, Jörg F. Wittenberger wrote: On Feb 20 2013, Mario Domenech Goulart [well, actually, I, Jim] wrote: join-strings, and string-match or match-string. Another is to keep the s- prefix, which is a natural grouping. Or you could require the user to prefix on import,

Re: [Chicken-users] New string manipulation module

2013-02-21 Thread Jim Ursetto
On Feb 21, 2013, at 2:04 PM, John Cowan wrote: I've proposed a new type of import specifier to go with prefix, namely drop-prefix. Rather than prefixing all names, this removes the prefix from any names that have it. This would be a Good Thing to add to Chicken; Chibi already has it, and it

Re: [Chicken-users] posix-extras sleep

2013-02-20 Thread Jim Ursetto
On Feb 20, 2013, at 3:57, J Altfas p...@bmedctr.com wrote: On Tues, 19 Feb 2013 15:13:30 -0600 Jim Ursetto wrote: Hmm, I just realized scheduler.scm relies on nanosleep(3) on UNIX, so I guess it is safe to use in posix-extras as well. I'll change posix-extras to use nanosleep

Re: [Chicken-users] New string manipulation module

2013-02-20 Thread Jim Ursetto
I think it sounds good as an official egg; although there's a lot of overlap with SRFI-13 it's not bad to have another API. The main thing I'd suggest if making it official is that, as a port of the s library, to name it something like s or s-strings instead of strings, since the latter sounds

Re: [Chicken-users] posix-extras sleep

2013-02-19 Thread Jim Ursetto
On Feb 18, 2013, at 2:36 PM, Jim Ursetto wrote: I would be ok with adding usleep to the posix-extras egg if you want. I'm not sure if it should be a separate function or just override (sleep) to accept fractional values. I'm thinking the latter. Although not exactly what you asked

Re: [Chicken-users] posix-extras sleep

2013-02-19 Thread Jim Ursetto
Hmm, I just realized scheduler.scm relies on nanosleep(3) on UNIX, so I guess it is safe to use in posix-extras as well. I'll change posix-extras to use nanosleep shortly. On Feb 19, 2013, at 2:24 AM, Jim Ursetto wrote: On Feb 18, 2013, at 2:36 PM, Jim Ursetto wrote: I would be ok

Re: [Chicken-users] (file-select ...) and compiler warnings

2013-02-18 Thread Jim Ursetto
On Feb 18, 2013, at 3:58 AM, J Altfas wrote: Certainly agree that leaving out usleep was an oversight, considering how simple it is to include it. While I'm pretty sure many of the posix functions are not optimum in an srfi-18 threaded environment, file-select, sleep, and friends are still

Re: [Chicken-users] (file-select ...) and compiler warnings

2013-02-17 Thread Jim Ursetto
On Feb 17, 2013, at 4:18 PM, J Altfas wrote: Hello, Using 'file-select' as a sub-second sleep procedure works without hitch under csi: (define (sleeper tm) (let ((currms (current-milliseconds))) (let-values (((_ __) (file-select #f #f tm))) (print (- (current-milliseconds)

Re: [Chicken-users] new eggs

2013-02-16 Thread Jim Ursetto
Holy cow! Great job. Jim On Feb 16, 2013, at 8:26, Andrei Barbu and...@0xab.com wrote: Hi, I've got a bunch of eggs that are ready to go. These have documentation and are meant as end-user libraries: nondeterminism - carry out nondeterministic computations with a more flexible

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

2013-02-04 Thread Jim Ursetto
On Feb 4, 2013, at 2:28 PM, Felix wrote: Perhaps, but I really don't see a problem of allowing a limit on heap allocation in the runtime system. I think a segfault is an appropriate response to OOM, but I wonder if it's possible to panic() instead if the heap size can't be increased as

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

2013-02-03 Thread Jim Ursetto
Well, there is another option, which is to put an atomic implementation in, say, the posix-extras egg, and then the user may import it under a different name or overwrite posix's create-directory with it. On Feb 3, 2013, at 9:26 AM, Peter Bex wrote: On Sun, Feb 03, 2013 at 10:22:45AM -0500,

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

2013-02-02 Thread Jim Ursetto
I am positive this is a case where the documentation was written to explain an implementation artifact. That note wasn't added until 11 months ago ... by Mario. The current implementation returns foo if a file foo (not just a directory foo) already exists. No one is ever going to check this

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

2013-02-02 Thread Jim Ursetto
What version of chicken, and if 4.8.0 for example could you try 4.7? On Feb 2, 2013, at 11:51, Arthur Maciel arthurmac...@gmail.com wrote: Hello! I don't know if it is related to Ivan's problem, but when I compile and run this code: (use srfi-69) (define NODES 25) (define EDGES

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

2013-02-02 Thread Jim Ursetto
On Feb 2, 2013, at 3:46 PM, Kristian Lein-Mathisen wrote: I'm getting the same result here, when I run it through csc. When I run it through csi, though, it never seems to finish - is the task that big? I had to kill it after 2-3 hours. It's a hash table with 250,000 entries and 1,000 items

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

2013-02-02 Thread Jim Ursetto
after the heap exceeds 4GB, maybe indicating some 32-bit sizes left laying around in the code. Jim On Feb 2, 2013, at 7:18 PM, Jim Ursetto wrote: On Feb 2, 2013, at 3:46 PM, Kristian Lein-Mathisen wrote: I'm getting the same result here, when I run it through csc. When I run it through csi

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

2013-02-02 Thread Jim Ursetto
On Feb 2, 2013, at 8:06 PM, Jim Ursetto wrote: Uh oh, we've hit an actual bug now. Although we can get nodes up to 85000 by increasing max heap size from 2GB to 8GB, it appears to bomb after the heap exceeds 4GB, maybe indicating some 32-bit sizes left laying around in the code. Hmm, could

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

2013-02-02 Thread Jim Ursetto
1042.938s CPU time, 50.714s GC time (major), 250066522 mutations, 44/851838 GCs (major/minor) [debug] forcing finalizers... [debug] application terminated normally On Feb 2, 2013, at 8:06 PM, Jim Ursetto wrote: (bug found -- tl;dr see end of message) Figured it out: you're exceeding the default

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

2013-01-31 Thread Jim Ursetto
FYI, the docs for endian-blob don't indicate the ordering of the endian blob after type-endian_blob. From reading the code it's MSB and there's an optional mode arg to these procedures. Should this be documented? Similarly the optional mode argument to byte-blob-endian-blob is documented as

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

2013-01-31 Thread Jim Ursetto
On Jan 28, 2013, at 2:53 PM, Hugo Arregui wrote: 3) To read/write float/double numbers (in ieee754) i'm using endian-blob egg (here[4]), it's there any alternative without implementing the full float/double-binary logic (which seems quite complicated)? Maybe I'm overlooking something, but

[Chicken-users] Chicken 4.8.0.1 released

2013-01-17 Thread Jim Ursetto
Hi all, Chicken 4.8.0.1 is now available for download from the usual place: http://code.call-cc.org/releases/4.8.0/chicken-4.8.0.1.tar.gz For what's new, see http://code.call-cc.org/releases/4.8.0/NEWS-4.8.0.1 The 4.8.0.x releases reside on the stability/4.8.0 branch in git, which you can

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

2013-01-10 Thread Jim Ursetto
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 ASSEMBLER_OPTIONS=-m32 LINKER_OPTIONS=-m32 The resulting chicken gives me a bus error though and I don't know how to fix

Re: [Chicken-users] MacOSX setup-helper install error

2012-12-27 Thread Jim Ursetto
Normally indicates the install path is too long; if so it is surprising the build and install of Chicken itself even worked. Try one of these fixes: 1) Recompile and reinstall chicken after changing this line in Makefile.macosx: LINKER_LINK_SHARED_DLOADABLE_OPTIONS += -Wl,-headerpad

Re: [Chicken-users] MacOSX setup-helper install error

2012-12-27 Thread Jim Ursetto
as thorough as I might have been testing them. -Alan On Thu, Dec 27, 2012 at 01:13:20PM -0600, Jim Ursetto wrote: Normally indicates the install path is too long; if so it is surprising the build and install of Chicken itself even worked. Try one of these fixes: 1) Recompile and reinstall

Re: [Chicken-users] Browsing the Chicken wiki offline

2012-12-13 Thread Jim Ursetto
On Dec 13, 2012, at 1:47 AM, John Magolske wrote: Thanks for writing up these explanations options, Jim. I was going to give your suggestions a try, but wanting to keep intra-wiki links working and also wanting to learn how to use qwiki for other purposes, I finally set aside some time and

Re: [Chicken-users] Browsing the Chicken wiki offline

2012-12-13 Thread Jim Ursetto
On Dec 13, 2012, at 11:12 AM, Jim Ursetto wrote: On Dec 13, 2012, at 1:47 AM, John Magolske wrote: - Some intra-wiki links are absolute, for example under /wiki/menu there's [[http://wiki.call-cc.org/eggs|Eggs]] which I changed to [[eggs|Eggs]] so as to be able to navigate to it offline

Re: [Chicken-users] JQuery in Chickadee

2012-12-10 Thread Jim Ursetto
I'll look at it, it probably makes sense to use a local copy for the default config. What it should really do is fall back to the local copy if the internet copy is inaccessible. This is not difficult but there is an internal issue currently preventing it. Jim On Dec 9, 2012, at 12:24 PM,

Re: [Chicken-users] JQuery in Chickadee

2012-12-10 Thread Jim Ursetto
Okay, chickadee 0.10.2 uses local jquery for the default config. Jim On Dec 10, 2012, at 9:14 PM, Jim Ursetto wrote: I'll look at it, it probably makes sense to use a local copy for the default config. What it should really do is fall back to the local copy if the internet copy

Re: [Chicken-users] Browsing the Chicken wiki offline

2012-11-27 Thread Jim Ursetto
On Nov 20, 2012, at 11:24 AM, John Magolske wrote: Hi, I installed the chickadee, chicken-doc chicken-doc-admin eggs on my laptop and am now enjoying being able to browse the documentation while not connected to the internet. The svn repository downloaded in the process: % cd

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

2012-11-27 Thread Jim Ursetto
On Nov 23, 2012, at 3:59 PM, Peter Bex wrote: On Fri, Nov 23, 2012 at 12:27:29PM -0800, Miguel Fernandez wrote: I get the following error: main.o: In function `C_toplevel': main.c:(.text+0x1c2): undefined reference to `C_numbers_toplevel' collect2: ld returned 1 exit status

Re: [Chicken-users] BUG: posix#string-time

2012-11-03 Thread Jim Ursetto
It uses strptime internally which seems pretty inconsistent across platforms. %z is technically not a valid format specifier, but glibc and some other libs support it. E.g. your examples actually all work on OS X 10.7. But they fail completely on NetBSD 5.1. You didn't mention your platform

  1   2   3   4   >