3 ms·
I asked the same question for Anthropic's version of this. Why is all of this in JS?
by John23832 2y ago
I asked the same question for Anthropic's version of this. Why is all of this in JS?
- deleted 2y ago[deleted]
- photonthug 2y agoTree-sitter related bits probably
- emporas 2y agotree-sitter is a C library though. Only grammars for each particular lang are defined in javascript.
- parhamn 2y agoJS 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?"
- throwaway314155 2y ago> and in many ways it is better Right but is it worth having to write JS? /s (kinda)
- AstroBen 2y agotypescript is a pretty nice language to work with. why not?