[Chicken-users] [ANN] BerkeleyDB binding

2011-10-14 Thread Thomas Chust
Hello, during the past days I've written a small binding for the BerkelyDB library. You can find the code here: http://www.chust.org/fossils/berkeley-db You get a persistent key value store backed by files with an interface loosely resembling that of a SRFI-69 hash table. There is transaction

Re: [Chicken-users] severe bug in file-exists?

2011-09-28 Thread Thomas Chust
2011/9/28 Christian Kellermann ck...@pestilenz.org: [...] As I see it, this procedure needs an overhaul anyway. If fstat fails it returns #f regardless the reason. [...] Hello, while it is true that only an ENOENT errno indicates a missing path component in any file system operation, I also

[Chicken-users] [ANN] Web and GUI related libraries

2011-09-23 Thread Thomas Chust
Hello, I've been playing around with two small library projects related to web and GUI development: * http://www.chust.org/fossils/webkit A CHICKEN binding to WebKitGTK+ and JavaScriptCore. Runs a GTK+ event loop in a CHICKEN thread, allows you to display HTML as a GUI and to

Re: [Chicken-users] [ANN] SRFI-99 record types for CHICKEN

2011-09-16 Thread Thomas Chust
Hello, one more improvement to the SRFI-99 implementation: I've added a srfi-99-variants module with syntactic sugar for the definition and destructuring of variant types where the base type is an empty record and the variants are sealed subtypes. Ciao, Thomas -- When C++ is your hammer,

Re: [Chicken-users] [ANN] SRFI-99 record types for CHICKEN

2011-09-15 Thread Thomas Chust
Hello, my implementation of SRFI-99 is now available as an egg. I have fixed some problems concerning unchecked block access and have added support for arbitrary record type properties, similar to the structure properties of Racket, as another extension. The implemented extensions to the SRFI-99

Re: [Chicken-users] [ANN] SRFI-99 record types for CHICKEN

