This is one of the few coder communities I interact with regularily,
so I'd appreciate comments on
http://rlpowell.wordpress.com/2008/06/16/what-is-it-about-testing-i-dont-understand/
-Robin
--
Lojban Reason #17: http://en.wikipedia.org/wiki/Buffalo_buffalo
Proud Supporter of the Singularity
So the MySQL egg seems to *almost* have support for prepared
statements; there's certainly a bunch of relevant code in there. In
particular, mysql-stmt-query is defined and appears to be exported,
but attempting to use it I get
Error: unbound variable: mysql-stmt-query
even when I built it out
On Mon, Jun 16, 2008 at 10:20:35AM -0700, Kon Lovett wrote:
On Jun 15, 2008, at 11:15 PM, Robin Lee Powell wrote:
So the MySQL egg seems to *almost* have support for prepared
statements; there's certainly a bunch of relevant code in there.
In particular, mysql-stmt-query is defined
On Sat, Apr 26, 2008 at 01:02:38PM -0500, Todd Dukes wrote:
I see in the 'Deviations from the standard' section ofhte manual
that section 4.3 syntax rules macros are not provided by default.
Are section 5.3 define-syntax macros also not available?
They are not. There are I think 4 eggs
On Sat, Apr 19, 2008 at 04:23:57PM -0700, Robin Lee Powell wrote:
Could you try out spiffy trunk and let me know if it works for
you? If it does, I'll push a new release.
I thought it wasn't working, but this was about my code; my example
code still breaks, but no longer due to anything
On Thu, Apr 03, 2008 at 09:13:40PM +0200, Peter Bex wrote:
On Sun, Mar 30, 2008 at 10:25:10PM -0700, Robin Lee Powell wrote:
This one's about as annoying as the content-length bug (a lot) and
about as difficult to work around (quite easy, actually).
Basically, if you don't explicitely
On Sun, Apr 06, 2008 at 10:04:26PM -0700, Elf wrote:
On Sat, 5 Apr 2008, John Cowan wrote:
Alex Shinn scripsit:
DEFINE-MACRO is just EVAL. Syntactic closures is just EVAL with
the two extra env parameters, [...].
And as I believe I heard someone say on #scheme the other day, if
your
This one's about as annoying as the content-length bug (a lot) and
about as difficult to work around (quite easy, actually).
Basically, if you don't explicitely clear headers after you serve a
request, *and* the client actually uses the same connection (i.e.
curl does this), the headers never
Using define-test procedures with arguments inside test/case
constructs seems to terminate in rather unexpected fashion; that is,
the first such call ends the test/case. See attached code and
output.
-Robin
--
Lojban Reason #17: http://en.wikipedia.org/wiki/Buffalo_buffalo
Proud Supporter of
On Mon, Mar 17, 2008 at 09:14:10AM +0100, felix winkelmann wrote:
On Sun, Mar 16, 2008 at 8:50 PM, Robin Lee Powell
[EMAIL PROTECTED] wrote:
These are totally untested, because I tried to get
egg-post-commit to work on my system and it just kept getting
more and more scary/baroque
On Mon, Mar 17, 2008 at 11:49:06PM +, Alaric Snell-Pym wrote:
On 16 Mar 2008, at 7:50 pm, Robin Lee Powell wrote:
+ (set! eggfiles (cons (make-pathname egg-dir
doc-full)
I have a sense of foreboding about this line. I have a hunch that
the cons should perhaps
#chicken seems to think that 3.0.8 is nice and stable; can
http://chicken.wiki.br/releases/ link to it?
-Robin
--
Lojban Reason #17: http://en.wikipedia.org/wiki/Buffalo_buffalo
Proud Supporter of the Singularity Institute - http://singinst.org/
http://www.digitalkingdom.org/~rlpowell/ ***
In the latest spiffy.scm is:
(parameterize ([http:error-response-handler (http-resource:error-handler exn)])
but http-resource:error-handler was removed in 3.5 (3.7 is current).
The last time it appeared, in 3.4, it looked like this:
(define (http-resource:error-handler ex)
(lambda (code
So I mentioned in an earlier mail that I'd like to do 2-fork
documentation: wiki for general docs and examples and so on, and
mole-generated docs for actual function definitions.
Turns out egg-post-commit won't allow this. I've got some suggested
changes here, first to the .meta file, then to
On Sat, Mar 15, 2008 at 10:13:52AM -0700, Kon Lovett wrote:
Fixed in chicken/trunk.
This was a holdover from a previous incarnation of fprintf which
didn't use a string buffer but wrote directly to the port. Not all
ramifications of the change were investigated.
Fix confirmed. Thanks!
On Sun, Mar 16, 2008 at 03:20:11PM +0100, Peter Bex wrote:
Thanks for the error report! I've fixed the bug and added a
testcase for it so it will not happen again. I've also pushed a
new release which should be available shortly (3.8).
It seems to work now, but this leads to a more general
On Sun, Mar 16, 2008 at 04:48:29PM -0400, Graham Fawcett wrote:
Well, you've got three options that I can think of:
1) use a Content-Length header,
2) use a Connection: close header to prevent keep-alive,
3) use chunked encoding to send responses of arbitrary length, but
retaining
On Sat, Mar 15, 2008 at 05:38:51PM +0100, Felix Winkelmann wrote:
From: Robin Lee Powell [EMAIL PROTECTED]
csi's -e is implemented by wrapping the forms into a (begin
...). Due to the way toplevel expressions are macroexpanded (and
details that you don't want to know about), (use syntax-case
this declaration
; altogether:
(needs format-modular srfi-13 extras)
(author Robin Lee Powell)
(synopsis A localization egg after Perl's Locale::Maketext))
(compile -s -O2 -d1 caketext.scm)
(compile -c -O2 -d1 caketext.scm -unit caketext)
(install-extension
; Name of your extension:
'caketext
On Sat, Mar 15, 2008 at 12:12:19AM -0700, Robin Lee Powell wrote:
If the stack egg is not installed, it fails complaining about that.
If it is installed:
mmap(0x2abcd3c53000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5000) = 0x2abcd3c53000
close(3
On Sat, Mar 15, 2008 at 10:26:28AM -0700, Kon Lovett wrote:
hart uses low-level macros only.
I'm afraid that means very little to me. Are you saying that all
things that use low-level macros die when you load syntax-case? So
if I want to use high-level macros with hart, I'm just screwed?
I
On Sat, Mar 15, 2008 at 10:25:10AM -0700, Robin Lee Powell wrote:
For the record, Kon doesn't know what this is, and I have
re-installed every relevant egg.
I'm running chicken-meta-setup reinstall now, but I'm not
hopeful.
It actually did work, though. :)
-Robin
--
Lojban Reason #17
For me, chicken-meta-setup reinstall died about 3/4 through with:
Error: Extension does not exist in the repository: http-client
Error: executing shell command failed: chicken-setup -dont-ask http-client
I don't know if this is actually a problem with the http egg or
what.
-Robin
--
Lojban
On Sat, Mar 15, 2008 at 02:48:01PM -0400, Graham Fawcett wrote:
On Sat, Mar 15, 2008 at 1:26 PM, Kon Lovett [EMAIL PROTECTED]
wrote:
hart uses low-level macros only.
Is there a way I can alter hart so that it will play better with
code that uses higher-level macro systems? I'd rather not
On Sat, Mar 15, 2008 at 03:05:25PM -0400, Graham Fawcett wrote:
Until I get custom tag support, you could try adding an (f:)
clause to hart-support.scm, e.g.:
((t: text:)
(hart-emit `(apply hart-print (map hart-html-escape
(list
On Sat, Mar 15, 2008 at 03:37:20PM -0400, Graham Fawcett wrote:
On Sat, Mar 15, 2008 at 3:24 PM, Graham Fawcett
[EMAIL PROTECTED] wrote:
The main macro in Hart is ridiculously small. Hart-support (the
non-macro code) does all the work:
(define-macro (hart . forms)
`(noop ,(apply
On Sun, Mar 16, 2008 at 12:00:12AM +0100, Felix Winkelmann wrote:
From: Robin Lee Powell [EMAIL PROTECTED]
For me, chicken-meta-setup reinstall died about 3/4 through
with:
Error: Extension does not exist in the repository: http-client
Error: executing shell command failed
On Sat, Mar 15, 2008 at 07:07:47PM -0400, John Cowan wrote:
Felix Winkelmann scripsit:
Actually not quite. Low-level macros are still seen, as the
low-level expander is used by default - high-level expanders
just pre-expand all macros usually.
Well, it's true that define-macro
On Sun, Mar 16, 2008 at 12:56:06AM +0100, Leonardo Valeri Manera
wrote:
On 16/03/2008, Robin Lee Powell [EMAIL PROTECTED]
wrote:
Should I just use one of those, then? Do they define
syntax-rules?
Yup. Any one of those 3 defines syntax-rules.
Ha! That does it. (use hart), then (use
On Sat, Mar 15, 2008 at 04:47:09PM -0700, Robin Lee Powell wrote:
On Sun, Mar 16, 2008 at 12:00:12AM +0100, Felix Winkelmann wrote:
From: Robin Lee Powell [EMAIL PROTECTED]
For me, chicken-meta-setup reinstall died about 3/4 through
with:
Error: Extension does not exist
On Sat, Mar 15, 2008 at 10:22:02AM -0700, Robin Lee Powell wrote:
While it's not actually super-important to me, I believe that the
following .setup and .meta files *should* lead to a documentation
file named caketext-doc.html being available at
http://www.call-with-current-continuation.org
On Thu, Mar 13, 2008 at 01:17:08AM +0100, felix winkelmann wrote:
On Mon, Mar 10, 2008 at 9:44 AM, Robin Lee Powell
[EMAIL PROTECTED] wrote:
caketext is a work-alike port of the Perl module
Locale::Maketext (see
http://search.cpan.org/dist/Locale-Maketext/lib/Locale/Maketext.pod
On Thu, Mar 13, 2008 at 12:10:35AM -0700, Robin Lee Powell wrote:
On Thu, Mar 13, 2008 at 01:17:08AM +0100, felix winkelmann wrote:
On Mon, Mar 10, 2008 at 9:44 AM, Robin Lee Powell
[EMAIL PROTECTED] wrote:
caketext is a work-alike port of the Perl module
Locale::Maketext (see
On Thu, Mar 13, 2008 at 07:55:00PM +0100, Peter Bex wrote:
In case you want to send more complicated requests or want more
control over the way the request is made, just send in a
http:request object:
(http:GET (http:make-request
'GET http://localhost/index.html;
I'm trying to write a Selenium egg, so I'm acting as a client to an
abnormal server.
Here's the relevant code:
[http-thread (make-thread (lambda ()
(call-with-values
(lambda () (http:send-request url))
On Wed, Mar 12, 2008 at 12:02:15PM +0100, Tobia Conforto wrote:
0x00f0: 3030 3a30 3020 474d 540d 0a43 6f6e 7465
00:00.GMT..Conte
0x0100: 6e74 2d54 7970 653a 2074 6578 742f 706c nt-
Type:.text/pl
0x0110: 6169 6e0d 0a0d 0a4f 4b2c 3538 3535 3632 ainOK,
585562
On Wed, Mar 12, 2008 at 08:22:48AM -0700, Robin Lee Powell wrote:
If something is choking on the lack of newline, it's in the http
egg.
Except apparently not; apparently it's quite a bit lower-level than
that. Here's some code I added:
(let loop ()
(format #t eof: ~A.\n (eof-object? input
On Wed, Mar 12, 2008 at 11:32:37AM -0400, Graham Fawcett wrote:
On Wed, Mar 12, 2008 at 11:22 AM, Robin Lee Powell
[EMAIL PROTECTED] wrote:
Could it be that the body is the string OK,585562 with no
terminating newline, and read-line hangs on it?
Possible. If that's really
On Wed, Mar 12, 2008 at 06:40:56PM +0100, Peter Bex wrote:
[snip]
Where's this header coming from? Perhaps CURL is sending a
request that looks different to the server, causing it to send a
different response?
Ah-ha! Right you are.
curl is using HTTP/1.1. The http egg is using HTTP/1.0.
On Wed, Mar 12, 2008 at 09:35:45PM -0700, Robin Lee Powell wrote:
On Wed, Mar 12, 2008 at 06:40:56PM +0100, Peter Bex wrote:
[snip]
Where's this header coming from? Perhaps CURL is sending a
request that looks different to the server, causing it to send a
different response?
Ah-ha
Replying to very old mail. :)
On Thu, Jun 28, 2007 at 12:25:54PM +0900, Alex Shinn wrote:
Hi all,
Following up on trac ticket #258:
http://trac.callcc.org/ticket/258
Which is down right now, unfortunately.
I'm considering changing the utf8 egg to no longer use syntax-case
modules, so
On Sun, Mar 09, 2008 at 07:51:11AM -0700, Kon Lovett wrote:
On Mar 9, 2008, at 12:12 AM, Robin Lee Powell wrote:
On Sat, Mar 08, 2008 at 05:41:50PM -0800, Kon Lovett wrote:
Bug in testbase. Fixed in 1.5.1 in release/3.
chicken-setup doesn't grab that;
Does for me. Are you using
I've noticed that define-expect-binary in testbase needs its
predicates to return #t; a true (non-#f) value is not sufficient.
This means that (define-expect-binary string=) because, despite
srfi-13's docs to the contrary:
string= s1 s2 [start1 end1 start2 end2] - boolean
string= returns a
I'd like to define my own %[...%] sort of formatter using
format-modular, but it seems to be impossible without copying most
of the egg into my own code! Could this be added as a general
feature?
Thanks.
-Robin
--
Lojban Reason #17: http://en.wikipedia.org/wiki/Buffalo_buffalo
Proud
On Fri, Mar 07, 2008 at 01:12:06PM -0800, Kon Lovett wrote:
On Mar 7, 2008, at 9:08 AM, Robin Lee Powell wrote:
I'd like to define my own %[...%] sort of formatter using
format-modular, but it seems to be impossible without copying most
of the egg into my own code! Could this be added
On Fri, Mar 07, 2008 at 01:39:02PM -0800, Kon Lovett wrote:
You can override the existing semantics by supplying your own
procedures. However access to the state object is very restricted
to the public. So not all functionality that the *formatter-foo*
provide can be reproduced by an external
On Fri, Mar 07, 2008 at 02:27:55PM -0800, Robin Lee Powell wrote:
On Fri, Mar 07, 2008 at 01:39:02PM -0800, Kon Lovett wrote:
You can override the existing semantics by supplying your own
procedures. However access to the state object is very
restricted to the public. So not all
On Fri, Mar 07, 2008 at 08:30:09PM -0800, Elf wrote:
i am going to attach a new document to the eggs and egg authoring
pages in the very near future explaining what the various licences
are and what their terms are, and how to properly include
licences and licence terms in the egg metatags
On Eggs Unlimited 3, the top of the Web programming section looks
like this (rendered, not source):
Web programing
chickenegg name=web-unity license=BSD author=sjamaan description=Web
app unification framework for CGI/SCGI/FCGI/Spiffy webservers/
ajax Using xmlHttpRequest with the Spiffy
On Thu, Mar 06, 2008 at 10:22:32AM +0100, Peter Bex wrote:
I've spent a bit of time thinking about this (unfortunately, no
time to code it up yet). At work we use Drupal, which simply
requires you to wrap translatable strings with a function call to
t(...). This is a solution that absolutely
I'm a big fan of rspec/jbehave/etc's Given/When/Then framework for
doing BDD specifications. Before I go off and write my own (read:
before I hack testbase to do it), has anyone already got such a
thing for Chicken I can use?
-Robin
--
Lojban Reason #17:
On Thu, Mar 06, 2008 at 09:46:49AM +0100, felix winkelmann wrote:
You need a version of format that is more capable than the
builtin one (which builds on [sf]printf). Install format-modular
or format, and load that before srfi-29.
Did that; now I get:
Error: (vector-ref) out of range
It seems to me that web-scheme and hart do more-or-less the same
thing. Unfortunetaly, I have no easy way to verify that because
there are no examples at
http://www.call-with-current-continuation.org/eggs/web-scheme.html
and the exmaples it links to are 404.
So:
1. Can someone fix the
I copied the attached example directly from
http://srfi.schemers.org/srfi-29/srfi-29.html , with the following
changes:
1. I don't use store-bundle! or load-bundle! at all
2. I force the language to French.
Actually running it gives me:
Error: (fprintf) illegal format-string character: #\1
Many author sections have e-mail addresses in them, which get eaten
to turn the other name into a horribly munged wiki page name. In
some cases (someone tried to use a href=mailto:...) it even breaks
the egg's insertion in the table completely.
Not sure what the right fix is here, but the
I'm thinking of starting a .com; probably not an especially Web 2.0
sort of one, but maybe with some Ajax involved. I seem to be more
comfortable with Lisps than anything else.
Are there any compelling reasons to choose a Lisp other than Chicken
(my current best-known) for that sort of thing?
On Wed, Feb 27, 2008 at 09:29:08AM -0800, Robin Lee Powell wrote:
I'm thinking of starting a .com; probably not an especially Web
2.0 sort of one, but maybe with some Ajax involved. I seem to be
more comfortable with Lisps than anything else.
Are there any compelling reasons to choose
Can someone explain to me what's going on in
http://paste.lisp.org/display/53038 ? I can't think of any reason
why a define in a recursive call would corrupt the calling
function's value for a variable, but having it happen IFF the define
is in a (cond...) seems Really Really Wierd.
err-display
On Tue, Dec 25, 2007 at 03:02:27PM -0800, Robin Lee Powell wrote:
Can someone explain to me what's going on in
http://paste.lisp.org/display/53038 ? I can't think of any reason
why a define in a recursive call would corrupt the calling
function's value for a variable, but having it happen
http://packages.debian.org/sid/chicken-bin
It certainly seems production quality and decently performant to me;
does the Chicken community still agree with the statements there?
If not, I'll endeavour to get it changed.
-Robin
--
Lojban Reason #17: http://en.wikipedia.org/wiki/Buffalo_buffalo
On Wed, Nov 28, 2007 at 05:34:07PM +0100, Stephan Lukits wrote:
Hi,
I tried the ncurses example after installing
ncurses and easyffi (in this order) and got
after a successful compilation the following
runtime error executing the example:
:~/stud/hauptstudium/lf-programmierung csc
On Wed, Oct 17, 2007 at 08:14:59AM +0200, felix winkelmann wrote:
On 10/16/07, Robin Lee Powell [EMAIL PROTECTED] wrote:
I have an application in which (for these purposes, anyways)
programs are fired off entirely at random, and each with a
different userid.
I'd like the profile name
I have an application in which (for these purposes, anyways)
programs are fired off entirely at random, and each with a different
userid.
I'd like the profile name to include something volatile, like the
current process id. Is that possible?
-Robin
--
Lojban Reason #17:
On Fri, Aug 17, 2007 at 10:34:46PM +0200, Bastian Müller wrote:
Finally, I tried to do the actual call.
First, I tried:
(ode-space-collide space (null-pointer) foobar)
and during the simulation I got an
Error: bad argument count - received -2 but expected 3: error in
error
On Fri, Aug 17, 2007 at 11:23:10PM +0200, Bastian Müller wrote:
so, I put the define-external in graphics.scm, where I do now:
(ode-space-collide space #f (location foobar))
and throws again:
Error: (location) bad argument type - locative can not refer to
objects of this type:
On Mon, Jul 23, 2007 at 02:42:18AM -0400, John Cowan wrote:
In practice, longjmp is not a problem either, though that's not an
option in Chicken. Most signal handlers just set a global variable
to 1 and return.
Which is completely unacceptable here because I need to update
status for the user
On Sun, Jul 22, 2007 at 01:39:10PM +0200, felix winkelmann wrote:
On 7/21/07, Robin Lee Powell [EMAIL PROTECTED] wrote:
2. A grotesque hack using foreign code and setitimer and such.
You can find this hack at http://paste.lisp.org/display/44881.
The problem here is that if the interrupt kicks
On Sun, Jul 22, 2007 at 03:54:26PM +0200, Thomas Christian Chust wrote:
felix winkelmann wrote:
On 7/21/07, Robin Lee Powell [EMAIL PROTECTED] wrote:
I have an app that uses a couple of C libraries. The general
problem I'm trying to solve is providing status updates to the
user
On Fri, Jul 20, 2007 at 06:54:29PM -0700, Robin Lee Powell wrote:
2. A grotesque hack using foreign code and setitimer and such.
You can find this hack at http://paste.lisp.org/display/44881.
The problem here is that if the interrupt kicks off when the
program is busy, the whole program hangs
I have an app that uses a couple of C libraries. The general
problem I'm trying to solve is providing status updates to the user
in a timely fashion (ideally, about 750ms).
I've tried two approaches, both of which have failed:
1. set-signal-handler!. This just doesn't work at all, because my
On Wed, Jul 18, 2007 at 08:28:27AM +0200, felix winkelmann wrote:
On 7/17/07, Robin Lee Powell [EMAIL PROTECTED] wrote:
I eventually found
http://galinha.ucpel.tche.br:8080//linking%20eggs%20statically
(which appears to be orphaned, by the way) and things are working
now.
So all is well
On Wed, Jul 18, 2007 at 08:54:56AM +0200, felix winkelmann wrote:
On 7/18/07, Robin Lee Powell [EMAIL PROTECTED] wrote:
On Wed, Jul 18, 2007 at 08:28:27AM +0200, felix winkelmann wrote:
On 7/17/07, Robin Lee Powell [EMAIL PROTECTED]
wrote:
I eventually found
http
On Mon, Jul 16, 2007 at 10:07:00AM -0700, Robin Lee Powell wrote:
On Mon, Jul 16, 2007 at 08:25:16AM +0200, felix winkelmann wrote:
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
On Tue, Jul 17, 2007 at 09:04:27AM -0700, Robin Lee Powell wrote:
On Mon, Jul 16, 2007 at 10:07:00AM -0700, Robin Lee Powell wrote:
On Mon, Jul 16, 2007 at 08:25:16AM +0200, felix winkelmann wrote:
On 7/15/07, Robin Lee Powell [EMAIL PROTECTED]
wrote:
I've got an app that is almost
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
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?
-Robin
$ grep string-length library.scm
(define (string-length s) (##core#inline C_i_string_length s))
$ grep C_i_string_length runtime.c
C_regparm C_word C_fcall C_i_string_length(C_word s)
Hope that helps.
Zb
On 7/9/07, Robin Lee Powell [EMAIL PROTECTED] wrote:
Except: Problem: no way to get
On Mon, Jul 09, 2007 at 01:49:12PM +0900, Alex Shinn wrote:
On 7/7/07, Alex Shinn [EMAIL PROTECTED] wrote:
Unfortunately, fmt hangs on the obvious solution:
(fmt #t
(join
(lambda (x) (trim 5 x))
(string-split foo foo\nbar bar\n \n)
nl))
That's a bug.
I need to take a Scheme list and pass it to a foreign function, so I
stole the following code from chasen:
#
char **make_strings(C_word lst)
{
int len, i;
C_word tmp;
char **hlist;
len = C_unfix(C_i_length(lst));
hlist = (char**) malloc(sizeof(char*) * (len + 1));
for(i = 0,
(I was ordered to complain by the Cowan)
I have code that calls (with easyffi) a C library function. One
argument is a function. I've defined, with define-external, the
scheme function play. I pass a pointer to play to the C library
function with (location play). This breaks if play is not
I just want to take a moment in the midst of my FFI
confusion/annoyance to praise Chicken for the fact that something
like easyffi *exists at all*. I know just enough about C to have
some idea of just how *insanely* hard such a thing must be to make
work. Kudos!
On Fri, Jul 06, 2007 at 07:55:05AM +0200, foobar wrote:
Robin Lee Powell schrieb:
Someone *must* have written this. Probably lots of someones.
May I have your code?
The problem is (very) simple. I have:
((foo 1 bar) (baz bz 2))
I wish to output (something like):
foo
On Fri, Jul 06, 2007 at 12:19:36PM -0700, Robin Lee Powell wrote:
It may be that fmt-columns would help, but the explanation of
fmt-columns is *totally* opaque to me; can anyone explain it?
Hoo-boy the problems I've had with fmt. :( It seems to be lovely
in general, but it really doesn't want
On Thu, Jul 05, 2007 at 09:35:26AM +0200, felix winkelmann wrote:
On 7/4/07, Robin Lee Powell [EMAIL PROTECTED] wrote:
As a related question, something I ran across in libxmmsclient
that seems particularily tricky: a function with an int return
value, but an int32_t *foo argument where
.
On 7/5/07, Robin Lee Powell [EMAIL PROTECTED] wrote:
#?
int bar(char *x);
#
Which I'm handling like so:
(define-external vstring c-string N/A)
(bar (location vstring))
Could I drop the (location ...) call by using ___out?
I guess it would just be:
(define vstring (bar
Someone *must* have written this. Probably lots of someones. May I
have your code?
The problem is (very) simple. I have:
((foo 1 bar) (baz bz 2))
I wish to output (something like):
foo 1 bar
baz bz 2
That is, given a list of lists of strings and a given
On Tue, Jul 03, 2007 at 05:26:54PM -0700, Robin Lee Powell wrote:
On Tue, Jul 03, 2007 at 05:00:43PM -0700, Robin Lee Powell wrote:
The following C code (trimmed) works fine:
xmmsc_connection_t *connection;
xmmsc_result_t *result;
unsigned int id;
result
I'm looking at using CDK (the widget library for ncurses) for a TUI
app (unless anyone else has any better TUI library suggestions? I'd
love to hear them).
My primary question is, how should I be doing FFI to make it nice
and simple for me?
On Tue, Jul 03, 2007 at 11:44:02PM +0200, felix winkelmann wrote:
On 7/3/07, Robin Lee Powell [EMAIL PROTECTED] wrote:
I'm looking at using CDK (the widget library for ncurses) for a
TUI app (unless anyone else has any better TUI library
suggestions? I'd love to hear them).
My primary
On Tue, Jul 03, 2007 at 11:44:02PM +0200, felix winkelmann wrote:
Do you need good error-checking? Do you want to access CDK in a
low-level manner, or would you prefer a complete CDK wrapper? Or
are you just interested in getting it to work quickly.
I answered this already, but let me ask the
The following C code (trimmed) works fine:
xmmsc_connection_t *connection;
xmmsc_result_t *result;
unsigned int id;
result = xmmsc_playback_current_id (connection);
xmmsc_result_wait (result);
if (!xmmsc_result_get_uint (result, id)) {
fprintf (stderr,
On Tue, Jul 03, 2007 at 05:00:43PM -0700, Robin Lee Powell wrote:
The following C code (trimmed) works fine:
xmmsc_connection_t *connection;
xmmsc_result_t *result;
unsigned int id;
result = xmmsc_playback_current_id (connection);
xmmsc_result_wait (result
On Sun, Feb 04, 2007 at 02:46:38PM -0200, Mario Domenech Goulart
wrote:
Hello Robin,
On Sat, 3 Feb 2007 14:27:39 -0800 Robin Lee Powell
[EMAIL PROTECTED] wrote:
I can't get to any of the useful documentation pages, like
http://chicken.wiki.br/Unit%20library
The whole academic network
I can't get to any of the useful documentation pages, like
http://chicken.wiki.br/Unit%20library
-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/
I'm trying to work from http://srfi.schemers.org/srfi-2/srfi-2.html
because the Chicken site is down, and I can't make and-let* work for
me at all. I've shown two attempts below.
In the chicken source, in csi.scm, there's:
(and-let* ([(fx= a len)]
[o (fxmod len 16)]
[(not
On Sat, Feb 03, 2007 at 03:42:38PM -0800, Kon Lovett wrote:
(and-let*
([(begin (display foo.\n) #t)]
[(= 2 1)]
[(begin (display bar.\n) #t)] )
(begin
(display Still here.\n)))
You forgot the enclosing braces for each sub-form. ('[...]' is not
necessary,
Given the following code (with giant strings snipped):
- ---
(use srfi-1)
(use srfi-13)
(define bigstring SNIP
(define bigstring2 SNIP
(write (string-length bigstring))
(display \n)
(write (string-number bigstring))
(display \n)
(write (string-length bigstring2))
On Mon, Jan 22, 2007 at 07:10:23AM +0100, felix winkelmann wrote:
Hi!
The web-based chicken documentation browser is hereby announced:
http://callcc.org
Many thanks to Toby Butzon for setting this up! The index files
used for searching the docs need some work (all my fault), but I
On Wed, Jan 17, 2007 at 11:26:27AM +0100, felix winkelmann wrote:
On 1/17/07, Robin Lee Powell [EMAIL PROTECTED] wrote:
On Sun, Jan 14, 2007 at 09:53:00PM -0800, Robin Lee Powell wrote:
The only way I see to get the exit value of something I call
with (process...) is to use (process-wait
On Wed, Jan 17, 2007 at 01:45:03PM -0600, Zbigniew wrote:
Robin,
Did you try using process-fork to create the process, as Felix
suggested? The process can't end until you actually call
process-wait.
*hangs head*
You know, I knew that, I really did.
I'll give it a shot.
I the meantime,
1 - 100 of 108 matches
Mail list logo