InsanityBit

InsanityBit

@insanitybit.bsky.social

25 followers12 following127 posts

Just updated rust deps. Ran `cargo-vet`, got lots of unaudited updates. Spawn an agent for each one with a prompt to review for unsafe or actively malicious dependencies. This took 11 minutes. Perfect? No. But imo a huge win.

I'm considering having an open project where opus becomes a cargo-vet producer that you can opt into trusting, that way we aren't all doing this individually. Plus it could leverage far better tooling (ie: "run in sandbox, eval results") to be more resilient.

I vibe coded a cargo replacement that sandboxes build scripts with wasm, adds a Manifest.toml with cap policies + lockfile so you have to ack changes to dependency sandbox policies, and forces you to ack proc macros (since they can't be sandboxed without rustc help). It pretty much "just works".

View full thread

I vibe coded a cargo replacement that sandboxes build scripts with wasm, adds a Manifest.toml with cap policies + lockfile so you have to ack changes to dependency sandbox policies, and forces you to ack proc macros (since they can't be sandboxed without rustc help). It pretty much "just works".

Out of 633 deps I was using, 478 had build scripts that work in the wasm sandbox with minimal effort. About 50 have proc macros that I'd have to audit (or use cargo-vet) to ensure are safe before I add the exclusion to my policy.

A lot of these supply chain issues could have been solved by package managers using any number of well known, well understood techniques that have been suggested a million times. Instead we're going to get "dependency cooldowns" lol

Does anyone know how DLSS5 works? I don't. Is it just a generic "filter" like from Snapchat or whatever? Or is it more like a tunable feature where devs can target it/ configure it?

I'd never have the patience for this normally, but I've had claude move basically all of my dynamic content into sandboxed iframes with strict CSPs that have to RPC back to the main page to do anything other than render content. Null origins, no networking, etc.

It's such an aggressive move that I'd normally never be willing to pay the price for, but claude makes it trivial since it's just bespoke boilerplate every time I want to do it. XSS in the sandbox? Don't care.

Someone needs to be brave and just start producing JSON parsers that produce/consume JSON with trailing commas. I don't care if everything breaks, enough is enough.

A very silly but insanely significant advantage to maintaining a Rust codebase is how significantly less likely you are to get "hey please patch this completely stupid CVE" requests every day for CVEs that aren't even valid.

Part of this is just that the Rust ecosystem is pretty solid, but the silly part is a lot of it comes down to the Rust ecosystem just not having a ton of people issuing CVEs for it. Regardless, you benefit massively on ops overhead for a rust codebase.

Contrast that to JS, Ruby, Python, etc, and it's not even close. A similarly sized codebase will have so many fewer stupid DoS etc, you'll link to far fewer C/C++ libs, etc. Just a hilarious way to win on a huge amount of dumb work.

If you can go lower, do it. Even if you don't go down to 2^16, it's still beneficial to say "I only use 2^22 of 2^32 values" and now you have 10 bits to play with for all sorts of fun tagging. 10 bits is a lot.

> Additionally, there are other security measures such as GPG signatures, HTTPS transport, and a web of trust among developers that means Git does not rely on SHA-1 alone. Why would you even bring up HTTPS or "web of trust" lol these literally do not apply. This is such a cope.

InsanityBit reposted

It pains me when I hear people say "I thought about submitting a talk to the fwd:cloudsec, but didn't because..." and the reasons are often things I actually want to see presentations on! Some talk ideas I personally want to watch (the other reviewers and I will fight ⚔️):

I don't get why I would bother with this lol gist.github.com/MostAwesomeD... Maybe someone who's in a more "influencer" space might. But "I am tired of hearing the fallacious claim that [...] those same chatbots are able to develop any software whatsoever." is obviously true to me so who cares?

gist.github.comLobsters Vibecoding Challenge (Winter 2025-2026)Lobsters Vibecoding Challenge (Winter 2025-2026). GitHub Gist: instantly share code, notes, and snippets.

I'm also zero percent interested in figuring nix out for this or setting it up. IDK, I'm sure someone will do it or whatever, but this seems so silly. I say that agents are able to "develop any software whatsoever", just call me a liar and be done with it?

I stopped paying attention to the rust subreddit for years. Looking at it lately, it's absolute dogshit. Is this just fallout from so many rust devs moving to other forums/ leaving the community? It's a bad look to have it suck so hard.

InsanityBit reposted

Replying to @taras-grescoe.com

Quick quiz: how many people in S.F. were killed by Waymos this week? How many people in S.F. were killed by human drivers this week? (The answers are zero and two, but no one would know that from the reactions today.)

Github Actions was bad on release and hasn't really improved since then. Moving to depot is 30 seconds of work and will give you 10x performance, radically better UX, and 50% of the cost. I have no idea what bonehead thought that GHA should fuck with pricing right now.

Inability to trivially mock in Rust is a real problem. Similarly, inability to assert things like "a method was called N times" etc. This would be invaluable for formally verifying some aspects of my algorithms (ie: optimizations that ensure O(N) etc) via properties of tests.

In general the Rust community says that mocking is just bad, that these test patterns are bad, etc. I think it's just totally wrong. I've caught bugs in other languages because I could trivially mock.

Ability to verify things like "N comparisons were made during this sort" matters and having to write generic implementations needlessly so I can swap out "test" versions is just mocking but more annoying.