anhtuank7c / test_static_hermes

Demo generate and execute native code with Static Hermes.

Home Page:https://youtu.be/OiGcM6xj4vA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test Static Hermes

Written Javascript code but got C performance???

Let try.

Required tools

  • cmake
  • ninja
  • git

Installation

  • brew install cmake git ninja
  • mkdir test && cd test
  • git clone -b static_h git@github.com:facebook/hermes.git

Build & run

  • npm run build-hermes
  • npm run build-ts: You will got a compiled file in the output directory output/helloTypeScript
  • npm run build-js: You will got a compiled file in the output directory output/helloJavascript

Run compiled files

  ./output/helloTypeScript
  ./output/helloJavascript

References

Static Hermes: the Next Generation of Hermes

Slide

Static Hermes First look

About

Demo generate and execute native code with Static Hermes.

https://youtu.be/OiGcM6xj4vA


Languages

Language:JavaScript 36.4%Language:TypeScript 36.4%Language:C++ 27.1%