News for hackers. Stuff that matters.
Re:Ask HN: What Happened to Elm? by ambrozk on Friday February 10, 2023 @09:51PM (#34749106)
Yep. And the core team has that "happy cult" vibe where they think that if they're (passive-aggressively) polite enough, they don't have to worry about anyone's opinion outside their insular little group. I tried to use it for a little project about a year ago, ran into some problems, and, searching around, found my problems were 1. not unique to me, and 2. were definitely not going to be solved by the language designers, despite a lot of people having the same suggestions. Their attitude is "either you design your app how we'd prefer you to or you don't use Elm at all." This doesn't work in any other technical project, but they think it's going to work for them for some reason.
Re:Ask HN: What Happened to Elm? by hitekker on Saturday February 11, 2023 @02:08AM (#34750265)
"Happy cult" vibe is exactly how describe that faux-niceness they throw around. Thanks for coining that phrase.
Re:Ask HN: What Happened to Elm? by jopsen on Saturday February 11, 2023 @02:35AM (#34750377)
Honestly, the boldness of the opinions is also what makes elm well designed.

I never really used it, but I see plenty of other languages that are perhaps too much driven by consensus rather than vision.

Re:Ask HN: What Happened to Elm? by mst on Saturday February 11, 2023 @08:22AM (#34752118)
Opinionation is often useful but it's best implemented with an escape hatch of some sort for when you run into a sufficiently weird situation there's not actually a sensible way to deal with it.

I don't particularly mind if a project holds their opinions sufficiently strongly that they mark the escape match big red letters with "BY USING THIS YOU ARE VOIDING YOUR WARRANTY, IF IT BREAKS YOU GET TO KEEP BOTH HALVES" and then tapping the sign any time somebody asks for support with using it, but it should still -exist-.

Re:Ask HN: What Happened to Elm? by hgsgm on Saturday February 11, 2023 @08:39AM (#34752218)
The escape hatch is Haskell. The only reason Elm exists is to remove escape hatches from Haskell.
Re:Ask HN: What Happened to Elm? by mejutoco on Monday February 13, 2023 @06:11AM (#34772219)
The escape hatch of elm is the ports system to interface with javascript.
Re:Ask HN: What Happened to Elm? by mst on Monday February 13, 2023 @12:39PM (#34777044)
Ports is explicitly async and therefore only viable for a significantly limited subset of purposes.

This has been discussed at length elsewhere in this thread, on elm related discussion boards, and in multiple articles.

Ports is the -preferred- way to interface with javascript, certainly, and when its inherent limitations aren't a deal breaker, its being preferred is entirely sensible.

It is not, however, an escape hatch in any meaningful way, hence why people were extremely upset when the actual escape hatch was disabled by maintainer fiat.

Re:Ask HN: What Happened to Elm? by mejutoco on Tuesday February 14, 2023 @07:46AM (#34788531)
I guess I am less strict with what I consider an escape hatch. It does not need to be optimal or follow my preferred method IMHO.

Other than performance I do not see any limitation of the async port system. You can call back from the js side. It is an especial way, I agree, but one that keeps the Elm paradigm intact. It is quite clever. It is "different", but I do not consider that a limitation, but a matter of preference.

Re:Ask HN: What Happened to Elm? by jopsen on Monday February 13, 2023 @08:05PM (#34783675)
I think it's also fine to just say no when people ask for an escape hatch. Say, no and tell them use another tool.

Not every tool, has to solve all problems.

But I do think people should spend more time articulating what their tools don't do, rather than what they do :)

Re:Ask HN: What Happened to Elm? by tasuki on Saturday February 11, 2023 @04:32AM (#34750861)
What were those problems you ran into?