HackerTrans
TopNewTrendsCommentsPastAskShowJobs

CodeBrad

no profile record

Submissions

Go's race detector has a mutex blind spot

doublefree.dev
2 points·by CodeBrad·12 ay önce·0 comments

comments

CodeBrad
·9 ay önce·discuss
This was one of my favorite talks from RustConf this year! The distinction between cancel safety and cancel correctness is really helpful.

Glad to see it converted to a blog post. Talks are great, but blogs are much easier to share and reference.
CodeBrad
·12 ay önce·discuss
> which are optimized to be readable to humans and writable by AI

How might a language optimized for AI look different than a language optimized for humans?
CodeBrad
·12 ay önce·discuss
I may be biased, as I definitely love more than 50% of Rust, but Go also does not protect against logical races, deadlocks, etc.

I have heard positive things about the loom crate[1] for detecting races in general, but I have not used it much myself.

But in general I agree, writing correct (and readable) concurrent and/or parallel programs is hard. No language has "solved" the problem completely.

[1]: https://crates.io/crates/loom
CodeBrad
·12 ay önce·discuss
I think Claude Code also already has the option to provide an API key directly for usage based pricing.

I'm a fan of having both a subscription and a usage based plan available. The subscription is effectively a built in spending limit. If I regularly hit it and need more value, I can switch to an API key for unlimited usage.

The downside is you are potentially paying for something you don't use, but that is the same for all subscription services.