282 karma · joined Jun 8, 2025 (1y ago) · 158 submissions
comment 5mo ago · link · parent
For reference, soccer matches have traditionally been 45 min half, 15 min commercials, 45 min second half.
comment 5mo ago · link · parent
There are many more things to avoid than just iostream. HFT university has a good recap: https://hftuniversity.com/post/the-c-standard-library-has-be...
The point on exceptions I think is also misleading. Compilers typically make throwing an exception the expensive part, and the happy path inexpensive (not more expensive than a branch checking for errors, which should be the baseline for comparison, not an implementation with zero error checking.) So to say that they are "expensive" doesn't really make a useful argument.
And there are more things that could be done in this camp, like proposing a set of compiler flags, and a linter to enforce the subset you are subscribing to. Unfortunately the post offers none of that.
comment 5mo ago · link · parent
comment 5mo ago · link · parent
I do personally believe the latter part. I did not mean to suggest the before/after experience was going to look anything like your current one.
comment 5mo ago · link · parent
That being said, you can't just assume that existence is bounded by your living memories. You might as well have been everything instead of nothing prior to being spawned and you just don't remember it.
comment 5mo ago · link · parent
Edit: I guess one advantage is that, if we later treat the handle like a pointer, NaN math gets you NaN again, whereas the uint64 math might get you an invalid address, or you'd need extra logic to check that the uint64 is not a valid handle?
comment 5mo ago · link · parent
Actually, that's in chapter 12; 11 is the standard library. Maybe the LLM got confused because the chapters are 0-indexed.
I was curious about that topic but it seems over my head. I don't think it works outside of mathematics? In programming, one can have two objects that are identical in both structure and value but have different identities. It's why lisp has eq, eql, equal, etc. How'd you get around that other than adding an identity property?
Also:
> A handle, what your variables actually hold for strings, sections, lists, trees, is that slot index, carried as an f64
Why does the handle need floating point?
comment 5mo ago · link · parent
More details: https://rocm.docs.amd.com/en/docs-7.2.0/how-to/system-optimi...
25.
The C++ Documentary Won't Show You a Number. I Will(hftuniversity.com ↗)
7 points · by canyp · 5mo ago · 1 comment
comment 5mo ago · link · parent
The workflow that works for me is: I do the thinking, the writing, then let the AI review it. I am still doing all of the creative work and thinking. The AI keeps me honest and its code reviews are very helpful. The loop becomes competitive and makes me pay more attention to detail; I try to nail things on the first attempt. This gives me a sense of accomplishment and improvement.
Whether this workflow has its days counted, I don't know. But I also don't care. If/when software development as we know it truly stops being a thing, then I'll sadly just have to move on and work in another field. I am not doing vibe coding or programming in natural language. Fuck that.
But I have also noticed that, as much as the AI can process things faster than I can (I also use it to help me navigate the existing code base, and that is also very helpful), it cannot answer the question of whether we should do something, or whether X is more desirable than Y, etc. Maybe for some people, thinking about those things and letting the AI do the rest is enough. For me, personally, I like to navigate all levels of the development.
"AI told me" -- yes, absolutely insufferable dudes. I just don't even bother stating a reply.
comment 5mo ago · link · parent