Re: [Chicken-users] Bundling chicken.

2007-07-16 Thread felix winkelmann

On 7/15/07, Robin Lee Powell [EMAIL PROTECTED] wrote:


I've got an app that is almost 1.0 ready.  I've seen the page on
what C files you have to bundle to allow things to be compiled by
people that don't have Chicken, but what I'm unclear on is what you
have to do to allow people to run an app that includes eggs.  Can
anyone give me pointers?


What eggs are you using for the app? It is generally no problem to
create a set of .c files for distribution, but (as you can probably guess)
the process of compiling the right files with the right options isn't always
very consistent.

Also, what platforms do you want the code to build/run on?


cheers,
felix


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] libffi and cmake on gnu/linux again

2007-07-16 Thread Sunnan

felix winkelmann wrote:

BTW, in ccmake you can simply press e and continue. It should still
be able to generate a makefile.


OK. I was concerned that that would build a version of chicken without 
libffi support.


Sunnan



___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] libffi and cmake on gnu/linux again

2007-07-16 Thread Sunnan

felix winkelmann wrote:


It should be possible to modify the compiler- and linker flags in ccmake
to use libffi.

Thanks.


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] operations

2007-07-16 Thread felix winkelmann

A quick and dirty implementation of T's (http://mumble.net/~jar/tproject/)
object system is now available at:

http://chicken.wiki.br/operations


cheers,
felix


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] parameterize-from-alist

2007-07-16 Thread Alaric Snell-Pym


On 16 Jul 2007, at 3:37 am, Ivan Shmakov wrote:

   It's up to the caller to supply a correct alist to the
function.
   E. g.:


Ah, but the original problem was that the alist was read from a file,
at run time!

ABS

--
Alaric Snell-Pym
Work: http://www.snell-systems.co.uk/
Play: http://www.snell-pym.org.uk/alaric/
Blog: http://www.snell-pym.org.uk/?author=4




___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] operations

2007-07-16 Thread Robin Lee Powell
On Mon, Jul 16, 2007 at 12:12:27PM +0200, felix winkelmann wrote:
 A quick and dirty implementation of T's
 (http://mumble.net/~jar/tproject/) object system

Wow.  What an amazing mess, including that the T Revival page
linked to near the top has been taken down.

Before I kill myself trying to figure out WTH that page is about
just because Felix thinks it's cool (which is sufficient reason, for
the most part, but still) can anyone give me a precis of why this is
interesting?

-Robin

-- 
http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/
Reason #237 To Learn Lojban: Homonyms: Their Grate!
Proud Supporter of the Singularity Institute - http://singinst.org/


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] parameterize-from-alist

2007-07-16 Thread Ivan Shmakov

Alaric Snell-Pym [EMAIL PROTECTED] writes:


 It's up to the caller to supply a correct alist to the function.
 E. g.:

 Ah, but the original problem was that the alist was read from a file,
 at run time!

   Well, symbols may either be simply `eval'ed, or ``mapped'' to
   their respective parameters.  Since the symbols are going from
   file, I'd recommend you to ``map'' them.

   Given that the ``parameter object'' is indistinguishable from a
   procedure of one optional argument, the ``mapping'' function
   could be used to signal an error if an invalid symbol was
   specified in the file.  E. g.:

(define *the-mapping*
 `((stdout . ,current-output-port)
   (stdin  . ,current-input-port)
   ))

(define (the-symbol-parameter sym)
 (cond ((assoc sym *the-mapping*) = cdr)
   (else (error invalid parameter: sym

(define (the-alist-parameters alist)
 (map (lambda (pair)
(cons (the-symbol-parameter (car pair))
  (cdr pair)))
  alist))


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] gdbm and windows

2007-07-16 Thread Martin DeMello

Does anyone know if chicken/gdbm works on windows? I have an app using
GDBM that I'd like to port to windows at some point, but I don't
actually have a windows setup to try it on right now. Should I be
making plans to move it over to sqlite3 or something?

martin


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] gdbm and windows

2007-07-16 Thread Alex Queiroz

Hallo,

On 7/16/07, Martin DeMello [EMAIL PROTECTED] wrote:

Does anyone know if chicken/gdbm works on windows? I have an app using
GDBM that I'd like to port to windows at some point, but I don't
actually have a windows setup to try it on right now. Should I be
making plans to move it over to sqlite3 or something?



I don't know about GDBM, but I can tell the sqlite3 egg is very neat.

Cheers,
--
-alex
http://www.ventonegro.org/


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] operations

2007-07-16 Thread Brandon Van Every

On 7/16/07, Robin Lee Powell [EMAIL PROTECTED] wrote:


Before I kill myself trying to figure out WTH that page is about
just because Felix thinks it's cool (which is sufficient reason, for
the most part, but still) can anyone give me a precis of why this is
interesting?


