from Hacker News

Static Hermes: Compile JavaScript to speed it up 300x (in microbenchmarks)

by unchar1 on 9/10/23, 8:38 PM with 18 comments

  • by jitl on 9/10/23, 10:32 PM

    I wonder how this compares to v8 over the same code. Will v8 get this smart after running the benchmark? I’d test it myself but I’m on an iPhone right now. I wonder if static Hermes will ever end up at break-even or ahead of v8 - especially if doing a lot of FFI in WASM, Hermes might have a better shot at bypassing the memcopy/TextDecoder needed to interop between browser JS strings and WASM utf8 strings in other languages.
  • by andrewstuart on 9/11/23, 2:13 AM

    There's not much sign of "Static Hermes" on the web. Appears to be a JavaScript compiler from facebook.

    "Static Hermes is the the next major version of Hermes, still under active development. It enables optional ahead-of-time native compilation of soundly typed JavaScript, using TypeScript or Flow type annotations."

    I find the AI images in this presentation to be quite distracting for some reason.

  • by conaclos on 9/11/23, 3:43 PM

    Slides of the announcement of Static Hermes are available here [0]. If anyone has the video, this could be great!

    [0] https://speakerdeck.com/tmikov2023/static-hermes-react-nativ...

  • by fergie on 9/11/23, 6:32 AM

    That was an interesting read, but why do Hermes (and React, React Native, etc) still use javascript as a compile target rather than Wasm?