Live data from Hacker News

Calling Lisp from C Using ECL

cwndr.ws

1–5 of 5 posts

Re: Calling Lisp from C Using ECL

#2
A more complete example, giving you a Lisp REPL, and calling C code from Lisp: http://vwood.github.io/embedded-ecl.html

And a "port" to Windows: https://github.com/fabriceleal/ecl-win-vs11-example.

Also a tiny non-working "game-engine" that uses SDL1.2 (while not working, may have more examples): https://github.com/rjmacready/pico-gmengine

Re: Calling Lisp from C Using ECL

#3
- Guile last version: 2.0.11 (2014-03-20) - Ecl last version: 12.7.1 (2012-07-24)

I think guile it's better for language embedding. Anyway if you prefer lisp (to use an asdf package for example) maybe it's better sbcl with ffi.

Chicken scheme it's also nice and very portable.

Re: Calling Lisp from C Using ECL

#4
post #3

- Guile last version: 2.0.11 (2014-03-20) - Ecl last version: 12.7.1 (2012-07-24) I think guile it's better for language embedding. Anyway if you prefer lisp (to use an asdf package for example) maybe it's better sbcl with ffi. Chicken scheme it's also nice and very portable.

ECL last version: 13.5.1 http://sourceforge.net/projects/ecls/files/ecls/13.5/

MKCL, fork of ECL Last version MKCL 1.1.9: 2014/07/04 http://common-lisp.net/project/mkcl/

Re: Calling Lisp from C Using ECL

#5
post #3

- Guile last version: 2.0.11 (2014-03-20) - Ecl last version: 12.7.1 (2012-07-24) I think guile it's better for language embedding. Anyway if you prefer lisp (to use an asdf package for example) maybe it's better sbcl with ffi. Chicken scheme it's also nice and very portable.

> Anyway if you prefer lisp (to use an asdf package for example) maybe it's better sbcl with ffi.

You can't easily embed SBCL inside a C program, can you?

Gambit and Bigloo are also full-featured Scheme variants that compile to C and are therefore easy to embed in a C program.