News for hackers. Stuff that matters.
Re:Measuring Polymorphism in Python Programs [pdf] by jerf on Tuesday June 14, 2016 @04:15PM (#11904985)
That's basically how most JIT compilers work. But it would be nice to be able to get the annotations back out of the JIT. Anyone know of a JIT that lets you do that? (In any language, since now I'm just academically interested.) It that would be darned useful when one "inherits" a large, dynamically-typed code base... it would greatly increase freedom to refactor if you were more sure that such and such a function really does only ever get a number, despite all the code you see for handling objects and strings, for instance.
Re:Measuring Polymorphism in Python Programs [pdf] by webwarrior on Tuesday June 14, 2016 @05:32PM (#11905483)
In Pharo (modern Smalltalk implementation) you can get some info from VM and JIT.

Someone is already working on type inference using VM caches.

See http://forum.world.st/parameters-of-the-virtual-machine-td48...

Re:Measuring Polymorphism in Python Programs [pdf] by brianwawok on Tuesday June 14, 2016 @04:50PM (#11905211)