Bret's Avatar

Bret

@brethatin

14
Followers
55
Following
27
Posts
22.10.2024
Joined
Posts Following

Latest posts by Bret @brethatin

Your job is to deliver code you have proven to work In all of the debates about the value of AI-assistance in software development there’s one depressing anecdote that I keep on seeing: the junior engineer, empowered by some class of …

I see a lot of complaints about untested AI slop in pull requests. Submitting those is a dereliction of duty as a software engineer: Your job is to deliver code you have proven to work simonwillison.net/2025/Dec/18/...

18.12.2025 14:57 👍 203 🔁 51 💬 9 📌 5

State as in application state? Or register/stack state?

18.12.2025 18:24 👍 3 🔁 0 💬 2 📌 0

I wish to have the same patience as the ocaml maintainer here. I think I would have lost my shit immediately.

30.11.2025 00:21 👍 1 🔁 0 💬 0 📌 0

Its sad how much ingrained this kind of stuff is in SF/US culture. Having a bit of the “hustle” thing is great. But working yourself to death is never the right thing.

29.11.2025 09:27 👍 3 🔁 0 💬 0 📌 0

This is great!Is the PL documented somewhere? Would love to read more about it.

27.11.2025 07:03 👍 0 🔁 0 💬 1 📌 0

Here's a silly little Haskell chestnut! To start, what's the type of `head [map, map]`?

It's `(a -> b) -> [a] -> [b]`, same as regular `map`.

Now, what's the type of `head [map, filter]`? Answer in the reply skeet!

29.05.2025 21:12 👍 25 🔁 3 💬 2 📌 0

Honestly you are correct. But I think it will change for the better here and for the worst there.

I have been following alot of AI folks here.
Most of them do post regularly, some of them dont unfortunately.
Probably due to the discourse that you got yourself into.

30.05.2025 06:40 👍 1 🔁 0 💬 0 📌 0

And using a LLM to explain bits and pieces that are a bit too dense for me to understand.

30.05.2025 06:32 👍 1 🔁 0 💬 0 📌 0
Post image

There is such a good alpha in using a debugger. I have been reading Tinygrad and it has helped my understanding alot when I can jump to a point and see the inputs and outputs. Stack info help you to infer the code flow, watchers reinforces the state machine that you have inside your brain.

30.05.2025 06:29 👍 1 🔁 0 💬 0 📌 1

What’s your bizarre futurist scenarios that just happen to justify your profoundly sociopathic behavior in the present?

30.05.2025 06:13 👍 3 🔁 0 💬 0 📌 0
Post image

LLVM is the greatest human monument ever built..and simultaneously might be least written about.

02.05.2025 16:43 👍 0 🔁 0 💬 0 📌 0

Cool

29.04.2025 07:17 👍 0 🔁 0 💬 0 📌 0

Yes and no. I used FixedBufferAllocator to bootstrap most of the features and then implemented and switched to better one afterwards.

29.04.2025 07:16 👍 1 🔁 0 💬 0 📌 0

Interesting but idk what the use case might be for this. I tend to use comptime defined arenas that grows by committing new memory to PMM, but that is a single allocator, not two allocators.

29.04.2025 06:52 👍 0 🔁 0 💬 1 📌 0

You can use majority of the zig std lib, its just that you cannot use modules that invoke sys calls, which makes sense since there is no system to call to. I have written a bare metal OS using stdlib features, like ArrayList, MultiArrayList, HashMap etc.

29.04.2025 06:49 👍 1 🔁 0 💬 1 📌 0
On Build Reproducibility

ayusarm.com/posts/onbuil...

23.03.2025 19:01 👍 0 🔁 0 💬 0 📌 0
Post image

I have started a blog. I intend to use the blog to publish a series of articles on <insert-my-current-arcs>. My first article is on build reproducibility: my woes building a small kernel.

23.03.2025 19:01 👍 1 🔁 0 💬 1 📌 0

Unrelated to this but I wonder if you have tried nix before? And what do you think of it?

13.02.2025 21:47 👍 1 🔁 0 💬 1 📌 0

Yeah but why would you wanna do that? Thats my question

08.02.2025 12:43 👍 0 🔁 0 💬 1 📌 0
include_str in core - Rust Includes a UTF-8 encoded file as a string.

doc.rust-lang.org/stable/core/...

08.02.2025 12:41 👍 0 🔁 0 💬 1 📌 0

My point was why make it a crate when it is already available as a compiler builtin.

08.02.2025 06:55 👍 0 🔁 0 💬 1 📌 0

Nice! Congrats

07.02.2025 10:25 👍 1 🔁 0 💬 0 📌 0

They look like bats

07.02.2025 10:25 👍 0 🔁 0 💬 0 📌 0

but why would one use this

07.02.2025 08:33 👍 0 🔁 0 💬 1 📌 0

Stripe?

06.02.2025 15:01 👍 0 🔁 0 💬 0 📌 0

C is pretty easy tho

06.02.2025 11:22 👍 1 🔁 0 💬 1 📌 0

I mean i wouldn’t go far as to saying it is a requirement tho

31.01.2025 22:30 👍 0 🔁 0 💬 1 📌 0

They will remove it next iteration

21.01.2025 18:40 👍 0 🔁 0 💬 0 📌 0

hello back

22.10.2024 14:20 👍 1 🔁 0 💬 0 📌 0