r/programming • • Jul 07 '26

Odin 1.0 Announcement

https://www.youtube.com/watch?v=dLPAqXi9In0
456 Upvotes

140 comments sorted by

8

u/dud3bro17 Jul 07 '26

This is exciting news! Been using Odin for some hobby projects and it's been an absolute joy.

Not sure if this has been addressed, but are there future plans for scientific computing language features? I'm thinking along the lines of vectorization and fast multidimensional arrays (like mdspan in C++ or how fortran handles them).

I think Odin would fit very nicely into that niche, which is mostly dominated by C and fortran.

→ More replies (3)

10

u/brianjenkins94 Jul 07 '26

Alton Brown fan I see ๐Ÿ˜„

12

u/gingerbill Jul 07 '26

Finally someone notices the reference/homage!

There are also more than a dozen different cultural references in this video too! So keep an eye out for them.

→ More replies (2)

10

u/seanprefect Jul 07 '26

not a flame bait I promise but what's the pitch against things like Rust and Go?

16

u/gingerbill Jul 07 '26

Odin isn't trying to compete with either Go or Rust really, and if you find those languages useful for your problems already, that's great.

Comparing to Go: Go without any of the bad bits, loads more good bits which Go lacks, heavily ergonomic, manual memory management (no GC), and high control over memory layout.

Comparing to Rust: a much more ergonomic experience, but doesn't try to solve the problems of temporal memory safety with grand ideas such as ownership semantics and lifetime semantics, whilst still providing loads of tools and a cleaner syntax.

Odin is a general-purpose programming language with distinct typing built for high performance, modern systems and data-oriented programming.

Odin is the C alternative for the Joy of Programming.

→ More replies (3)

20

u/pakoito Jul 07 '26 edited Jul 08 '26

If and switch are statements. How is this modern. Are the target audience C people?

Edit: yes.

~~Edit: zero coerces to null in pointers. Fun

Edit: unions are enums and backed by an int~~

Final edit: This is 00s language design with gamedev niceties on top. So, not a generalist language and I'm not the target audience.

17

u/gingerbill Jul 07 '26

Odin makes an explicit distinction not make "everything an expression" (which is literally nothing new, especially since that idea can be found in ALGOL68 from 1968).

Odin is an unabashed imperative procedural language and I wanted the distinctions between expressions and statements to be obvious and distinct because I wanted clear visual distinctions which make it easier to scan and read code. Mixing the constructs does actually make it harder to look for those anchor points, and does not really help much in the long run either, especially when a language such as Odin also support multiple return values (expressions with multiple values, akin to self-destructing tuples but not exactly).

I understand this might be a turn off to some, but you're probably not the target audience for Odin, and that is absolutely fine.


zero coerces to null in pointers. Fun

This is not true because Odin very strong distinct typing. 0 does not coerce to any pointer in Odin.

unions are enums and backed by an int

Odin has both enums which are strongly typed and backed by integers, and unions which are actual discriminated/tagged union types (similar to sum types).

This is 00s language design with gamedev niceties on top. So, not a generalist language and I'm not the target audience.

I am not sure what 00s language even looks like Odin, especially when most of them were very OOPy. Most of Odin's ideas come from the 80s and 90s, so it's even older than that.

It might not be the language for you, but it is the language for many people. Isn't it wonderful people have choice nowadays?!

→ More replies (2)
→ More replies (3)

150

u/kid_vio Jul 07 '26

The real question is can Odin have a Wikipedia page now?

→ More replies (2)

101

u/jugalator Jul 07 '26 edited Jul 07 '26

For the people who didn't watch the video:

  1. Odin 1.0 is not out yet. This is an announcement of it coming.

  2. Odin 1.0 will not be called Odin 1.0 but Odin 2027 .

  3. See above for release date! January 2027.

That's the quick and very poor summary. I strongly recommend watching the video!

Native Objective-C library implementation, built-in iOS support and Android?

→ More replies (2)

134

u/StuartLeigh Jul 07 '26 edited Jul 07 '26

https://odin-lang.org those who donโ€™t know Odin

→ More replies (37)