r/functionalprogramming • • Dec 30 '19

JavaScript Clio Programming Language - A pure functional programming language targeting decentralized systems

Thumbnail
clio-lang.org
43 Upvotes

r/functionalprogramming • • May 07 '18

Conversations with a six-year-old on functional programming

Thumbnail
byorgey.wordpress.com
43 Upvotes

r/functionalprogramming • • Aug 13 '26

FP A Preview of Roc 0.1.0 by Richard Feldman

Thumbnail
youtu.be
42 Upvotes

r/functionalprogramming • • Mar 01 '26

Question FP lang for 2026

42 Upvotes

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 • • Nov 27 '25

Question Resource request - The business case for functional languages

42 Upvotes

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 • • Jan 23 '23

News WebAssembly will get Tail Calls

Thumbnail
reddit.com
42 Upvotes

r/functionalprogramming • • Jun 17 '22

FP Ante - A low-level functional language

Thumbnail
antelang.org
42 Upvotes

r/functionalprogramming • • Nov 25 '21

FP Advantages of Functional Programming

Thumbnail
typeable.io
42 Upvotes

r/functionalprogramming • • Dec 02 '20

Books PROGRAM = PROOF by Samuel Mimram (free PDF)

Thumbnail lix.polytechnique.fr
42 Upvotes

r/functionalprogramming • • Aug 17 '20

Haskell [Blog Post] Haskell mini-patterns handbook

Thumbnail
kowainik.github.io
42 Upvotes

r/functionalprogramming • • Jan 29 '20

Erlang The Soul of Erlang and Elixir

Thumbnail
youtu.be
42 Upvotes

r/functionalprogramming • • Dec 06 '19

JavaScript The Lens Pattern in TypeScript

Thumbnail
functional.christmas
42 Upvotes

r/functionalprogramming • • Nov 20 '19

The Biggest Problem with Elm

Thumbnail
medium.com
42 Upvotes

r/functionalprogramming • • Dec 17 '25

Question Yet another attempt at monad explanation

41 Upvotes

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:

  1. 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

  2. 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

  3. skip formality of endofunctors because this might lead to a rabbit hole in category theory...

Combine this with features of functional programming:

  1. Model types with uncertainty: A type that encapsulates maybe a value OR an error

    • Example notation: Normal type a , Uncertain type m a

  2. 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 • • Sep 19 '24

Gleam Gleam v1.5.0

Thumbnail
gleam.run
41 Upvotes

r/functionalprogramming • • Dec 04 '23

Question What is the best web framework in the statically typed functional programming world?

41 Upvotes

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 • • Feb 17 '23

C++ John Carmack on Functional Programming in C++

Thumbnail
sevangelatos.com
41 Upvotes

r/functionalprogramming • • Feb 04 '21

Intro to FP Lecture 1 - Introduction - Graham Hutton

Thumbnail
youtube.com
41 Upvotes

r/functionalprogramming • • Jul 03 '20

Python Purely Functional, Statically Typed Effect System in Python

Thumbnail pfun.readthedocs.io
41 Upvotes

r/functionalprogramming • • Feb 24 '20

Scala "The general value of typed functional programming lies in leaving no edge cases" x-post a comment from r/scala

Thumbnail np.reddit.com
41 Upvotes

r/functionalprogramming • • Nov 03 '19

FP The Misunderstood Roots of FRP Can Save Programming

Thumbnail
futureofcoding.org
41 Upvotes

r/functionalprogramming • • May 15 '18

FP Demystifying functional programming (in a real company)

Thumbnail
medium.com
41 Upvotes

r/functionalprogramming • • Oct 29 '25

Elm The Same App in React and Elm: A Side-by-Side Comparison

Thumbnail
cekrem.github.io
40 Upvotes

r/functionalprogramming • • Jun 15 '24

Question Best toy functional programming language to learn to learn to think functionally?

40 Upvotes

SOLVED

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.