r/odinlang • u/itnufc • 9d ago
r/odinlang • u/nixfox • Oct 04 '25
Is Odin Just a More Boring C?
dayvster.comYes but in the best way possible, I hope I did this wonderful language justice in my weekend experiment with it.
r/odinlang • u/No_Presentation_9095 • Feb 10 '26
ECS based open-source game engine in Odin using Karl2D, YggsECS and Box2D.
I vibe-coded this game engine in Odin because I didn't like working with the already-existing engines.
I wanted an ECS based game engine that has faster compile times than Bevy/Rust.
r/odinlang • u/NicRagent • Aug 11 '26
PR series: Box3D task workers for Odin WASM
I opened four PRs (1 Open, 3 WIP) for supporting Box3D task execution across Web Workers:
[#7272]: Makes `odin.js` compatible with shared WASM memory.
[#7286]: Lets a WASM host provide Box3D with a monotonic clock.
[#7287]: Adds an atomics-enabled Box3D build and mutex.
[#7288]: Tests shared memory, multiple instances, separate stacks, atomics, and callbacks.
This is intentionally not general `core:thread` support. Applications still manage their own workers, stacks, task scheduling, shared memory, and COOP/COEP configuration.
The latter 3 PRs are WIP. Feedback is welcome. Also should I also look into a separate proposal for `core:thread` support on JS/WASM?
For ingot + Box3D Web Worker demo - https://openalloy.ai/demos/ingot-box3d-advanced/
r/odinlang • u/DrDumle • Oct 31 '25
Automatic Memory management. Possible to implement?
As a game dev and shader programmer I am drawn to Odin and Jai. But I don’t understand why both Jai and Odin use manual memory management.
It is just a small fraction of our code base that needs optimal performance. We mostly need mid performance.
What we really need is safety and productivity. To make less bugs while keeping a good pace with short compilation times. With the possibility to use manual memory management when needed.
I feel like Jonathan blow allow himself a decade to make a game. And Odin is not meant for games specifically, (but it feels like it is?) So they’re not really made with usual game development in mind. Perhaps more game engine development.
That was my rant. Just opinions from a script kiddie.
Now the question is if there’s a possibility to make something like a reference counted object in Odin? A sharedpointer allocator? Easy-safe-mode allocator perhaps?
r/odinlang • u/lemsoe • 29d ago
Odin + Claude Code = a toy browser, just for fun
Hey everyone,
I’ve been building a little browser engine in Odin in my free time, together with Claude Code. Honestly just doing it for the fun of it.
Next up: CSS grid, tabs and JavaScript via QuickJS.
Repo (MIT): https://github.com/soerenlemke/tobrod
Would love to hear what you think!
r/odinlang • u/Azq2337 • Aug 08 '26
Check out my game - MouseDriftCity (GPT5.6)
Been vibe-coding on this mini racing game in between working hours.
I am familiar with embedded C but new to Odin. This is a learning experience.
Happy to hear your thoughts :D
https://github.com/Azq2337/Mouse-Drift-City-Odin
Tooling: Odin + Raylib + Box3D
---
Complete mouse control:
LMB: nitrous boost
RMB: break/drift/reverse
MMB: pause
Click on left top in main menu to enlarge window.
Bouncy mode enable via main menu button under map regen.
r/odinlang • u/ThatCommunication358 • Oct 02 '25
Odin Speed
Is Odin quicker than C when it comes to execution?
r/odinlang • u/Financial_Airport933 • Feb 06 '25
Other software that game ?
Is odin a language for game dev ? if not I would like to sees other software because all mostly sees game, also I would like to see production software ?
r/odinlang • u/Senior-Question693 • May 16 '26
HEEELP!!! *bashes his head against the wall*
i've been making a library for text rendering for the past few months and i have done a lot of rewrites and i feel kinda stuck so your help will be greatly appreciated. Currently when i read the tables i get a stack overflow and i think scaler type really shouldn't be THAT big (the font i'm using is AdwaitaMono-Bold). there is quite a lot of files so you can find everything over on my github
r/odinlang • u/Dr__Milk • Oct 28 '25
New name for Odin
I like Odin as a name for a programming language. It's short, it's clean, it's catchy, sound spowerfull and resonates with the all-from-scratch bare-metal viking mental of it's users. But to me it tastes kinda bland that it was chosen because just because it sounds cool. Also it doesn't transmit the idea of a language design for developer comfort.
Do you feel the same or don't care at all what its name is? If you were to rename it what would you call it?
r/odinlang • u/we_are_mammals • Feb 07 '25
Can Odin match Zig in performance?
https://programming-language-benchmarks.vercel.app/odin-vs-zig
Seems to put Zig significantly ahead in its microbenchmarks. Are they comparing the two languages with different safety/optimization options? Or is their Zig code just better-optimized for those tasks?
EDIT: Does -o:speed remove bounds checking in Odin? Because if it doesn't, this would explain the difference, I think.
UPDATE: I took a look at the code and in the places where Odin was significantly behind, its version was also much shorter than Zig's. So the benchmark is misleading, sadly.
r/odinlang • u/Working-Asparagus-32 • Jun 20 '26
New Update to my game
ive been working on this game for a few weeks now https://rawptr.itch.io/soulbinder
r/odinlang • u/rmanos • Nov 02 '24
This new article explains and shows the power of Odin's error handling by challenging other programming languages to a simple exercise.
rm4n0s.github.ior/odinlang • u/Future_Ad1549 • Jul 10 '26
LLM tokenizer implemented in odin
A few months ago I started learning how LLM inference engines work.
My original goal wasn't to build a production tokenizer—I just wanted to understand the entire inference stack from first principles. I chose Odin because I wanted a language that stayed close to the hardware without fighting me.
I honestly expected it to be a fun learning project.
Instead... it ended up outperforming the tokenizers I was comparing against, including Hugging Face's Rust tokenizer and FastTokenizer in my benchmarks.
I was pretty surprised by the results.
The benchmark report (methodology, datasets, hardware, and commands) is here:
https://github.com/harisudarsan1/odin_tokenizer/blob/main/docs/public-benchmark.md
Repository:
https://github.com/harisudarsan1/odin_tokenizer
I also wrote about why I chose Odin for writing inference software:
https://harisudarsan1.github.io/blog/posts/2026-07-10-writing-an-inference-engine/
A few notes:
These are CPU benchmarks.
I'm not claiming Odin is magically faster than Rust.
The comparisons are against existing tokenizer implementations under the benchmark setup described in the report.
If there's something wrong with the methodology, I'd genuinely like to know. I'd rather fix the benchmarks than make misleading performance claims.
The project taught me far more about CPU architecture, memory layout, SIMD, and modern tokenizer implementations than I expected.
I'd love feedback from people who've worked on tokenizers or inference engines. If you spot flaws in the implementation or benchmark methodology, please call them out.
r/odinlang • u/Due-Belt-6202 • Jun 20 '26
Look I built TinyAMPS with help of AI, it is an ode to the ZeroMQ and the Odin community. lets play around and see how usefull it is.
built a pubsub broker in odin to kill client-side lag. it drops trash messages on the server before they even touch the network wire.
it is single-threaded right now, but if we upgrade the routing logic inside the odin hub for complex tcp, we can build custom versions that run circles around standard brokers because we filter at the source.
why do this? (the math & branch prediction)
Little's Law is real: if your subscriber spends cpu deserializing useless data, the client queue overflows and locks you into a constant 2.5s lag. we solve this by routing with actual hashmaps on the broker. this isn't just server-side rendering, it's filtering wire bytes.
look-ahead magic & branch prediction: client-side parsing completely trashes your CPU's branch predictors and instruction caches. modern ARM pipelines (like the ones designed by that ex-Apple ARM dev who went indie) hate dynamic allocations and branch misses. tiny amps uses a zero-allocation path (flat array circular buffer, hashmaps only for subscription routing) to keep the pipeline warm.
reviving Pieter Hintjens' ZeroMQ logic: we are bringing back ZeroMQ's core philosophy (written by the legend Pieter Hintjens) but with broker-side content-filtering. ZMQ is the pipe, Odin is the brain.
non-blocking dispatch: the dispatch loop uses non-blocking channel transfers (
chan.try_send). if a subscriber queue is full, we drop packets immediately. we choose lossy delivery over head-of-line blocking.
the footprint & esp32
esp32 / microcontrollers: the client is a single header-only C++ file using standard sockets. perfect for ESP32 because the tiny microcontroller doesn't choke on a telemetry firehose—the broker drops the trash before it hits the chip.
binary size: compiles to a tiny ~1MB standalone binary and runs in only ~1.6MB of RAM (RSS) thanks to bounded circular replay buffers.
the real numbers (20k message run)
under a 20k message workload comparing traditional opaque client-side filtering vs tiny amps:
99.00% downstream traffic reduction.
95.31% subscriber cpu saved.
0 gc collections on the python client (no heap lag).
exact mathematical proof and live logs are in proof.md on github: https://github.com/Wadim-cloud/tiny-amps-net/blob/master/proof.md
mistakes i made (and what i didn't know)
I want to be honest—this was a massive learning curve and I made plenty of dumb mistakes:
the AI rabbit hole: when the odin nightly compiler (
dev-2026-05-nightly) refused to export my C ABI symbols inbuild-mode:shared, my AI assistant sent me down a 2-day rabbit hole compiling C shims, static wrapper headers, and linker flags. absolute waste of time—the static archive symbols were mangled anyway. I should have just bypassed FFI and gone straight to TCP socket routing.logical memory leaks: i boasted about "zero allocation," but in my early odin code, I completely forgot to free the cloned topic and filter strings during subscriber connection teardowns, causing slow, silent memory leaks.
thread context crashes: i didn't realize that doing context-dependent memory allocation (like appending to dynamic arrays) inside background socket threads in Odin would crash the runtime if the thread context wasn't properly initialized with
runtime.default_context(). spent hours debugging segfaults before I realized my context scope mistake.pygame grid bug: in the simulation visualizer, I had a nasty double-indexing bug in the grid decay math that ruined the graph warfare logic. had to manually step through the matrix slicing to find my index mistake.
stupid typos: had a typo in my Python wrapper (
amp_unsubscribeinstead ofamps_unsubscribe) that sat there leaking subscriptions, and I mixed up my ctypes (passedc_size_tinstead ofc_int), which was silently trashing memory pointers.
super excited to talk to the Odin community about memory layout, hashmap routing, and raw performance.
network broker: https://github.com/Wadim-cloud/tiny-amps-net
swarmsim visualizer: https://github.com/Wadim-cloud/swarmsim
design story: https://wadiem.substack.com/p/why-your-pubsub-is-slower-than-a-legacy-fax-machine
looking to make some dev friends to co-develop or talk shop. check the repo and say hi!
And oh yeah, this --> https://www.youtube.com/watch?v=6jSGqVtudgI
r/odinlang • u/Linguistic-mystic • Feb 20 '25
How come declaring and assigning variables on same line is not allowed?
Odin has this "clever" syntax of := meaning "define and = meaning "reassign". However, it also has multiple return values, so it's possible to define and reassign multiple variables on the same line. But that's where the "clever" system of := and = breaks down!
Now, this could be seen as just a slight limitation, but it's greatly exacerbated by Odin's approach to error handling which, like in Golang, is conducive to passing around the err variable all the time.
So here's the bug repro:
package main
import "core:fmt"
Error :: enum {
None,
Something_Bad
}
foo :: proc() -> (int, Error) {
return 0, Error.Something_Bad;
}
bar :: proc() -> (int, Error) {
return 1, nil;
}
main :: proc() {
a, err := foo();
b, err := bar();
fmt.println("Hellope! ", a, b);
}and the compiler error is Error: Redeclaration of 'err' in this scope. I've tried all the combinations of : and = and they all error out. Note how the combination of new variables (a and b) with the reused variable err is totally natural, and it's how it would be written in Go. So the fault here is precisely with Odin.
I'm just wondering, when thinking out the features of the new language, did Ginger Bill just never consider how those basic features would interact? This kind of bad design is obvious in the first 100 lines that one writes in the language! Total lack of foresight!
I've looked at some example Odin code from Bill, and found this example where this issue should've been encountered:
// Load in your json file!
data, ok := os.read_entire_file_from_filename("game_settings.json")
if !ok {
fmt.eprintln("Failed to load the file!")
return
}
defer delete(data) // Free the memory at the end
// Parse the json file.
json_data, err := json.parse(data)
if err != .None {
fmt.eprintln("Failed to parse the json file.")
fmt.eprintln("Error:", err)
return
}
defer json.destroy_value(json_data)See how he names the first error variable ok and the second err. But this is just silly. What would one do in case of a third variable? ok2? err2? And this is just the error handling. What about other cases where you need to define one variable and reassign another?
r/odinlang • u/rmanos • Nov 15 '24
New article "Odin will take your jobs"
rm4n0s.github.ior/odinlang • u/CaptainFilipe • Jul 07 '25
Why is it called Odin? And, package manager?
Probably this was answered a few times here but why is it called Odin (awesome name by the way)? After spending a week trying to code with it I had a dream that I was building a package manager called Heimdall :-) Is there a package manager for Odin as far as anyone knows?
r/odinlang • u/GladJellyfish9752 • Apr 18 '26
Is Odin can be used for Making PL?
Hi, I'm Prathmesh. I am Wondering between Odin and Zig. Which Language Should I Learn more and Try to master it. Becuz I am Heavily interested in PL Creation.
Should I use Odin for it? And is Odin the best option over Zig?
r/odinlang • u/ZweiFreierNutzername • Sep 04 '26
Thinking about learning Odin
So what are the reasons/main selling points and philosophies behind Odin and do you think they are implemented well? Because saying something is a design philosophy is easy, actually implementing it, so someone who writes code feels it is the harder part.
I like languages which have something special about them, or a nice eco system, for example the ownership model of rust, the pointer arithmetic in C, C# for web apps and the perfect integration of efcore to load data dynamically without thinking much about it and Python for the fact that basically everything exists there. Odin has first class support for a lot of graphics apis, so developing code which runs well on GPUs should work really great with it? What are your experiences?
My dream project would be to make an AI/ML library, which runs calculations on the gpu and works on most machines (I thought about using wgpu if possible)
r/odinlang • u/razkarstudio • Mar 28 '26
Working on Odyn, reproducible vendoring tool for Odin (v0.1.0)
Hey! I built a vendoring tool for Odin called Odyn.
It clones Git repos into odyn_deps/ and pins exact commits in Odyn.lock. It doesn't have a registry or a solver, just Git and a lockfile.
odyn init myproject
odyn get odin-community/math
odyn syncodyn init sets up ols.json that binds odyn_deps to the deps collection. odyn sync reproduces the exact dependency state on any machine.
It's not a traditional package manager, you could technically use Odyn for non-Odin stuff.
Links:
It's early (v0.1.0) and macOS binaries are coming in 0.2.0. Would love feedback from people who actually use Odin!