3 ms·
If Go can't load code at runtime, how do you plan to add a "real" lisp REPL?
by Scarbutt 7y ago
If Go can't load code at runtime, how do you plan to add a "real" lisp REPL?
- codr7 7y agoIt can using plugins from what I've seen. I'm not aiming for a regular Lisp though, g-fu is designed to be embedded in and complement Go first hand.
- irq-1 7y agoFYI, plugins in Go only work on linux and macos. Windows has the option to load dlls dynamically, but it is a different mechanism. If I remember right the Go devs were not planning on making plugins work on other platforms because of having to make the PE format work(?)
- codr7 7y agoYeah, so I heard. I have yet to try plugins myself, but I've implemented the same mechanism using dlopen in C. I'm almost hoping that big G is forced by greed to include Windows. Otherwise some kind of shim on top of DLL-loading might be an option.