Thanks, I’ve save your comment. I haven’t heard of any of these.
- 0 posts
- 32 comments
- 2 years
- 2 years
It also has real type safety and thread safety.
- 2 years
Here’s some of my personal complaints. I don’t in general know how to fix them.
-
proc_macros need their own crate
-
generics cause problems. Many useful macros can’t handle them. Try using a generic that’s a complex async function, then pass a closure to it.
-
There’s this kind of weird mismatch where sometimes you want an enum wrapping various types, and in others generics. I find my data flows switching back and forth.
-
async in rust is actually really good, but go does it better. I don’t think rust could match go without becoming a different language.
-
Traits are just a big mess. Trait implementations with generics have to be mutually exclusive, but there aren’t any good tools to make them so. The orphaned trait rule is necessary to keep the language sane but is incredibly restricting. Just today I find certain a attribute macros for impls that doesn’t work on trait impls. I guess I have to write wrappers for every trait method.
-
The “new type” pattern. Ugh. Just make something like a type alias that creates a distinct type. This one’s probably easy to fix.
-
Cargo is truly great, but it’s a mystery to me right now how I’m going to get it to work with certain packaging systems.
To me, Rust is a bunch of great pieces that don’t fit together well.
-
- 2 years
Rust. It’s a qualitative improvement over the old ways.
The future won’t belong to Rust itself, but one of its descendants. Rust is too clunky to be the ultimate expression of its best ideas.
- 2 years
Rust crates have the second and third problems.
Rust at least has type annotation.
The type has private fields. There’s no constructor. There’s no implementation of the From trait except on itself. You can’t find a function anywhere that returns the type.
- dudinax@programming.devto
Reddit@lemmy.world•Sometimes this coincidence happens on Reddit and when it does, in that moment, I am euphoric.
2 yearsElon’s always been able to learn on the job.
Maybe AI will boost open source development more than commercial development since open source devs don’t have the privacy concerns.
but why would you want to?
I visited a company that outsourced its IT to India. We were delayed 24 hours because the guy who could whitelist our computer on their network was asleep. It was the middle of the night where he lived.
Me:
jetbrains: This heredoc goes on FOREVER!
Me: I’m going to close it…
jetbrains:
- dudinax@programming.devto
Programmer Humor@programming.dev•traslation: i made that bug 15 years ago and have been waiting for it to matter.
2 yearsIf you work at the same place long enough, you’re forced to remember over and over again.
What’s the meaning of a fractional “Degree of Kevin Bacon”?
Good article, but I’d guess the reality is more like 25-50x as much work as non-technical people assume, and a good interface takes about 5x the work of everything else.
They don’t merely underestimate the non-interface work, they greatly underestimate the interface work as well.
- dudinax@programming.devto
Programming@programming.dev•SSH keys stolen by stream of malicious PyPI and npm packages
3 yearsWhat’s a stream of packages?
- dudinax@programming.devto
Programmer Humor@programming.dev•Programmer tries to explain binary search to the police
3 yearsYeah, there’s no reason it should take an hour no matter how long the tape is.
- dudinax@programming.devto
World News@beehaw.org•Netanyahu declares holy war against Gaza, citing the Bible
3 yearsAnd was meant to be taken literally.
- 3 years
I like php. I can get stuff done in it.
Pretty broad statement from a charcoal-brain.




This relatively new. Only “recently” (last couple decades) was it easy to get type info for a variable where it was used.
The other problem is that if your type is merely an alias, in many languages you can still do
interval_minute = interval_secondwithout the compiler catching it.