Brad
doublefree.dev
Brad
@doublefree.dev
Reposted by Brad
LLM-explanation is now live in @compiler-explorer.com - An example: compiler-explorer.com/z/rvvx7MxKq

* LLMs make mistakes and are overconfident
* We'll never force LLMs or AI on you, it's opt in (like clang-tidy, PVS Studio or other tools)
* It is *beta* quality

Initial results are promising(1/3)
Compiler Explorer - C++ (x86-64 clang 21.1.0)
// setup constexpr auto valid_chars = "0123456789abcdef"; bool is_valid_id(std::string_view maybe_id) { if (maybe_id.size() != 16) { return false; } if (maybe_id.find_first_not_of(valid_ch...
explain.compiler-explorer.com
September 21, 2025 at 10:54 PM
Reposted by Brad
it has been seven^W zero days since the last npm supply-chain attack
Honestly serious: JUST DON'T UPDATE PACKAGES RIGHT NOW.

It is unclear to me yet, but this is looking pretty wide spread. Better be safe than sorry, just go touch some grass.
Do not update to @ctrl/[email protected]. It has malware that is currently live on npm.
September 16, 2025 at 12:52 AM
Reposted by Brad
The macro expansion feature just got merged in rustdoc! If enabled, you can now expand all macros in source code pages.

PR: github.com/rust-lang/ru...

Enjoy!
Add support for macro expansion in rustdoc source code pages by GuillaumeGomez · Pull Request #137229 · rust-lang/rust
This is what it looks like: You can test it here. In this case, I also enabled the --generate-link-to-definition to show that both options work well together. Note: There is a bug currently in fi...
github.com
August 25, 2025 at 9:35 AM
Reposted by Brad
TIL golang is memory-unsafe if you hold it wrong blog.stalkr.net/2015/04/gola...
Golang data races to break memory safety
Go is becoming more and more popular as a programming language and getting more scrutiny from a security point of view. You might remember m...
blog.stalkr.net
July 24, 2025 at 5:17 PM
Reposted by Brad
The Best C++ Library · mcyoung
mcyoung.xyz
July 14, 2025 at 5:35 PM
Reposted by Brad
Crates-io implemented trusted publishing! It allows to publish from GitHub Actions without the need of a crates-io token!
Here's what you need to change in your release-plz workflow to migrate to it.

Learn more at: blog.rust-lang.org/2025/07/11/...
July 11, 2025 at 10:45 AM
Reposted by Brad
Dear AI coding helper, Sometimes a tab is just a tab and not a request to rewrite the line of code.
June 16, 2025 at 5:54 PM
Reposted by Brad
Getting around Rust's trait limitations with type-level first order logic 🔥
June 4, 2025 at 5:53 PM
Reposted by Brad
I am disappointed in the AI discourse steveklabnik.com/writing/i-am...
I am disappointed in the AI discourse
steveklabnik.com
May 28, 2025 at 5:33 PM