r/functionalprogramming • u/Voxelman • Mar 03 '24
Question Which functional language for Raspberry Pi?
I want to start a project that should also run on a Raspberry Pi (4 or larger).
My first choice was F#, but after a little research I'm a bit concerned about the memory usage. At least at the language benchmark game the dotnet solutions use more RAM than other languages, even Python need less.
The F# programs need about 10x of RAM compared to Python. Even C# needs more.
I know it's a bit difficult to compare because Python programs are only running on one core, but the difference between C# and F# is still significant. Is it just the special use case or do F# programs need significantly more RAM in general?
Haskell and Ocaml perform much better, but the ARM platform support seems to be not really mature (correct me if I'm wrong).
Is there any funktional language (from the ML family) that can be used on a Raspberry Pi? I need something that is significantly more performance then Python. If not, the next best option would be Rust.
View all comments
Show parent comment
2
u/RedEyed__ Mar 04 '24 edited Mar 04 '24
Actually I learned it just a bit, saw several projects on GitHub.
The biggest contribution to my opinion is it's low popularity in the industry.
During my carrier, I never saw that someone used Haskell (only interns used it in university). I'm not excluding bias in my opinion, because I'm surrounded with Python, C, C++, Rust, Java, bash, golang, dotnet, nevertheless.
I saw discussions on this sub, and people say, that it's hard to find job in Haskell, some of them moving to Rust.
Everytime I want to learn Haskell, I can't any good reason other than to learn "true" FP.