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

2009-08-20 Thread Thomas Chust
2009/8/16 Thomas Chust : > [...] > 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 co

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

2009-08-20 Thread Thomas Chust
2009/8/20 Peter Bex : > [...] > 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. > [...] > The *.import

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

2009-08-20 Thread Thomas Chust
2009/8/20 Peter Bex : > On Thu, Aug 20, 2009 at 06:24:27PM +0200, Thomas Chust wrote: >> * A complete usage example has been added to the documentation. > > In the example, the 'name' column in the 'Tags' table should be TEXT, > shouldn't it? > [...

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

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

2009-08-29 Thread Thomas Chust
2009/8/29 Thomas Chust : > [...] > 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 pro

Re: [Chicken-users] Modules and environments

2009-08-30 Thread Thomas Chust
2009/8/30 Peter Bex : > [...] > (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 > module's body in

Re: [Chicken-users] Modules and environments

2009-08-30 Thread Thomas Chust
2009/8/30 Peter Bex : > [...] > 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 environments) (eval

Re: [Chicken-users] Modules and environments

2009-08-30 Thread Thomas Chust
2009/8/30 Peter Bex : > [...] > 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 just like modu

Re: [Chicken-users] Modules and environments

2009-08-30 Thread Thomas Chust
2009/8/30 Peter Bex : > 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.

Re: [Chicken-users] Chicken pre-release 4.2.0

2009-09-18 Thread Thomas Chust
2009/9/17 Ivan Raikov : > [...] >      I have merged Chicken trunk with the prerelease branch in the SVN > repository, and I plan on making release 4.2.0 of Chicken within a week > from today. [...] Please try it out and let me know if there are any > problems. > [...] Hello, apparently all CHICK

Re: [Chicken-users] Controlling output of processes

2010-03-12 Thread Thomas Chust
2010/3/12 Lasse Kliemann : > How can I start a process and control where it sends its stdout > or stderr? I know that I can do: > > (receive >   (p-stdout p-stdin p-pid p-stderr) >   (process* command args) >   (...)) > > This gives input and output ports connected to the process. But > how can I e

Re: [Chicken-users] Cygwin installation report

2010-03-12 Thread Thomas Chust
2010/3/13 Mark Carter : > [...] > It seems  there's two approaches: embedding the manifest inside the > executable, or adding a file alongside the executable. > [...] Hello, based on the existing documentation of the issue and the manifest in the previous message I have created a patch against th

Re: [Chicken-users] Cygwin installation report

2010-03-13 Thread Thomas Chust
2010/3/13 felix winkelmann : > [...] > Wonderful. Is windres always available on a windows system? If yes, > we use this solution. Many thanks for the patch. > [...] Hello Felix, windres is part of the GNU compiler toolchain for windows. It should be part of Mingw32 and Cygwin environments. As f

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

2010-03-20 Thread Thomas Chust
2010/3/20 Jeronimo Pellegrini : > [...] > 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 doc

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

2010-03-25 Thread Thomas Chust
2010/3/25 Jörg F. Wittenberger : > [...] > 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 import from > undefined mod

Re: [Chicken-users] Explicit renaming macros behavior during interpretation and compilation

2010-04-15 Thread Thomas Chust
2010/4/15 Jeronimo Pellegrini : > [...] > This program seems to work fine when loaded from csi, but csc > complains that a procedure used inside the renaming procedure > is unbound (even though it was defined shortly before the > macro definition): > [...] Hello Jeronimo, the environment in which

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

2010-04-15 Thread Thomas Chust
2010/4/15 Jeronimo Pellegrini : > [...] > 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 of each f

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

2010-04-15 Thread Thomas Chust
2010/4/15 Jeronimo Pellegrini : > [...] > 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 there's a

Re: [Chicken-users] define-macro in chicken 4?

2010-05-23 Thread Thomas Chust
2010/5/23 Alejandro Forero Cuervo : > [...] > It makes it very difficult for me to continue to trust Chicken as a > development platform when certain APIs get removed like that, with > little to no consideration to how much effort it'll take for its users > to keep their software working. > [...]

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

2010-07-03 Thread Thomas Chust
2010/7/3 Alejandro Forero Cuervo : > 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 depends on it at runt

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

2010-07-03 Thread Thomas Chust
2010/7/4 Thomas Chust : > [...] 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

Re: [Chicken-users] clueless about memory consumtion

2010-07-05 Thread Thomas Chust
2010/7/5 Jörg F. Wittenberger : > [...] > 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 completely irrelevant, bu

Re: [Chicken-users] Creating new types and their representation in the REPL

2010-07-07 Thread Thomas Chust
2010/7/7 Jack Trades : > I'm sure this is a simple question but I can't quite figure it out.  Is > there a way to get (define-record ...) to print out something other than the > tag of the record? > [...] Hello Jack, I think you are looking for define-record-printer from CHICKEN's standard librar

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

2010-07-14 Thread Thomas Chust
2010/7/14 Moritz Heidkamp : > [...] > | 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 of the process, all o

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

2010-08-01 Thread Thomas Chust
2010/8/1 John Gabriele : > [...] > 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 > [...] Hello, th

Re: [Chicken-users] Using the amb egg

2010-08-10 Thread Thomas Chust
2010/8/10 Jeronimo Pellegrini : > [...] > 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 form is possib

Re: [Chicken-users] Using the amb egg

2010-08-10 Thread Thomas Chust
2010/8/10 Jeronimo Pellegrini : > 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

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

2010-09-01 Thread Thomas Chust
2010/9/1 Christian Kellermann : > [...] > 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 and have the use

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

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

2010-09-30 Thread Thomas Chust
2010/9/30 Felix : > From: Peter Bex >> [...] >> 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 all >> possible user-contributed changes? > [...] > W

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

2010-09-30 Thread Thomas Chust
2010/9/30 Thomas Chust : > 2010/9/30 Felix : >> From: Peter Bex >>> [...] >>> 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 wik

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

2010-09-30 Thread Thomas Chust
2010/9/30 Martin DeMello : > On Thu, Sep 30, 2010 at 3:02 AM, Thomas Chust 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

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

2010-10-11 Thread Thomas Chust
2010/10/10 Matt Gushee : > [...] > 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" "Iu

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

2010-10-12 Thread Thomas Chust
2010/10/12 Matt Gushee : > [...] > 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, in my

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

2010-11-03 Thread Thomas Chust
2010/11/3 Hugo Arregui : > [...] > 1) Using posix: > > (use posix) > (time->string (string->time "2" "%d")) > "Tue Jan  2 00:00:00 1900" > > but, my current locale es: > > (use locale) > (current-locale) > "es_AR.utf8" > [...] Hello, the POSIX functions use the C standard library's locale which i

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

