News for hackers. Stuff that matters.
Re:Deno 1.35: A fast and convenient way to build web servers by brundolf on Wednesday July 05, 2023 @04:34PM (#36606736)
Other commenter mentioned `deno compile`, but also, if you're in a situation where you can assume everyone has the deno runtime installed (maybe it's a personal script, or it's org-internal or something) then you don't really even need to do that, because the runtime is the only piece of environment you need. The dependency management is self-contained and the runtime is backwards-compatible; scripts should generally "just work"
Re:Deno 1.35: A fast and convenient way to build web servers by j1elo on Wednesday July 05, 2023 @05:21PM (#36607334)
I was assuming a more general case where concerns like ditributio of the tool are something to think about. Of course if it's just a personal thing, it doesn't matter much, I just wasn't counting on such a small use case.
Re:Deno 1.35: A fast and convenient way to build web servers by zellyn on Thursday July 06, 2023 @09:50AM (#36615725)
Or just use Hermit to automatically install deno on first run… https://github.com/cashapp/hermit

(Disclaimer, I work for Square, a sister org within Block of CashApp, where the folks that created Hermit work.)

I've started using Hermit for all my personal projects... one too many times I've cloned one of my own github projects I haven't touched for a couple of years and taken half an hour to remember/decipher how to get everything installed and running. Now I just use Hermit, and possibly a `bootstrap.sh` file that will `pip install -f requirements.txt` or suchlike, and I'm off to the races.