I constantly hear about research into functional programming, and even real things coming out of them, like certain programming languages (idris).

Is there anything like this for frontend UI dev? It doesn’t have to be FP related.

  • Turun
    link
    fedilink
    5
    edit-2
    10 months ago

    Have you looked at Elm?

    It’s very much not JavaScript, but I think that comes with the territory of wanting something significantly different.

    For what it’s worth, with wasm you could use any language that compiles to it as a frontend language. Rust has a few frameworks that can compile to standalone wasm web pages.

    • @[email protected]
      link
      fedilink
      English
      610 months ago

      I’m confused why everyone sleeps on Purescript. I mean, it is currently QUITE obscure… I could be wrong but I feel like Purescript has all of the same goals as Elm but better.

        • @[email protected]
          link
          fedilink
          English
          6
          edit-2
          10 months ago

          Thanks for that explanation. That makes sense.

          I guess I should also mention IHP.


          As far as npm and Purescript goes: I don’t interact with npm when I use it. I use nix and nixpkgs to build it which pulls packages from a predefined, fixed package set inside of Pursuit (Purescript’s package manager that feels a whole lot like Stackage). I suppose if I wanted to use it in the real world, I’d probably have to expose myself to some npm. But, from my cursory understanding and experience, it is probably less tainted by the safety issues in the npm than straight up JavaScript. Packages in Pursuit (particularly the ones exposed in the standard package set I use) tend to be super high quality code like the modules you’d find in GHC.

      • Turun
        link
        fedilink
        210 months ago

        I also sleep on elm, JavaScript and typescript. (i.e. don’t use then)

        It’s simply that I never heard of purescript.