Post

the wild thing is that while there's good reasons to not use one language across your entire software stack from bare metal microcontrollers to web front-end, the one language you can do this with and have it not be an objectively stupid choice is probably rust.

Orual@nonbinary.computer

legit I use (micro)Python a fair bit for rapid prototyping on embedded, especially if I *know* for sure i am going to throw away the prototype or perf just does not matter one bit. if I think the prototype might become production I will often try and write it in rust.

partially the thing is that there is a *very* narrow set of languages that actually meet this. like depending on whether you count a vm that's written in another language or not, you lose python (micropython itself is also very much not iso normal python) and most JVM stuff, and BEAM, Lua, etc.

pretty much the only other reasonably non-obscure languages I can think of that you could technically do this in (bc you can run anything in wasm, the embedded/no-os target is the tricky bit) other than Rust are C, C++, Go, Objective-C, and Swift. Kotlin *might* bc it has a native target for iOS.

there's native compile options for the jvm in general as well but yeah for kotlin I know they're actually working on it

0 reposts1 like

I'm less inclined to explore the others (Java, Scala, Clojure come to mind) but Kotlin seems sorta friendly. Same with Swift but the non-macos story is still a WIP for now

in the sense that there's so much desugaring that what you write ends up really terse (like Rust)? or that it's magicky (maybe like Ruby?)?