|
From: Stas B. <sta...@gm...> - 2016-10-12 21:27:21
|
On Thu, Oct 13, 2016 at 12:04 AM, 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.
This is a bit out of scope for SBCL and should be provided by a
third-party project.
--
With best regards, Stas.
|