r/functionalprogramming • • May 16 '19

FP The Y combinator or how to implement recursion in a language that doesn't support it.

Thumbnail
deniskyashif.com
31 Upvotes

r/functionalprogramming • • Apr 18 '19

Good list of FP blogs to follow

Thumbnail
functional.works-hub.com
31 Upvotes

r/functionalprogramming • • Aug 22 '18

Elm Elm 0.19 released

Thumbnail elm-lang.org
31 Upvotes

r/functionalprogramming • • Dec 21 '17

FP My function programming lecturer's 'Map of The Course' [x-post from /r/ProgrammerHumor]

Post image
31 Upvotes

r/functionalprogramming • • Jul 08 '25

Question How much C++ do I have to know to read CTFP by Bartosz Milewski?

30 Upvotes

I'm a backend engineer with math undergrad degree. I almost exclusively code in Python at work (OOP). I recently got deeply interested in the Python type-system, one thing led to another, and I ended up in this rabbit hole of category theory, functional programming and Haskell

I discovered CTFP by Bartosz Milewski and his lecture series on YouTube. I thought this would be the perfect book for me to start with, except that it uses C++.

I almost never read or write C++ code, how much of a problem will this be for me to understand this book?


r/functionalprogramming • • Jun 11 '25

Jobs [Job] Obsidian Systems - Hiring Remote Software Engineers - Functional Programming

30 Upvotes

We're currently hiring software engineers at Obsidian Systems. We're a fully remote company that's been in business since 2014.

Looking for candidates with:

  • 3+ years of software engineering experience

  • Experience developing fintech, blockchain, AI, data science, open-source, and/or enterprise applications

  • Documented experience in functional programming, with a strong preference for Haskell and/or Rust

  • Understanding of system design and architecture principles

  • Experience working with fully remote teams

  • Proactive communication skills

9-5 EST hours for collaboration. Paid benefits if you're in the US.

Job details: https://obsidian.systems/jobs/software-engineer


r/functionalprogramming • • Jan 12 '25

Question Which functional programming language should I learn?

30 Upvotes

I have recently discovered the world of functional programming and I want to learn a functional programming language.

For most of my life I have programmed in Python and I have always liked its onelined expressions like list comprehension and lambdas.

I also value good error messages in a programming language (not some segmentation fault or NullPointerException bullshit), and this is also why I like for example Rust.

I study Mathematics so I like the idea of a programming language being "mathematical" which I heard Haskell being decribed like, and Haskell is what I initially thought would be the best to learn, but I don't want to exclude other languages, so that's why I'm making this post.

I don't plan on ending my functional programming journey on one language, so I want to first learn one just for fun, so it doesn't matter if a language is used in industry or not.

I would really appreciate some recommendations for the language I should learn.


r/functionalprogramming • • Dec 02 '24

Question What languages to start learning FP?

30 Upvotes

The purely functional languages I know off the top of my head are Haskell and Elixir, but I know there’s plenty more.
What’s generally recommended as the best language to learn pure FP?

Note that I’m not a complete beginner in programming. I’m far from experienced but I know more than just the basics


r/functionalprogramming • • Oct 10 '24

Question FP language for Unix Scripting?

30 Upvotes

I'm a Linux admin who wants to get into FP. Any languages out there that are strict FP (single assignment, etc) that will let me easily move around files, start and stop processes, shell out, etc.?


r/functionalprogramming • • Mar 12 '24

Question FP language with most remote jobs?

30 Upvotes

What is the FP programming language with more remote jobs?


r/functionalprogramming • • Aug 28 '23

Question Which general purpose language has the best functional programming support?

30 Upvotes

