4 ms·
How is the no-gil performance compared to other languages like - javascript (nodejs), go, rust, and even java? If it's bearable then I believe there is enormous
by grandimam 2y ago
How is the no-gil performance compared to other languages like - javascript (nodejs), go, rust, and even java? If it's bearable then I believe there is enormous value that could be generated instead of spending time porting to other languages.
- pansa2 2y agoNo-GIL Python is still interpreted - single-threaded performance is slower that standard Python, which is in turn much slower than the languages you mentioned. Maybe if you’ve got an embarrassingly parallel problem, and dozen(s) of cores to spare, you can match the performance of a single-threaded JIT/AOT compiled program.
- vulnbludog 2y agoHow do companies like Instagram/OpenAI scale with a majority python codebase? Like I just kick it on HN idk much about computers or coding (think high school CS) why wouldn’t they migrate can someone explain like I’m five
- pansa2 2y agoPython may well have been the right choice for companies like that when they were starting out, but now they're much bigger, they would be better off with a different language. However, they simply have too much code to rewrite it all in another language. Hence the attempts recently to fundamentally change Python itself to make it more suitable for large-scale codebases. <rant>And IMO less suitable for writing small scripts, which is what the majority of Python programmers are actually doing.</rant>
- imtringued 2y agoThey have tools like Triton that compile a restricted subset to CUDA.
- thebigspacefuck 2y agoHere’s a benchmark https://github.com/lip234/python_313_benchmark https://github.com/lip234/python_313_benchmark It’s much worse except in everything but a threaded test