Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Haskell
It's mature, used in production (yes I know), has a gigantic and very helpful community, modern tools, and just about all the libraries you could ever want.
Plus it's very strict about being FP only, none of that mixed paradigm stuff here (though you can emulate other paradigms quite easily). -
And if the web is more your home. Elm Lang uses Haskell syntax to compile your app to html, css, js.
It's compiler doesn't allow runtime errors and it points out every error you made exactly and with advice on how to resolve the issue.
https://elm-lang.org -
@sleek rust is pretty bad too from a FP perspective. It has a lot of neat stuff from FP languages but it's not designed to be core FP.
-
Marl3x26766y@heyheni Elm looks really cool, but I just cant imagine myself literally coding the whole structure of my html file. It seem so inefficient.
-
sleek34486yHmmm up until now i used to group all non Object oriented languages as functional. Whats makes a language functional?
-
Marl3x26766y@RememberMe How is it to write Haskel as a backend language? Is it really as easy and fast as people claim?
-
@sleek
FP isnt about a language, its a programming paradigm.
i advise you to read https://maryrosecook.com/blog/post/... for an easy introduction. -
@Marl3x Haskell is really nice for backend (that is its primary industry use too). I dunno if you'd call it easy though, the pure FP, monad heavy style is pretty hard to do if you're not used to it, but it produces very nice and clean code. Usually. In general. It really depends on what your program does (not all things map easily to FP) and how you architect it.
As for speed, it has a superb compiler and is decently fast given the crazy stuff it supports. It's also tunable and there are best practices for speed (use the right data structures, avoid excessive thunks and use laziness strategically, etc.). Go OCaml though if speed is a critical issue.
@Spxx because although python supports functional features it's not really a FP-first language. And besides I *think* GvR isn't too fond of FP style, he prefers that people use list comprehension instead of maps for example (or something of the sort).
Related Rants
Can anybody recommend me a modern, functional programming language?
question
functional programming
want to learn