1,582 karma · joined June 17, 2022
a guy selling cigarettes on the streets of NYC without a permit would have been choked to death in seconds. (actual thing that happened)
seems like this justice imbalance in the USA is something we can get bipartisan support for changing. lets do it yall.
The real issue here is industry is destroying our planet, and you nitpick the media because you can't handle the real problem. Bike shedding.
If you did ONLY low speed city driving you would do even better!
So yes, our family is eagerly awaiting a 500 mile range ev
1. failing to check for sigils, because nobody uses a sigil when you have sum types. This would have prevented a famous exploit in SUDO a couple years back where someone forgot to check for the special negative value on an input parameter.
2. Eliminating null pointer exceptions or anything similar. You can't forget to check, you can still choose to have this kind of error, but you have to do it explicitly.
Consider something like a function to open and give you back a file handle. In many languages such a function will return a pointer to a file, or null if there is a failure, or perhaps throw an exception if there is a failure. If you neglect to check for null, or forget to handle the exception, you have a problem. With sum types, the natural thing is to return something like a Result type, which is EITHER a file, or an error. And you have to check which it is, to get the File out.
2. Some people look at those rants as toxic, and I understand that, but there is also value in expressing and seeing people's true feelings. Rust does this to people! Can we fix it?
1. Rust is supposed to be harder than Java, you get runtime performance for your efforts. If you don't need that performance, by all means do not use Rust!
2. Rust is not as mature of an ecosystem as Java yet, and so there are going to be pain points compared to stuff that has been around forever.
3. Rust is also new to the poster, while using a new language is fun on toy projects, having to use a new language in production is always frustrating, even when you aren't moving to one that is fundamentally harder
So, yeah I like Rust, but don't really disagree with their views here. Hopefully work is choosing to use Rust for a reason!
Might solve problems for countries that have lost their own manufacturing capacity because shipping products gets way less appealing.