3 ms·
Node is a small team too but what features in particular are we missing?
by inglor 4y ago
Node is a small team too but what features in particular are we missing?
- franciscop 4y agoI explained some right in my comment, currently missing are things like native support for .env, for .toml and .yaml. Support for ESM and fetch() was missing for way too long until recently. Currently I don't see big gaps between web and node anymore, but I still find the APIs a bit messy and to e.g. do work with files I have to import all of the three `node:fs`, `node:fs/promises`, `node:path`. It'd be nice if at least `node:fs/promises` ALSO included non-promises from `node:fs`, like "createReadStream()" to avoid having to import another core module for that. Also WebCrypto should define the variable `crypto` as a global, like `fetch()` and `URL` do, for compat with the browser. Just some ideas/examples from the top of my head, no much search/research was put into this so def take with a pinch of salt.
- cztomsik 4y agonot actually disagreeing, just my opinion: .env would be nice but I personally do not miss .yaml/.toml at all so there's likely some subjectivity in these feature-requests and keeping it in user-space has a value too (simple, rock-solid core) being able to run typescript code (without type checks) is in my opinion the biggest improvement in deno, I don't care about their own formatting or linting and I especially don't care about their LSP and opinionated way of file urls (requiring .ts suffix everywhere). Also, webgpu is nice but it shouldn't be in the core, etc. BTW: Speaking of complexity, Deno takes 140M of memory, bun and node are both around 10M. I think bun has huge potential to replace node, especially because it's not written in C++ nor in rust, both of these languages are extremely hard to master and that limits contributions (and FUN) to some extent. Safety is important but it seems to harm productivity a lot.
- franciscop 4y agoThose are the kind of things that you don't think about everyday until you actually need to think about it and go like, why isn't there a `YAML.parse()` like `JSON.parse` or similar? I need not only to import a separated library, but install it first? These things should def be in the core IMHO.