4 ms·
> language is only as good as its ecosystem this is like my biggest problem with rust, why i still lean towards python for getting things done and started lea
by tayo42 4y ago
> language is only as good as its ecosystem
this is like my biggest problem with rust, why i still lean towards python for getting things done and started learning go
- worldsavior 4y agoRust has a large ecosystem. Cargo, rustup and a big library. Rust stdlib isn't very big deliberately. Rust stdlib aims for a small and more portable standard library. That's why regex isn't in the stdlib.
- mr_00ff00 4y agoI don’t know what projects you are doing where rust vs python are the options.
- theptip 4y agoI think a lot of people would like to use rust for web dev, but IMO it’s not quite there for ORM-backed apps. (Diesel is nowhere near the ergonomicity of Django for example.)
- mr_00ff00 4y agoI’ve said it before and I’ll say it again, although I think it’s an unpopular opinion: Rust introduces unsafe code (at a minimum through crates). The rust community hates that people use C++ when they could use a memory safe language, so why are they introducing memory unsafe to something that a GC works fine? It’s like their opinion of memory safety as a necessity totally flips the second rust is the unsafe one.
- ameliaquining 4y agoAll languages have memory unsafety somewhere in the stack.
- mr_00ff00 4y agoThis just makes no sense to me, then why try to replace C++? After all, all languages are memory unsafe. Rust let’s you write unsafe code, that’s so different than say python.
- rom-antics 4y agoPython lets you write unsafe code. https://wiki.python.org/moin/CrashingPython https://wiki.python.org/moin/CrashingPython Does that mean it's no safer than C++?
- mr_00ff00 4y agoWhat? Those aren’t memory exploitable bugs. And no I am not, you are saying that. I think python is way safer than either, you seem to think because you can crash a python program that means the memory vulnerabilities of rust are justified.
- rom-antics 4y agoCrashes are just security holes that nobody has crafted an exploit for yet.
- tayo42 4y agoYeah with things like are we web yet, rust presents it self as can do anything language. Which sure technically it can, but atm I think it's a only appropriate when you have an army of developers at some money printing company that go and write all your dependencies To answer the above question, like cli tools
- spenczar5 4y agoI have one: scientific software. There's a growing recognition that Python is creaking under the weight of scientific applications that lean on it. It's very difficult to write efficient, maintainable, large-scale software systems with it. An example that comes to mind is data reduction pipelines for the bytes coming out of a major telescope, like that of LSST. I worked on those pipelines, and a lot of the effort was around figuring out how to consistently build the dang thing given the looseness of Python's systems. An equally large amount of the effort was on trying to eke out the performance of Python via Numpy tricks, Numba, etc, which impinged readability and maintainability. In some places, we fall back on a C++ core, but nobody is happy about that, for all the usual reasons. Some of us advocated for Rust... but it was never really plausible, because the interactions with Python numerical and scientific libraries are so immature. People are starting to work on it but it's hard to compete with the decades of work put into C++ and Python as the core of scientific stacks.
- throw_away1525 4y agoJulia seems to be a great potential replacement for Python for scientific software.
- spenczar5 4y agoI totally agree, and it has identical issues. The momentum behind Python and C++ is enormous, so catching up is hard.
- ecshafer 4y agoRust has C libraries which interface easily...