So I just looked into functional programming with C++ and it is super ugly. So I started wondering which languages (that aren't purely functional) have the best support?.

Rust looks like it has good functional patterns but I have not used it.


r/functionalprogramming • • May 16 '22

Intro to FP Recommendation for first fp language

30 Upvotes

Hey! I’m seeking some recommendation regarding a good fp language to start with. I was thinking between Clojure ,Scala and Haskell. My goal is to learn new paradigm to become a better developer.

FYI, currently at work I develop in Go, Rust and Typescript. Previously did some Java and Python. And at college did some Common Lisp.


r/functionalprogramming • • Apr 26 '22

Elixir Building a CLI Application in Elixir

Thumbnail
blog.davemartin.me
30 Upvotes

r/functionalprogramming • • Mar 05 '22

OCaml infer - A static analyzer for Java, C, C++, and Objective-C open-sourced by Facebook

Thumbnail
github.com
30 Upvotes

r/functionalprogramming • • Dec 09 '21

News Functional Programming Languages Sentiment Ranking

Thumbnail
scalac.io
30 Upvotes

r/functionalprogramming • • Aug 18 '21

Elm Elm at Rakuten | Rakuten Engineering Blog

Thumbnail
engineering.rakuten.today
30 Upvotes

r/functionalprogramming • • Nov 10 '20

JavaScript Declarative Versus Imperative Programming

Thumbnail
medium.com
30 Upvotes

r/functionalprogramming • • Oct 31 '20

Why I prefer functional programming

Thumbnail haskellforall.com
30 Upvotes

r/functionalprogramming • • Jun 30 '20

λ Calculus Lambda calculus explained through JavaScript: combinators and Church encoding

Thumbnail
willtaylor.blog
30 Upvotes

r/functionalprogramming • • Dec 12 '19

Intro to FP Tail recursion

Thumbnail
functional.christmas
30 Upvotes

r/functionalprogramming • • Nov 08 '19

λ Calculus You Can Explain Functional Programming Using Emojis

Thumbnail
ycombinator.chibicode.com
30 Upvotes

r/functionalprogramming • • Jul 22 '19

FP Algebraic Effects for the Rest of Us

Thumbnail
overreacted.io
30 Upvotes

r/functionalprogramming • • Mar 31 '19

Question Are there "clean code" guidelines on FP?

30 Upvotes

One thing I am wondering - are there any general guidelines in the style of "clean code" for the paradigm of functional programming?

To give some information on my background, I am familiar with Clojure and Scheme, and I am aware of some Clojure coding style guidelines. What I am looking for is for good practices one level up, like:

  • how many parameters should functions have?

  • when should flags be used, when methods which match the same signature?

  • when should data be combined in records / objects ?

  • what is the best way to arrange I/O and database access?

  • what helps to organize larger programs?

I am looking especially for guidelines which are generally applicable, regards of the programming language.

To describe the task at hand, I am currently writing an application in Python which does both a lot of hardware control, data gathering, and a lot of data transformation and presentation. While some of the hardware control seems to be a more naturally fit to OOP with some imperative parts (this is where the changing state of the hardware matters), some seems more suited to OOP with a functional paradigm (similar to Scala's immutable objects), and the data transformation part looks like a very clear match to "pure" FP (which is not all that unusual in code which uses Numerical Python, for example). I have been checking this code using pylint. It uses some complexity evaluations like number of branches, number of parameters, lines of code in methods. These checks tend more frequently to fail in the hardware control parts - especially, it tags some functions as "too complex". Obviously, the checks in pylint draw some criterions from Robert Martin's "Clean Code" guidlines, for example methods and functions with too many branches, too many parameters, or too many lines of code are marked with warnings.

It might be that there, I am simply trying to use too much a "pure functional" style where some sort of OOP approach (with or without side effects) would be better suited. But I am also wondering whether good functional-styled code might simply need somewhat different guidelines. For example, in "Clean Code", Bob Martin says that no function should have more than three parameters. It seems to me that this makes sense for an OOP style, where a lot of additional information is in object member variables, bit might be too little in a pure FP style.

Finally, I want to formulate something which is, let's call it, a bit of a suspicion, it is not a theory, and it corresponds somewhat to the matter of preferred OOP styles and differences to FP styles. The suspicion is that OOP has (often) advantages when used in a single code base. An example for that would be a Unix kernel. However, much of the appeal of OOP in the last three decades seemed to come from the idea that software can be made into independent, reusable parts, which can be fabricated, stored, sold, and used, just like parts of a machine, and independent of the code base in which it is employed. So, this view of OOP sees OOP as a means for re-using code as components. An example for this would be Delphi or GUI toolkits, or Java libraries. A consequence of that approach is that the resulting libraries are often very heavily geared toward general usefulness and maximum flexibility, which leads sometimes to a very high stack of abstractions, and a high complexity - I think the Java libraries are a good example of that. Probably, some clean code guidelines reflect that.

There seems to be a different school of thought which sees abstraction as not necessarily helpful, and thinks that abstraction needs to be justified within each single program - that it is better to re-write some code, than to tug around a huge baggage of unused abstractions. I think for this school of thought, FORTH is a good example.

Now, to formulate my suspicion, it appears to me that in functional programming languages, abstractions tend to be seen more in the way of an intermediate, middle-ground school of thought - they are useful if they help to express the code more clearly, but the primary goal of abstractions is not to get complex, re-usable components, rather it is to organize the code into layers which can be reasoned about independently. It seems to me that languages like Lisp and Clojure are much more centered around sharing and re-using of source code, than of binary software components. And this preference for code-sharing over component-sharing might be one of the reasons why FP is (or was) less popular in the parts of the commercial software industry which sell licensed software, than in those parts which, for example, provide software as a service.


r/functionalprogramming • • Feb 01 '19

Intro to FP Great talk about "Functional Programming in 40 Minutes" with Russ Olsen from GOTO Berlin 2018

Thumbnail
youtu.be
30 Upvotes