|
|
|
|
|
by b0rsuk
3137 days ago
|
|
> Rust is a language that, because it has no runtime, can be used to integrate with any runtime; you can write a native extension in Rust that is called by a program node.js, or by a python program, or by a program in ruby, lua etc. and, however, you can script a program in Rust using these languages. — “Elias Gabriel Amaral da Silva” Can someone explain why is "having a runtime" problematic for writing extensions and calling them from Python ? From what I gather Go does have a runtime, so implicitly it should be suboptimal for calling from Python. Yet since 2015 (Go 1.5) can be called directly from Python. I'm a Python programmer looking to expand my tool belt. I'm wondering of relative pros and cons of Rust and Go. I have only written small toy programs in C and other compiled languages. Is Go better suited to completely rewriting software rather than using it for extensions ? Why ? I would appreciate a benchmark with a Go extension, too. |
|
EDIT: maybe indeed someone more knowledgeable will explain it or point to good condensed reads.