Readit News logoReadit News
rustyhancock commented on Tiny C Compiler   bellard.org/tcc/... · Posted by u/guerrilla
rustyhancock · 14 hours ago
What a blast from the past TCC!

Sad but not surprised to see it's no longer maintained (8 years ago!).

Even in the era of terabyte NVMe drives my eyes water when I install MSVC (and that's usually just for the linker!)

rustyhancock commented on I write games in C (yes, C) (2016)   jonathanwhiting.com/writi... · Posted by u/valyala
levodelellis · 15 hours ago
I measured once and to my surprise templates aren't (directly) the reason for long compile times. It's function bodies in headers, and obviously templates are in headers and they call other templated functions/classes which explodes code generation and time. But if it's only a few lines and doesn't call other templated functions it's likely fine. I wrote about it here https://bolinlang.com/wheres-my-compile-time

After writing that, I wrote my own standard library (it has data structs like vector, hashmap and sets; slices, strings, rng, print, some io functions, and more) which uses a lot of templates, and it compiles in <200ms on both clang and gcc. Many standard library headers take much longer to compile than that. It's not a terrible idea to have your own standard lib if you need quick compile times.

rustyhancock · 14 hours ago
Another option can be if you have a core set of headers your project will use (and is stable) just precompiling them.
rustyhancock commented on Speed up responses with fast mode   code.claude.com/docs/en/f... · Posted by u/surprisetalk
rustyhancock · 15 hours ago
At this point why don't we just CNAME HN to the Claude marketing blog?
rustyhancock commented on Show HN: A password system with no database, no sync, and nothing to breach   bastion-enclave.vercel.ap... · Posted by u/KevinChasse
KevinChasse · a day ago
Rotation is explicit and deterministic via the version parameter. Old passwords can be regenerated for rollback; new ones don’t require storage.
rustyhancock · a day ago
But you have to remember a version parameter per password??
rustyhancock commented on Learning from context is harder than we thought   hy.tencent.com/research/1... · Posted by u/limoce
rustyhancock · a day ago
It's a very interest benchmark. Much more impressive than needle in haystack benches or just tuneable benches.

I wonder if it's somewhat incompatible with some domains.

I.e. perhaps coding models need to rigidly stick to what they know and resist bad ideas in their contexts - I don't want my mistakes to be replicated by the model.

Still I agree with the premise that learning in session is what I want from a model.

Perhaps once models mature they will diverge even more than just having sophistication and coding or not. But creative, coding, rule based etc models

rustyhancock commented on Show HN: A password system with no database, no sync, and nothing to breach   bastion-enclave.vercel.ap... · Posted by u/KevinChasse
rustyhancock · a day ago
I've always wondered if it's stateless how do I rotate a password? Either due to leaking or just periodically.

It seems particularly important since this doesn't defend against compromised local environment.

rustyhancock commented on Show HN: If you lose your memory, how to regain access to your computer?   eljojo.github.io/rememory... · Posted by u/eljojo
0cf8612b2e1e · 2 days ago
A real innovation from the Bitcoin world! There are several physical password store systems that they have suggested for this kind of use case. The simplest is basically using a nail to punch out a password onto a piece of sheet metal.
rustyhancock · 2 days ago
Additionally hardware wallets which can use a seed to generate huge variety of keys.

Including AGE keys (so you can encrypt arbitrary data), SSH keys, FIDO2 and passkeys.

Additionally you might want to store a hardware wallet in a deposit box instead of the seed (if you trust the security model).

rustyhancock commented on How to effectively write quality code with AI   heidenstedt.org/posts/202... · Posted by u/i5heu
bwestergard · 2 days ago
Do you think Rust will end up getting a boost from LLM adoption?
rustyhancock · 2 days ago
It definitely has for me! I just replied to the parent explaining why.

Tl;Dr I don't mind reading rust I hate writing it and the compiler meets me in the middle.

rustyhancock commented on How to effectively write quality code with AI   heidenstedt.org/posts/202... · Posted by u/i5heu
blmarket · 2 days ago
Some pattern I found from my hobby project.

1. Keep things small and review everything AI written, or 2. Keep things bloated and let AI do whatever it wants within the designated interface.

Initially I drew this line for API service / UI components, but it later expanded to other domains. e.g. For my hobby rust project I try to keep "trait"s to be single responsible, never overlap, easy to understand etc etc. but I never look at AI generated "impl"s as long as it passes some sensible tests and conforming the traits.

rustyhancock · 2 days ago
I'm finding Rust is perfect for me with LLMs.

I find rust generally easier to reason about, but can't stand writing it.

The compiler works well with LLMs plenty of good tooling and LSPs.

If I'm happy with the shape of the code and I usually write the function signatures/ Module APIs. And the compiler is happy with it compiling. Usually the errors if any are logical ones I should catch in reviews.

So I focus on function, compiler focuses on correctness and LLM just does the actual writing.

Deleted Comment

u/rustyhancock

KarmaCake day89January 21, 2026View Original