New language! You can now write Firefly Zero games in Odin, a Go-like language with manual memory management. Give it a try with the latest firefly-cli:

ff new --lang=odin hello

https://docs.fireflyzero.com/dev/getting-started/

In reference to @0xabad1dea, --lang=abadidea also works 🙃

#odin #OdinLang

Your first app

👉 Pick the language# Firefly Zero supports lots of programming languages: 🦀 Rust 🏃 Go 🐀 C and C++ ⚡️ Zig 🐦‍⬛ Odin 🐰 MoonBit 🟦 AssemblyScript (a subset of TypeScript) Experimental: 🌙 Lua 🧪 Elixir For simple apps and games, it’s a good idea to stick to what you already know. But if you’re ready to learn something new for better results, we recommend using Go. It’s easy to learn, sufficiently fast, and memory-safe.

Firefly Zero docs

I am building this ECS in my spare time. Complete description with examples you can find in readme on github.

https://github.com/helioscout/moecs

If you want the highest performance, it’s best not to use any ECS. I love ECS because it allows you to systematize and separate/parallelize logic/data, move each part of the game into its own system, customize its operation, and generalize logic for entities with different components. As for speed, it will vary on different computers. You can play around with main.odin, and see the benchmarks (I use this code for testing). I’d be interested in seeing your results.

My tests show this:

With 7 components, 3 systems, 1 million entities, 6 archetypes, world progress 100 times takes 56 milliseconds (at each iteration: 1 system adding component to 100 entities and despawning one entity and 2 others getting 6 components for each entity).

#gamedev #ecs #odinlang

GitHub - helioscout/moecs: Easy to use Entity Component System (ECS) crafted with Odin.

Easy to use Entity Component System (ECS) crafted with Odin. - helioscout/moecs

GitHub
hey uh Odin nerds of fedi, any learning resources y'all recommend? I mainly learned Rust from The Rust Book so I'm not afraid to read some docs.

I've got experience with Rust, C++17, and such so I'm hoping its not too far of a jumo

#Odin #OdinLang

Time to have some fun programming.

I've been playing around with #odinlang and am really liking it. It's fun just checking out the comments in the Odin Source code for examples. This was how I learned #Smalltalk and it really does help you really learn to use a language.

Odin's make system reminds me of Pascal. No separate make file just compile the file with the main function in it and the compiler figures out what other files need be compiled.

Go is nice but it feels to corporate.

Odin compilation speed tips

How to troubleshoot slow compile times and what to do about them

Jakub's tech blog
@grainsnatcher I'm currently using #odinlang for a project. Maybe that's interesting for you as well. It feels like a super "friendly" version of C.
I started rewriting the PoC plaintext.casa parser from #typescript to #odinlang. Such a nice language to work with!
Way Out Of Here by DanRedTMF

Are you ready to accept the truth?

itch.io
I'm down to the final chapter of translating the code examples over at learnopengl that are in C++ to Odin. The final chapter is about making games. What a journey. What stress 😭
https://github.com/kidando/learnopengl-odin
#learnopengl #odin #odinlang #graphicsprogramming

A little fun puttering with #OdinLang before bed, on tasks I'd normally use Perl or Python for.

Style's a little clumsy. Clear signs of "I can write my favorite language in any language." But even then, nested procs are kinda nifty.

And it doesn't do much (recursively scan Obsidian vault for markdown files, determine Obsidian's link path for each), but heck the compiled version does it faster than I'm used to with Perl/Python.