gleam-lang / suggestions

📙 A place for ideas and feedback
26 stars 2 forks source link

Compile to JavaScript #95

Closed CrowdHailer closed 3 years ago

CrowdHailer commented 3 years ago

What are the technical obstacles to making it possible to compile Gleam to JavaScript? Is it worth doing?

I think this would be an interesting thing to look at to find out Does Gleam have any unspoken assumptions based on the fact it is running on erlang? are these a good or a bad thing.

Now that new gleam projects come with OTP, which is great, I think it's likely there are more assumptions been made about how Gleam runs.

What is the best approach to take.

I am interested in making this happen, but could use some pointers to getting started.

lpil commented 3 years ago

I've also been interested in this, though I've not put much design into this yet. There's no particular reason why Gleam must target only Erlang.

Related: https://github.com/gleam-lang/gleam/pull/840