GithubHelp home page GithubHelp logo

Comments (3)

mishushakov avatar mishushakov commented on April 28, 2024 3

That's very helpful, thank you so much!

Right now I'm looking at reimplementing the JSI in Rust on top of the C ABI. The only issue I'm experiencing is my incompetence in C++, so I have to basically reverse-engineer your HermesABIRuntimeWrapper.cpp reference implementation by hand. I saw someone attempted building a Rust wrapper before using cxx, but I haven't managed to get it running and it seemed more oriented at extending React Native rather than a generalised use-case.

Here's some progress on Hermes + Rust:

Screenshot 2024-02-21 at 18 07 33

from hermes.

neildhar avatar neildhar commented on April 28, 2024 1

Hey @mishushakov, while we don't have any minimal examples, I think the JSI implementation on top of the C ABI would be a great starting point. That provides a full implementation of JSI on top of the C-API, and so it uses all of the currently available operations.

The design mirrors JSI very closely, since it is primarily intended to be used through the C++ JSI API, so if you're familiar with JSI, most of it should be familiar. hermes_abi.h specifies and documents the APIs, with the actual implementation of that API in hermes_vtable.cpp, and the reference JSI implementation on top of it in HermesABIRuntimeWrapper.cpp.

from hermes.

mishushakov avatar mishushakov commented on April 28, 2024

Going to close the issue, since this is not really a bug. Will follow up with new Issues when I have any findings with the C-ABI.

Maybe a good source of inspiration for the Hermes team when designing the C ABI:
https://developer.apple.com/documentation/javascriptcore/c_javascriptcore_api

from hermes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.