←back to thread

514 points mfiguiere | 7 comments | | HN request time: 0s | source | bottom
Show context
blt ◴[] No.43710058[source]
Sorry for being a grumpy old man, but I don't have npm on my machine and I never will. It's a bit frustrating to see more and more CLI tools depending on it.
replies(11): >>43710085 #>>43710092 #>>43710096 #>>43710118 #>>43710143 #>>43710153 #>>43710155 #>>43710180 #>>43710185 #>>43710371 #>>43710789 #
1. John23832 ◴[] No.43710092[source]
I asked the same question for Anthropic's version of this. Why is all of this in JS?
replies(4): >>43710167 #>>43710201 #>>43710294 #>>43710560 #
2. photonthug ◴[] No.43710167[source]
Tree-sitter related bits probably
replies(1): >>43710563 #
3. ◴[] No.43710201[source]
4. parhamn ◴[] No.43710294[source]
JS is web's (and "hip" developer's) python, and in many ways it is better. Also the tooling is getting a lot better (libraries, typescript, bundling, packaging, performance).

One thing I wonder that could be cool: when Bun has sufficient NodeJS compatibility the should ship bun --compile versions so you dont need node/npm on the system.

Then it's arguably a, "why not JS?"

replies(1): >>43710501 #
5. throwaway314155 ◴[] No.43710501[source]
> and in many ways it is better

Right but is it worth having to write JS?

/s (kinda)

6. AstroBen ◴[] No.43710560[source]
typescript is a pretty nice language to work with. why not?
7. emporas ◴[] No.43710563[source]
tree-sitter is a C library though. Only grammars for each particular lang are defined in javascript.