TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Realm (YC S11), a mobile database

188 pointsby bjchristalmost 11 years ago

34 comments

jonahxalmost 11 years ago
The foursquare map video shows how the experience with realm is better (and does that well), but it didn't give me any sense of how it's achieving those results. As a developer, I'd love to see an accompanying explanation with details on how the original version works, and how the realm version works.
评论 #8038372 未加载
alooPotatoalmost 11 years ago
LOVE this. I&#x27;ve dealt with the pain of multiple CoreData contexts in different threads and ugggh. This was easily the longest part of our Streak app development, as we needed it to be fast, offline, and fully synced. This is definitely a way better API that accomplishes the same thing as CoreData. If its actually faster too, wow, just amazing.<p>One question - CoreData works really well with built in UIViewControllers like TableViewControllers. Any chance you&#x27;ll be releasing some code that makes wiring up changes in the models to the controls that are displaying that data?
评论 #8039444 未加载
评论 #8039426 未加载
rjsamsonalmost 11 years ago
Wow - this looks really great! As someone who has struggled with Core Data in the past, the API looks great and things seem, on the whole, a lot cleaner. Looking forward to giving it a go.<p>EDIT: I just came across the REST API &#x2F; JSON import section in the documentation - really cool stuff!!
zznatealmost 11 years ago
The API approach vs. SQLite, etc. is interesting - particularly that it does not look to have very many moving parts. I&#x27;m curious about transactional semantics though. Are they &#x27;always on&#x27; or is there API control (still haven&#x27;t gone through docs completely yet, so I may answer my own question later).
评论 #8038000 未加载
rrawayalmost 11 years ago
I could do with some clarification on what problem the product solves, and actually, what the product even is. To me this looks like a new DB, and an ORM style interface to interact with it?<p>I like that it is multi-platform, but SQLLite is a pretty mature DB store available on all the major platforms anyway. I get that it is faster... but presumably there are there trade-offs for this speed gain. I would like a better understanding of what they are. Transaction support?<p>(PS: I would also much prefer if your objects can be typed in a way so they are plain, rather than forced inheritance from RLMObject)<p>EDIT: The blog post at <a href="http://realm.io/news/introducing-realm/" rel="nofollow">http:&#x2F;&#x2F;realm.io&#x2F;news&#x2F;introducing-realm&#x2F;</a> answers some of these questions.
评论 #8038831 未加载
Verletalmost 11 years ago
In my experience object persistence rarely needs SQL or other &quot;relational additional stuff&quot; underneath. Typically I need to store objects and their mutual relations persisted as if they were just kept in memory. Have often thought about how weird it was that you could not just persist objects &quot;as they are&quot; without additional mappings etc. I saw a demo of Realm and had a talk with one the developers a couple of weeks ago. As the demo and our talk progressed I found myself nodding more and more excited. As I understand Realm it seems to be based on a very natural and straightforward principle. It can&#x27;t NOT be efficient... I can&#x27;t wait to try this out in a real project!
lnanek2almost 11 years ago
I was going to say Android already has SQLite built-in, but they do a good job explaining advantages vs that (more object like syntax, more document like vs. table and schema like, better performance, etc.). Good job.
magsafealmost 11 years ago
What does this provide that CoreData doesn&#x27;t? Whatever it is, it needs to be clearly explained on the landing page. Otherwise it&#x27;s difficult to understand what problem this solves compared to CoreData.
评论 #8038023 未加载
评论 #8037968 未加载
melvinmtalmost 11 years ago
Looks interesting! The Swift examples on the homepage seem to be showing Obj-C code: <a href="http://cl.ly/image/2r250h3a0A1y" rel="nofollow">http:&#x2F;&#x2F;cl.ly&#x2F;image&#x2F;2r250h3a0A1y</a>
评论 #8038116 未加载
wuliwongalmost 11 years ago
I would love to share the swift-specific portion of the getting started docs on www.sososwift.com but <a href="http://realm.io/docs/ios/0.80.0/#swift" rel="nofollow">http:&#x2F;&#x2F;realm.io&#x2F;docs&#x2F;ios&#x2F;0.80.0&#x2F;#swift</a> doesn&#x27;t navigate directly to that. If there&#x27;s a link to Swift instructions for realm, I&#x27;ll post them and you will find them here <a href="http://www.sososwift.com/?a=realm.io" rel="nofollow">http:&#x2F;&#x2F;www.sososwift.com&#x2F;?a=realm.io</a> Good luck, looks cool!
评论 #8039188 未加载
Groxxalmost 11 years ago
Sounds interesting. I&#x27;ll definitely watch for the Android version :)<p>That said, the &quot;insert&quot; benchmark source for SQLite is a bit disingenuous. It makes a new compiled statement every time it inserts - if you&#x27;re doing 150,000 inserts, you should <i>definitely</i> be reusing that thing. And on Android, greenDAO (probably others) does this automatically for every insert&#x2F;update. It&#x27;s not some edge-casey optimization trick, it&#x27;s <i>normal</i> SQLite use.
评论 #8045508 未加载
bradhealmost 11 years ago
Awesome, I&#x27;m really happy to see this kind of technology. This stuff needs to exist, and is really the future of the cloud IMHO.
pharkmillupsalmost 11 years ago
Very cool. What&#x27;s the thinking behind shipping with Swift support despite it still being in beta?
评论 #8037837 未加载
troydo42almost 11 years ago
Well, we have a local database now. Now we need a terminal for the phone and a text editor.
jc4palmost 11 years ago
Cool idea. I had the same problem with the intro video that others have mentioned. I&#x27;m gonna read more when the Android version is out, since this might actually be able to fix a common pain point I have with my apps with data persistence (I&#x27;d like to be able to read recently touched questions in my Stack Exchange app even when I don&#x27;t have internet, which requires a damn complex caching layer).<p>Just a side note: The SO link you have in the footer seems to not have <i>any</i> questions about your actual product in the tag, but about Java realms instead.
评论 #8038523 未加载
ovi256almost 11 years ago
This is looking very good and it could lower the pain of developping mobile apps, especially for independent studios. Looking forward to learn more about the details of data syncing.
评论 #8037782 未加载
评论 #8037818 未加载
itsdrewmilleralmost 11 years ago
Repost:<p><a href="https://news.ycombinator.com/item?id=8037029" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8037029</a>
darkslavealmost 11 years ago
Well I think everyone agrees it looks like something pretty interesting but I couldn&#x27;t find anywhere what&#x27;s the easiest way of migrating from CoreData w&#x2F;sqlite to Realm? Not sure if the tradeoff of rebuilding everything would be worth it for the increase in performance.
评论 #8042281 未加载
meepsalmost 11 years ago
This is awesome. Really interested to see how this can affect wearable device development and data.
评论 #8037745 未加载
ergofreakalmost 11 years ago
That Four Square demo is quite amazing, I&#x27;m looking forward to give a try in near future.
mamcxalmost 11 years ago
A big plus for sqlite is that you can use it everywhere. For example, for a REST service instead of return a JSON I just return the sqlite database. Also, I can see the data in the desktop, use it on python, etc.<p>This could work elsewhere too? Be usable in python?
评论 #8038084 未加载
alexdaukrainianalmost 11 years ago
Realm peeps, can you explain this: &quot;The only restriction is that objects can be used only on the thread on which they were created&quot;? Is this same as Core Data limitation or is there more to it?
edalvsanalmost 11 years ago
Looks great. Really looking forward to the Android version too!
edanuffalmost 11 years ago
Looks good. Would really like to see Swift support. Also, the example showing integration with REST services in interesting, seems like you could do more with that.
评论 #8038001 未加载
mcgrawalmost 11 years ago
The speed, simplicity, and lack of headaches (threads, contexts, etc) really make this an interesting solution. Hope these guys&#x2F;gals crush this!
评论 #8042980 未加载
bravuraalmost 11 years ago
If you could make this automatically sync to a backend database, that would be amazing. It would be great to have the hard bits solved for us.
ernestocpalmost 11 years ago
Has any succeeded building this in rubymotion?
评论 #8039676 未加载
评论 #8041214 未加载
neobaba1289almost 11 years ago
I have to give it a try, but how well does it work with different BaaS providers like Parse, Kinvey, Appacitive etc?
评论 #8042416 未加载
tvitessealmost 11 years ago
Salmon pink? Their swag is going to rock.
golergkaalmost 11 years ago
There&#x27;s a quote from Unity CEO on the frontpage — should we expect Realm appear in Unity-land as well?
评论 #8042018 未加载
tillkalmost 11 years ago
How do you backup this database? Does it integrate with iCloud or whatever is available on the device?
评论 #8038114 未加载
grayprogalmost 11 years ago
Is there a Mac OS X support planned? Or perhaps the iOS version works as is?
评论 #8039625 未加载
hamidpaloalmost 11 years ago
I can&#x27;t tell -- does it support upserts?
评论 #8042268 未加载
chrishoughalmost 11 years ago
looks cool, can&#x27;t wait to try this out!