[Chicken-users] CRC Calculator
Hi all, Does anyone know of ready-made code for a CRC calculator in Scheme? Bill ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Egg example
Hi all, I've decided to try my hand a writing an egg. I'm one of those people who learn best by example. But when I try to download the mpeg3 example fromk SVN I'm told the URL does not exist. Am I doing something wrong or is the tutorial wrong?I have not yet started writing an egg - I just want to see an example of how it's done. Bill ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Egg example
Christian, I tried release 4 and it did not work. I then tried 3 and it did. I'm fine now, but there may be a problem with release 4. Thanks for the help. Bill Christian Kellermann wrote: * bill ramsa...@comcast.net [090721 13:43]: Hi all, I've decided to try my hand a writing an egg. I'm one of those people who learn best by example. But when I try to download the mpeg3 example fromk SVN I'm told the URL does not exist. Am I doing something wrong or is the tutorial wrong?I have not yet started writing an egg - I just want to see an example of how it's done. Maybe you are using an URL from outdated documentation? The url that works for me is: https://galinha.ucpel.tche.br/svn/chicken-eggs/release/3/mpeg3 Replace 3 by 4 if you want the eggs for chicken4. The username is anonymous, the password is empty. Cheers, Christian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Clojure
Hi all, I'm curious. Has anyone in the Chicken community looked at Clojure - the new Lisp-like language that ties in to the JVM?I spent some time with it last week and found it not quite ready for prime time. (I think it's more Java than Lisp) It got me thinking, however.Java is a complex abomination, but it does have one thing in it's favor - the JVM and the endless libraries you'll find there.Whenever I tell people how great Chicken Scheme is they always come back to me with the same agrument they use against Lisp - it just doesn't have the breadth of libraries needed in the real world.There are a lot of eggs, but not some key ones (PNG and GTK for instance) How do we change this and compete with the ideas behind Clojure and Scala?Scheme is a much better language. Bill ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Imlib2 Egg Question
Hi, Quick question - is there any plan to add the imlib-context-set calls to the imlib2 egg? Or in other words, how do you connect the image to a X-window? Bill ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Re: Trouble with easyffi
Hi, I think we're talking at cross purposes here.I thought you meant when I compiled (installed) easyffi. I have two old programs that worked fine on Gentoo (with I believe chicken 3.4). Both link into Gtk. I have recently tried running a little app to test Cairo. All of these give me no errors with I compile them. The only error comes when I try to run them - the 'foreign parse' error. On the Gtk programs most of the code is just calling scheme described call to Gtk.For instance: #? GtkWidget *gtk_hpaned_new(void); void gtk_widget_set_size_request(GtkWidget *widget, int width, int height); # which are used thus in chicken: (define hpane (gtk_hpaned_new)) (gtk_widget_set_size_request hpane 1200 650)) Some of the code is actual C code snippets that are defined as this: #! char *get_text(GtkTextBuffer *tbuffer) { GtkTextIter s_iter; GtkTextIter e_iter; gtk_text_buffer_get_start_iter(tbuffer, s_iter); gtk_text_buffer_get_end_iter(tbuffer, e_iter); return gtk_text_buffer_get_text(tbuffer, s_iter, e_iter, FALSE); } # If this does not help, I can put together a small app that I can send you.One of the failing programs is my own editor and a bit too big to send - although I have no qualms in doing so. Again, all of this worked before moving to Xubunto and Chicken 4.0. Could some library be missing? Bill ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Re: Trouble with easyffi
Hi again, I removed easyffi and started over. These are the warning I get when I compile: Warning: redefinition of imported value binding: lexer-init-buffer-len Warning: redefinition of imported value binding: lexer-integer-newline Warning: redefinition of imported value binding: lexer-raw-IS-maker Warning: redefinition of imported value binding: lexer-make-IS Warning: redefinition of imported value binding: lexer-get-func-getc Warning: redefinition of imported value binding: lexer-get-func-ungetc Warning: redefinition of imported value binding: lexer-get-func-line Warning: redefinition of imported value binding: lexer-get-func-column Warning: redefinition of imported value binding: lexer-get-func-offset Warning: redefinition of imported value binding: lexer-make-tree-lexer Warning: redefinition of imported value binding: lexer-make-char-lexer Warning: redefinition of imported value binding: lexer-make-code-lexer Warning: redefinition of imported value binding: lexer-make-lexer Warning: redefinition of imported value binding: lexer Warning: local assignment to unused variable `easyffi-base#lexer-getc' may be unintended Warning: global variable `easyffi-base#lexer-getc' is never used Warning: local assignment to unused variable `easyffi-base#lexer-ungetc' may be unintended Warning: global variable `easyffi-base#lexer-ungetc' is never used /usr/bin/csc -feature compiling-extension -host -s -O2 -d0 easyffi-base.import.scm /usr/bin/csc -feature compiling-extension -host -s -O2 -d0 easyffi.scm -j easyffi Warning: redefinition of imported syntax binding: foreign-declare /usr/bin/csc -feature compiling-extension -host -s -O2 -d0 easyffi.import.scm /usr/bin/csc -feature compiling-extension -host -O2 -d0 chicken-wrap.scm Warning: extension `easyffi-base' is currently not installed Warning: local assignment to unused variable `##compiler#debugging-chicken' may be unintended The compile does run to the end without errors. And when I run chicken-status I get: chicken-wrap . version: 1.95 easyffi .. version: 1.95 easyffi-base . version: 1.95 matchable ... version: 2.4.2 silex . version: 1.2 xlib .. version: 1.2 I really need this back - so any ideas you can give me will be greatly appreciated. Bill ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] RE: Easyffi
Hi again, I don't believe the problem has anythning to do with Easyffi. I think the GTK+ development libraies are messed up somehow in Xubuntu.I can't get GTK to work in C either - I get a seg fault trying to open a simple top level window! I'm using the gtk+-2.0 package for the lib reference, but it doesn't work. Seaching the web seems to indicate that others are having a similar problem, but I haven't found a good account of how you set up GTK development in Xumbuntu.This is rediuculous since the whole system is based on Gnome/Gtk! Ah, the pleasures of programming. Bill ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Chicken-setup
Thanks, that's what I needed. (It might be a good idea to put this in the README file for chicken :-) ) Bill Peter Bex wrote: On Sat, May 30, 2009 at 06:36:51PM -0400, bill wrote: Hi all, I've just moved my system to Xubuntu. The Ubuntu repository is running 3.2.7!!! I downloaded chicken-4.0.0, which I've been running for some time, but it does not seem to build chicken-setup. How do I get a new clean copy of chicken-setup? There is no chicken-setup for Chicken 4! It comes with a new set of egg repository maintenance scripts to replace it. Try chicken-install, chicken-status and chicken-uninstall instead :) Cheers, Peter ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Easyffi
Hi again, I'm still trying to get back into run m ode with Xubuntu and now I'm finding a problem with easyffi. I use gtk+ in my user interface and access it through easyffi.This is an old program that's worked for a long time - including in Chicken-4.0.0 on Gentoo. It compiles fine, but now I get the following runtime error: Error: unbound variable: foreign-parse Call history: foreign-parse-- The offending lines are only in the c code - I don't use 'foreign-parse' anywhere in the scheme code. Any ideas on what could be wrong? I rather like the Xubuntu distribution and would hate to go back to Gentoo. Bill ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Re: CMake problem on Linux
At 03:48 PM 9/6/2006, Brandon J. Van Every wrote: felix winkelmann wrote: Excellent, Bill! Thanks for the quick and helpful solution. On 9/6/06, Bill Hoffman [EMAIL PROTECTED] wrote: The reason it is only broken on linux is this: IF(MINGW) You need the same fix on all os's. Further good news is these problems are going away in Chicken 2.4.4. I did not think of this bug because I thought it was just a Windows bug, not all OSs. Did you mean CMake 2.4.4? If so, what is the fix, because CVS CMake still has the issue. Is there something you need to change in the CMakeLists.txt for chicken? -Bill ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Re: CMake problem on Linux
At 03:59 PM 9/6/2006, Brandon J. Van Every wrote: Um, yeah, that. :-) If so, what is the fix, because CVS CMake still has the issue. It does? Well, bother. I thought Brad told me it was patched already. I haven't verified it, been too busy. I think you have to set CLEAN_DIRECT_OUTPUT to 1 as a target property for his change to work. Is there something you need to change in the CMakeLists.txt for chicken? The workarounds for CMake 2.4.3 are fine on both MinGW and Cygwin. It is straightforward to extend them to all OSs. Might be best for now. Cheers, Brandon Van Every ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users