• Elixir is a nice functional language. Not as purely functional as Haskel mind.

    It is based off of Erlang and runs on the Erlang VM. Syntax is Ruby inspired. It is not a high performant language (like C, Rust, etc), but it excels at distributed computing and fault tolerance. There is excellent documentation and tooling for it as well.

  • froufox ( froufox@lemmy.blahaj.zone ) 
    link
    fedilink
    English
    arrow-up
    3
    ·
    2 years ago

    You don’t actually need to know any of the functional programming languages to work in the AI sphere. Moreover, codebase in pure funcional languages is hard to understand and maintain, that’s why they are rarely used in production. Of course you can learn any language for funsies, but I’d recommend Kotlin as a modern hybrid OOP language with a solid functional toolkit

    • Moreover, codebase in pure funcional languages is hard to understand and maintain, that’s why they are rarely used in production.

      hahahah how to trigger a lot of people working with these pure functional languages (like me).

      I’ve worked with both “normal languages” like C++, java, Perl, javascript (node + UI), etc… and then I switched to Haskell and Clojure. And our current production code is a LOT better than in traditional languages. In particular, maintenance is a lot cheaper that what I was used to when working with more traditional languages.

      Regarding the community impact I would advise to use Clojure instead of Haskell (or Purescript, or Elm). Clojure is a nice middleground that has a huge advantage of being very stable (by that I mean, the code you write today will probably be very easy to deploy in 10, or 20 years from now).

      Note however, the language alone is not sufficient to write good code, but it helps you choose better abstractions that will be easier to maintain. If you dive into the spirit of the language, you will have a better intuition and understanding about state management of big applications and will probably make more visible some design issues.

      • froufox ( froufox@lemmy.blahaj.zone ) 
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 years ago

        It depends on when have you switched from those “normal” languages to functional, and where do you work now. Java 10 years ago is not Java nowadays, and not Kotlin. These modern languages influenced by advantages of functional languages, and you can even write thr most of your code in the functional style.

        Our company has some codebase in Clojure and Haskell, and it was a huge headache to find a substitution for a Haskell engineer when they left. There are so few experts on the market. But of course, if you’re an American big tech company, you’ll find an engineer.

        And I’m not saying to you “hey, switch to Kotlin!” Nope, if you’re enjoying what you’re doing and it brings you money — keep going. But the sad reality is that it’s much harder to find a job for a pure funcional coder.

    • Feyd ( Feyd@programming.dev ) deleted by creator
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      Moreover, codebase in pure funcional languages is hard to understand and maintain, that’s why they are rarely used in production.

      This is incorrect. They are rarely used because procedural languages have momentum. It’s way more likely you’ll get Joe Codemonkey to learn and be productive quickly with functional features added to a procedural language than to learn and be productive quickly with an entirely different paradigm. So that’s what happens.

  • TehPers ( TehPers@beehaw.org ) 
    link
    fedilink
    English
    arrow-up
    3
    ·
    2 years ago

    For your goals, I would stick with Python unless you want to learn another language. There’s not much value to switch away when all the tools you need are primarily designed for Python.

    As far as functional programming goes, with AI stuff, my experience is that you generally are more interested in orchestrating services than FP. For example, run input through model #1, then based on the output, run one of these other 3 models (or multiple of them in parallel), then eventually pass it all back into another service/function to aggregate and format the outputs. You can think of each of these as being “functions”, but they’re much higher level than what you’d traditionally consider functions in FP and more along the lines of microservices.