Re: [Chicken-users] SOAP implementations/libraries

2006-05-28 Thread felix winkelmann

On 5/25/06, Jim Miller [EMAIL PROTECTED] wrote:

Having gotten tired of parsing through google results with the words
'scheme' and 'soap', I figure I'll ask here.

 Is there a standard library or reference for implementing soap services and
clients in scheme?


Sorry, not that I know of.


cheers,
felix


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


Re: [Chicken-users] static library and link

2006-05-28 Thread felix winkelmann

On 5/26/06, Frederic Peschanski [EMAIL PROTECTED] wrote:



Error: unbound variable: mylib

Call history:

eval   (define-extension mylib (export foo bar))   --
=

Anyway, I am progressing, thank you again !
Fred.


Hm... This seems to indicate that your chicken doesn't understand
define-extension. Are you using the same chicken versions?


cheers,
felix


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


Re: [Chicken-users] How to use prelude?

2006-05-28 Thread felix winkelmann

On 5/27/06, Peter Bex [EMAIL PROTECTED] wrote:

Hey all,

I'm trying to conditionally add a prelude to an egg.  It checks if X is
available by trying to link against it, and then it does the following:

(if with-x?
(compile -prelude (define with-x #t) -s -O2 -d0 imlib2.scm -C 
-I/usr/X11R6/include -L/usr/X11R6/lib -lImlib2 -lX11 -lfreetype)
(compile -prelude (define with-x #t) -s -O2 -d0 imlib2.scm -ffi-define 
X_DISPLAY_MISSING))

But this fails on the prelude with:
Syntax error: ( unexpected

Adding a quote in front of the define doesn't work either as that expands
to (quote (define with-x #t))


Try '...' (one pair of double-quotes for scheme, and one pair of single
quotes for the shell).



How does this work, then?  (also, can I use cond-expand with this?  I'm not
sure how to add features cond-expand can check against)


As Kon replied: register-feature! is the way. But that is at run-time,
of course.
To have it available at compile-time (I'm not 100% sure in what way you
want to use this), things are (as usual) a tiny little bit more complicated.


cheers,
felix


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


Re: [Chicken-users] How to use prelude?

2006-05-28 Thread Peter Bex
On Sun, May 28, 2006 at 12:31:14PM +0200, felix winkelmann wrote:
  Adding a quote in front of the define doesn't work either as that expands
  to (quote (define with-x #t))
 
 Try '...' (one pair of double-quotes for scheme, and one pair of single
 quotes for the shell).

It would be nice if you could document this in the manual.

  How does this work, then?  (also, can I use cond-expand with this?  I'm not
  sure how to add features cond-expand can check against)
 
 As Kon replied: register-feature! is the way. But that is at run-time,
 of course.
 To have it available at compile-time (I'm not 100% sure in what way you
 want to use this), things are (as usual) a tiny little bit more complicated.

Could you elaborate on how to do it?  I though cond-expand was compile-time.
I guess I was wrong :)

Anyway, what I want to do: I have a definition for a C function that only
exists if Imlib2 is compiled without X.  So, if X is not found, I don't want
a binding for that function.  I guess this has to be done compile time, since
the function doesn't even exist, meaning the (foreign-lambda ...) can't be
translated.

I hope I am making some sense here.

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


pgpylD9eOXXQg.pgp
Description: PGP signature
___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Documentation (was Re: [Chicken-users] How to use prelude?)

2006-05-28 Thread Graham Fawcett

On 5/28/06, felix winkelmann [EMAIL PROTECTED] wrote:

On 5/28/06, Peter Bex [EMAIL PROTECTED] wrote:
 On Sun, May 28, 2006 at 12:31:14PM +0200, felix winkelmann wrote:
   Adding a quote in front of the define doesn't work either as that expands
   to (quote (define with-x #t))
 
  Try '...' (one pair of double-quotes for scheme, and one pair of single
  quotes for the shell).

 It would be nice if you could document this in the manual.

Yes, there are a lot of things that should be mentioned there... ;-)


I was just thinking about what's happening now in the Python
community. A well-known Python developer dumped all of the official
documentation into a Wiki / content management system, and the
community is busy filling in gaps, and adding new information. I
realize that the Python community is a a few orders of magnitude
larger than Chicken's, but perhaps opening up the docs for community
editing might alleviate the burden from Felix and the core developers?

Just a thought,

Graham


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


Re: Documentation (was Re: [Chicken-users] How to use prelude?)

2006-05-28 Thread felix winkelmann

On 5/29/06, Graham Fawcett [EMAIL PROTECTED] wrote:


I was just thinking about what's happening now in the Python
community. A well-known Python developer dumped all of the official
documentation into a Wiki / content management system, and the
community is busy filling in gaps, and adding new information. I
realize that the Python community is a a few orders of magnitude
larger than Chicken's, but perhaps opening up the docs for community
editing might alleviate the burden from Felix and the core developers?



Actually, Alejandro suggested this already - there is an unofficial manual:

http://wiki.freaks-unidos.net/chicken%20scheme%20manual

Now, I have absolutely no problem with this. There is just one catch: I don't
want to maintain two versions of the manual, and we definitely need something
that can be installed locally. Personally, I would suggest that we use
http://galinha.ucpel.tche.br/coop, since it's internal format can be converted
relatively easily to/from other formats. What we need is a texi generator.
(any volunteers?)


cheers,
felix


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


Re: [Chicken-users] Debugging -- truncating the call-history report?

2006-05-28 Thread felix winkelmann

On 5/26/06, Graham Fawcett [EMAIL PROTECTED] wrote:

First, let me ask the short question: when an uncaught exception
occurs, is there a way to prevent exception-handler code from
appearing in the call-history report?


What you can do is the following: put the code that prints the
exception in a separate file, compile it with -d0 (so that no
debug-output appears). The invocation can be wrapped in
a ##core#app form (which is the same as a procedure-call,
but unsafe, and it doesn't generate a trace-info entry).
Here some untested code:

; handle.scm
(define (handle thunk)
 (handle-exceptions ex (begin ...)
   (thunk) ) )

; use.scm

(define-macro (section . body)
 `(##core#app handle
(lambda () ,@body) ) )


(felix)


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


Re: [Chicken-users] foreign-type for int64_t?

2006-05-28 Thread felix winkelmann

On 5/24/06, Alejandro Forero Cuervo [EMAIL PROTECTED] wrote:


What foreign-type specifier should I use if I need an int64_t in C?

Right now I'm using 'long' (which, I know, is just 32 bits) and
filling my code with casts.  Perhaps an int64 foreign-type specifier
should be defined?


As a foreign-type specifier, adding int64_t shouldn't be too hard.
IIRC, M$ calls them __int64 (is that correct?)


(felix)


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


[Chicken-users] egg index on coop

2006-05-28 Thread felix winkelmann

Hi!

I have changed the egg-upload script to add an entry to the following
page:

http://galinha.ucpel.tche.br/coop?page=egg%20index

It's still a bit raw, but it makes it easier to keep up to date with egg-changes
(modifications here will appear in the coop RSS feed).

This also demonstrates the HTTP API of coop, which is documented here:
http://galinha.ucpel.tche.br/coop?page=coop%20API

So, if you someone interested in pushing statistics, or other machine-generated
info, I'd be delighted if this feature would be used. Write permissions can be
obtained from me.


cheers,
felix


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


[Chicken-users] chicken gui repl

2006-05-28 Thread felix winkelmann

Hello!

Kon suggested a somewhat more user-friendly mac-like addition
to the OS X binary release, and I thought it would be nice to have
some sort of GUI repl that could be installed along with the
binaries (and provided with the source release too, of course).
So I dug out my mostly unfinished and rather clunky code, which
I provide here in the hope that someone with more knowledge of
OS X things might pick it up:

http://www.call-with-current-continuation.org/chicken-app.dmg

It's really pretty bad: evaluation can't be interrupted (suggestion:
eval code in each document in a different thread and somehow
do some CFRunLoop funkyness to check for an interrupt key-combination),
there is no online help (opening Safari on chicken.html should do)
and handling input from stdin is not supported (since the current
selection is eval'd, so there is no real stdin). Moreover it doesn't
use the objc egg, which removes the dependency
on objc and libffi, but it might be prefereable to use the wonderful
objc bridge.

Anybody interested in taking a look?


(felix)


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