logoalt Hacker News

boltzmann64 • yesterday at 3:24 PM • 5 replies • view on HN

i love odin.

- manual memory management

- arena and pool allocators

- go style err!=nill style exception handling

- first class support for soa and vectorized simd, linear algebra and swizzling

- sanely typed and namespaces

- explicit unambigious overloading, subroutine context

- first class support for defer statements

- zero friction C ffi

if you haven't heard of odin, you should definitely consider it.


Replies

jazzypants • yesterday at 4:35 PM

> - go style err!=nill style exception handling

Is this not widely considered to be the ugliest part of the language? Why do you prefer having to do this manually?

➕ show 3 replies
christophilus • yesterday at 3:36 PM

LLMs are pretty good at it, too. I recently had Haiku rewrite all of my Quickshell Linux UIs (dux) to Odin + an immediate mode GUI library: launcher, Niri bar, WiFi manager, process manager, lock screen, HUD audio/brightness, etc. Did all but the process manager in a day, while I was spending 99% of my time paying attention to my day job.

Anyway, Odin is my favorite of the new systems languages. Lightweight, ergonomic, decent stdlib. It’s quite good.

➕ show 1 reply
DASD • yesterday at 4:08 PM

What's the decision-making in choosing Odin over something similar like C3 or Zig?

➕ show 3 replies
varispeed • yesterday at 10:03 PM

Why not just use C?

phplovesong • yesterday at 5:42 PM

Did not C3 basically render Odin useless? Its basically C that did not stagnate in the mid 90s.