2010-11-04 Thread Thomas Chust
2010/11/4 Hugo Arregui : > On Wed, Nov 3, 2010 at 1:20 PM, Thomas Chust 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

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

2010-11-08 Thread Thomas Chust
2010/11/8 Joe Python : > [...] > 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 libraries/inc

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

2010-11-09 Thread Thomas Chust
2010/11/9 Joe Python : > [...] > 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 GCC that you g

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

2010-11-10 Thread Thomas Chust
2010/11/10 Joe Python : > 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] sequences egg

2010-11-18 Thread Thomas Chust
2010/11/18 Felix : > [...] > 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 would like to see in this kind of lib

Re: [Chicken-users] sequences egg

2010-11-19 Thread Thomas Chust
2010/11/19 Felix : > From: Thomas Chust >> [...] >> 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). > >

Re: [Chicken-users] c++ example

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

Re: [Chicken-users] c++ example

2010-12-01 Thread Thomas Chust
2010/12/1 David Dreisigmeyer : > 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 > #include "punCpp.h" > [...] None of the iostream functionality is ever used in the example

Re: [Chicken-users] swig

2010-12-01 Thread Thomas Chust
2010/12/1 Peter Bex : > [...] > 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 the same interface

Re: [Chicken-users] c++ example

2010-12-01 Thread Thomas Chust
2010/12/1 David Dreisigmeyer : > [...] > ** punCpp.h: > [...] > void punCpp (void); > [...] > ** pun_module.scm: > [...] >        (foreign-declare "extern void punCpp (void);\n") > [...] Hello David, in this case I suggest that you change the foreign-declare statement to (foreign-declare "#inc

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

2010-12-01 Thread Thomas Chust
2010/12/1 David Dreisigmeyer : > 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 similar to closures in Schem

Re: [Chicken-users] Re: seg fault

2010-12-01 Thread Thomas Chust
2010/12/2 Jim Ursetto : > No, this is not a kernel issue but a gcc output issue. > > On Dec 1, 2010, at 7:48, David Dreisigmeyer wrote: > >> Would this help(?): >> >> ioreg -l -p IODeviceTree | grep firmware-abi >> > [...] Hmm, shouldn't `gcc -dumpmachine` be useful in that case? Ciao, Thomas

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

2010-12-02 Thread Thomas Chust
2010/12/1 Felix : > [...] > 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 standard C semantics). > [...] Hell

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

