News for hackers. Stuff that matters.
Re:Introducing Realm React Native by kristiandupont on Monday February 22, 2016 @09:16AM (#11150876)
I think this is a very exciting match for both eco systems. I look forward to seeing where it will go.
Re:Introducing Realm React Native by bleonard on Monday February 22, 2016 @09:26PM (#11156022)
Congrats to the team. We've been really happy trying it out. It's a drop-in replacement for the standard flux pattern.
Re:Introducing Realm React Native by quotewall on Monday February 22, 2016 @09:15AM (#11150873)
What about PhoneGap? Seems weird to support React Native but not PhoneGap.
Re:Introducing Realm React Native by timanglade on Monday February 22, 2016 @09:18AM (#11150894)
Hi, Tim from Realm here. We actually rely on a custom C++ core, which means we have to support each JavaScript engine separately. We completed support for JavaScriptCore first, which React Native uses on both iOS & Android. To support PhoneGap / Cordova we’d need to support V8, which will be close to as much work as supporting JSC in the first place. We’re looking forward to getting it done though! https://github.com/realm/realm-js/issues/261 Beyond that we were quite excited about the architectural decisions behind React Native and the emerging community around it, so we figured it’d be a good place to start that lined up very well with our own goals!
Re:Introducing Realm React Native by jchrisa on Monday February 22, 2016 @01:08PM (#11152869)
If you are interested in React Native and Couchbase Lite, here's a tutorial for Android [1] and notes for iOS [2]

[1] http://blog.couchbase.com/2015/november/getting-started-with...

[2] https://gist.github.com/jchris/3c32524577deff3d69aa

Re:Introducing Realm React Native by drew22huthut on Monday February 22, 2016 @10:19PM (#11156244)
Awesome news, thanks for showing support for RN!
Re:Introducing Realm React Native by arijun on Monday February 22, 2016 @02:06PM (#11153385)
It's too bad that Realm's core technology isn't open source, it would be interesting to see what other immutable databases (e.g. Datomic) would do with the ideas they've come up with. Also grafting Datascript onto Realm for a datalog competitor to sqlite would be sweet.
Re:Introducing Realm React Native by grandalf on Monday February 22, 2016 @02:14PM (#11153437)
Does anyone know the actual queries that are used in the benchmark comparison?
Re:Introducing Realm React Native by timanglade on Monday February 22, 2016 @02:46PM (#11153683)
There’s a link in the caption to the code: https://github.com/realm/realm-js/tree/master/examples/React...
Re:Introducing Realm React Native by brind on Monday February 22, 2016 @07:30PM (#11155508)
Is this usable with electron / nodewebkit apps ?
Re:Introducing Realm React Native by brmunk on Tuesday February 23, 2016 @03:08AM (#11157324)
Not out of the box at the moment. But it would technically be possible to do. Feel free to post a suggestion to https://github.com/realm/realm-js/issues so we can see the interest.
Re:Introducing Realm React Native by grandalf on Monday February 22, 2016 @12:59PM (#11152787)
can it be used as a simple key/value store?
Re:Introducing Realm React Native by patrickrogers on Monday February 22, 2016 @01:06PM (#11152858)
Patrick from Realm here. Realm _can_ be used as a key-value store using our primary keys but at the moment it does expect a fixed schema (all of the keys can be optional though). It’d be trivial for us to relax that requirement and we do have dynamic APIs that allows this on Swift/Objective-C/Java. That said, there’s a lot more Realm can do that a K/V store can’t such as query efficiently on arbitrary properties, link objects in a graph, and more. Does that answer your question?
Re:Introducing Realm React Native by grandalf on Monday February 22, 2016 @01:27PM (#11153042)
Yes -- is there a doc about the graph semantics?
Re:Introducing Realm React Native by timanglade on Monday February 22, 2016 @01:42PM (#11153188)
You can add any object as a property of another object, and access them via dot notation: https://realm.io/docs/react-native/latest/#object-properties

You can probably find some more advanced examples in our Swift docs https://realm.io/docs/swift/latest/#relationships

We’re barely scratching the surface of this in our query language, which is heavily NSPredicate-inspired, but we might add more OpenCypher-ish features in the future. (And we’d greatly appreciate concrete use-cases or anything else you can share in a GitHub issue to help us prioritize development) https://github.com/realm/realm-js/issues

Re:Introducing Realm React Native by grandalf on Monday February 22, 2016 @02:16PM (#11153447)
Sounds interesting!