|
From: | Andre Kuehne |
Subject: | Re: [Chicken-users] *crunch* |
Date: | Wed, 18 Apr 2007 19:17:12 +0200 |
User-agent: | Thunderbird 1.5.0.10 (X11/20070221) |
felix winkelmann wrote:
A preliminary, experimental and only minimally tested of the "crunch" mini-compiler is now available in the eggs repository. It compiles a statically typed and heavily restricted dialect of Scheme into C++. Crunch can be used to generate standalone programs without any external dependencies. Alternatively, you can embed sections of crunched code in normal Scheme programs. The idea is to write sections of performance-critical number crunching code and use them with minimal hassle. http://chicken.wiki.br/crunch This release is likely to contain many bugs and inusfficiences. Feedback is (as usual) welcome.
I tried to compile something like this: (crunch (define (f32vector+ va vb) (let* ((n (f32vector-length va)) (vr (make-f32vector n 0))) (do ((i 0 (add1 i))) ((>= i n)) (f32vector-set! vr i (+ (f32vector-ref va i) (f32vector-ref vb i)))) vr))) but got the following instead: Error: illegal foreign return type `f32vector' Is this currently not supported or is something else misssing? > chicken -version Version 2.611 - linux-unix-gnu-x86 - [ dload ptables applyhook ]
[Prev in Thread] | Current Thread | [Next in Thread] |