News for hackers. Stuff that matters.
Re:Back end of Meta Threads is built with Python 3.10 with s... by jonhohle on Thursday July 06, 2023 @04:08PM (#36622050)
I’m not sure why someone of facebook’s scale would want JIT instead of AOT. That’s a lot of servers all JITing the same thing that could be done once at build time.
Re:Back end of Meta Threads is built with Python 3.10 with s... by jeffffff on Thursday July 06, 2023 @04:32PM (#36622516)
JIT compilation has the opportunity to do profile-guided optimization at runtime. JIT compilation is also simpler when distributing an application to non-identical servers, as it can optimize for the exact hardware it is running on.
Re:Back end of Meta Threads is built with Python 3.10 with s... by yuliyp on Thursday July 06, 2023 @05:05PM (#36623037)
Facebook actually does some compile-time optimizations, but also ships some of the profiling data for JITing between early deploy phases and the rest of the fleet: https://engineering.fb.com/2021/03/03/developer-tools/hhvm-j...

Also, Facebook used to do ahead of time compilation (HPHPc) but eventually HHVM managed to outperform it.

Re:Back end of Meta Threads is built with Python 3.10 with s... by woadwarrior01 on Thursday July 06, 2023 @05:07PM (#36623060)
HHVM's predecessor at FB was an AOT PHP to C++ transpiler called HPHPc. There are a lot more optimization opportunities with JIT compilation when dealing with dynamically typed languages like PHP.
Re:Back end of Meta Threads is built with Python 3.10 with s... by pjmlp on Friday July 07, 2023 @03:44AM (#36628519)
Because they first tried to AOT, and a 2nd project with a JIT managed to get better performance out of it, with improved development workflow.