Earlier quoted context omitted.
It would actually be such an amazing language if it wasn’t so verbose. There are so many places where more concise syntax wouldn’t even hurt safety and they forgo it anyways. But here we are, where macros are required for a hello world.
> There are so many places where more concise syntax wouldn’t even hurt safety and they forgo it anyways. Can you give some examples of this? If there are ways we could simplify the language without hurting existing use cases, we should consider doing so.
Thoughts on what a next Rust compiler would do
141–147 of 147 posts
Re: Thoughts on what a next Rust compiler would do
#142Earlier quoted context omitted.
You can only add so many constraints to a problem until it becomes unsolvable. It's like saying "I would like to have a non-volatile storage device that is as long-lasting as microfilm, as fast as an SSD and as cheap as a HDD." At some point, you have to renege on at least one of your constraints.
Fair point, but I don't think my constraints are _that_ extreme. I think it's doable, but we'll never know unless someone seriously attempts it.
Re: Thoughts on what a next Rust compiler would do
#143How much faster can the compiler be? This is the top issue with rust IMHO - compile times are real bad.
For someone who hasn’t written any larger rust programs. Is the compile time worse than c++?
Re: Thoughts on what a next Rust compiler would do
#144Earlier quoted context omitted.
> you don’t need systems level speed on a backend API. I do, actually. > but memory vulnerabilities are found in cargo packages because of unsafe code. Forbid unsafe in your config and you're good.
Correct me if I am around, but Forbid unsafe does not include dependencies, which can and do have unsafe rust.
Re: Thoughts on what a next Rust compiler would do
#145Re: Thoughts on what a next Rust compiler would do
#146Earlier quoted context omitted.
In fact, that's exactly why cargo's default for dev builds is -O0: https://doc.rust-lang.org/book/ch14-01-release-profiles.html...
The Rust dev builds are very often (1) slower to build than the equivalent Go program, (2) slower to run than the equivalent Go program. Rust programs really need the `--release` flag to shine—and in some cases, the dev builds of a program cannot be meaningfully used, even for local testing, since they're so slow.
It could definitely be better, sure.
Re: Thoughts on what a next Rust compiler would do
#147Earlier quoted context omitted.
The borrow checker. The syntax. It isn't a good fit for my needs. It'd be like using a forklift to move a few books. I'm not generally a fan of strong explicit typing/high ceremony in general.
> strong explicit typing/high ceremony If you think strong typing is "ceremony" then you probably spend most of your time writing (and documenting) code and not reading, refactoring, or collaborating on it. The time people spend writing unnecessary, buggy unit tests (that static analysis can do in better languages) is far greater than the time to just use the type system. Most languages don't even force you to be exp…
Absolutely. Thank you for speaking truth.