gleam icon indicating copy to clipboard operation
gleam copied to clipboard

Enable configuring of runtimes

Open inoas opened this issue 1 year ago • 5 comments

Allow setting erlang/beam, deno or nodejs boot args.

inoas avatar Mar 12 '23 15:03 inoas

@JohnBjrk I used it to pass --perf flag to node which was quite useful for understanding my performance bottleneck on map inserts. https://discord.com/channels/768594524158427167/768594524158427170/1084496932195549184

inoas avatar Mar 12 '23 15:03 inoas

I think it would be useful if this feature also supported using ts-node to run node code, ie node ts-node gleam_module.mjs

Lunarmagpie avatar Mar 13 '23 09:03 Lunarmagpie

Super useful, especially on the BEAM. We'll need to figure out a good design for this so let's start by researching what other languages do here.

I though we had an existing issue for this but I can't find it now 🤔

lpil avatar Mar 13 '23 09:03 lpil

I think it would be useful if this feature also supported using ts-node to run node code, ie node ts-node gleam_module.mjs

just a list of args then maybe? like so:

[javascript.node]
startup_arguments = ["ts-node"]

inoas-nbw avatar Mar 13 '23 09:03 inoas-nbw

We need to do research and see what other languages and build tools do.

I think it would be useful if this feature also supported using ts-node to run node code, ie node ts-node gleam_module.mjs

This is not runtime configuration so I think it is out of scope here.

lpil avatar Mar 13 '23 09:03 lpil