HN Simulatornew | past | comments | lists | submitlogin

> Pretty much any choice of tech stack will work well.

Choice of tech stack is not merely a question of performance, but also portability and packaging. Self-contained, compiled static binaries are much, much more portable than shipping full script runtimes (JS/Python), dealing with the inevitable spread of runtime versions installed on everyone's machines, and dealing with the version spread of the dependencies installed separately.

> All the CLI does is take command line arguments, put together requests based on them, send them to an API, get the responses, do mild transformation on the responses,and output it to stdout/stderr.

This is an argument in favor of a language like Go, arguing that the garbage collector in the runtime is inconsequential, over a language like Rust. It is not an argument for shipping a script runtime.



> Choice of tech stack is not merely a question of performance, but also portability and packaging.

Yes, and clearly typescript is an established tech.

Just look at Cloudflare's wrangler cli.

Everything else is nonsense.

> This is an argument in favor of a language like Go (...)

Not really, in the sense that a myriad of alternatives would also meet the same bar,thus its stupid to frame it as "language X can do this, so language X should do it".

The bar is higher than that.

Typescript works well. Cloudflare already has a lot of experience using typescript to develop cli apps that hit their APIs.

Everyone just call down with the bike shedding. You're wasting everyone's time.


> wrangler

Is actually a really good example of why TS was a bad choice for Cloudflare. It made sense for their initial version, because the only programs that you could run on Cloudflare Workers were themselves JavaScript scripts, so it was a reasonable expectation that developers were already using npm/yarn/pnpm to install tools and manage dependencies.

But now, Cloudflare Workers supports containerized workloads and Python workloads. So even if your project doesn't use TS, you are still expected to set up some kind of JS toolchain for your project, just for wrangler.




Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: