TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Understanding the Odin Programming Language

159 pointsby dsego6 months ago

12 comments

christophilus6 months ago
I just started “Build Your Own Text Editor”[0], but using Odin instead of C. So far, I’m impressed with Odin. It’s the most ergonomic C replacement I’ve tried. I wish it had been around 25 years ago when I was professionally working with unmanaged code.<p>[0] <a href="https:&#x2F;&#x2F;viewsourcecode.org&#x2F;snaptoken&#x2F;kilo&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;viewsourcecode.org&#x2F;snaptoken&#x2F;kilo&#x2F;index.html</a>
评论 #42387434 未加载
sklerk6 months ago
I love Odin, and I&#x27;m glad to see it getting more attention. I&#x27;ve been working through Dave Churchill&#x27;s COMP 4300 course[0] in Odin&#x2F;Raylib rather than C++&#x2F;SFML, and it&#x27;s been a blast.<p>[0] <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;playlist?list=PL_xRyXins84_Sq7yZkxGP_MgYAH-Zo8Uu" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;playlist?list=PL_xRyXins84_Sq7yZkxGP...</a>
raoulj6 months ago
Flipped through the language overview on the website and noticed that matrices are limited in how large they can be because they&#x27;re stack allocated [1]. Ergonomics of the language otherwise look solid but for my use case that would be fairly constraining<p>[1] <a href="https:&#x2F;&#x2F;odin-lang.org&#x2F;docs&#x2F;overview&#x2F;#technical-information-of-matrix-types" rel="nofollow">https:&#x2F;&#x2F;odin-lang.org&#x2F;docs&#x2F;overview&#x2F;#technical-information-o...</a>
评论 #42388512 未加载
评论 #42393206 未加载
unwind6 months ago
This looks really nice and the prose had a positive&#x2F;easy-going feel to it.<p>When the actual code examples begin, the very first couple of lines confused me:<p><pre><code> package hellope import &quot;core:fmt&quot; </code></pre> Is the quoting of package names optional?
评论 #42387794 未加载
评论 #42388256 未加载
评论 #42400827 未加载
评论 #42389105 未加载
nkrisc6 months ago
Any reading recommendations for introduction to the fundamentals of manual memory management specifically? I tried learning C in the past but didn’t get very far without a compelling <i>need</i> to learn it.<p>I’ve toyed with Odin a bit and the language in syntax is right up my alley, but the idea of manually managing memory is pretty foreign to me. I understand it broadly, but have no good idea about how to actually do it practically and properly.<p>I will give this book a look as well since I see it covers the topic in some chapters.
评论 #42393264 未加载
评论 #42389046 未加载
cultofmetatron6 months ago
any word on this coming out in pdf? thats the version I strongly prefer for my ebooks
评论 #42387499 未加载
评论 #42398987 未加载
评论 #42387396 未加载
kalekold6 months ago
I&#x27;m not particularly impressed by Odin but maybe i&#x27;m not the audience. If you like strictly procedural languages (or a die hard C fan) it&#x27;s probably fine but it feels like a &#x27;My First Language™&#x27; kind of project.<p>What I really miss are methods on structs a&#x27;la Go. Just simple receivers would be a great addition imho. Because of this choice, it&#x27;s affected the entire stdlib and boy does it look old. Creating a typed variable to pass it to a stdlib init function (for allocation, etc) is terrible decision and it&#x27;s everywhere. The stdlib looks muddled too.<p>Odin is obviously heavily inspired by Go (among others) but it&#x27;s learned nothing of the lessons of the Go authors. For example, Odin is a larger language and has fewer features.<p>I got an ICE while compiling once and it reported something like `TODO(bill) support this`. Not a good look.
评论 #42400865 未加载
评论 #42438209 未加载
评论 #42400808 未加载
fithisux6 months ago
Do you know if odin can be used instead of C? For example driver or kernel development? Windows for example?
评论 #42399011 未加载
lenerdenator6 months ago
Does the compiler log an error if you try to compile a line of code with more than one &quot;i&quot; in it?
sriram_malhar6 months ago
Can someone with Odin experience tell me about a new feature? I&#x27;m looking for a unique hook, like Zig did with comptime.
评论 #42400859 未加载
评论 #42395811 未加载
haspok6 months ago
&gt; A floating point number is a method for storing decimal numbers...<p>I&#x27;m sorry, what?
评论 #42389281 未加载
评论 #42399247 未加载
评论 #42388382 未加载
EternalFury6 months ago
The door for new languages is rapidly closing; unless you are a craftsman and dilettante.
评论 #42392054 未加载