|
From: Andy H. <ah...@gm...> - 2016-10-12 23:31:46
|
ECL works well for this, although not as nicely as lush based on the
example above. It does indeed render FFIs unnecessary.
On Wed, Oct 12, 2016 at 5:04 PM, Mateo <obr...@gm...> wrote:
> Unsatisfied dependencies in Debian/testing made me look in to lush in more
> detail.
>
>
>
> In particular, I see that lush had (is it still maintained?) a syntax for
> writing inline C code mixed in with lisp code. Could something like this be
> implemented for compiled sbcl, instead of dealing with the FFI library?
>
>
>
> From the lush manual (2001, p. 41 of PDF version):
>
>
>
> (de harmonic (n)
>
> ((-double-) n)
>
> (let ((r 0))
>
> ((-double-) r)
>
> #{ { double i=0;
>
> while (i<$n){ i+=1.0; $r+=1/i; };
>
> } #} r))
>
>
>
> This would be for the purpose of getting a bit of specialised fast code in
> lisp without worrying about trying to replace FFI functionality.
>
>
>
> Mateo.
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Sbcl-devel mailing list
> Sbc...@li...
> https://lists.sourceforge.net/lists/listinfo/sbcl-devel
>
>
|