Live data from Hacker News

Odin 1.0 Announcement

youtube.com

31–40 of 59 posts

Re: Odin 1.0 Announcement

#31
post #4

I kind of like Odin, with its Pascal/Modula-2 influences, even if the community is a bit hardcore on some of their ideas. Love the books in the background, and the whole video. It is also nice that Odin takes the batteries included approach. How well it would fair in the mainstream remains to be seen.

What kinds of project would Odin be best suited for, as compared to, say, Rust or Go?

At the level of this question, with most responses addressing Odin versus Rust or Go as in the question, I'd have been curious for community thoughts adding in Nim and Swift (now that Swift is on Linux and in any IDE that can use SourceKit-LSP).

https://www.swift.org/install/linux/

See:

"A series of small programs/tasks to compare C++, Go, Zig, Odin, D, Janet, Swift, Nim and C# to see which I like the most"

https://github.com/phillvancejr/Cpp-Go-Zig-Odin

Re: Odin 1.0 Announcement

#32
post #19

a random video that some ginger dude put up on youtube doesn't seem like a reliable source. any info on this from a reputable institution? shame that HN can't meet the moderation quality bar set by wikipedia

Honest question: Are you making a joke? Because while it objectively could be one, it doesn't sound like one. The random ginger dude is the creator of Odin.

yeah, it was a joke referencing this link that was on the front page a couple days ago,

https://katamari64.se/posts/2026/odin-wikipedia/

a little over the etiquette line for HN, the lack of joke comments here is awesome and i shouldn't be part of lowering our collective brows

Re: Odin 1.0 Announcement

#33

I've been using and loving Odin for probably around 5 years now, with this past couple years being more seriously invested in it. After tens of thousands of lines of code I'm still very happy. If you like C, but feel it's missing a few things, I highly recommend giving Odin a shot. Among the new litter of "better C" languages, Odin is easily the lowest-friction. It makes for a very nice experience. Congratulations, g…

Agreed completely. It’s my favorite language in its class. I need to build something serious in it someday. So far, I’ve only used it for building personal tools.

Re: Odin 1.0 Announcement

#34
post #4

I kind of like Odin, with its Pascal/Modula-2 influences, even if the community is a bit hardcore on some of their ideas. Love the books in the background, and the whole video. It is also nice that Odin takes the batteries included approach. How well it would fair in the mainstream remains to be seen.

What kinds of project would Odin be best suited for, as compared to, say, Rust or Go?

Anything you'd use C or C++ for. Graphics, finance, simulations, native GUI apps, command line tools, etc...

Semantically it's quite C-like, but it's got some nice modern features like a real module system (Odin calls it packages), a project-aware compiler (no build system needed, just run "odin build ." in your project root), fast compile times, and some nice quality of life stuff (good string type, good maths library, built in array maths, some nice built in stuff for memory management). It's also fast. Like in the same ballpark as C, C++ or Rust.

It's basically a modern C replacement.

Re: Odin 1.0 Announcement

#35
post #13

Earlier quoted context omitted.

What kinds of project would Odin be best suited for, as compared to, say, Rust or Go?

Game development. Go really only took off thanks to Docker and Kubernetes, and even if it would be capable, there is hardly an ecosystem there. Rust could be there, but there is really only Bevy, and several companies have tried it and pivoted to something else due to compile times hindering fast prototyping workflows. Odin was created at a games company, JangaFX, and has already a few products using it. https://jang…

JangaFX isn't a games company. They make visual effects tools and are probably best known for their fluid simulations.

Re: Odin 1.0 Announcement

#36

Earlier quoted context omitted.

What would you say is similar between Odin and Jai? I briefly used Jai (I have never had access) and found that essentially only declaration syntax is familiar.

The entire concept of Odin seems to be taken from Jai. They're both aiming to be C/C++ replacements "for the joy of programming" (another thing that was in the early Jai videos that Bill ripped off). In addition to the syntax (which is eerily similar across the entire language), there is the "using" keyword, the "defer" keyword, the context system, custom allocators, native AoS, polymorphic procedures, etc. Again, an…

