3 ms·
It sure is. I've talked about this before but there is no reason to have tooling be in the same language as the end user writing it. Python for example has libr
by satvikpendem 4y ago
It sure is. I've talked about this before but there is no reason to have tooling be in the same language as the end user writing it. Python for example has libraries in C and C++ (numpy, pandas, other scientific libraries) and the end user just uses Python to interface with them. Imagine if they were all written in Python instead, and how slow that'd be.
The only reason JS and TS tooling are written in these languages is because V8 is decently fast enough, but at scale, we can definitely do a lot better.
- ItsABytecode 4y agoWait, to install this python package I have to have a working c, rust, and fortran compiler?
- giraffe_lady 4y agoEh there's definitely some value in having the tooling be explorable and comprehensible to the line programmers. The value depends on the situation of course, like in the scientific python example probably low-close-to-zero. But I think that's an outlier and the value is usually higher than that. Not always necessarily enough to outweigh other concerns, and I don't think always using the end language for tooling is the correct choice either. But it's a sensible default that you should make sure you get real value out of deviating from.
- nicoburns 4y ago> there's definitely some value in having the tooling be explorable and comprehensible to the line programmers. I think part of the reason Rust has been so popular in this niche is that it is pretty comprehensible to JavaScript/TypeScript/Python programmers. It's in any case much more approachable than C/C++ which would be the other alternative. The Rust build system also helps a lot too. (obviously performance is the main driver)
- rcme 4y agoIt really depends. I doubt Webpack, for instance, would be successful if plugins needed to be written in C++.
- wellanyway 4y ago[flagged]
- tonetheman 4y ago[dead]
- ihatepython 4y agoWriting everything in Rust and compiling to wasm will probably set it back a bit more
- wellanyway 4y agoCare to explain?
- postalrat 4y agoIsn't that the same setback your are worrying about? But more complicated.
- tengbretson 4y agoI'm not a Python dev, so correct me if I'm wrong, but it is my understanding that Python's language bindings and its dependencies on other languages for major libraries is one of the main impediments to alternative or innovative implementations like PyPy or Jython reaching compatibility.
- satvikpendem 4y agoSure, but for many scientists, they'll be way more likely to learn and use Python effectively than use C or C++.
- pjmlp 4y agoJulia was created exactly to move away from that.