Those who don't study history are doomed to repeat it?


Cheers,
Brandon Van Every


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] operations

2007-07-16 Thread Kon Lovett


On Jul 16, 2007, at 9:55 AM, Robin Lee Powell wrote:


On Mon, Jul 16, 2007 at 12:12:27PM +0200, felix winkelmann wrote:

A quick and dirty implementation of T's
(http://mumble.net/~jar/tproject/) object system


Wow.  What an amazing mess, including that the T Revival page
linked to near the top has been taken down.

Before I kill myself trying to figure out WTH that page is about
just because Felix thinks it's cool (which is sufficient reason, for
the most part, but still) can anyone give me a precis of why this is
interesting?


Not sure cool is the word, it is of historical interest. T was  
Yale's implementation of Scheme, sort-of. It was a much larger  
language than what Scheme was at that time. A real-world  
implementation of Scheme.


The T object system is a clear extension of the generic functions  
found in Scheme, like '+' for example. It is much more lightweight  
than CLOS generic functions. Single-dispatch only, but that fits with  
the usual semantics of Scheme functions - they usually deal with  
parameters of the same class, like numbers.


In the context of Chicken see it as Yet Another Object System.

I doubt T will have a revival. In practice it has been eclipsed by  
MzScheme, Chez Scheme, Chicken, etc. All of which provide a  
programming system larger than basic Scheme. (And it had  
idiosyncrasies of its' own. If you can find a copy of The T  
Programming Language it is worth a look.)


Best Wishes,
Kon



-Robin

--
http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/
Reason #237 To Learn Lojban: Homonyms: Their Grate!
Proud Supporter of the Singularity Institute - http://singinst.org/


___
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] gdbm and windows

2007-07-16 Thread Kon Lovett


On Jul 16, 2007, at 10:34 AM, Martin DeMello wrote:


Does anyone know if chicken/gdbm works on windows? I have an app using
GDBM that I'd like to port to windows at some point, but I don't
actually have a windows setup to try it on right now. Should I be
making plans to move it over to sqlite3 or something?


GDBM works on Windows. However, I had to jump thru some hoops. The  
binary installer doesn't install gdbm-dll.h, which I had to copy  
from the source. Also, the Chicken compiler doesn't like pathnames  
with spaces on Windows. I copied the gdbm files from the default  
install location - C:\Program Files\GnuWin32 - to my mingw  
directories. (For some reason a shortcut - C:\GnuWin32 - wasn't seen  
by the compiler. If MSVC is used then will probably work. I use MinGW.)


Best Wishes,
Kon



martin


___
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] gdbm and windows

2007-07-16 Thread Martin DeMello

On 7/17/07, Kon Lovett [EMAIL PROTECTED] wrote:


On Jul 16, 2007, at 10:34 AM, Martin DeMello wrote:

 Does anyone know if chicken/gdbm works on windows? I have an app using
 GDBM that I'd like to port to windows at some point, but I don't
 actually have a windows setup to try it on right now. Should I be
 making plans to move it over to sqlite3 or something?

GDBM works on Windows. However, I had to jump thru some hoops. The
binary installer doesn't install gdbm-dll.h, which I had to copy
from the source. Also, the Chicken compiler doesn't like pathnames
with spaces on Windows. I copied the gdbm files from the default
install location - C:\Program Files\GnuWin32 - to my mingw
directories. (For some reason a shortcut - C:\GnuWin32 - wasn't seen
by the compiler. If MSVC is used then will probably work. I use MinGW.)


Thanks, Kon :) Now that I know it works in theory I'm willing to sit
back and say I'll cross that bridge when I come to it.

martin


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users