Did you know that in Rust, 'let _ = ...' and 'let _unused = ...' are NOT the same thing?
I didn't until today!
After some heavy rework, also Sane C++ Http library is allocation free, by adopting Async Streams everywhere.
Creating an async file web server uses only 6 buffers.
Not a single byte will be allocated outside of them.
SC::Http library is still draft, but it's steadily improving!
#cpp #programming #cplusplus
Patterns for Defensive Programming in Rust
Link: https://corrode.dev/blog/defensive-programming/
Discussion: https://news.ycombinator.com/item?id=46163609

I have a hobby. Whenever I see the comment // this should never happen in code, I try to find out the exact conditions under which it could happen. And in 90% of cases, I find a way to do just that. More often than not…
Thanks to all of you, we have over 1,000 stars 🌠 on @Codeberg, a mostly volunteer-driven code forge that shares our commitment to community & Free/Libre/Open Source Software. Their efforts make the way we develop CoMaps possible.
Did you know: Codeberg is run by a non-profit association that sustains itself via memberships & donations. If that sounds as cool to you as it does to us: Consider donating or becoming a member! https://join.codeberg.org/
Tomorrow’s the day! 🦀
#rustconf kicks off Sept 2 with optional workshops + badge pickup, then we roll into three packed days of Rust.
See you soon, Rustaceans! And in the meantime, take a look at our exciting schedule:
https://rustconf.com/schedule
Zedless: Zed fork focused on privacy and being local-first
Link: https://github.com/zedless-editor/zed
Discussion: https://news.ycombinator.com/item?id=44964916
Fight Chat Control. Protect digital privacy in the EU
The "Chat Control" proposal would mandate scanning of all private digital communications, including encrypted messages and photos. This threatens fundamental privacy rights and digital security for all EU citizens