Re:Free-threaded CPython is ready to experiment with
by grandimam on Saturday July 13, 2024 @03:52AM
(#40952530)
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.
[ Parent
| on HN ]
Re:Free-threaded CPython is ready to experiment with
by pansa2 on Saturday July 13, 2024 @04:43AM
(#40952683)
No-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.
Re:Free-threaded CPython is ready to experiment with
by vulnbludog on Saturday July 13, 2024 @05:38AM
(#40952899)
How 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
Re:Free-threaded CPython is ready to experiment with
by pansa2 on Saturday July 13, 2024 @06:03AM
(#40952994)
Python 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>
Re:Free-threaded CPython is ready to experiment with
by imtringued on Saturday July 13, 2024 @02:18PM
(#40955783)
They have tools like Triton that compile a restricted subset to CUDA.
Re:Free-threaded CPython is ready to experiment with
by thebigspacefuck on Wednesday July 17, 2024 @09:32AM
(#40985757)
Here’s a benchmark https://github.com/lip234/python_313_benchmark
It’s much worse except in everything but a threaded test