News for hackers. Stuff that matters.
Re:A list of companies using Elm in production by kweinber on Wednesday February 05, 2020 @05:10AM (#22245488)
Elm has been out a long time and that is a really short list. Are there key reasons elm hasn’t seen more adoption? (Please don’t bother with comments about corporate drones etc.... companies are pretty good at taking advantage of a good thing)
Re:A list of companies using Elm in production by MichaelGlass on Wednesday February 05, 2020 @05:34AM (#22245598)
> companies are pretty good at taking advantage of a good thing.

I ... don't think that's true?

There are lots of "superior" technologies that just haven't won. e.g. the handful of people who use it _swear_ by Datomic. And there are load of so-called "inferior" technologies that are still widely relevant. Mysql? Php? Wordpress? They pay a lot of software developers' bills.

I work at NoRedInk, and we pay Evan Czaplicki to work on elm. When we started to migrate to Elm, our eng team was under 10 people. Larger companies, e.g. even NoRedInk today, tend to be less agile.

Re:A list of companies using Elm in production by frozenlettuce on Wednesday February 05, 2020 @09:16AM (#22246815)
- no private repos (the standard PKG manager assumes GitHub). You need to use another package manager

- yearly updates in the official blog - it's very hard to convince a team when it smells like abandonware - besides not being. The fact that the language has a single centralist owner does not help (just look at the blog posts, it's always "I did this, and that", not "we".

- active work from the owner to shut down another PKG manager (Pine, if I recall correctly), because it allowed usage of """kernel""" modules

Re:A list of companies using Elm in production by k_bx on Wednesday February 05, 2020 @10:56AM (#22247900)
> - no private repos (the standard PKG manager assumes GitHub). You need to use another package manager

Yes, but a minor point I'd like to make is that because of how Elm is organized, you just put stuff in your src folder and it immediately compiles (since there's no JS FFI etc.). So it's not as big of a pain as it might seem.

Re:A list of companies using Elm in production by Karupan on Wednesday February 05, 2020 @06:41AM (#22245924)
I tried introducing Elm at my workplace and failed because:

1. Development of compiler and core libraries strictly BDFL driven (at least used to be)

2. Fixing some important compiler/library bugs takes years

3. No way to host private package repositories

I still use Elm personally, although these are very valid concerns.

Re:A list of companies using Elm in production by idoubtit on Wednesday February 05, 2020 @08:17AM (#22246439)
It was also rejected at my workplace, with the extra reasons:

4. The language is still unstable. Porting our code to the next release could be a huge task.

5. Elm + JavaScript is generally painful.

6. Few libraries, some of them unmaintained. Combined with the near-impossibility to use JS libraries from Elm, it would increase our work too much.

Re:A list of companies using Elm in production by vmchale on Wednesday February 05, 2020 @09:53AM (#22247106)
I did a side project in it; then the dependencies broke because of a compiler update (frustrating), and that's never been updated.

I would never use such a thing in production.

Re:A list of companies using Elm in production by Karupan on Wednesday February 05, 2020 @05:22PM (#22251557)
> Elm + JavaScript is generally painful

Getting rid of kernel modules for everything others than core packages in 0.19 made JS <-> Elm interop even more painful and broke some apps. I forked the compiler [1] to support that, although it is not upto date (still stuck at 0.19.0)

[1] https://github.com/Checksum/elm-compiler

Re:A list of companies using Elm in production by razze on Thursday February 06, 2020 @05:40AM (#22255001)
6. Name one language, that has no unmaintained libraries, please :)
Re:A list of companies using Elm in production by vmchale on Wednesday February 05, 2020 @09:54AM (#22247117)
> 2. Fixing some important compiler/library bugs takes years > > 3. No way to host private package repositories

That's kind of related to the dictatorial community management. Relatedly, you still can't write a generic sort function.

Re:A list of companies using Elm in production by herteby on Wednesday February 05, 2020 @01:28PM (#22249651)
You can either write a comparison function that returns an Order, or a function that converts your type to a comparable. Then you use List.sortBy or List.sortWith. I don't really know how a generic sort function would work without typeclasses/interfaces.
Re:A list of companies using Elm in production by matsemann on Wednesday February 05, 2020 @08:28AM (#22246513)
For 3., we use elm-git-install https://github.com/Skinney/elm-git-install
Re:A list of companies using Elm in production by popara on Wednesday February 05, 2020 @05:23AM (#22245552)
From what I have heard, most teams that don't opt to Elm have a reason along the lines of: But this is not React and React is the best!

On the other hand, I have been using Elm for solid 4 years, and there are so many moments of Pure Joy of working with Elm, that JS/TS is unbearable.

I have dropped many offers to work on React TS codebases, because that kind of language is such a downgrade after Elm ... IMHO

Re:A list of companies using Elm in production by hellofunk on Wednesday February 05, 2020 @05:52AM (#22245694)
I feel exactly the same way about Clojurescript and Reagent.
Re:A list of companies using Elm in production by LandR on Wednesday February 05, 2020 @05:40AM (#22245626)
> companies are pretty good at taking advantage of a good thing

This is not my experience at all.

Re:A list of companies using Elm in production by claudiawerner on Wednesday February 05, 2020 @05:45AM (#22245659)
I don't know about anyone else, but I had some trouble with Elm. It's hard to reason in the type system (in comparison to Haskell), and I even had trouble just getting a drop-down list and radio buttons in a cross-platform way. The application structure is also very confusing to me, it's not quite MVC but it also doesn't let me just put stuff in one file. On the other hand, the workflow was good (even if it takes some time to compile + assets etc.), but I don't know if I'd use Elm again instead of trying TypeScript.
Re:A list of companies using Elm in production by vmchale on Wednesday February 05, 2020 @09:55AM (#22247133)
> I don't know if I'd use Elm again instead of trying TypeScript

I'd use PureScript next, or maybe ReasonML.

Elm is stagnant and its dictator seems to be quite insistent on keeping it that way.

Re:A list of companies using Elm in production by z5h on Wednesday February 05, 2020 @10:39AM (#22247660)
I think you mean stable. I’ve been more productive and happy in Elm than with any other language in the past 20 years.
Re:A list of companies using Elm in production by matsemann on Wednesday February 05, 2020 @08:15AM (#22246427)
> that is a really short list

But was it a well-known list before this? I hadn't seen it, and know of a few projects that could have been on there.

What I'd like the list to include, though, is some references to the companies discussing using Elm. Pros and cons, the scale to which it is used etc. For instance for Vy there is this blog post: https://blogg.bekk.no/using-elm-at-vy-e028b11179eb

Re:A list of companies using Elm in production by frou_dh on Wednesday February 05, 2020 @07:03AM (#22246013)
Elm has been around for a long time and yet it's still pre 1.0. AFAIK there hasn't been, and still isn't, a promise that what you write has any sort of forward-compatibility with the next 0.x release.

On that note, it's interesting that publishers have already put out print books.

Re:A list of companies using Elm in production by G4BB3R on Wednesday February 05, 2020 @08:37AM (#22246573)
It is just a number, react-native is not 1.0 too and it's is used in production world wide
Re:A list of companies using Elm in production by frou_dh on Wednesday February 05, 2020 @08:45AM (#22246622)
If it was just an arbitrary number then I wouldn't have been able to write the rest of my comment. Elm has history of adopters being surprised by the hammer coming down.
Re:A list of companies using Elm in production by Grimm1 on Wednesday February 05, 2020 @08:55AM (#22246694)
https://semver.org/

'If you have a stable API on which users have come to depend, you should be 1.0.0. If you’re worrying a lot about backwards compatibility, you should probably already be 1.0.0.'

To a significant part of the community 1.0 means a stable API with considerations of backwards compatibility.

I know many people aren't using pure semver but the implications of a 1.0 have in my opinion extended beyond that point and beyond semver in general.

[dead]
Re:A list of companies using Elm in production by matsemann on Wednesday February 05, 2020 @10:47AM (#22247759)
You have been outed for spewing elm-hate just yesterday, and now you're all over this thread as well https://news.ycombinator.com/item?id=22236258
Re:A list of companies using Elm in production by superdisk on Wednesday February 05, 2020 @01:19PM (#22249559)
He's actually right. The community defends even bad decisions that come from the BDFL (more like just the DFL) and cargo cult parts of the language like ports or the inability to interface with native JS code.

And there really aren't any ways to make generic functions.

Re:A list of companies using Elm in production by the_gipsy on Wednesday February 05, 2020 @03:53PM (#22250873)
Have you considered that the community just agrees? I'm happy with Elm and I don't want to sacrifice the spirit of it, just to get "big" like react or whatever. If you want to be mainstream, then there is already mainstream.
Re:A list of companies using Elm in production by superdisk on Friday February 07, 2020 @12:00AM (#22263370)
I guess what I'm saying is that the community treats Evan Czaplicki like some sort of language design god who has carefully and artisinally crafted a revolutionary new language with no runtime errors(!!!!) when in reality it's just Haskell with all the powerful features stripped out.

I really do like the paradigm of unidirectional data binding to the UI and the message system, but Elm The Language itself is basically the Go of functional programming; when you point this out on the subreddit or to a fan, you'll get banned (I have) or condescend to in the most obnoxious way, with plenty of the word "folks" peppered in.

Re:A list of companies using Elm in production by philh on Wednesday February 05, 2020 @04:19PM (#22251090)
> I'm happy with Elm and I don't want to sacrifice the spirit of it, just to get "big" like react or whatever.

This part seems to come out of nowhere? Your parent disagrees with certain design choices, but they didn't say why they disagree, and it seems unlikely to me that they disagree because they want elm to go mainstream.

Unless you think that making different choices would turn elm into something mainstream? If so, I'd be interested to hear justification for that.

Re:A list of companies using Elm in production by the_gipsy on Wednesday February 05, 2020 @05:52PM (#22251766)
Yea it's a bit of a strawman. It's because I've tried to follow these discussions, and usually it resolves around that.

> Unless you think that making different choices would turn elm into something mainstream? If so, I'd be interested to hear justification for that.

I don't think it would. It would end up being just another coffeescript without any notability. It is precisely so interesting because Evan is being pragmatic. No matter where it ends up, until now at least it is far more valuable and interesting than just another kitchensink.

Re:A list of companies using Elm in production by philh on Wednesday February 05, 2020 @06:32PM (#22251996)
> It's because I've tried to follow these discussions, and usually it resolves around that.

Fair enough. That hasn't been my experience, but it's not important.

> It would end up being just another coffeescript without any notability.

Ah, perhaps I was unclear. By "turn elm into something mainstream", I meant something like "make it indistinguishable from other mainstream things with nothing to distinguish it". That sounds like what you mean here.

In any case, I don't think this is true, and I'd still be interested in hearing your reasons for thinking it.

(For example, are there specific design decisions that you think (a) people are clamoring for Evan to make differently and (b) would turn Elm into something that isn't distinguished from anything else? I can't think of any. Parent seemed to be referencing kernel code, but Elm 0.18 had that, and it wasn't just another coffeescript.)

> It is precisely so interesting because Evan is being pragmatic.

What do you mean by "pragmatic", here? My natural interpretation would be "Evan is making compromises to the core design to make Elm easier to use", but that doesn't seem to fit. If that's what you mean I just plain disagree, and I think Evan would too. (Though, again, if that is what you mean then I'd be interested to hear your reasons for thinking it.)

Re:A list of companies using Elm in production by the_gipsy on Thursday February 06, 2020 @02:13AM (#22254097)
On the contrary, I mean that Evan sometimes makes Elm harder to use, for a long term vision.

E.g. kernel.