Better HN
topnewbestaskshowjobs
Log inSign up

jadsfwasdfsd

4 karma · joined Dec 2, 2025 (11mo ago) · 5 submissions

Submissions

comment 11mo ago · link · parent

> but in C, you pretty much always want the tag

We aren't discussing unions in memory layout, but in type systems. This also clearly indicates you aren't qualified for this discussion.

comment 11mo ago · link · parent

When A and B are disjoint, you don't need the tag unless you for some reason you require that `Maybe<Maybe<T>> != Maybe<T>` holds true and don't like the collapsing semantics of unions where `Maybe<Maybe<T>> == Maybe<T>`

In practice, the cohabitants in Option/Result types are almost always disjoint. So you spend time wrapping/unwrapping Some/Ok/Err for no value add.

comment 11mo ago · link · parent

Great write up!

Cluster autoscaler is honestly garbage. I'd recommend you use Karpenter which is now managed in most cloud providers.

comment 11mo ago · link · parent

Why would you want segmented stacks, cgo FFI overhead, goroutines, & asynchronous preemption for a game engine? Odin is better suited than Go is for this type of software. Almost any programming language would have been a better choice here. This is rage bait I'm sure.

Maybe TinyGo can save their ass here?

comment 11mo ago · link · parent

Agreed. If only let-else let you match the error cases and it could have been useful for the Result type.