r/functionalprogramming • • Dec 30 '22
Question Which language to choose ?
Hi there, new here.
I know I am asking the long eternal question of which language to choose, but I need some guidance please :)
I am a from Sysadmin to Devops wanting to lean towards software developpement.
I write mostly scripts and CLI, although I wrote 2 - 3 API in some projects.
The language I used so far where Bash | Powershell | Python | Rust (which I <3) and I used to stick mainly to an imperative way of writing programs (with some use of OO when it's needed).
Past I have discovered and started using NixOs and by extension learning to use Nix which is a pure package manager fueled by its functional language.
I really want to dig deeper into this paradigm and I was thinking about picking a pure functional language to learn.
I already looked at the presentation around Clojure, Elixir and Haskell but I lack the knowledge to know which will be more adapted to my use case ?
To make this explicit, here are my 'expectations' :
- I want to have a language that will push me to use functional paradigm
- I want a statically typed language
- I like the "Write->Compile->Debug" workflow
What I will write:
Mostly CLI and console scripts
For this I need:
- CLI tooling / libs (like clap for python)
- Ez packaging (Compiling to a static bin like rust|go is a must)
- Some good OS level abstraction easing system manipulation (create files/folders, move into the system, changing file rights, etc...)
- I love pipes, that would be a very good bonus
- Some backend stuff (web or other)
- Maybe trying to do some fullstack web ? (Phoenix Liveview framework seems very sexy)
I you wanna preach your language's Church, now is the time ;)
Happy holiday everyone, and thank you for your time reading this :)
Edit: Formatting
Edit 2 after all the responses: I will try Haskell (with turtle for scripts) and OCaml based on what I saw, thanks for all the replies and happy new year ! =)
View all comments
Show parent comment
3
u/jmhimara Dec 31 '22
Fair enough. Some VMs do a better job at only embedding a part of their runtime as opposed to the whole thing. There's also a difference between aot and jit compiled languages. F# is jitted (I think) which means the compiler must be included.