Congrats!
Congrats!
Yup! Also languages in the ML family and others I’m sure.
Nope. In Rust, a semicolon denotes a statement while a lack of semicolon is an expression so you can’t just omit them at will. This does lead to cool things though like if/else blocks being able to produce values if they end in an expression. But the expression type is checked so you’re less likely to make a mistake. You can see an example here: https://doc.rust-lang.org/rust-by-example/flow_control/if_else.html
In JavaScript I never skip semicolons because I’ve seen those subtle bugs.
Yeah, semicolons are ugly anyway and they’d ruin the beautiful expression of your code.
Sounds fun! I assume you’re read the Async Book?
Finally some positivity around async Rust!
I write a lot of embedded C for a living, and can’t wait for the ecosystem to get better so I can switch to Rust. Threading always starts simple. All I need is to spawn a thread and wait for a message on a queue. Then requirements change and I’m waiting on multiple messages from multiple other threads and suddenly I’m writing yet another state machine that async Rust would write for me.
I also wish I had “coloured” functions in my embedded code. Often times it’s not even documented if a function blocks or not, and sometimes the behaviour changes depending on compile time configuration (blocking, or interrupt driven, or DMA, etc.).
Async Rust certainly has it’s complexity too, but at least to my brain it would make a lot of my code much simpler.
I need to find some time to really dig into Embassy one of these days.
Totally!
I hit burnout an now “productivity” is a dirty word. I’ve discovered that it is healthy to take time for yourself, even if it is to literally do nothing.
Programming is both my career and hobby, but I’ve had to adjust my free time to allow my mind to just let go a bit more often.
Came here to say exactly this.
I’d trust the piracy sites more actually. We don’t voluntarily give them our credit card and address.
I think it’s something being worked on. Unfortunately I can’t recall the details offhand.
I agree with literally everything in the video!!!
Though I do have a BangleJS, where apps are written in Javascript but the watch is still pretty awesome.
It really is! I’ve actually held a package. I can’t remember if rice was even an ingredient.
So… this is a joke?
V-G-S