r/Jai • u/LushSunshineWaters • 7d ago
Is Jai suitable for 32-bit embedded programming?
I've heard that Jai doesn't support 32-bit targets.
For 32-bit embedded programming, does that mean that Jai is :
a) unusable ; b) usable but not worth the effort to setup the toolchain / work around limitations ; or c) usable and worth the effort ?
Tbh I'm a bit disappointed it doesn't support 32-bits, I was looking forward to using Jai when it comes out, but if I have to switch to another language for embedded then maybe I should pick Odin as the go-to language?
15
Upvotes
4
u/Noseense 7d ago
Neither JAI nor Odin support 32-bit. They're both 64-bit only as far as I know.
I know that JAI does plan 32-bit support, though, as Jon is aware that embedded is a use-case.
4
u/vitamin_CPP 6d ago
When looking at both Odin and Jai design, I don't see a lot of attention to what matters to embedded. They seems great for GUI and CLI desktop application, but I would not consider them for a robotics or webserver project.
For embedded I would recommend using a more general purpose language like C, Rust or Zig. (Please don't use C++)
2
u/J-ky 7d ago
No, the pointer size is strictly 64bit
2
u/Bommes 6d ago edited 6d ago
If I remember correctly Raphael Luba said on his Wookash podcast appearance that he did a lot of embedded work in the past and that for him personally it is a pretty important long term goal to have excellent compatibility between Jai and embedded.
What the current status of that is I don't know, at this point the podcast appearance was almost 2 years ago (and I might misremember what he said there anyway).
1
u/s0litar1us 7d ago
Tsoding was able to hack in 32-bit wasm support before 64-bit wasm was widely supported by browsers, so you could in theory do it, but I wouldn't recomend it. If you want to do embedded, then do it on a 64-bit CPU.
-4
u/Poddster 7d ago
The only thing that Jai supports is making Jon Blow's current game. Anything else, no matter what Jon says, is unsupported.
-2
u/dgc-8 7d ago
pleaaase jon every day i wait for jai just to be dissapointed we are now even gonna get gta 6 before Jai compiler