3 ms·
It's just that the Python ecosystem is so much bigger, there are much more productive libraries for dealing with things that are not performance-critical. With
by toyg 8y ago
It's just that the Python ecosystem is so much bigger, there are much more productive libraries for dealing with things that are not performance-critical. With python you get stuff like QT, nice configuration parsing (rust has one lib and pretty immature too) and so on, available with zero effort. Python is now so huge that only a handful of other communities has anything comparable (Java, PHP, JS and maybe Perl, basically; I would add C# but there you usually have to pay for stuff).
- twic 8y agoOne approach to this is to write a core program in Rust, and support it with a bunch of scripts in Python. For example, i have a program that accepts data over the network, filters it according to some rules downloaded from a config server, and sends matching data somewhere. The packet handling, which needs to be fast and reliable, is in Rust; the downloading and parsing of the rules, which can be slow and just needs a sanity check at the end, is in Python.
- lmm 8y agoYeah, availability of libraries is important. That's one thing Scala was quite clever about bootstrapping: there are native-Scala libraries for a lot of things these days, but if you need to do something rarer you can very easily call into a Java library.