by d_philla · 3y ago · 0 comments
You can absolutely take a library from one language and run it in another. In a sense, you could kind of see this ability as drastically reducing the need for rewriting sdks, middlewares, etc. across languages, as you could just reuse code from one language across many others. We played around with some fun ideas here, like taking a Rust regex library and using it in a Golang program via a scale function plugin (compiled to Wasm), to the effect of the performance being ~4x faster than native code that uses Go's regex library[2].
[1] https://github.com/loopholelabs/scale
[2] https://twitter.com/confusedqubit/status/1628409282462093312
No comments yet.