Email or username:

Password:

Forgot your password?
9 posts total
Mara

🦀🪟 Really exciting to see that Microsoft is not only shipping Rust in the kernel, but also considers their use of Rust a major security feature worthy of being one of the highlights in their update announcement. ✨

#rustlang #windows11

Screenshot of the Security section of "Inside this update" on Microsoft Support.

The relevant part is marked in pink: "Rust in the Windows kernel: a robust programming language designed to enhance system security and performance."
Psyhackological

@Mara Windows announcement in MacOS styled window that I'm seeing on my custom Android ROM while using Linux. What a time to be using a hardware...

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. 👸👗👩‍💻

AITA for being honest with my daughter regarding her coding ability.

I (36M) am a web developer for many years now and have a lot of experience.

About a year ago my daughter (9F) suddenly decided she wanted to learn coding. She asked me to teach her. I declined and explained that it is complex and I don't have the time and would burn out from doing that after work as it is tough but that she was free to learn on her own. We have a white list of sites she can access on her laptop so we were not afraid of her searching the web. She did teach herself some C++ which is not a language | have used in years and is a bit outdated and not the simplest to pick up.

It's been a year and she calls herself "princess programmer" and it is a little cringy and she likes to wear a nice dress or skirt while working on some simple games she makes.

Recently she overheard one of my work meetings and learned what code reviews are and asked me to do one on her newest game while claiming that "princess programmer" wrote it very well and expects it to be very good.

I noticed many issues like bad variable naming conventions, code duplication, using if condition,return instead of just returning the condition.
I told her the quality sucked compared to anything that could be production code and that it would be easier to rewrite than fix it. I told her if she wanted to learn more she could rewrite it with my advice and that programming is serious and not a game and she should stop with the outfits and princess programmer stuff and maybe try an easier language than C++.

She cried and threw a tantrum and is upset at me and says I was too mean. And my wife is now also upset at me and says | should have lied and said her work was good and told her how to make it better. My wife did do coding in college but she doesn't do much of it in her job these days.

AITA here?

EDIT: Ok fine, I get it I am TA. I'll apologize and make it up to her and focus more on the parts I was impressed about. Her game was decently complex and everything did worked and the program did not crash and she seemed to have understood pointers well, I can focus on that and tell her she can be princess programmer.
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.

All code in this book is written for and tested using Rust 1.66.0, which was released on December 15, 2022. Earlier versions do not include all features used in this book.
Revision History for the First Edition 2022-12-14:  First Release
Go Up