3 ms·
Curious what it would take (if at all possible?) to load such a .so from C. Because that would open the door for writing Go libs for all your favorite interpret
by gtrubetskoy 10y ago
Curious what it would take (if at all possible?) to load such a .so from C. Because that would open the door for writing Go libs for all your favorite interpreted languages, web servers, etc.
- fjl 10y agoYou can already create shared libraries that expose a C API using -buildmode=shared.
- deleted 10y ago[deleted]
- dvirsky 10y agoThat's already possible, I've written an API that encapsulates Go libraries as Redis modules.
- Goopplesoft 10y agoLink?
- dvirsky 10y agoIt's a WIP and I haven't had the time to complete it, but here it is. You can load modules, handle redis commands and return responses, but you can't access redis itself yet. https://github.com/RedisLabs/rgm/blob/master/example/module.go https://github.com/RedisLabs/rgm/blob/master/example/module....
- robbles 10y agohere's a pretty cool example: https://blog.heroku.com/see_python_see_python_go_go_python_go https://blog.heroku.com/see_python_see_python_go_go_python_g...