4 ms·
I had a hunch reading the home page that Gren and Elm were related. This is confirmed by this page: https://gren-lang.org/book/appendix/faq/#what-are-the-diffe
by fermigier 2y ago
I had a hunch reading the home page that Gren and Elm were related. This is confirmed by this page:
https://gren-lang.org/book/appendix/faq/#what-are-the-differences-between-gren-and-elm https://gren-lang.org/book/appendix/faq/#what-are-the-differ...
IMHO it should be more prominent on the hope page or the elevator pitch.
- brabel 2y agoA big difference seems to be that it can run on NodeJS. I was a bit confused that the Hello World example shows a web app, but the compiler itself is being rewritten in Gren?! So, the compiler can spit out an executable or JS code, besides HTML?
- Skinney 2y agoIt can. If you pass the compiler a output name that has no extension it will produce an executable (js with shebang), and if it has a .js extension it will output a pure js file.
- mjaniczek 2y agoTo clear a possible confusion: Elm runs on NodeJS as well. The reason it's not often done is that the (1st/3rd-party) published packages are heavily skewed towards frontend, because Elm is a language primarily focused on frontend and most of the community uses it for that.
- brabel 2y agoElm is a frontend language. I know there are efforts to make it runnable on node, but to my knowledge, officially the language is only meant for web applications. The website still seems to confirm that. Can you explain a bit better what you mean??
- Latty 2y agoIIRC Lamdera is doing server-side Elm. https://lamdera.com/ https://lamdera.com/
- pyrale 2y agoThe historic elm library for unittests does emit js code meant to run on node. There is also a cottage industry of applications in elm that don’t target the browser like elm-review, and applications running elm code without using its js output, like elm-test-rs. These are made possible by the relative simplicity of elm’s syntax and semantics, which mean getting a workable ast is easy.
- Skinney 2y agoMy worry is that by making it very clear that Gren is a fork of Elm, people will assume that what works in Elm also works in Gren. It won't. Gren isn't compatible, and will never be compatible, with Elm. There is different syntax, API's and runtime characteristics. And it will continue to diverge more and more. That Gren is a fork, was mostly to save development time. You can expect that much of the compiler and core packages to be rewritten in a few years.
- deleted 2y ago[deleted]
- satvikpendem 2y agoSomewhat off topic but what is the status of Elm these days? Seems like it's been effectively abandoned.
- tasuki 2y agoComplete. (I sure don't miss the constant breakage)
- pyrale 2y agoIt has been complete for years, despite targetting an api that never ceased to evolve. Its bugs are not fixed, including todos in core libraries. Practically, it’s abandoned.
- boxed 2y agoYea, it's abandoned, or development is slow enough to be the same thing. I use Elm in production and am quite happy with it. Abandoned or not doesn't seem like an issue in practice.