list of articles tagged @prog
A trick for decent speed of dev in Rust: to enable optimizations for dependencies (rebuilt relatively rarerly) in debug builds, with:
♧ 2025-03-08[profile.dev.package.“*”] opt-level = 3
inCargo.toml
(via).
“The difference between undefined behavior and ill-formed C++ programs” (via). See also especially muvlon’s rant in the discussion on lobste.rs.
♧ 2024-08-05“A Guide to Undefined Behavior in C and C++, Part 1” & Part 2 & Part 3 by John Regehr, and “Falsehoods programmers believe about undefined behavior” (via, via).
♧ 2024-06-07“Leaving Rust gamedev after 3 years” (via).
♧ 2024-04-27“Prefer Rust to C/C++ for new code” (via). Also, maybe then “Learn Rust the Dangerous Way”.
♧ 2024-04-25“The Rust compiler isn’t slow; we are” (via). TL;DR: try using
♧ 2024-04-25cargo tree
, cargo-bloat, and “dependencies” stats on lib.rs to replace dependencies with simpler ones; e.g. maybe gumdrop is enough vs. clap for args parsing, and nom vs. lalrpop for parser generator."The RISKS Digest. Forum on Risks to the Public in Computers and Related Systems" (1st issue from 1985, and still going strong).
♧ 2024-01-31
Verify if all tests compile successfully:
♧ 2016-03-24go test -exec echo ./…