[Chicken-users] Re: Easyffi
bill RamsayW1 at comcast.net writes: 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. Hi, Bill! Are you using #? in your code? Are you using the module system? And if yes, are you doing the #? inside a module declaration that imports easyffi? Can you try to replace the #? ... # with (foreign-parse #EOF ... EOF ) cheers, felix ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Re: Scope problem?
Peter Bex Peter.Bex at xs4all.nl writes: ... Thanks, Peter, for giving this explanation. It describes the situation very nicely. Just a few notes: I agree that it is confusing; especially the distinction between units that you have to load and units that you only have to import. This line is drawn fairly arbitrarily; what ends up in libchicken is what you only have to import, what ends up in separate libraries is what you also need to load. Here too, I think it's a good habit to always load any unit that's not scheme or chicken. That's what we call core librares, which still need to be loaded, but they are loaded directly from the libchicken shared library, not from a separate shared library file (a .so - a dynamically loadable file). The distinction is in require-library (or require-extension, which uses it), which knows about the core libraries and does the right thing for the identifier given as argument. The interpreter (csi) just has one small additional library loaded, but otherwise is empty. Now, the thing that might be confusing is that the compiler has already loaded quite a number of libraries and thus macros can access core-library definitions that might need to be loaded first when executed under csi. Perhaps we should introduce the term opening for the process of making the toplevel bindings of a library available (independent on whether it is a core lib or a dynamically loaded one). IIRC all of this is documented, but not in an easy to comprehend manner and all over the place in the manual. We will have to improve this. Moreover chicken is very flexible with regards to how code is linked or loaded, and it's hard to make this fully transparent. cheers, felix ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Re: Scope problem?
On Tue, Jun 02, 2009 at 08:38:18AM +, felix wrote: IIRC all of this is documented, but not in an easy to comprehend manner and all over the place in the manual. We will have to improve this. I have a question about that; I noticed there's a 'manual' directory in the Chicken tree also. I am a bit worried that pages that are changed through the wiki might get clobbered when there's a new version released and the manual is merged. Have you spent some time thinking about how to solve this? Manually merging through svn is doable but could get annoying if there are many large changes on either side. Cheers, Peter -- http://sjamaan.ath.cx -- The process of preparing programs for a digital computer is especially attractive, not only because it can be economically and scientifically rewarding, but also because it can be an aesthetic experience much like composing poetry or music. -- Donald Knuth pgpmfOTD5yFK3.pgp Description: PGP signature ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] How to deal with bit sets in chicken?
Thanks for the advice Kon. For now, I've backed off and I'm trying to use foreign-declares for my bit twiddling. This doesn't yield a generic module, but it seems like the quickest and safest way for me to get started with epoll. Also, thanks for the pointer to err5rs-arithmetic-bitwise, that looks promising. -- Anthony Carrico signature.asc Description: OpenPGP digital signature ___ 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