14 comments

[ 6.2 ms ] story [ 48.5 ms ] thread
Having fun with this.

Never bought into rust (have studied, have a (mostly AI-generated app in rust).

Wrote some Zig but Odin is even less overhead for me. I first loved Zigs built-in build system but having tried to wrap/use C libraries from both, I must say I prefer Odin. Wrapping some sqlite 3 API’s for my first little Odin program - just because I need so little of the API that it seems easier this way - and speaking to C from Odin is a pleasure.

That is, imho, where Rust fails the most - the second part is the C++’ish approach to memory management (RAII) - that’s not how systems programming or games (I’m told) tend to work.

To each their own. I had some fun with Rust too, but for me, Odin seems the most appealing :)

I've been using Odin for about 6 months now, and to be honest, it's hard to find fault with it. I've used it for STM32 microcontroller firmware, web and desktop applications, and all are performant and compile quickly.

My one issue is (and I'm fully aware it will never happen) I do wish there was some sort of first-class solution to inheritance. I've grown to love procedural programming, but some problems really are just better solved with a more OOP approach. Just because classes exist does not mean they need to be used.

But as far as a language to "get stuff done" with as few tradeoffs as possible, Odin is about as good as I can imagine a language being.

Personally, I have a certain Turbo Pascal feeling while playing around with it, yep I am aware of the influences.
I wonder when we'll see new languages created specifically with LLM's in mind.
The way forward will be more focused on formal specifications kind of approach, and there are already a few attempts at it.
I wonder if this will help them get a wikipedia page. (not sure whether this comment is a joke or serious...)
Kinda wanna know why I should learn this language. Unfortunately there’s no wiki entry (deleted with some controversy abut notability), so it’s hard to get the gist of it.
Promoting here on HN is not usually allowed. This is a paid tutorial for some obscure programming language.
I have no connection with the book author. Also, people post all the time links to paid sources on HN (like books, software or pay for services).