5 ms·
Yes, I've created single-file Gleam executables by compiling to JavaScript and then using Node's experimental SEA (single executable application) feature. As a
by jdiff 1y ago
Yes, I've created single-file Gleam executables by compiling to JavaScript and then using Node's experimental SEA (single executable application) feature. As a bonus, typically I've found the JavaScript targets to run a good deal faster for number-crunching tasks.
- 0cf8612b2e1e 1y agoHow big is a hello world executable in that case?
- jdiff 1y agoHefty. The process is effectively just injecting all of the JS into the Node interpreter executable, so it's the size of the interpreter plus whatever you stuff inside. It's close to 50MB.
- 0cf8612b2e1e 1y agoOof, well that’s not ideal.