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.

yeah that might be another you could do it in, though i don't know if there's a version of it that'd run well on a microcontroller off-hand, or how well the web/wasm targets work, assuming those exist.

0 reposts2 likes

Melange and js_of_ocaml are pretty great. Def a lot better than what Haskell has in terms of bundle size but IMO the way forward for full stack OCaml is more like the Elm approach: wrapping an optimized JS or WASM runtime with a safe blanket of OCaml in which apps are built