Is it a goal for Gleam to work entirely without Erlang some day? #3138
Replies: 1 comment 1 reply
-
Hello!
This is something we will have in future. The compiler does gather and publish this information, and we're waiting for a good deal of the packages to be published with it.
We may have something akin to templates in future but there are no proposals for how they might work today. If you have ideas we are very interested!
These days you do not need to bundle JavaScript to run or deploy it, so you could opt to not use Lustre's tooling if you prefer.
I can't speak for the Lustre maintainers but I suspect they picked Erlang over JavaScript as Gleam programmers are more likely to have that installed. Documentation can be found here: https://gleam.run/getting-started/installing/
There is no strict Erlang requirement to use Gleam. You may use any Erlang or JS runtime, and we have built in support for BEAM, Deno, Bun, and NodeJS.
Yes. These people are very common in the Gleam community.
No.
It always has been. |
Beta Was this translation helpful? Give feedback.
-
The Gleam release seems to have sparked lot of excitement in the frontend world. I'm just trying it out, and was delighted to find the Gleam core to work without Erlang. I currently don't have Erlang installed, only NodeJS. I can imagine many frontend folks are in the same situation as me. I have never worked with Erlang and don't plan to, and I have a little uncertainty concerning whether Gleam is the right language for me.
I observed the following points of uncertainty and friction:
gleam new
, as it doesn't offer a default way to create javascript projectsgleam build
and referencing the javascript file in the html (or at least I couldn't find the documentation, if it exists).gleam run -m lustre/dev start
The fact that the core Gleam runs without Erlang was pretty amazing to see. But it many other places, Erlang seems like a strict requirement. Has someone of you made a similar experience?
Are front-end people without Erlang experience the target audience of Gleam? Is it an explicit Goal of Gleam to only work with a full-blown Erlang installation? Or will javascript some day be a standalone target? Or are there maybe even plans about that?
Beta Was this translation helpful? Give feedback.
All reactions