realm / realm-js

Realm is a mobile database: an alternative to SQLite & key-value stores
https://realm.io
Apache License 2.0
5.79k stars 575 forks source link

React-Native V8 compatibility #2875

Open neolitec opened 4 years ago

neolitec commented 4 years ago

Goals

Hi!

I'm currently working on a project where we would like to use Realm but this project is using the v8 engine (https://github.com/Kudo/react-native-v8) and when I run the app, Realm seems to look for libjsc.so.

Is there a plan to get Realm working with React-Native using the v8 engine?

Version of Realm and Tooling

kneth commented 4 years ago

@neolitec We don't support V8 on React Native but it is a pretty cool idea. We do support V8 (node.js) but we need to research a bit to see if we can reuse it.

Thanks for bringing it to our attention.

Sine99 commented 4 years ago

@kneth .. any update on this. I can still see it is not supported as my app is crashing in debug mode

kneth commented 4 years ago

@Sine99 No update to share. We haven't prioritized yet as we believe our resources are used on other issues.

camilossantos2809 commented 3 years ago

Any updates? As there is still no compatibility with Hermes, this may be a good alternative. Realm performs well even on older devices, but in the general context of the project it is important to have a more performance JS engine for rendering. In some cases this can be a negative factor in adopting Realm in a project.

ianpward commented 3 years ago

This is not currently in our roadmap but feel free to make a feature request here - we review this at every quarterly review https://feedback.mongodb.com/forums/923521-realm

camilossantos2809 commented 3 years ago

Ok, thanks!

This is the link to the feature request, in case anyone wants to follow: https://feedback.mongodb.com/forums/923521-realm/suggestions/42533812-react-native-v8-compatibility

NiuGuohui commented 3 years ago

We gave up Realm because of JSC:confused:

allen-hsu commented 1 year ago

Have any update?

kneth commented 1 year ago

We don't have any immediate plans to support React Native V8.

We are in the middle of a major rewrite of the SDK (see https://github.com/realm/realm-js/discussions/5416 for more), and once it lands, the theory is that it will be easier (but not trivial) to add support for new engines. It could be interesting if our community would like to pick up V8 support.

allen-hsu commented 1 year ago

hi @kneth how to pick up ? and I can told you why we need v8 support, Although Hermes has been launched for a long time, except that its startup speed is better than JSC, other computing performance is terrible, and v8 is very good in all aspects, especially in crypto apps.