this post was submitted on 09 Feb 2024
19 points (100.0% liked)

Programming

17313 readers
214 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 8 months ago* (last edited 8 months ago) (5 children)

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] 6 points 8 months ago (4 children)

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] 3 points 8 months ago (1 children)

It does look pretty damn cool. One thing that bothers me is it is in the npm ecoystem :)

[–] [email protected] 6 points 8 months ago* (last edited 8 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.

load more comments (2 replies)
load more comments (2 replies)