News for hackers. Stuff that matters.
Re:A Rust Shaped Hole by skybrian on Thursday July 17, 2025 @01:37AM (#44590035)
You can’t? I haven’t used it, but what’s wrong with “deno compile?”

https://docs.deno.com/runtime/reference/cli/compile/

Re:A Rust Shaped Hole by shim__ on Thursday July 17, 2025 @05:02AM (#44591247)
Sounds like electron but for cli
Re:A Rust Shaped Hole by chainwax on Thursday July 17, 2025 @01:01PM (#44595488)
I does indeed bundle it's runtime into the executable, but this is not dissimilar from Go bundling it's gc into every executable.

Granted a compiled hello world Go program will be <2mb while a similar compiled Deno program will be more like 70. I imagine many usecases may not have a storage constraint though, and in that case why not?

Re:A Rust Shaped Hole by ashishb on Thursday July 17, 2025 @02:14PM (#44596323)
My problem is running post install step of 100+ npm packages on my machine. Any of those could be malicious.

https://www.sentinelone.com/blog/unseen-threats-in-software-...

Re:A Rust Shaped Hole by ashishb on Thursday July 17, 2025 @02:12PM (#44596302)
You are the fifth person who told me that this can be done but have never used it.

If this compile approach is so awesome why don't devs use it?