r/functionalprogramming • u/kinow • Dec 30 '19
JavaScript Clio Programming Language - A pure functional programming language targeting decentralized systems
r/functionalprogramming • u/kinow • Dec 30 '19
r/functionalprogramming • u/kinow • May 07 '18
r/functionalprogramming • u/MagnusSedlacek • Aug 13 '26
r/functionalprogramming • u/kichiDsimp • Mar 01 '26
Hey folks, my question is what functional programming language/tech you are using for the year of 2026 both as a hobby and professionally Please provide reasons for the hobby.!
r/functionalprogramming • u/Massive-Squirrel-255 • Nov 27 '25
I work in machine learning, where most libraries are in Python. My experiences with Python have been very negative and I am convinced that large Python projects are harder to maintain and refactor than projects in other languages. I work alongside collaborators at a large company. We are creating a new project and I would be interested in using another language. This would require getting my collaborators to get on board, who will have to read, maintain and refactor the code.
I am currently trying to decide whether another language is a good idea. It is obvious that
the large number of existing Python libraries
using a language that your coworkers are familiar with and will be willing to maintain
are two very good reasons to prefer Python for new projects, and so there would have to be a very strong business case for doing things differently.
On the other hand, from the perspective of academic programming language theory, Python is a mess. (I will defend this claim later.) Programming in Python for me feels like "flying without instruments" compared to the compiler feedback present in languages like OCaml, Haskell and Rust.
In order to better make up my mind, I would like to ask this community for empirical evidence that language design with an eye towards reasoning about code correctness pays off in the real world, such as:
case studies of large projects where static analysis was highly successful
argument pieces from experienced professionals advocating for "analyzeable" languages, backed up by examples from their career where it made a difference
argument pieces that demonstrate with data that good static analysis tools speed up development, debugging, and refactoring
a static analysis tool company, such as Semgrep or the Github CodeQL team, reports that their tool is more effective on language X than language Y because of fundamental language design aspects
In a sense I am asking for defenses of academic programming language theory that establish that these academic ideas like "sensible variable scoping rules" actually translate into demonstrable increases in programmer productivity.
P.S. - It seems that many people doing static analysis professionally work in security. I don't think my team is heavily invested in security, they are interested in rapid development of new features, so I want to find sources that focus on developer productivity. Similarly, I'm currently not interested in articles of the form "we replaced C with Rust and reduced memory safety errors" because Python is already memory safe.
r/functionalprogramming • u/[deleted] • Jan 23 '23
r/functionalprogramming • u/kinow • Jun 17 '22
r/functionalprogramming • u/dredozubov • Nov 25 '21
r/functionalprogramming • u/alexanderfefelov • Dec 02 '20
r/functionalprogramming • u/vrom911 • Aug 17 '20
r/functionalprogramming • u/goto-con • Jan 29 '20
r/functionalprogramming • u/kvalle • Dec 06 '19
r/functionalprogramming • u/imright_anduknowit • Nov 20 '19
r/functionalprogramming • u/lastsurvivor969 • Dec 17 '25
Hey I've been thinking about how to understand and explain monads for a while, trying both from a formal and practical point of view. It's been nagging me for a while, so I figured I could share my thoughts so far based on different sources I've read.
I'm approaching this from the perspective of software development. I would like to hear if others agree/disagree with the intuition I have.
The formal prerequisites of monad:
Semigroup (associativity): A formal property where; any order grouping of operations will yield the same result.
Example: Multiplication a *(b*c) = (a*b)*c
Example: Addition a+(b+c) = (a+b)+c
Monoid (Semigroup & Identity): A formal property where; The semigroup property is present and an "identity" operation that makes it possible to return the result of previous operations.
Example: Multiplication a * b * c * 1 = a * b * c
Example Addition a + b + c + 0 = a + b + c
skip formality of endofunctors because this might lead to a rabbit hole in category theory...
Combine this with features of functional programming:
Model types with uncertainty: A type that encapsulates maybe a value OR an error
Example notation: Normal type a , Uncertain type m a
Functions as values: Generally speaking, higher order functions that take arbitrary functions (expressions) as input.
Example notation: A function that takes input function and returns a result type (a -> b) -> b
The above properties/features compliment each other so that we arrive at the monad type signature (takes two input arguments): m a -> (a -> m b) -> m b
How is a monad useful:
Multiple monad executions can be chained together in arbitrary order (see semigroup)
A specific monad execution might be unnecessary/optional so it can return result of previous monad executions instead (see monoid)
Errors due to uncertainty are already modelled as types, so if a monad execution returns Error, it can be moved to the appropriate part of the program that handles errors (see types with uncertainty)
What business implications are there to using monad:
Given a dependency to an external component that might fail, an error can be modelled pre-emptively (as opposed to reacting with try-catch in imperative style).
An optional business procedure, can be modelled pre-emptively (see monoid)
Changes in business procedure, can require changes in the sequence order of monad executions (which kinda goes against the benefits of semigroup property and potentially be a headache to get the types refactored so they match with subsequent chain monads again)
r/functionalprogramming • u/yeastyboi • Dec 04 '23
I've heard a lot of good things about Phoenix for Elixir but can't get over the dynamic type system. What is the best framework with similar features to Rails or Laravel? I've used light weight servers like Opium for OCaml but haven't found anything similar to frameworks found in OO languages.
r/functionalprogramming • u/kinow • Feb 17 '23
r/functionalprogramming • u/amandiersenflrs • Feb 04 '21
r/functionalprogramming • u/sunedd • Jul 03 '20
r/functionalprogramming • u/kinow • Feb 24 '20
r/functionalprogramming • u/kinow • Nov 03 '19
r/functionalprogramming • u/fuadsaud • May 15 '18
r/functionalprogramming • u/cekrem • Oct 29 '25
r/functionalprogramming • u/thenepalicommentfan • Jun 15 '24
I went with elixir.
Which one?
Few criterias:
it should be old enough, have lots of tutorials, books written etc.
it should help me think functionally.(i am learning sql rn that's why).
I don't think it matters but I love to be a server admin/database admin one day.