HN user

fijall

-1 karma
Posts1
Comments9
View on HN

PyPy doesn't have a specialized list for small strings. It might land one in the near future, your findings are a bit weird, but objects might be smaller because of smaller GC headers.

Cheers, fijal

"If you've got the control necessary to automatically STM things, you might as well just equally-automatically copy the Jython-style locking."

So far thinking about how to really do that automatically failed. Do you feel like providing an idea?

The main reason why more people are not working on this is that:

* volunteers are interested somewhere else

* nobody is willing to put money into numpy on pypy happening

The thing is in case of tracing you don't record all paths taken, just the one at the hot point. So say you have if that takes every path every second go, the JIT will compile just one path at first. Then the guard will fail every second iteration, hence the blackhole. Of course at some point JIT will realize guard fails often enough and will compile another path, so you'll get a tree. And so on...