Coding in šŸ¦€ | From the motherland with ā‹†āŗā‚Šā… | Tech related account

Joined August 2025
Agents have made it easier to write meaningful tests and validate them with mutation proofs (deliberately breaking a line of code to ensure tests fail). As the tests mod grows, it can be moved into a separate file: #[cfg(test)] mod tests; Used in Rust stdlib and Tokio. #rustlang
1
2
28
Recent Zed binary size reduction uses a * option. [profile.release.package] "*" = { opt-level = 3 } - 238 workspace crates (70% of the code): opt-level = "z" - 19 workspace crates: opt-level = 3 (hot paths) - 0 external deps use "z" crates.io / git : opt-level = 3
Replying to @zeddotdev
Some details: - Set opt-level = "z" for release profile - Override to opt-level = 3 for performance-critical crates - Set codegen-units = 1 for the zed package - On macOS, pass -Wl,-unexported_symbol,__R* to hide Rust-mangled symbols from the export table github.com/zed-industries/ze…
1
1
1
3
400
To override the settings for all dependencies (but not any workspace member), use the "*" package name: # Set the default for dependencies. [profile.dev.package."*"] opt-level = 3 doc.rust-lang.org/cargo/refe…
19
ExeleroDev retweeted
Replying to @charliermarsh
i smell fear
alloy is on it's way. get ready for: - faster compile times, - less memory usage, - more runtime optimisations, - native accelerator support, - and a rust feel to it.
2
1
2
8
889
- Cross platform GUI apps? āœ… GPUI, etc. on top of wgpu - Breaking changes where no code breaks? āœ… via Rust editions - Helpful compiler messages for humans and agents? āœ… - Insanely dedicated ppl working on the lang / ecosystem? āœ… Rust is steadily spreading across the industry
I’ve long been a Rust skeptic, but what’s become undeniable is it’s crossed a criticality threshold in use as a plain ol’ app language in addition to being a ā€œsystems programming language.ā€ Linux kernel code? Check. Web service? Check. Game engine (Bevy)? Check.
1
80
I’m very motivated to prove the people making ā€œjokesā€ about the Rust rewrite introducing security vulnerabilities wrong.
10
12
6
291
43,948
šŸ¦€ TIL: rust-analyzer supports enabling Cargo features per crate in a workspace using crate/feature syntax. Works great in Zed. Example zed/settings.json: #rust #rustlang
1
1
415
ExeleroDev retweeted
Replying to @antirez
The last solid idea from JS is signals (fine-grained UI reactivity), an alternative paradigm to observables. It originated in Knockout.js (2010), was refined by Ryan Carniato in SolidJS, is now a Stage 1 TC39 proposal, & has spread beyond JS, e.g., to Rust Leptos and Dioxus.
1
1,251
ExeleroDev retweeted
LSP code lens has landed. šŸ” Language server actions appear as clickable buttons right in your source code. Turn it on with `"code_lens": "on"` in your settings.
4
3
95
8,211
A month ago, Michael Malis started rewriting PostgreSQL in Rust with AI. PG is 1.3M LOC. At 250k LOC, 1/3 of 50k regression tests passed in 2 weeks; a week later, 450k LOC passed 2/3. The goal wasn't just to find out if AI could pull it off, but also to improve on PG limitations.
1
1
1
5
4,378
- Running 20 agents maxed out a 14-core Mac. - Git worktrees created isolated directories, eating 100GB+ of disk space (fixed via a globally shared target dir). - Compiling the parser took 50% of time until isolated into a crate, leveraging incremental compilation (caching).
1
302
Interestingly, development accelerated as the codebase grew. AI knocked out micro-features once the foundation was laid. Rust’s compiler messages/safety rules and PG's test suite kept agents on track. github.com/malisper/pgrust p1: malisper.me/pgrust-rebuildin… p2: malisper.me/pgrust-update-at…
4
287
It will get worse before it gets better. And it’s not just the borrow checker. Minimizing the use of lifetimes in code, traits bounds (including Send/Sync), borrowing across await points, deadlock prevention, cancellation safety, dyn compatibility (object safety). #rust #rustlang
Day 1 of learning Rust
1
263
Source of the quote: youtube.com/watch?v=7LC8D_D_… Rust4Linux with Danilo Krummrich, corrode podcast, 11 Dec 2025
174
What happens when a singleĀ tokio::sync::broadcastĀ receiver falls behind the sender? šŸ¤” #rust #rustlang 1/8
1
148
tokio::sync::mpscĀ uses Backpressure: The sender suspends (await) when full. šŸ‘‰ PrioritizesĀ reliabilityĀ (No data loss). But it's single-consumer tokio::sync::broadcastĀ uses overwriting: The sender never waits, dropping old data. šŸ‘‰ Prioritizes non-blocking behavior 7/8
1
109
Need more reliable fan-out (broadcasting)? Check out theĀ async-broadcastĀ crate. Unlike Tokio, it defaults toĀ backpressureĀ (overflow = false). 8/8 docs.rs/async-broadcast/late…
90