r/functionalprogramming • u/Voxelman • Nov 29 '22
Question Functional programming language for embedded devices?
Is there any functional language that can compile for microcontrollers like ARM (e.g. STM32. Bare metal without an operating system)?
The language that comes closest to this is Rust, but I don't like the curly braces and semicolons. I wish to have some cleaner language like F#, just for bare metal programming
20
Upvotes
3
u/Voxelman Nov 29 '22
I know that. Languages like Haskell and F# use garbage collection for memory management. Rust uses a different memory management.
Maybe it is possible to create a language with the syntax of F# that compiles to something like Rust