3 ms·
And my response from the last time that was posted (http://news.ycombinator.com/item?id=2916886 http://news.ycombinator.com/item?id=2916886): we have plenty of
by scott_s 15y ago
And my response from the last time that was posted (http://news.ycombinator.com/item?id=2916886 http://news.ycombinator.com/item?id=2916886):
we have plenty of examples of lock-based code scaling well. Even large, non-trivial systems, such as the Linux kernel. It used to rely solely on the BKL - big kernel lock - for synchronization, but they have moved to finer grained, data structure level locking.
That makes me think that an implementation of Python that uses fine-grained (or at least finer grained) locks that scales is possible. It's just a question of how feasible is it to transform CPython into such an implementation. Beazley's experiment indicates that the changes may have to be fundamental, such as moving away from reference counting.
- jshen 15y agoI don't think we disagree about the fundamentals, but there are trade-offs there too. C extensions become harder to write for example. This is fine for something like the JVM where people stay in JVMland for the vast majority of things. I don't see why people are so insistent that other languages need to go down this route. Use one that does if you really want that stuff. Hell, use ruby then you can switch between C ruby and JRuby depending on your needs.