Email or username:

Password:

Forgot your password?
7 posts total
Mara

πŸ¦€ I'm really excited about today's #rustlang release! πŸ₯³

- offset_of!
- c"" string literals!
- stripping release binaries by default!
- IP/socket types available in no_std!
- File::create_new (won't overwrite existing files)!
- more array and slice methods (each_ref, chunk methods)!
- Mutex::clear_poison!

blog.rust-lang.org/2024/03/21/

πŸ¦€ I'm really excited about today's #rustlang release! πŸ₯³

- offset_of!
- c"" string literals!
- stripping release binaries by default!
- IP/socket types available in no_std!
- File::create_new (won't overwrite existing files)!
- more array and slice methods (each_ref, chunk methods)!
- Mutex::clear_poison!

Show previous comments
kleines FilmrΓΆllchen

@Mara it's funny how they say "relatively minor release" and there's so much cool stuff in it regardless, especially the slicing and c string literals

Mara

πŸ¦€ New #rustlang blog post! "Behind the Scenes of Rust String Formatting: format_args!()"

A dive into the dirty details behind format!(), println!() and similar macros, and an exploration of ideas for future improvement.

blog.m-ou.se/format-args/

Mara

πŸ¦€ New #rustlang blog post! Learn about temporary lifetimes, about something called "temporary lifetime extension", and my idea for a new language feature called "super let".

blog.m-ou.se/super-let/

Show previous comments
Drew 🐘

@Mara I like the idea a lot. I ran into these quite a bit while learning rust. Thanks to this blog post I have a better appreciation for why it was so confusing at the time. Now that I know the rules I doubt I would opt into super-let very often but the ability of the compiler to suggest using this would build some educational content for how the borrow checker sees things into the tooling, which I'm almost always in favor of.

Overloading `super` feels needless to me though. `ext(ended) let`?

Tristam

@Mara I find it kind of weird that the extended lifetime annotation (i.e. `super`) ends up on the let binding, and not on the temporary whose lifetime will be extended

Gankra

@Mara hey listen we already have a heavily abused contextful keyword

"for let" 2024

Mara

"programming is serious and not a game [..] stop with the outfits and princess programmer stuff"

I think we should all start writing software and giving talks while wearing princess dresses. πŸ‘ΈπŸ‘—πŸ‘©β€πŸ’»

Show previous comments
Alain Dellepiane :eit: :pm:

@Mara

Credit where it's due, he did recognize being TA. That must be the first happy-ending AITA post I ever saw πŸ˜„

Mara

Fun fact: the most recent CVE in the Rust standard library (toctou in remove_dir_all) also applies to C++ standard library implementations. But in C++ it's just considered undefined behaviour and your own fault if any other process touches the file system, so it's not considered an issue.

fasterthanlime 🌌

@Mara the eternal tragedy of Rust security advisories, which put the bar so much higher πŸ₯²

Mara

πŸ¦€πŸ“• Rust Atomics and Locks is now available as ebook! πŸŽ‰

Pre-ordered printed copies should start shipping in a few weeks. βŒ›οΈ

#rustlang

marabos.nl/atomics/

Mara

I'm very pleased I got the timing just right to include this very subtle joke about out-of-order execution and missing happens-before relationships.

Go Up