Live data from Hacker News

Elm Compiler Written in Elm

github.com

1–10 of 84 posts

Re: Elm Compiler Written in Elm

#3
Sad that they have to put a massive "Non-goals" full of emojis so the main Elm team does't feel threated. A languange doesn't lose anything with an extra compiler - a competing compiler is actually what Elm needs right now.

Re: Elm Compiler Written in Elm

#4

Very cool! However, could they not compile the Haskell Elm compiler to JS using GHCJS and then write Elm bindings for it?

One of their stated goals is to show people how to write a compiler in Elm, and another is to allow programmers familiar with Elm to hack on the Elm compiler without needing to learn Haskell.

Re: Elm Compiler Written in Elm

#5
I like it! I gather now you can compile Elm in the browser? It allows many things, similarly as F# with Fable, which allows to compile F# code in browser without a server.

Ability to compile code in browser allows to do sandboxes, or tools that otherwise would require a server.

Re: Elm Compiler Written in Elm

#6

Sad that they have to put a massive "Non-goals" full of emojis so the main Elm team does't feel threated. A languange doesn't lose anything with an extra compiler - a competing compiler is actually what Elm needs right now.

I don't see how the emojis have anything to do with that section, since they're all over the readme anyway. Aside from that: what they're stating is that they "don't want to and aren't planning to divide the community into multiple Elm derivatives, and will actively try to prevent that". Not dividing the community is not the same thing as threatening the main Elm team. And for a smallish language like Elm it makes sense to me that they want to keep everyone on the same team.

Re: Elm Compiler Written in Elm

#7
Serious question: how popular is Elm? I've recently seen some tutorials showing up and anecdotally know some friends that have played around with it, but I haven't seen any job postings for it and so I'm wondering if it's just hyped up or if there is real demand for Elm developers professionally.

Re: Elm Compiler Written in Elm

#8
post #7

Serious question: how popular is Elm? I've recently seen some tutorials showing up and anecdotally know some friends that have played around with it, but I haven't seen any job postings for it and so I'm wondering if it's just hyped up or if there is real demand for Elm developers professionally.

I write Elm full time, so there are definitely jobs out there.

That said, I suspect that given how fun the language is to write, supply probably outpaces demand a bit. Which is actually good, in the sense that for many companies adopting a somewhat less mainstream language one of the main concerns is "will I be able to hire for this?", which generally the answer is "yes, especially for more senior positions".

Re: Elm Compiler Written in Elm

#9
post #7

Serious question: how popular is Elm? I've recently seen some tutorials showing up and anecdotally know some friends that have played around with it, but I haven't seen any job postings for it and so I'm wondering if it's just hyped up or if there is real demand for Elm developers professionally.

Neither, really. I'd say it has the largest community out of the various compile-to-js statically typed FP langs, at least with an explicit front-end focus.

- PureScript has a small but passionate community, one of the biggest players in that community laid off their whole ps team so that doesn't bode well.

- ReasonML fractured into ReScript but left half the Reason community behind, it's a confusing space to navigate now.

- GHCJS...

Most (perhaps even all) of the job postings end up on the elm slack (rather than, say, reddit or other more visible places).

There was some controversy with the release of 0.19 a couple of years ago, and general contempt (in the wider community, not inside Elm) for the way the language is developed and run which means there isn't a great deal of buzz about it outside of those already using it.

Re: Elm Compiler Written in Elm

#10

Very cool! However, could they not compile the Haskell Elm compiler to JS using GHCJS and then write Elm bindings for it?

The compiler written in Haskell relies on some extensions and/or optimisation tricks that make it not possible to compile with GHCJS. The 0.18 compiler (or maybe it was 0.17) was compiled with it though, it was what Ellie (third-party online playground) used.
Post reply on HN