Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Rust has good bindings for PUC Lua, but this looks like it could have several advantages over Rio's runtime. I did a quick search for any Rust bindings to Go libraries but haven't found any yet. I opened an issue in rlua to discuss bindings to golua, even though that would definitely be a separate project, but we have discussed there before other Lua runtimes. If anyone else is interested in using this library in Rust, here are those issues:

https://github.com/kyren/rlua/issues/100

https://github.com/kyren/rlua/issues/39

Edits.. Resources found so far:

https://users.rust-lang.org/t/can-rust-interface-with-go-lib...

https://medium.com/learning-the-go-programming-language/call...

https://github.com/softprops/shiplift (okay, here's a Rust interface to Go)



shiplift uses an API. Looks like calling Go from Rust is never done. I would guess because of the huge performance hit at 3 orders of magnitude worse than C (according to the users.rust-lang link above). Will still be interesting to see how Golua impacts the wider Lua ecosystem.


IIRC, Go's ffi is super slow




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: