Live data from Hacker News

Show HN: Realm for Android

realm.io

21–30 of 66 posts

Re: Show HN: Realm for Android

#21
post #16

Just as a heads up your documentation doesn't work with the newest version of the Android Gradle plugin (0.13.0), see here: http://stackoverflow.com/a/25939518/472021 the `android-apt` dependency needs to be switched to 1.4 else you get: A problem occurred configuring project ':cachetest'. > No such property: projectDependencies for class: com.android.build.gradle.internal.api.ApplicationVariantImpl_Decorated Edit #1…

Thanks for the heads-up! We’ll get that fixed shortly.

We do support JSON (and GSON) — you can see it at work in our gridViewExample (https://github.com/realm/realm-java/tree/master/examples/gri...)

Re: Show HN: Realm for Android

#22
post #8

Faster, more understandable code and less disk space. It's great and I wonder how this miracle possible.

Ritual sacrifices, mostly. Just kidding ;) For the “faster” and “less disk space” parts, we use a lot of standard techniques like bitpacking, compactionless b-trees and other things that have been designed in the past 10 years — we’ll blog more about that stuff very soon. The “understandable code” part can probably be explained by the fact we focused on that extensively during implementation: we did lot of API revisi…

Cool. I love reading such tech blog post.

Re: Show HN: Realm for Android

#23
post #16

Just as a heads up your documentation doesn't work with the newest version of the Android Gradle plugin (0.13.0), see here: http://stackoverflow.com/a/25939518/472021 the `android-apt` dependency needs to be switched to 1.4 else you get: A problem occurred configuring project ':cachetest'. > No such property: projectDependencies for class: com.android.build.gradle.internal.api.ApplicationVariantImpl_Decorated Edit #1…

Thanks for the heads-up! We’ll get that fixed shortly. We do support JSON (and GSON) — you can see it at work in our gridViewExample ( https://github.com/realm/realm-java/tree/master/examples/gri... )

Eek so I actually have to make/use a setter for every single attribute of my models? That's definitely a deal breaker for me.

Re: Show HN: Realm for Android

#24
post #16

Just as a heads up your documentation doesn't work with the newest version of the Android Gradle plugin (0.13.0), see here: http://stackoverflow.com/a/25939518/472021 the `android-apt` dependency needs to be switched to 1.4 else you get: A problem occurred configuring project ':cachetest'. > No such property: projectDependencies for class: com.android.build.gradle.internal.api.ApplicationVariantImpl_Decorated Edit #1…

Thanks for the heads up! We will address that right away.

Also, one of the examples (GridViewExample) in the release reads JSON data with GSON.

Re: Show HN: Realm for Android

#25
post #16

Just as a heads up your documentation doesn't work with the newest version of the Android Gradle plugin (0.13.0), see here: http://stackoverflow.com/a/25939518/472021 the `android-apt` dependency needs to be switched to 1.4 else you get: A problem occurred configuring project ':cachetest'. > No such property: projectDependencies for class: com.android.build.gradle.internal.api.ApplicationVariantImpl_Decorated Edit #1…

This is good feedback — we definitely expect to be polishing the API quite a bit in the weeks to come, just like we did on iOS>

You have to use Realm.createObject because objects are strongly tied to one Realm at a time. We could introduce standalone objects you can create with regular constructors but you’d be a really heft performance hit there.

RealmLists are mostly used to model relationships at this point, so you could add them to a another model like (http://realm.io/docs/java/0.70.1/#relationships) although eventually we do want to introduce standalone RealmLists.

What would you expect to use multiple RealmObjects in a single RealmList for? (Just so we can learn from your use-case.)

Re: Show HN: Realm for Android

#26
post #23

Earlier quoted context omitted.

Thanks for the heads-up! We’ll get that fixed shortly. We do support JSON (and GSON) — you can see it at work in our gridViewExample ( https://github.com/realm/realm-java/tree/master/examples/gri... )

Eek so I actually have to make/use a setter for every single attribute of my models? That's definitely a deal breaker for me.

[deleted]

Re: Show HN: Realm for Android

#27
post #20

Can you use Realm with Phonegap applications?

Technically yes, you could write your own JavaScript wrappers using the bridge (and alias the API differences between iOS and Android) but that’s probably cumbersome at this point. We do hope to make a version of Realm for Phonegap soon.

Re: Show HN: Realm for Android

#29
post #17

Given the insert speeds, I'm guessing they're (still) not reusing compiled statements. I mentioned this last time I saw Realm on the front page[1], but their benchmarks are misleading without at least mentioning that they're doing this. I'm still very much interested in Realm, and LOVE having a competitor to SQLite. But don't mislead your customers. [1]: https://news.ycombinator.com/item?id=8043332 where seepel finds…

That was a totally 100% fair point you made when we launched for iOS, and something we had completely overlooked. Your comment immediately prompted us to update our bench code to reuse compiled statements and, we’ve been using updated charts to document our iOS performance since then (e.g.: https://speakerdeck.com/timanglade/realm-overview-at-the-sil...). See other comment (https://news.ycombinator.com/item?id=8390541) regarding our performance on Android — we do reuse compiled statements.

EDIT: typos.

EDIT 2: clearly referencing that this message was about iOS and pointing to the other comment for Android.

Post reply on HN