Re: [Chicken-users] PS-tk documentation missing?
I am the maintainer of PS/Tk. The official version is on SourceForge, and includes the code necessary to run in Chicken; in fact, Chicken was the first Scheme implementation for which PS/Tk was originally developed. I believe Chicken provides a customized version, but am not familiar with the details of how it is loaded or what changes it makes from the official version. On Fri, Mar 6, 2009 at 12:37 AM, Matthew Welland m...@kiatoa.com wrote: I noticed the tk egg minutes after sending my previous email. The tk egg seems to have nice documentation and it works on my Nokia n800. However the PS-tk egg does not: snip Nokia-N800-50-2:~# csi CHICKEN (c)2008 The Chicken Team (c)2000-2007 Felix L. Winkelmann Version 3.3.1 - linux-unix-gnu-arm [ dload ptables applyhook ] SVN rev. 11106 compiled 2008-07-13 on debian (Linux) #;1 (use PS-tk) ; loading /var/lib/chicken/3/PS-tk.so ... Error: (apply) parameter limit exceeded Call history: syntax(use PS-tk) syntax(##core#require-extension (quote PS-tk)) syntax(begin (begin (##sys#require (quote PS-tk))) (##core#undefined)) syntax(begin (##sys#require (quote PS-tk))) syntax(##sys#require (quote PS-tk)) syntax(quote PS-tk) syntax(##core#undefined) eval (##sys#require (quote PS-tk)) -- =end=== What differentiates the two projects? It would be nice to know which one is most likely to be supported in the future or to converge on just one tk interface for Chicken. Thanks, Matt -=- On Thursday 05 March 2009 10:30:13 pm Matthew Welland wrote: FYI: The link on the PS-tk egg wiki page seems dead. I did see some docs for PS-tk on sourceforge: http://sourceforge.net/projects/pstk If desired I can cut 'n paste the sourceforge doc into the wiki but no promises on keeping all the formatting (although I'll try) ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Build Failure (maybe infinite recursion) on x86_64 Linux
On Fri, Mar 06, 2009 at 01:45:10PM +0100, felix winkelmann wrote: On Wed, Mar 4, 2009 at 4:32 PM, Taylor Venable tay...@metasyntax.net wrote: Hi all, When building Chicken 3.4.7 and higher (up to 3.5.2) on Ubuntu 8.10 x86_64 the chicken compiler goes into an infinite recursion. ?CPU usage spikes, memory usage increases boundlessly, and no output is ever produced. ?In Chicken 3.4.7 the file that when compiled triggers this behaviour is utils.scm and for a build process I am using: ? ?make PLATFORM=linux bootstrap ? ?make PLATFORM=linux CHICKEN=./chicken-boot The command that causes the infinite recursion is: ? ?./chicken-boot utils.scm -quiet -no-trace -optimize-level 2 -include-path . -include-path ./ -explicit-use -output-file utils.c If any other information would be helpful to diagnose this, let me know and I can provide it. ?Thanks for any help. Thanks for reporting this. If you say infinite recursion, is there anything that indicates an actual recursion? Or does it just hang? Can you invoke the command above with an additional -debug p and show me the output? I have no direct evidence that it was an infinite recursion. It was just a guess by the symptoms, but admittedly I have little knowledge of Chicken's internals. Sorry for the noise on that. The symptoms are that CPU usage increases to max, memory usage increases steadily, and the process appears to hang. Adding -debug p produces no output, even when removing -quiet. When I remove -no-trace and add -debug p it also fails in the same way. But when I remove both -no-trace and -debug p it works. So it fails when -no-trace and/or -debug p is specified, but works OK when neither is specified. Thanks, -- Taylor Christopher Venable http://real.metasyntax.net:2357/ ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] PS-tk documentation missing?
On Fri, Mar 6, 2009 at 6:30 AM, Matthew Welland m...@kiatoa.com wrote: FYI: The link on the PS-tk egg wiki page seems dead. I did see some docs for PS-tk on sourceforge: http://sourceforge.net/projects/pstk If desired I can cut 'n paste the sourceforge doc into the wiki but no promises on keeping all the formatting (although I'll try) That would be nice, but I don't think it is really necessary as (as you already noticed) there is a tk egg, which is a chicken-optimized older version of the tk library that was also the basis for ps/tk. IIRC, ps/tk has a few extensions. cheers, felix ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] PS-tk documentation missing?
On Fri, Mar 6, 2009 at 7:37 AM, Matthew Welland m...@kiatoa.com wrote: I noticed the tk egg minutes after sending my previous email. The tk egg seems to have nice documentation and it works on my Nokia n800. However the PS-tk egg does not: snip Nokia-N800-50-2:~# csi CHICKEN (c)2008 The Chicken Team (c)2000-2007 Felix L. Winkelmann Version 3.3.1 - linux-unix-gnu-arm [ dload ptables applyhook ] SVN rev. 11106 compiled 2008-07-13 on debian (Linux) #;1 (use PS-tk) ; loading /var/lib/chicken/3/PS-tk.so ... Error: (apply) parameter limit exceeded Call history: syntax (use PS-tk) syntax (##core#require-extension (quote PS-tk)) syntax (begin (begin (##sys#require (quote PS-tk))) (##core#undefined)) syntax (begin (##sys#require (quote PS-tk))) syntax (##sys#require (quote PS-tk)) syntax (quote PS-tk) syntax (##core#undefined) eval (##sys#require (quote PS-tk)) -- =end=== What differentiates the two projects? It would be nice to know which one is most likely to be supported in the future or to converge on just one tk interface for Chicken. You don't have the manyargs feature (arm system?), so a generic use of apply with large argument lists may exceed the argument limit. PS/tk is built on the original code developed by Wolf-Dieter Busch (which in turn is based on code by Sven Hartrumpf). PS/tk is newer, but tk is better adapted for chicken. cheers, felix ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] utf8-srfi-13 and string-join
Hi, I just found out today that the utf8 version of srfi-13 doesn't have or export string-join. (though the non-utf8 version does) I'll probably roll my own version for my own use until it is added, but I don't know how to write one that is properly utf8-aware, so I don't think it would be worth submitting. I actually can't remember if it was included in chicken before, or maybe in my recent programs that used I was simply using the non utf8 version by coincidence.. Maybe there is a technical performance reason why it isn't included in the utf8 version, or perhaps I'm missing something? Regards, Tim ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] utf8-srfi-13 and string-join
Timothy Beyer bey...@cs.ucr.edu writes: I just found out today that the utf8 version of srfi-13 doesn't have or export string-join. (though the non-utf8 version does) I'll probably roll my own version for my own use until it is added, but I don't know how to write one that is properly utf8-aware, so I don't think it would be worth submitting. (define utf8-string-join string-join) If the procedure does no indexing on characters then the utf8 version is the same as the normal version. -- Alex ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Re: [Chicken-hackers] locale and chicken = 3.4.7
On Mar 6, 2009, at 2:54 PM, Timothy Beyer wrote: Hi, (My first post was rejected by the list, so I sent it again; I hope it doesn't send two copies) I know that I'm not supposed to depending on the development versions of chicken, but I really wanted irregex -- I have lots and lots of scsh code that I wanted to port, and I can't stand heavy use of perl or emacs regular expressions, so irregex was a no- brainer. :) (thanks for making the switch, by the way) snip My apologies if this is the wrong list or if this should be a bug report instead... Strictly speaking, yes. But this e-mail is just fine. Regards, Tim Thank you for the bug info. I will look into it. The 'locale' egg is being updated so this is timely. ___ Chicken-hackers mailing list chicken-hack...@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-hackers Best Wishes, Kon ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] setting a callback in xlib
Hello, Xlib has a function 'XSetErrorHandler'. You pass a callback to it to specify the new error handler. Here's the relevant code from 'Xlib.h': -- typedef int (*XErrorHandler) ( Display*/* display */, XErrorEvent*/* error_event */ ); extern XErrorHandler XSetErrorHandler ( XErrorHandler /* handler */ ); -- Here's how I'm defining 'XSetErrorHandler' on the Chicken side: (define XSetErrorHandler (foreign-safe-lambda c-pointer XSetErrorHandler (function int (c-pointer c-pointer And finally, a test error handler: (define-external (xerrorhandler (c-pointer dpy) (c-pointer ev)) int (display Error handler called\n)) If I trigger an X error, I get a pretty wacky error: Error: bad argument count - received 134902918 but expected 2: #() Anywho, do the definitions above look OK? Just wanted to make sure before I debug further... Thanks! Ed ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] ANN: Chicken 4 box, mailbox, stack, synch, setup-helper
Hi Folks, Some new eggs for Chicken 4. box:2.0.0, mailbox:2.0.0, stack:2.0.0, synch:2.0.0 are updated from the Chicken 3 originals. All are modules. mailbox synch have unchanged APIs. box stack have some changes to the API. synch is still missing a test-suite :-( setup-helper:1.0.0 is kinda like my Chicken 3 setup-header.scm but installed as an include extension; which means while it has setup-info the usage is '(include setup-helper)'. Only for use in Chicken 4 .setup files. The setup-helper test is a successful install of the above ;-) All of these are dependent on the latest chicken/trunk. Best Wishes, Kon ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users