Golang developers should try Odin

18 points by cgrinds


ngrilly

I don't understand the insistence on memory leaks and at the same time no mention of use-after-free and type confusion, the latter being the real challenge with manual memory management.

lilac

useful context from prior discussion of odin on lobsters: https://lobste.rs/s/5rvgim/odin_1_0_announcement#c_httxa2

I will be sticking with go, thanks.

lukasl

I don't see why would a person using Go look at language with thread-based concurrency, manual memory management and very limited ecosystem. The article doesn't really give any good reasons. I'd say you should only do it when doing something low level, where GC and the compiler backend with integrated runtime is causing problems, but if you are writing regular server apps, like most Go devs do, there aren't many advantages of Odin.

trousers

My counter position: go devs should wait for roc, jai, or zig, to hit 1.0... and just keep using go in the meantime.

vforvaline

"If you read pointer after free() or delete(), you will get random value"

This sentence is pretty revealing just how misunderstood undefined behaviour is by the author.

There is no excuse for not being memory safe in 2026. Garbage collectors are absurdly fast. Use Rust if you still can't afford the overhead. But trying to downplay the lack of memory safety is pretty ignorant.