4 ms·
> But then I remember that Python is dog slow compared to other languages with comparable ergonomics and first-class support for static typing, and...idk it's a
by teiferer 1y ago
> But then I remember that Python is dog slow compared to other languages with comparable ergonomics and first-class support for static typing, and...idk it's a tough sell.
Case in point: uv itself is not written in Python. It's a Rust tool.
It always amazes me when people work on an ecosystem for a language but then don't buy enough into that to actually use it to do the work.
Avoidance of dogfooding is a big red flag to me.
- wiseowise 1y agoThere’s this thing where you work to requirements instead of picking things on vibes, it’s called engineering.
- Epa095 1y agoAnd that's how languages start optimizing towards being a better language to write compilers in ;-) It's completely fair for a language to have a niche different that 'quick start-up and runtime'.
- alex_duf 1y agoI understand the argument but the language used for uv (rust) and python don't have the same goal. Python aims to be simple, not particularly fast (though it is getting faster) I don't see a problem with that. Pick the language adapted to your problem. Python isn't aiming at solving every problem and that's okay.
- pansa2 1y ago> Python aims to be simple Well, it wildly missed the mark there. Nothing about modern Python is simple. It's a very complex language hiding behind friendly syntax.
- airspresso 1y agoHard disagree. Python is so simple anyone can get up and running with coding in a few lines in the REPL.
- pansa2 1y agoSimple != easy. Rich Hickey has the details: https://www.youtube.com/watch?v=SxdOUGdseq4 https://www.youtube.com/watch?v=SxdOUGdseq4
- deleted 1y ago[deleted]
- whatevaa 1y agoPython performance is poor. Python achieves performance by having as little python code as possible. The runtime and all performant libraries are not in python. It's ok for IO bound but not for CPU bound work.
- heinrichhartman 1y agoWell Python Language should be seen as an UI layer for C++/C. Not out of character to use Rust for "heavy lifting"
- AdamN 1y agoThat's like every language. The language you work in (typically) has all sorts of libraries that are lower level. And even if not it's not like you're code is 'running', it's compiling to lower level code that actually runs and the compilers that do that work are usually black box unless you're a compiler engineer. The power of Python is that it's high level and very powerful and has a great community and ecosystem of tools/libraries. There's absolutely zero problem and totally a good thing if there are core libraries written in faster languages.
- PeterStuer 1y agoDifferent tools for different use cases. Would you write an assembler IDE in assembler? I use Python for >90% of my code these days. I love uv for its ux and speed. I 0% care it wasn't written in Python. In fact, making it fully independent of any existing Python environment is a plus for the Python user. No weird bootstrap problems. It does not make me switch to Rust for my own code.
- wiz21c 1y agothe python interpreter is not written in python :-)
- KeplerBoy 1y agoit can be though and pypy is
- jmaker 1y agoIn a similar vein, Microsoft TypeScript team picked Go for the new TypeScript transpiler engine.
- rk06 1y agoInterpreted languages are not the best choicce for a variety of software. for eg: Vast amount of performance issues in typescript cli boil down to being written in typescript, and team is porting to golang now. Tools specifically CLI tools, are best written in statically typed compiled languages.
- franktankbank 1y agoBash is written in what?
- zahlman 1y ago> It always amazes me when people work on an ecosystem for a language but then don't buy enough into that to actually use it to do the work. > Avoidance of dogfooding is a big red flag to me. I'm making PAPER for a reason.