r/functionalprogramming • u/Voxelman • Jul 16 '24
Question Which functional language for Raspberry Pi?
Which functional programming language is best suited for Raspberry Pi (3..5) in terms of memory consumption and performance?
It should definitely be a statically typed language from the ML family.
10
Upvotes
View all comments
Show parent comment
3
u/dbiazus Jul 17 '24
True, I have a Haskell project that runs great. However development is a bit awkward since GHC does not cross-compile to ARM. I develop in a RPi 4 with 8GB and a full compilation still takes several minutes to complete. Check my repo (https://github.com/diogob/motion-streamer) in case you want an example.
Note, however, that my project above runs mostly on the GStreamer event loop (so not Haskell runtime) and the Haskell layer is pretty thin.