2011-09-15 Thread Thomas Chust
2011/9/15 Peter Bex peter@xs4all.nl: On Thu, Sep 15, 2011 at 10:46:30AM +0200, Thomas Chust wrote: [...] The egg is served directly from its Fossil repository (check the release information file [...]. In contrast to what the CHICKEN wiki claims, it is possible to serve raw files

Re: [Chicken-users] [ANN] SRFI-99 record types for CHICKEN

2011-09-15 Thread Thomas Chust
2011/9/15 Felix fe...@call-with-current-continuation.org: [...] One question: would it be possible to optionally support SRFI-17 setters for record slots? [...] Hello Felix, for SRFI-99 compliance, separate setter procedures must be generated. But the getter procedures generated by my

Re: [Chicken-users] [ANN] SRFI-99 record types for CHICKEN

2011-09-08 Thread Thomas Chust
thumb! 08.09.2011 07:47 schrieb am John Cowan co...@mercury.ccil.org: Thomas Chust scripsit: that's strange, I can't reproduce the problem here, everything looks fine in this respect (note... Ah. I forgot to say I was talking about the syntactic module. Try (make-record-type foo (make-foo a b

Re: [Chicken-users] [ANN] SRFI-99 record types for CHICKEN

2011-09-08 Thread Thomas Chust
-continuation.org: From: Thomas Chust ch...@web.de Subject: [Chicken-users] [ANN] SRFI-99 record types for CHICKEN Date: Thu, 8 Sep 2011 01:01:04 +0200 Hello, I've implemented SRFI-99 record types for CHICKEN: http://www.chust.org/fossil... Whoa! Thanks, Thomas! Is this available as an egg

[Chicken-users] [ANN] SRFI-99 record types for CHICKEN

2011-09-07 Thread Thomas Chust
Hello, I've implemented SRFI-99 record types for CHICKEN: http://www.chust.org/fossils/srfi-99 The SRFI's syntax for record definitions is compatible with SRFI-9, but several extensions including convenient default names of procedures, single inheritance of record types and introspection

Re: [Chicken-users] [ANN] SRFI-99 record types for CHICKEN

2011-09-07 Thread Thomas Chust
2011/9/8 John Cowan co...@mercury.ccil.org: [...] Bug report:  A constructor defined to take explicit arguments does not work: instead of returning the instance, it returns a procedure that takes N arguments and ignores them, [...] Hello John, that's strange, I can't reproduce the problem

Re: [Chicken-users] type extension (inheritance) and define-record

2011-07-17 Thread Thomas Chust
Pedro Henrique Antunes de Oliveira wrote: [...] The fine thing about it is that I only need to use set-replacers! on the interface generated by define-record. All the procedures that were made to work on the base type will work on the derived type too, because the bindings were set!. [...]

Re: [Chicken-users] type extension (inheritance) and define-record

2011-07-17 Thread Thomas Chust
Pedro Henrique Antunes de Oliveira wrote: Any reason why that happens? [...] On Sun, Jul 17, 2011 at 1:49 PM, Thomas Chust ch...@web.de wrote: if the original record was defined in a different module than the derived one, setting those binding from the original module to other values may

Re: [Chicken-users] Problems with csc 4.7.0 on x86_64

2011-06-13 Thread Thomas Chust
2011/6/13 Jim Pryor lists+chic...@jimpryor.net: Thanks Thomas and Jim, that looks right. But puzzling enough, I'm still having troubles. [...] == Starting package()... [...] make[1]: *** [install-libs] Error 1 make[1]: *** Waiting for unfinished jobs [...] Hello Jim, this looks as if

Re: [Chicken-users] Problems with csc 4.7.0 on x86_64

2011-06-12 Thread Thomas Chust
2011/6/12 Jim Pryor lists+chic...@jimpryor.net: [...] This is the build/packaging script that has worked for me with previous builds: [...]  # should be a symbolic link not a copy otherwise ldconfig will cry  rm -f ${pkgdir}/usr/lib/libchicken.so  ln -s /usr/lib/libchicken.so.5

Re: [Chicken-users] IUP Web

2011-05-21 Thread Thomas Chust
2011/5/20 Stephen Eilert spedr...@gmail.com: [...] The following link seems to indicate that there should be an IUP-WEB egg. Henrietta doesn't know about it though. [...] Hello Stephen, the iup-web library is part of the iup egg distribution. It is compiled and installed automatically

Re: [Chicken-users] (use iup)(exit) in csi in windows causes termination error.

2011-04-14 Thread Thomas Chust
2011/4/14 Matt Welland estifo...@gmail.com: Note, this is using the chicken-iup install from www.kiatoa.com/cgi-bin/chicken-iup, chicken 4.6.5, iup 3.4. Is there a special shutdown procedure to follow? #;1 (use iup) [...] #;2 (exit) This application has requested the Runtime to terminate

Re: [Chicken-users] Generic RDBMS Interface [Was: Re: Creating Windows GUI App]

2011-04-03 Thread Thomas Chust
2011/4/2 Thomas Chust ch...@web.de: [...] I'll stay in touch and I'll put any prototype code I produce into a publicly accessible version control repository :-) [...] Hello, my first prototype code is available at http://www.chust.org/fossils/dbi This has undergone only minimal testing

Re: [Chicken-users] Generic RDBMS Interface [Was: Re: Creating Windows GUI App]

2011-04-02 Thread Thomas Chust
2011/4/2 Matt Welland estifo...@gmail.com: - Original message - 2011/4/1 Jim Ursetto zbignie...@gmail.com: [...] Just use an alist. [...] Maybe less practical to enter on command lines, but probably more schemish, yes :-) How about a convinence function to convert the URI to an

Re: [Chicken-users] Generic RDBMS Interface [Was: Re: Creating Windows GUI App]

2011-04-01 Thread Thomas Chust
2011/4/1 Matt Welland estifo...@gmail.com: That is ironic. One of the things I was going to try to make available via the new egg system was my dbi egg (http://www.kiatoa.com/cgi-bin/fossils/opensrc/dir?ci=c7f1edfb8c6e036bname=dbi). However anything Thomas puts together will be much, uh,

Re: [Chicken-users] Generic RDBMS Interface [Was: Re: Creating Windows GUI App]

2011-04-01 Thread Thomas Chust
2011/4/1 YC yinso.c...@gmail.com: [...] would you be interested in considering to look at my racket bzlib/dbi package on racket planet as a potential idea for interface?  I was looking to port it over to chicken but never got around to it due to other things.  it would be good to have

Re: [Chicken-users] Generic RDBMS Interface [Was: Re: Creating Windows GUI App]

2011-04-01 Thread Thomas Chust
2011/4/1 Jim Ursetto zbignie...@gmail.com: On Apr 1, 2011, at 7:47 AM, Thomas Chust wrote: There is at least one small point that I would want to do differently, though: In my opinion it has some value if the procedure establishing the database connection has a fixed signature and driver

Re: [Chicken-users] Generic RDBMS Interface [Was: Re: Creating Windows GUI App]

2011-04-01 Thread Thomas Chust
2011/4/1 YC yinso.c...@gmail.com: [...] The reason I did not use keyword arguments for query is that in racket keyword arguments needs to be quoted to pass through to the underlying driver, but chicken might not have that issue. Hello YC, this is not really true: While Racket doesn't pass

Re: [Chicken-users] weird FFI callbacks

2011-03-31 Thread Thomas Chust
2011/3/31 Tomtom tom...@herbesfolles.org: [...] quick summary: a jack client have to set a callback so the jack server can call it when the client is supposed to do something. Here, the callback call is supposed to trigger some scheme code execution. [...] Hello, the problem is that

Re: [Chicken-users] weird FFI callbacks

2011-03-31 Thread Thomas Chust
2011/3/31 Moritz Heidkamp mor...@twoticketsplease.de: Hi, Thomas Chust ch...@web.de writes: Your only option in the out of luck situation is not to use regular callbacks at all but to implement a sort of in-process remote procedure call system where a C stub registered as a callback

Re: [Chicken-users] Creating Windows GUI App

2011-03-31 Thread Thomas Chust
2011/3/31 Steve Graham jsgraha...@yahoo.com Can someone point me to some info on this? Hello Steve, there is compiler support for executables marked as GUI applications through the -gui command line option. But to actually create a GUI, you will have to use one of the eggs providing bindings

[Chicken-users] Generic RDBMS Interface [Was: Re: Creating Windows GUI App]

2011-03-31 Thread Thomas Chust
2011/3/31 Stephen Eilert spedr...@gmail.com: On Thu, Mar 31, 2011 at 1:46 PM, Thomas Chust ch...@web.de wrote: [...] However, there is currently no database-independent layer like Perl's DBI module that provides a uniform API for all other relational database drivers. Oh, that's been one

Re: [Chicken-users] amb-extras: distinct? expects srfi-1 member

2011-03-28 Thread Thomas Chust
2011/3/28 Markus Klotzbuecher m...@marumbi.de: [...] distinct? from amb-extras fails with an bad argument count error when srfi-1 is not loaded. In that case the member procedure from 'scheme' and not srfi-1 is used, which doesn't take a additional equality procedure as used by distinct?.

Re: [Chicken-users] Environments as Modules

2011-03-24 Thread Thomas Chust
2011/3/24 George Rogers georgeroger...@aol.com: What do you think about using evaluation environments as a basis for a module system. [...] Hello, this may look like a good idea but I suspect it isn't very suitable for CHICKEN, because CHICKEN's evaluation environments contain no syntax

Re: [Chicken-users] Help with writing a macro

2011-03-20 Thread Thomas Chust
2011/3/21 Patrick Li patrickli.2...@gmail.com: [...] I'm trying to write a macro that will tranform: (temp (a b c) do-this do-that do-other) into this: (do (do-this a b c)     (do-that a b c)     (do-other a b c)) [...] Try this: (define-syntax temp (syntax-rules () [(temp args

Re: [Chicken-users] Help with writing a macro

2011-03-20 Thread Thomas Chust
2011/3/21 Patrick Li patrickli.2...@gmail.com: [...] transform: (temp (a b c) do-this do-that do-other) to: (do (do-this a b c some-more-args)     (do-that a b c some-more-args)     (do-other a b c some-more-args)) The dot trick doesn't work in this circumstance. [...] Hello Patrick, in

Re: [Chicken-users] No... but it is... interesting...

2011-03-11 Thread Thomas Chust
2011/3/11 Felix fe...@call-with-current-continuation.org: [...] I haven't used these, but if QML is ECMA-Script-compliant, I see no reason why it shouldn't work. [...] Hello, as far as I know, the scripting engine behind Qt Quick is JavaScriptCore, which comes with WebKit. Ciao, Thomas --

Re: [Chicken-users] foreign-lambda* question

2011-03-10 Thread Thomas Chust
2011/3/10 John J Foerch jjfoe...@earthlink.net: [...] I have a procedure that takes a window and a list of numbers and sets a property on the window which is an array of those numbers.  The array must be an array of unsigned long, and foreign-lambda* seems to be the tool for the job to make

Re: [Chicken-users] Equivalent for Python's __name__?

2011-03-03 Thread Thomas Chust
2011/3/3 Andrew Pennebaker andrew.penneba...@gmail.com: I'd like to find out my Chicken script name programmatically. [...] Hello Andrew, program-name [1] is a built in parameter exported from the chicken library unit that returns the name of the currently executing program or script. Ciao,

[Chicken-users] Re: openssl egg frage

2011-03-01 Thread Thomas Chust
Am 1. März 2011 11:43 schrieb Matthias Bauer bau...@pestilenz.org: [...] Gibts eine Moglichkeit aus einem ssl-port Objekt die Attribute des X509 Zertificates des Clients rauszulesen? [...] Hello Matthias, the reply is in English because I CC'ed the CHICKEN mailing list. What you ask for has

Re: [Chicken-users] Anyone successfully installed iup on Windows?

2011-01-25 Thread Thomas Chust
2011/1/25 Matt Welland estifo...@gmail.com: [...] Your success is good to hear. Can you share some details of how you did this? [...] Hello Matt, well, I did the canonical thing: * Install a fresh Windows XP and all available system updates in a virtual machine * Add

Re: [Chicken-users] Anyone successfully installed iup on Windows?

2011-01-24 Thread Thomas Chust
2011/1/24 Thomas Chust ch...@web.de: 2011/1/24 Matt Welland estifo...@gmail.com: [...] iup-base.c: In function 'stub1198': iup-base.c:583:1: error: too few arguments to function 'IupReparent' C:\\mylibs\\iup\\include/iup.h:76:11: note: declared here [...] Hmm, that's bad, looks

Re: [Chicken-users] Anyone successfully installed iup on Windows?

2011-01-23 Thread Thomas Chust
2011/1/23 Matt Welland estifo...@gmail.com: If so do you have a recipe as so far I haven't been able to figure it out. The last email related to this (Nov 10) did not look encouraging. [...] Hello Matt, in principle, the IUP egg should work on Windows, but you will need IUP and its

Re: [Chicken-users] coops

2011-01-19 Thread Thomas Chust
2011/1/19 sch...@uni-potsdam.de: [...] Jeha, i know. A list is a pair, but a pair is not a list. Therefore a list should be a subclass of pair. (Ok, for '() we have null). [...] Hello, that is wrong, and you even give the reason why it's wrong yourself: A list is either a pair or the empty

Re: [Chicken-users] coops

2011-01-19 Thread Thomas Chust
2011/1/19 sch...@uni-potsdam.de: [...] Then all pairs are lists? What about (cons 1 2)? I thought a list is a pair which cdr is a list (or the empty list -- exclude that case for a moment). [...] Hello Sandro, you're right, I neglected the case of pairs whose cdr is not a list. So to be

[Chicken-users] Re: sqlite3 egg still failing in experimental branch

2011-01-16 Thread Thomas Chust
2011/1/16 Alan Post alanp...@sunflowerriver.org: [...] I notice that you removed code adding |current-milliseconds| (presumably now |current-seconds|) to the timeout.  This was intentional? [...] Hello Alan, yes, this was intentional: The way I understand it, thread-sleep! can either be

[Chicken-users] Re: sqlite3 egg still failing in experimental branch

2011-01-15 Thread Thomas Chust
2011/1/15 Alan Post alanp...@sunflowerriver.org: 2011/1/14 .alyn.post. alyn.p...@lodockikumazvati.org: [...] The sqlite3 is still failing to compile in the experimental branch: [...] [...] I believe the attached patch should do it.  I withdraw the original miliseconds deprecation patch (but

[Chicken-users] Re: sqlite3 egg still failing in experimental branch

2011-01-14 Thread Thomas Chust
2011/1/14 .alyn.post. alyn.p...@lodockikumazvati.org: [...] The sqlite3 is still failing to compile in the experimental branch: [...] Will you apply the patches I sent you to the sqlite3 egg? [...] Hello, yes, I know. I will apply the patch eventually but I have to / want to disable the

[Chicken-users] Re: sqlite3 egg patches for chicken experimental branch

2011-01-05 Thread Thomas Chust
2011/1/5 Alan Post alanp...@sunflowerriver.org: noop and milliseconds-time are removed (after being deprecated) in the experimental branch of chicken.  The following patches allow the sqlite3 egg to compile against the chicken experimental branch. I'm least certain about the

Re: [Chicken-users] llvm-gcc / clang

2010-12-02 Thread Thomas Chust
2010/12/1 Felix fe...@call-with-current-continuation.org: [...] Oh, and clang gave me stupid warnings that where actually wrong (an x == x comparison of floats to detect NaN, which is IMHO totally correct, triggers a warning - but I'm sure John can give us the correct interpretation of the

Re: [Chicken-users] c++ example

2010-12-01 Thread Thomas Chust
2010/12/1 Alan Post alanp...@sunflowerriver.org: On Tue, Nov 30, 2010 at 11:18:49AM -0500, David Dreisigmeyer wrote: [...] When I try this: *pun_cpp.cpp: #include iostream using namespace std; void pun_cpp (void) {   printf(Hello World!);   return; } *pun_module.scm: (module

Re: [Chicken-users] c++ example

2010-12-01 Thread Thomas Chust
2010/12/1 David Dreisigmeyer dwdreisigme...@gmail.com: This may be getting closer.  Here's my code again (the names are slightly different from above): Hello David, some more remarks about the example: [...] #include iostream #include punCpp.h [...] None of the iostream functionality is

Re: [Chicken-users] swig

2010-12-01 Thread Thomas Chust
2010/12/1 Peter Bex peter@xs4all.nl: [...] I never really got the point of Swig; what does it do that you can't use the FFI or the bind egg for? [...] Hello, I can think of two advantages SWIG has: It is relatively easy to create bindings for several different scripting languages from

Re: [Chicken-users] llvm-gcc / clang

2010-12-01 Thread Thomas Chust
2010/12/1 David Dreisigmeyer dwdreisigme...@gmail.com: Would there be any major differences when it came to Objective-C? [...] Hello, there are some differences as to the language supported by GCC and clang. For example clang supports so called blocks in C and Objective-C (a feature very

Re: [Chicken-users] sequences egg

2010-11-19 Thread Thomas Chust
2010/11/19 Felix fe...@call-with-current-continuation.org: From: Thomas Chust ch...@web.de [...] in my opinion this library is a good idea. A feature I would like to see in this kind of library would be some comprehension mechanism (similar to SRFI-42 or Racket's for comprehensions). I

Re: [Chicken-users] sequences egg

2010-11-18 Thread Thomas Chust
2010/11/18 Felix fe...@call-with-current-continuation.org: [...] I've put together a little library of generic sequence operations, and would like to get some feedback, since I'm not sure about the nomenclature and API. [...] Hello, in my opinion this library is a good idea. A feature I

Re: [Chicken-users] Compiling the IUP egg - IUP not found

2010-11-10 Thread Thomas Chust
2010/11/10 Joe Python jopyt...@gmail.com: Its funny. I tried adding every IUP library out there in CSC_OPTIONS and the chicken-install still complains. Is there any other libraries which i left out. see below for the current ones.

Re: [Chicken-users] Compiling the IUP egg - IUP not found

2010-11-09 Thread Thomas Chust
2010/11/9 Joe Python jopyt...@gmail.com: [...] In my C:\mingw32\include directory I have added the following files from ffcall: [...] However I still get the same  'IUP not found' error message when i do the chicken-install. [...] Hello Joe, hmm, judging by the example command line for

Re: [Chicken-users] Compiling the IUP egg - IUP not found

2010-11-08 Thread Thomas Chust
2010/11/8 Joe Python jopyt...@gmail.com: [...] However when I try to chicken-install a IUP egg, I get the following error message: Warning: IUP not found, bindings will not be compiled. Is there anything out there I have to  add before compiling the IUP egg? As far as I know all the IUP

Re: [Chicken-users] date, string formatting and locale

2010-11-04 Thread Thomas Chust
2010/11/4 Hugo Arregui hugo.arre...@gmail.com: On Wed, Nov 3, 2010 at 1:20 PM, Thomas Chust ch...@web.de wrote: [...] the POSIX functions use the C standard library's locale which is entirely independent from that of the locale egg. [...] I'm not quite sure understand the idea. You mean

Re: [Chicken-users] IUP egg fails to build

2010-10-12 Thread Thomas Chust
2010/10/12 Matt Gushee m...@gushee.net: [...] However, there is a new problem: iup-base.c:15:17: fatal error: iup.h: No such file or directory compilation terminated. That's odd. The IUP headers, including iup.h, are all in /usr/include/iup on my system. [...] Hello Matt, hmm, strange,

Re: [Chicken-users] IUP egg fails to build

2010-10-11 Thread Thomas Chust
2010/10/10 Matt Gushee m...@gushee.net: [...] When I try to install the iup egg, I get an error message stating that IUP was not found. But I definitely have it [...] csi (find-library callback alloc_trampoline_r) #f csi (find-library iup IupOpen) #t csi (find-library iupim IupLoadImage)

Re: [Chicken-users] [ANN] IUP Bindings

2010-09-30 Thread Thomas Chust
2010/9/30 Felix fe...@call-with-current-continuation.org: From: Peter Bex peter@xs4all.nl [...] How are we going to keep this synched? Is someone going to watch the Fossil repo for bugfixes and integrate them by hand back into the egg repo and update the wiki page, manually integrating

Re: [Chicken-users] [ANN] IUP Bindings

2010-09-30 Thread Thomas Chust
2010/9/30 Thomas Chust ch...@web.de: 2010/9/30 Felix fe...@call-with-current-continuation.org: From: Peter Bex peter@xs4all.nl [...] How are we going to keep this synched? Is someone going to watch the Fossil repo for bugfixes and integrate them by hand back into the egg repo and update

Re: [Chicken-users] [ANN] IUP Bindings

2010-09-30 Thread Thomas Chust
2010/9/30 Martin DeMello martindeme...@gmail.com: On Thu, Sep 30, 2010 at 3:02 AM, Thomas Chust ch...@web.de wrote: in case anybody else finds this useful: I have created fairly full-featured bindings for the IUP graphical user interface library [1] that work identically (to the maximum

[Chicken-users] [ANN] IUP Bindings

2010-09-29 Thread Thomas Chust
Hello, in case anybody else finds this useful: I have created fairly full-featured bindings for the IUP graphical user interface library [1] that work identically (to the maximum possible extent) under the Racket [2] and CHICKEN [3] Scheme systems. You can find the documentation and the version

Re: [Chicken-users] Building C Libraries with chicken

2010-09-01 Thread Thomas Chust
2010/9/1 Christian Kellermann ck...@pestilenz.org: [...] I see! Is there anything I need to call to cleanup the runtime system again?  I am asking all this because I want to hide even that from the user of this library. So I would wrap the CHICKEN_run(!) into an init() function of some sort

Re: [Chicken-users] Using the amb egg

2010-08-10 Thread Thomas Chust
2010/8/10 Jeronimo Pellegrini j...@aleph0.info: [...] So, out of the scope of the first LET I use amb and require again, and it returned values that would work for the first time (but not the second). [...] Hello Jeronimo, using amb at the top level without an enclosing context providing

Re: [Chicken-users] Using the amb egg

2010-08-10 Thread Thomas Chust
2010/8/10 Jeronimo Pellegrini j...@aleph0.info: On Tue, Aug 10, 2010 at 02:40:15PM +0200, Thomas Chust wrote: [...] Unless you know exactly what you are doing, I would recommend to enclose all applications of amb in amb-find or amb-collect forms. Your example could be modified like this: Ah

Re: [Chicken-users] minor build warning (twice) : runtime.c

2010-08-01 Thread Thomas Chust
2010/8/1 John Gabriele jmg3...@gmail.com: [...] Just built chicken on Ubuntu 10.04 (on x86_64) and saw this warning come up twice: [...] runtime.c: In function ‘C_number_to_string’: runtime.c:7328: warning: ignoring return value of ‘gcvt’, declared with attribute warn_unused_result [...]

Re: [Chicken-users] Subprocess blocking all threads under certain circumstances

2010-07-14 Thread Thomas Chust
2010/7/14 Moritz Heidkamp mor...@twoticketsplease.de: [...] | Blocking reads and writes to or from the ports returned by process | only block the current thread, not other threads executing | concurrently. And it works as advertised. However, if I close both the input and the output ports

Re: [Chicken-users] clueless about memory consumtion

2010-07-05 Thread Thomas Chust
2010/7/5 Jörg F. Wittenberger joerg.wittenber...@softeyes.net: [...] I'm surprised about the memory consumption pattern my chicken program exhibits after some hours running. [...] whereby the difference has a change to be attributed to some string-symbol usage.) [...] Hello, this may be

Re: [Chicken-users] Compiling files that 'import' eggs that aren't installed?

2010-07-03 Thread Thomas Chust
2010/7/3 Alejandro Forero Cuervo a...@freaks-unidos.net: How does one compile a file that requires an extension which is not currently installed?  I couldn't find the answer looking at The Chicken Manual.  Obviously, the file being compiled does not depend on macros from the module, it just

Re: [Chicken-users] Compiling files that 'import' eggs that aren't installed?

2010-07-03 Thread Thomas Chust
2010/7/4 Thomas Chust ch...@web.de: [...] and can be loaded at runtime using the procedure (require ...) from the library unit, [...] Sorry, it's in the eval unit, not the library unit. Ciao, Thomas -- When C++ is your hammer, every problem looks like your thumb

Re: [Chicken-users] How do I name these procedures?

2010-04-15 Thread Thomas Chust
2010/4/15 Jeronimo Pellegrini j...@aleph0.info: [...] Most mpfi functions receive pointer to structures that represent intervals, and the return value is the first argument: mpfi_add (a, b, c);  /* This is a - b + c */ When translating this into Scheme, I thought I'd offer three versions

Re: [Chicken-users] How do I name these procedures?

2010-04-15 Thread Thomas Chust
2010/4/15 Jeronimo Pellegrini j...@aleph0.info: [...] I wonder if the optional argument would make the function call too much slower? [...] Hello Jeronimo, the optional argument processing will take a little time, but whether that is relevant should be determined by a benchmark. [...] But

Re: [Chicken-users] static linking - how to?

2010-03-25 Thread Thomas Chust
2010/3/25 Jörg F. Wittenberger joerg.wittenber...@softeyes.net: [...] I failed miserably when trying to link a chicken program statically. [...] using -static instead I end up with an executable of roughly 4MB.. which then complains: Error: (import) during expansion of (import ...) - canot

Re: [Chicken-users] Getting C file handle from port?

2010-03-20 Thread Thomas Chust
2010/3/20 Jeronimo Pellegrini j...@aleph0.info: [...] Suppose I have an open port: (let ((in (open-input-file whatever)))  ...  (let ((x (read in)))    ...)) I'd like to switch from using Chicken's read implementation to something I'd write in C (using the FFI). But I didn't find in the

Re: [Chicken-users] Modules and environments

2009-08-30 Thread Thomas Chust
2009/8/30 Peter Bex peter@xs4all.nl: [...] (import test) (use environments) (print (environment-has-binding? (interaction-environment) 'hello)) This prints #f, whereas I would have expected it to print #t, since defining a module and importing should be identical to putting the

Re: [Chicken-users] Modules and environments

2009-08-30 Thread Thomas Chust
2009/8/30 Peter Bex peter@xs4all.nl: [...] If (print (environment-has-binding? (interaction-environment) 'hello)) shows #f, then I would expect (eval '(hello) (interaction-environment)) to fail, but it simply prints hello. [...] Hello, following your logic, the code (use

Re: [Chicken-users] Modules and environments

2009-08-30 Thread Thomas Chust
2009/8/30 Peter Bex peter@xs4all.nl: [...] I disagree. If this should print #t you should also be able to obtain a reference to the macro using (eval 'hello (interaction-environment)), but that's not possible since macros are not first-class. [...] Hello, that's beside the point: Macros

Re: [Chicken-users] Modules and environments

2009-08-30 Thread Thomas Chust
2009/8/30 Peter Bex peter@xs4all.nl: On Sun, Aug 30, 2009 at 08:53:25PM +0200, Thomas Chust wrote: [...] But from a semantic point of view it doesn't make a lot of sense that a binding introduced by importing a module behaves differently from a binding introduced by SET! or DEFINE

[Chicken-users] CHICKEN on sparc64-linux

2009-08-29 Thread Thomas Chust
Hello, I just installed the CHICKEN 4.1.5 snapshot on a sparc64-linux machine and thought I would share my experiences: The Debian GNU / Linux I use to run the box has a mixed 32 bit and 64 bit userland on this architecture, so I tried a 64 bit build of CHICKEN first, which is apparently the

[Chicken-users] Re: CHICKEN on sparc64-linux

2009-08-29 Thread Thomas Chust
2009/8/29 Thomas Chust ch...@web.de: [...] The Debian GNU / Linux I use to run the box has a mixed 32 bit and 64 bit userland on this architecture, so I tried a 64 bit build of CHICKEN first, which is apparently the only foreseen alternative: The build not only took ages but also produced

[Chicken-users] Re: [ANN] New egg: Object-relation mapper Pandora

2009-08-20 Thread Thomas Chust
2009/8/16 Thomas Chust ch...@web.de: [...] I have hacked together a small object-relation mapper representing SQL datasets using the Prometheus object system, which is called Pandora to stay with the Greek mythology theme. [...] Hello, some visible improvements have been committed

Re: [Chicken-users] Re: [ANN] New egg: Object-relation mapper Pandora

2009-08-20 Thread Thomas Chust
2009/8/20 Peter Bex peter@xs4all.nl: [...] Why not make the parameters argument to the 'execute message optional? It can default to the empty list.  This would make for less typing. Hello, this is a good idea. I changed the signatures for the 'execute and 'fold methods accordingly.

[Chicken-users] [ANN] New egg: Object-relation mapper Pandora

2009-08-15 Thread Thomas Chust
Hello, I have hacked together a small object-relation mapper representing SQL datasets using the Prometheus object system, which is called Pandora to stay with the Greek mythology theme. You can find the documentation and a download link for the first release candidate at

Re: [Chicken-users] SQLite3 bindings for CHICKEN 4

2009-08-12 Thread Thomas Chust
2009/8/12 Jim Ursetto zbignie...@gmail.com: On Wed, Aug 5, 2009 at 9:02 AM, Thomas Chustch...@web.de wrote: If, for example, you prepare a statement and forget to ever execute and finalize it, my sqlite3 egg will at least tell you that you have an unused statement lying around when you try to

Re: [Chicken-users] chicken-install with bad infolist

2009-08-11 Thread Thomas Chust
2009/8/11 Sam Varner snick-a-...@comcast.net: [...] documentation is not one of the properties listed in the docs.  It appears that its presence prevents srfi-42.setup-info from being generated. [...] Hello, even if it's not documented, the documentation property for an install-extension

Re: [Chicken-users] define-record with default values?

2009-08-10 Thread Thomas Chust
2009/8/10 Christian Kellermann ck...@pestilenz.org: [...] I'd like to define a record (srfi-9) style or similar but I'd also like to be able to pass a slot a default value.  Bigloo scheme for example has had define-structures for that. Can this be done in chicken as well with existing tools?

Re: [Chicken-users] SQLite3 bindings for CHICKEN 4

2009-08-05 Thread Thomas Chust
2009/8/5 John Cowan co...@ccil.org: [...] How do I persuade chicken-install to accept this egg?  Even with -t local, it insists on looking up the egg with henrietta on kitten (or your server, if I specify -l), gets a 301, and dies. [...] Hello, indeed that doesn't work :-( What usually does

Re: [Chicken-users] SQLite3 bindings for CHICKEN 4

2009-08-05 Thread Thomas Chust
2009/8/5 Peter Bex peter@xs4all.nl: [...] You haven't seen zbigniew's sql-de-lite egg yet?  It's another sqlite egg with (IMHO) a more Schemely API. [...] Hello, of course I have seen it, but several people requested my SQLite3 binding to be ported to CHICKEN 4 anyway. The APIs of the

Re: [Chicken-users] SQLite3 bindings for CHICKEN 4

2009-08-05 Thread Thomas Chust
2009/8/5 Peter Bex peter@xs4all.nl: [...] Could you elaborate which parts of the sql-de-lite API seem more schemely to you? sqlite3 is more OO-like and has many operations which are purely invoked for their side-effects (returning #void), whereas sql-de-lite seems more FP-like and

[Chicken-users] SQLite3 bindings for CHICKEN 4

2009-08-04 Thread Thomas Chust
Hello, I finally got around to touch the code of the SQLite3 egg again: To make it compatible with CHICKEN 4 I created a version without a dependency on TinyCLOS, replacing classes with record types and multimethods with regular procedures. I also wrapped the code in a module and removed the

Re: [Chicken-users] New to Scheme Macros

2009-04-22 Thread Thomas Chust
2009-04-22 Jordan Cooper nefi...@gmail.com: [...] 1) I've used macros before in CL, but only getting into them for the first time here in Chicken. Is define-syntax the proper thing to use to do this? Hello, depending on your definition of proper, the answer is probably yes ;-) At least using

Re: [Chicken-users] calling CHICKEN_eval from different threads

2009-02-26 Thread Thomas Chust
Hello, even if the calls don't occur in parallel, invoking the CHICKEN interpreter from different threads is problematic, since distinct threads usually have distinct stacks which will get CHICKEN's allocator confused. If you manage to update the stack base pointer for the allocator before

Re: [Chicken-users] I'm confused (again)

2009-02-26 Thread Thomas Chust
2009-02-26 William Ramsay ramsa...@comcast.net: [...] But it appears that set! itself declares the variable and the let is not needed. [...] And if set! does declare a variable what is it's scope? [...] Hello, if I'm not mistaken, using set! on a variable that hasn't been declared is

Re: [Chicken-users] Optimal C

2009-02-23 Thread Thomas Chust
Hello, if I recall correctly, there is a Scheme interpreter for the GNUstep project. But I forgot what it was called :-( cu, Thomas On Feb 23, 2009 4:38 PM, Tobia Conforto tobia.confo...@gmail.com wrote: Rick R wrote: Code must compile in XCode and be either C/C++/Obj-C. Garbage collection

Re: [Chicken-users] Optimal C

2009-02-22 Thread Thomas Chust
2009-02-22 Rick R rick.richard...@gmail.com: I have been looking for a functional language that compiles to efficient C/C++ to fufill two rather odd criteria. [...] Hello Rick, you may want to have a look at crunch (http://chicken.wiki.br/crunch), which is a restricted dialect of Scheme that

Re: [Chicken-users] Evaluating lists with scoped let's and applying scoped macros to lists

2009-02-13 Thread Thomas Chust
Hello Christoph, the problem is that eval never sees local bindings introduced with let or through function arguments, it always resolves symbols relative to a top level environment. You should look into the environments egg (http://chicken.wiki.br/environments) to achieve what you want. cu,

Re: [Chicken-users] windows shell problem

2009-01-05 Thread Thomas Chust
felix winkelmann wrote: [...] If I pass this string (verbatim, just like it is printed here) to system(3): c:\home\chicken-trunk\bin\csi -bnq -e (require-library setup-api) -e (import setup-api) c:\...some...path...\defstruct.setup I get an error message that tells me that the program

Re: [Chicken-users] windows shell problem

2009-01-04 Thread Thomas Chust
Ivan Raikov wrote: [...] I think the problem is that \ in strings needs to be escaped, [...] Hello, I don't think so, unless the escaping problem occurs on the Scheme or C side of things. As far as I know, the Windows shell only understands two escape characters: The double quote (), to

Re: [Chicken-users] Another easyffi problem

2008-12-12 Thread Thomas Chust
Am 12.12.2008 17:17 Uhr, schrieb William Ramsay: [...] The old version (and the examples still on the web) used: /* the ___callback marker is needed, because gtk_main() may (*and* will) call Scheme callbacks. */ ___callback void gtk_main()/; / But this now fails in compile because ___callback

Re: [Chicken-users] tinyclos and the repl

2008-07-24 Thread Thomas Chust
Rene Sansman wrote: [...] Chicken has worked wonderfully for me so far, but now I have run into a problem I don't know how to solve. I want to use tinyclos from the repl, but it does not work. I can use it from compiled code or from the interpreter, but not from a repl that I start from a

Re: [Chicken-users] easyffi usage

2008-07-08 Thread Thomas Chust
William Xu wrote: [...] (foreign-declare double my_pi; ) (foreign-parse double my_pi = 3.14; ) (print (sin my_pi)) [...] Hello, if I'm not mistaken, easyffi generates parameter style procedures to acces global C variables, probably because it is

<    1   2   3   4   >