News for hackers. Stuff that matters.
Re:Speculation in JavaScriptCore by pizlonator on Wednesday July 29, 2020 @03:28PM (#23990653)
The post gives PyPy a shout out. But it’s subtle. PyPy is similar but not the same. I think that JSC’s exact technique could be tried for Python and I don’t believe it has.
Re:Speculation in JavaScriptCore by 1337shadow on Wednesday July 29, 2020 @03:32PM (#23990690)
Maybe, I wish I had the occasion to deploy PyPy in production, but as a daily Python user since 2008: I never had to switch to PyPy to fix any performance problem that mattered for my users or me, but I keep an eye on PyPy and admire it as well as the developers behind it.
Re:Speculation in JavaScriptCore by om2 on Wednesday July 29, 2020 @04:49PM (#23991451)
PyPy is faster than vanilla Python but it's not really built the same way as modern JavaScript engines and likely can't hit the same perf level.
Re:Speculation in JavaScriptCore by war1025 on Wednesday July 29, 2020 @04:52PM (#23991480)
What is the current development status of Pypy? I haven't heard much about it in the past couple years.
Re:Speculation in JavaScriptCore by hajile on Wednesday July 29, 2020 @07:59PM (#23992880)
Python actually uses prototypal inheritance behind the scenes.

Pypy is a tracing JIT though which is quite different. JSC and v8 compile a method at a time. Spidermonkey used to use tracing, but switched to methods too (though I think it still does limited tracing in some situations).

Re:Speculation in JavaScriptCore by jashmatthews on Wednesday July 29, 2020 @08:03PM (#23992915)
TraceMonkey was removed almost a decade ago https://bugzilla.mozilla.org/show_bug.cgi?id=698201
Re:Speculation in JavaScriptCore by hajile on Wednesday July 29, 2020 @08:10PM (#23992962)
JaegerMonkey used both approaches. I don't know if IonMonkey still does though.

https://hacks.mozilla.org/2010/03/improving-javascript-perfo...

EDIT: It looks like a couple trace-like techniques are still used in IonMonkey (maybe the devs have some input there though).

https://wiki.mozilla.org/IonMonkey/Overview#Modus_Operandi

Re:Speculation in JavaScriptCore by jashmatthews on Wednesday July 29, 2020 @10:43PM (#23993941)
There’s no tracing in either JägerMonkey or IonMonkey. That’s just a confusing statement about the similarity of speculation guards and OSR exits to trace guards and side exits. For a while TraceMonkey was used as a higher tier above JägerMonkey which might be what you’re thinking of?

I don’t work for Mozilla but spent a ton of time studying TraceMonkey for building my own tracing JIT.