Re:Making Games in Lisp with Hypergiant and Chicken Scheme
by jacobush on Wednesday December 12, 2018 @05:33AM
(#18662736)
If you want a FFI that's arguably even nicer, look at PicoLisps:
http://rosettacode.org/wiki/Call_a_function_in_a_shared_libr...
(setq Display (native "/usr/lib/libX11.so.6" "XOpenDisplay" 'N ":0.0"))
Re:Making Games in Lisp with Hypergiant and Chicken Scheme
by srean on Wednesday December 12, 2018 @06:05AM
(#18662875)
Just in case my comment came out as "why are you working on Snigl ?" ... I was thinking aloud on what are some of the other languages that you might like. Snigl sounds pretty cool and fun.
I used to do that in Common Lisp, which has the only FFI I've come across that's even nicer than Python's. But it's backwards; once you're in a high level language, it's inconvenient and expensive to reach down.
It makes a lot more sense to me to drive the whole process from C; not only do you have direct access to C; you also get to control the embedded world from the outside, which is about as meta as it gets.