News for hackers. Stuff that matters.
Re:Deno 1.35: A fast and convenient way to build web servers by JimDabell on Wednesday July 05, 2023 @04:25PM (#36606596)
You can run `deno compile` to build a standalone binary.

https://deno.land/manual/tools/compiler

Re:Deno 1.35: A fast and convenient way to build web servers by j1elo on Wednesday July 05, 2023 @05:24PM (#36607366)
Very interesting, I just learned that Deno has direct support for doing this! Very useful, indeed. Thanks for mentioning it.

Have you used it, to know what is the baseline size of the file it generates? e.g. the size of a "hello-world" command, which would be basically 99.9% composed of the runtime and core libraries.

Re:Deno 1.35: A fast and convenient way to build web servers by acdibble on Wednesday July 05, 2023 @05:47PM (#36607617)
It’ll bundle the entire V8 engine. You can expect probably close to 80mb for a hello world app.
Re:Deno 1.35: A fast and convenient way to build web servers by JimDabell on Wednesday July 05, 2023 @05:50PM (#36607653)
I’m not sure about the size of a Hello World but a very small command-line tool I wrote is about 90MB, where the only substantial dependency is commander.js from NPM. I expect the vast majority of that is a constant size added to all binaries.