> The entire concept of Odin seems to be taken from Jai. They're both aiming to be C/C++ replacements "for the joy of programming" (another thing that was in the early Jai videos that Bill ripped off). In addition to the syntax (which is eerily similar across the entire language), there is the "using" keyword, the "defer" keyword, the context system, custom allocators, native AoS, polymorphic procedures, etc.

Both Odin and Zig were inspired by Jai. Both creators were in the "Handmade" community and inspired.

That being said, a ton of these concepts existed in many languages that pre-date the developement of Jai by a very large margin.

> using

Literally in C++. Common Lisp has ":use" for packages/namespaces and "with-slots" for structs. Pascal has "with". A bunch of others too.

> defer

This came from Go.

> the context system

Jonathan Blow talked about where he got this, basically using obscure SML compilers in the 90's. Jon probably got this from MLKit. This is also how some Lisps did arenas in like the 70's... Ada also has a similar feature.

> The entire concept of Odin seems to be taken from Jai. They're both aiming to be C/C++ replacements "for the joy of programming"

Except D, Nim and Haxe are probably the actual precursors.

According to Jon the biggest feature of Jai is it's macros which are basically taken from Common Lisp although languages like Haxe, D, Rust, Nim and probably others also allow execution of any arbitrary code at compile time. At a recent LambdaConf he also talked about what he called a "plugin" system for the Jai compiler which kind of sounds like how OCaml or Haskell do macros/templates.

But Odin famously eschews macros. There's a few built-in features that do things at compile time but you can't just execute any code at compile time.

> began developing Odin AFTER he saw Jai

Jon (and Casey's) videos inspired the whole "Handmade" community, for better or worse. Both Bill (Odin) and Andrew Kelley (Zig) started their respective projects because of it. Both "took" ideas from Jai. Except none of those ideas are unique. There's literally nothing in Jai another language doesn't have. Even the syntax "name :: type" seems to come from Haskell type declarations, although :: is also used for types in Fortran and it's used in Backus-Naur form.

Anyhow in the end Jon's the one who just took a bunch of pre-existing functional language features, added it to a C-like language and acted like he reinvented the wheel. He didn't.

And finally, the "joy of programming" comes from Ruby's creator Matz.

Re: Odin 1.0 Announcement

#37
post #13

Earlier quoted context omitted.

Game development. Go really only took off thanks to Docker and Kubernetes, and even if it would be capable, there is hardly an ecosystem there. Rust could be there, but there is really only Bevy, and several companies have tried it and pivoted to something else due to compile times hindering fast prototyping workflows. Odin was created at a games company, JangaFX, and has already a few products using it. https://jang…

JangaFX isn't a games company. They make visual effects tools and are probably best known for their fluid simulations.

That is debatable, given their customer portfolio.

Re: Odin 1.0 Announcement

#38
post #37

Earlier quoted context omitted.

JangaFX isn't a games company. They make visual effects tools and are probably best known for their fluid simulations.

That is debatable, given their customer portfolio.

How is it debatable? Their products aren't games...

Re: Odin 1.0 Announcement

#39
post #37

Earlier quoted context omitted.

That is debatable, given their customer portfolio.

How is it debatable? Their products aren't games...

Depends on what you mean by the term: Some companies are in the business of supporting game studios without being game studios themselves (eg animation companies you outsource your out-of-engine cinematics to). If all your customers are game studios, you could be argued to be a 'game (support) company'.

Re: Odin 1.0 Announcement

#40
post #39

Earlier quoted context omitted.

How is it debatable? Their products aren't games...

Depends on what you mean by the term: Some companies are in the business of supporting game studios without being game studios themselves (eg animation companies you outsource your out-of-engine cinematics to). If all your customers are game studios, you could be argued to be a 'game (support) company'.

Is Blender a game tool?
Post reply on HN