2011-01-05 Thread Thomas Chust
2011/1/5 Alan Post : > 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 milliseconds-deprecate patch, as the >

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

2011-01-14 Thread Thomas Chust
2011/1/14 .alyn.post. : > [...] > 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 fixnum arithmetic declaration

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

2011-01-15 Thread Thomas Chust
2011/1/15 Alan Post : > 2011/1/14 .alyn.post. : >> [...] >> 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 retain the noop/void patch) and > replace it wi

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

2011-01-16 Thread Thomas Chust
2011/1/16 Alan Post : > [...] > 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 passed a number, which is

Re: [Chicken-users] coops

2011-01-19 Thread Thomas Chust
2011/1/19 : > [...] > 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 ). > [...] Hello, that is wrong, and you even give the reason why it's wrong yourself: A list is either a pair or the empty list. Hence the single

Re: [Chicken-users] coops

2011-01-19 Thread Thomas Chust
2011/1/19 : > [...] > 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 precise, the type hie

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

2011-01-23 Thread Thomas Chust
2011/1/23 Matt Welland : > 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 prerequisites installe

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

2011-01-24 Thread Thomas Chust
2011/1/24 Thomas Chust : > 2011/1/24 Matt Welland : >> [...] >> 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 >> [...] &

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

2011-01-25 Thread Thomas Chust
2011/1/25 Matt Welland : > [...] > 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 C:/Programme/MinGW/bin, C:/Program

[Chicken-users] Re: openssl egg frage

2011-03-01 Thread Thomas Chust
Am 1. März 2011 11:43 schrieb Matthias Bauer : > [...] > Gibts eine M"oglichkeit 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 not been possibl

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

2011-03-03 Thread Thomas Chust
2011/3/3 Andrew Pennebaker : > 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, Thomas [1] http://wiki.ca

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

2011-03-10 Thread Thomas Chust
2011/3/10 John J Foerch : > [...] > 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 this > object.  In

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

2011-03-11 Thread Thomas Chust
2011/3/11 Felix : > [...] > 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 -- When C++ is your hammer, every prob

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

2011-03-20 Thread Thomas Chust
2011/3/21 Patrick Li : > [...] > 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 command ...) (d

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

2011-03-20 Thread Thomas Chust
2011/3/21 Patrick Li : > [...] > 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 that case I'm a

Re: [Chicken-users] Environments as Modules

2011-03-24 Thread Thomas Chust
2011/3/24 George Rogers : > 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 information but only runt

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

2011-03-28 Thread Thomas Chust
2011/3/28 Markus Klotzbuecher : > [...] > 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?. > [...] Hel

Re: [Chicken-users] weird FFI callbacks

2011-03-31 Thread Thomas Chust
2011/3/31 Tomtom : > [...] > 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 callbacks only work if t

Re: [Chicken-users] weird FFI callbacks

2011-03-31 Thread Thomas Chust
2011/3/31 Moritz Heidkamp : > Hi, > > Thomas Chust 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 > 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 for user interface too

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

2011-03-31 Thread Thomas Chust
2011/3/31 Stephen Eilert : > On Thu, Mar 31, 2011 at 1:46 PM, Thomas Chust 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

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

2011-04-01 Thread Thomas Chust
2011/4/1 Matt Welland : > 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=c7f1edfb8c6e036b&name=dbi). > However anything Thomas puts together will be much, uh, fresher and > faster

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

2011-04-01 Thread Thomas Chust
2011/4/1 YC : > [...] > 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 schemers interested in

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

2011-04-01 Thread Thomas Chust
2011/4/1 Jim Ursetto : > 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 signa

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

2011-04-01 Thread Thomas Chust
2011/4/1 YC : > [...] > 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 keyword arguments t

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

2011-04-02 Thread Thomas Chust
2011/4/2 Matt Welland : > - Original message - >> 2011/4/1 Jim Ursetto : >>> [...] >>> 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 alist for those who >

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

2011-04-03 Thread Thomas Chust
2011/4/2 Thomas Chust : > [...] > 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 onl

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

2011-04-14 Thread Thomas Chust
2011/4/14 Matt Welland : > 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 it in a

Re: [Chicken-users] IUP Web

2011-05-21 Thread Thomas Chust
2011/5/20 Stephen Eilert : > [...] > 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 together with the res

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

