Hacker News new | ask | show | jobs
by chrisseaton 1508 days ago
> This kills most potential optimizations, or even hard-code generation.

It doesn’t - this has been a basically solved problem since Self and deoptimisation were invented.

1 comments

In theory, yes. In CPython, apparently not. In PyPy, yes.[1] PyPy has to do a lot of extra work to permit some unlikely events.

[1] https://carolchen.me/blog/jits-impls/

You’re trying to correct me by posting my own mentee’s blog post at me.