Wow, I haven't heard much about Guile since I was first working through SICP a few years ago. I remember thinking the C API wasn't so nice compared to that of Lua, and depended on massive amounts of global state.
I'm glad that Guile development is still proceeding. It was quite a good Scheme implementation, and despite not being as good as Lua from an embedding perspective, it was still far better than something like Tcl.
I chose Guile over Lua precisely because the C API was much nicer. With Lua you have to do all this stack manipulation to deal with function arguments whereas in Guile there's a much more straightforward API.
Yeah and stack manipulation of Lua_Stack is a bit of a mind-bender at first offsets-wise. Seems very "wrappable" though I worry that not exposing folks directly to the layer means debugging things later becomes a bit ugly.
I do love that Lua speed and the sandboxing though!
3
u/[deleted] Mar 16 '17
Wow, I haven't heard much about Guile since I was first working through SICP a few years ago. I remember thinking the C API wasn't so nice compared to that of Lua, and depended on massive amounts of global state.
I'm glad that Guile development is still proceeding. It was quite a good Scheme implementation, and despite not being as good as Lua from an embedding perspective, it was still far better than something like Tcl.