News for hackers. Stuff that matters.
Re:gh-116167: Allow disabling the GIL by agent281 on Monday March 11, 2024 @08:08PM (#39674649)
I doubt that Python will ditch the meme. The fundamental model of dynamic dispatch using dictionaries on top of a byte code interpreter is pretty slow. I wouldn't expect it to get within 2x of JavaScript.
Re:gh-116167: Allow disabling the GIL by DinaCoder98 on Monday March 11, 2024 @08:56PM (#39674920)
Javascript may not have an official bytecode, but is it not also based on the same concept of using dictionaries to dispatch code and slow as a result? I certainly had always filed it away as "about as fast as python" in my head. Why else would it rely on evented i/o?
Re:gh-116167: Allow disabling the GIL by agent281 on Monday March 11, 2024 @10:53PM (#39675693)
You are correct, but they have (1) all of the money in the world as the fundamental programming language of the Internet and as a result (2) they have a state of the art tiered JIT for dynamic languages. The blood of countless PhD students flows through v8. I don't know if python will get the same treatment.
Re:gh-116167: Allow disabling the GIL by imtringued on Tuesday March 12, 2024 @04:56AM (#39677456)
Ok but given enough cores even python code will run into memory bandwidth problems rather than be bottlenecked by memory latency.