r/functionalprogramming • • Feb 19 '22

Question Functional language for desktop apps

I want to write a desktop app and I want to use a functional language. The app should be system agnostic and should run on Windows and Linux.

I tend to use Rust. I know that it is not really a functional language, but for Rust you don't need to install a runtime like for Scala or F#. It is also memory efficient. But it is not fully functional.

Is there a functional language that I can deploy without having to install a runtime environment first?

29 Upvotes

28 comments sorted by

View all comments

2

u/dorfsmay Feb 19 '22

This is going to sound like a joke, but I'm serious: typescript + React hooks + neutralinojs or even electron.

3

u/yeastyboi Feb 20 '22

I don't think it's a joke. Many commonly used functional programming languages are actually multiparadigm. You can write functional Typescript and you can write imperative Typescript. It's more difficult to write functional code than say OCaml but it's definitely doable.