Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is realm planning to make a c++ interface version, seeing how it's made in C++? A lot of cross platform cores use C++ since it Works Everywhere(tm) as an FFI to other languages & platforms.


Absolutely! That's actually already there. Even with nice expression based query syntax - looks like natural language :-) We havn't released it though since we plan to rewamp it into a more object oriented interface like in ObjC, Swift and Java. But if you really wanted to, nothing prevents you from using it (the .h files are there), except there is little documentation and the API will likely change. But yes, definitely it will come fully supported.

The nice thing is you can then make have e.g. common C++ code shared between your mobile app platforms (as quite a few do), and share state/data easily between C++ & Java or C++ & ObjC/Swift in one app. No fuss, one API, one shared datamodel, fully threadsafe between languages.

Would that be useful?


Oh you could seamlessly-ish share data between c++ cross platform and java/swift? That would be pretty useful!

So this kind of flow would be pretty simple right?

1. C++ cross-platform layer receives a text message, records it in the realmDB.

2. Java/ObjC UI watcher on that realmDB table automatically gets a callback update.

3. UI gets updated with the new message being displayed.

4. The app gets killed because of a crash, the new message is still safely recorded in the realmDB, user sees it on app relaunch.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: