r/functionalprogramming • • Nov 19 '24

Question Which functional or language with functional features for web dev?

I'm hesitating between Fsharp and Ocaml. I believe Fsharp has a bigger ecosystem but you have to constantly interface with libraries written in C#. Ocaml has probably worse tooling from what I heard and the ecosystem is not mature but you can write more functional code without being boggled down by impure code.

28 Upvotes

37 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Nov 19 '24

[deleted] — view deleted comment

3

u/RetroUnlocked Nov 19 '24

 I am not a fan of all-bells and whistles frameworks so not super heplful here.

Gleam + Lustre still stands. Again haven't used it but here is a podcast interview from the author:

https://youtu.be/4n5fFMLVOBo?si=RPtluyg4rp2ukdmQ

People swear by Elixir + Phoenix, but being Phoenix fans, not sure I got a good balanced opinion.

2

u/DeepDay6 Nov 20 '24

With that in mind, you might want to give Clojure+Biff a try; it seems to do exactly what you want.

In a similar spirit, there's Deno+Fresh. JavaScript/TypeScript can be used in a very functional way; you might even want to throw in one of the incredible amount of FP-libraries to write more pure code.

Both focus on the "mostly backend code plus static webpages with 'islands of interactivity'"-approach.