Re:Making Games in Lisp with Hypergiant and Chicken Scheme
by srean on Tuesday December 11, 2018 @02:32PM
(#18658095)
So Guile, Lush, Lua, Tcl would be the other likely candidates. I do use Python but more as a remote control over C.
Re:Making Games in Lisp with Hypergiant and Chicken Scheme
by sifoobar on Tuesday December 11, 2018 @03:50PM
(#18658723)
Yep, more or less. Though if you flip through Snigl's README, there's already plenty in there that these languages will never be able to do.
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.
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've mostly given up on the idea of driving applications from a higher level language, I much prefer having C as a foundation and then embedding a more dynamic language that I have full control over. I like to call it reverse FFI :)