2011-06-12 Thread Thomas Chust
2011/6/12 Jim Pryor : > [...] > 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 ${pkgdir}/usr/lib/libchicken.so

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

2011-06-13 Thread Thomas Chust
2011/6/13 Jim Pryor : > 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 make install was

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 wrote: >> if the original record was defined in a different module than the >> derived one, setting those binding from the original module to

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

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

2011-09-07 Thread Thomas Chust
2011/9/8 John Cowan : > [...] > 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 here, everything lo

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

2011-09-07 Thread Thomas Chust
thumb! 08.09.2011 07:47 schrieb am "John Cowan" : 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-

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

2011-09-08 Thread Thomas Chust
t; fe...@call-with-current-continuation.org>: From: Thomas Chust 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! Th

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 s

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

2011-09-15 Thread Thomas Chust
2011/9/15 Peter Bex : > 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 s

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

2011-09-15 Thread Thomas Chust
2011/9/15 Felix : > [...] > 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 implementation for mutable fields already h

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, every

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

2011-09-16 Thread Thomas Chust
Am Freitag, 16. September 2011 schrieb Felix : > [...] > BTW, would it be possible that you document the extensions in the > srfi-99 wiki page? Hello, I added a brief description of everything in the egg to the corresponding wiki page. Links to the official SRFI-99 document and the documentatio

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

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

2011-09-28 Thread Thomas Chust
2011/9/28 Christian Kellermann : > [...] > 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 wonder why on ea

[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] [ANN] BerkeleyDB binding

2011-10-17 Thread Thomas Chust
2011/10/17 Andy Bennett : >> [...] >> during the past days I've written a small binding for the BerkelyDB >> library. > [...] > How does licensing of this work? > I understand that BDB is available under the GPL for certain uses. Does > your work get infected with that or is it entirely stand-alone

Re: [Chicken-users] foreign: Why is passing structs as arguments and return-types not supported?

2012-02-29 Thread Thomas Chust
On Wed, 2012-02-29 at 14:07 +0100, Kristian Lein-Mathisen wrote: > [...] > Reading the chicken docs on foreign, you'll find: > > > Structs cannot be directly passed as arguments to foreign > functions, nor can they be result values. > (http://api.call-cc.org/doc/foreign/ty

Re: [Chicken-users] Can't import iup-web

2012-03-13 Thread Thomas Chust
On Mon, 2012-03-12 at 14:05 -0600, Matt Gushee wrote: > [...] > > $ csi > > [...] > > csi> (use iup) > > [...] > > csi> (use iup-web) > > ; loading /usr/lib/chicken/6/iup-web.import.scm ... > > [...] Hello, you are using the egg incorrectly. The iup library contains all the iup-related modules in

Re: [Chicken-users] amb egg bug/confusion

2012-03-14 Thread Thomas Chust
On Wed, 2012-03-14 at 18:23 -0600, Alan Post wrote: > [...] > (pretty-print (let ((s (amb 0 1 2))) (amb-collect s))) > [...] > produces: > [...] > (0) > [...] Hello, to me this behaviour looks correct. amb-collect is supposed to collect all the different values its argument can take on, but i

Re: [Chicken-users] chicken-install doesn't install compiled submodules

2012-03-25 Thread Thomas Chust
On Sat, 2012-03-24 at 20:20 +0100, Christian Kellermann wrote: > * Juergen Lorenz [120324 11:42]: > > Hello all, > > > > when installing (via chicken-install) a module with a number of > > submodules (for example iup) I noticed, that the submodules are only > > installed as *.import.scm, albeit t

Re: [Chicken-users] chicken-install doesn't install compiled submodules

2012-03-25 Thread Thomas Chust
On Sun, 2012-03-25 at 15:46 +0200, Christian Kellermann wrote: > [...] > (define import-libraries > `("iup.import.so" > "iup-base.import.scm" "iup-controls.import.scm" > "iup-dialogs.import.scm" > ,@(cond-expand > > > So you are explicitly giving it .scm fil

Re: [Chicken-users] Problems with rationals

2012-04-09 Thread Thomas Chust
On Mon, 2012-04-09 at 21:00 +0100, Mark Carter wrote: > Is this a bug in chicken? > (rational? 6/10) => #f > > Also > (* 1.0 5/2) > produces > Error: (*) bad argument type: 5/2 > [...] Hello, this looks strange. While CHICKEN does not support exact fractions out of the box, reading a

<    1   2   3   4   >