TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Odin Programming Language

104 点作者 tuananh超过 1 年前

15 条评论

alphazard超过 1 年前
I think Odin is the best language in this niche so far. And although I prefer it slightly to Zig, I expect Zig to eat Odin&#x27;s lunch.<p>Odin seems to have procrastinated the important things that cause a language to really take off, in favor more trivial features. At this point I think Odin has crossed into the territory of being wrong in the direction of too many features rather than too few. While having not delivered important tools that would cause the language to accrete an ecosystem.<p>A must-have for wide adoption is a package&#x2F;dependency manager. As I&#x27;ve said before: Just clone what Go has. Just take it, you need it to be popular, and you probably aren&#x27;t going to do better. `import &quot;github.com&#x2F;whatever&quot;`.<p>I believe Zig has already started on a package manager, while the sentiment in the Odin community is that the unnecessary concept of &quot;collections&quot; somehow solves the dependency problem.
评论 #38837410 未加载
评论 #38840407 未加载
评论 #38840602 未加载
评论 #38837692 未加载
rwbt超过 1 年前
Huge fan of Odin, true C successor. Much better ergonomics and fun to program than say Zig. But needs the following in my view -<p>- A way to generate bindings automatically from C Headers or even better - not having to generate bindings separately and just import C headers directly.<p>- Better tooling and standard library improvements.<p>I think Odin &amp; Nim are my two favorite &quot;modern&quot; languages but they fill different niches. I see Odin as mainly replacing C while Nim is more a C++ replacement (but with Python like rapid development). I&#x27;m always amazed at how productive Nim is but the language has many areas that I&#x27;m not familiar with (the AST Macros for example). But Odin mostly fits in my head.
评论 #38840482 未加载
评论 #38837769 未加载
mroche超过 1 年前
I can barely keep track of the number of languages that exist today. I feel like the answer is Wikipedia, but it would be great to have a central resource that language authors and communities could contribute to. Just answering the questions:<p>- What is the origin of the language?<p>- What use cases are the language best suited for?<p>- Language highlights?<p>- Language examples?<p>- Maybe language comparisons?
评论 #38838056 未加载
masfoobar超过 1 年前
I am really enjoying Odin.<p>My time on it is limited at the moment. I am working 2 jobs which is eating my weekly hours. When I have more time (leaving one job in April.. yay!) I plan to contribute to Odin more.<p>Currently, I would guess many view Odin as a niche language in the gaming circle. A bit like Jai. I want to try and change that mindset or reputation.. to build apps in Odin that are not games (though I plan to move a game I wrote in C to Odin as a fun experiement)<p>I am currently binding a C library to Odin which my early tests are working pretty well. Plan to announce more, hopefully, in the coming months. I have also experiemented with existing libraries like odin-http and odin-mysql (by a chap named layton who helps alot on odin discord) -- I need to build a family website&#x2F;blog and tempted to use Odin with htmx.<p>The only area of critique to Odin, especially those that are accustomed to them... is a package manager. Now I am in favour of package managers. C# Nuget is good. However, for Odin, I have been happy to create a third-party folder and &#x27;git clone&#x27; the repos I need:-<p><pre><code> import http &quot;..&#x2F;third-party&#x2F;odin-http&quot; &#x2F;&#x2F; rough example.</code></pre>
Decabytes超过 1 年前
The fast Fsharp guy recently switched to Odin for performance and calls the Odin code in Fsharp. I like Fsharp so I’m curious about this combo <a href="https:&#x2F;&#x2F;x.com&#x2F;fastfsharp&#x2F;status&#x2F;1735311963260141645?s=46&amp;t=hrljSsmrQ0indCSy8h-Wuw" rel="nofollow">https:&#x2F;&#x2F;x.com&#x2F;fastfsharp&#x2F;status&#x2F;1735311963260141645?s=46&amp;t=h...</a>
评论 #38837254 未加载
vsskanth超过 1 年前
Is there a list&#x2F;comparison of C-Alternative systems programming languages available ?
评论 #38837516 未加载
评论 #38837784 未加载
评论 #38837308 未加载
评论 #38840682 未加载
Decabytes超过 1 年前
I’ve been leaning more towards a dual language approach recently. A language with tight integration with C like Lua, or Gambit, that makes it easy to drop down to C. C gets treated like a block of unsafe Rust code, and you keep as little of the code base in C as is necessary
评论 #38837912 未加载
评论 #38838928 未加载
HL33tibCe7超过 1 年前
Interesting: this looks heavily inspired by Go, but it supports things like sum types (the lack of support of which is one of my biggest gripes with Go).
评论 #38837785 未加载
评论 #38837767 未加载
nateb2022超过 1 年前
Recent related discussions:<p>Small joys of programming in Odin - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=36812175">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=36812175</a> (61 comments)<p>A Review of the Odin Programming Language - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=32799499">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=32799499</a> (142 comments)
rendaw超过 1 年前
Looking at their front page, they have the following distinguishing goals: Simplicity, speed, modern, pleasant. Is there _any_ language that doesn&#x27;t aim for those four things? I have no idea why I&#x27;d choose Odin.
评论 #38840508 未加载
stevage超过 1 年前
They could really improve their sample code&#x2F;demos. Particularly the default one - for a &quot;data-oriented&quot; language, having the first demo be parsing and executing a nonsensical calculator language is a weird choice.
评论 #38840528 未加载
评论 #38837822 未加载
评论 #38837709 未加载
itishappy超过 1 年前
&gt; JangaFX are the creators of the 3D animation software EmberGen written fully in Odin.<p>Whoah. That&#x27;s quite the demo reel.
keyle超过 1 年前
I had a play with Odin late last year and it was a blast.<p>It needs to get to a more finalized state, design wise, and a good package manager for adoption and I suspect it will do really well.<p>I&#x27;m toroughly excited for this language&#x27;s future.<p>As all LLVM languages, debugging is really easy. Please help Odin succeed in whichever way you can!
评论 #38842033 未加载
tombert超过 1 年前
I always feel like a bit of an outsider with these things; I see stuff like Zig and Odin and Nim being posted, and everyone on HN talking about how great they are, and I feel like I&#x27;m missing something.<p>I have absolutely no desire to going back to manual loops instead of `map` and `reduce` and `filter`, and I have no desire to go back to imperative style, but I appear to be somewhat in the minority on this. Everyone seems to love Go now, and people keep telling me that they like the language because it&#x27;s &quot;simple&quot;, but I have absolutely no god damn idea how they explain that. I know C well enough to do an interview or hack on FreeRTOS, and I&#x27;ve done a fair amount of paid Go work in the last few years, and despite that I am always craving for a functional language. <i>Any</i> functional language. Give me Haskell or Lisp or OCaml or F# or Rust or even JavaScript.
评论 #38838855 未加载
评论 #38841024 未加载
评论 #38839319 未加载
vsuperpower2020超过 1 年前
I&#x27;m waiting for the language and toolset to mature before I give it a serious chance. Not having an increment operator also is kind of disappointing. Why not name Odin C+=1?