blog

Realm – A New Mobile Database

by

Realm Logo
A new mobile database for iOS (Android support coming soon) launched earlier this week called Realm. Given that up to this point your options were SQLite or something built on top of SQLite like Core Data or YapDatabase, it’s kind of a big deal. SQLite is great, but a cross platform database with APIs designed for modern mobile apps has a lot of potential.

It’s built in C++ but ships with Swift and Objective-C APIs, even a CocoaPod to make integration a one-liner. If you build from source you can use it on OS X too. To top it off, they’ve also developed an Xcode plugin for quickly creating Realm model objects and a Mac app to open and browse the contents of database files. Be sure to take a look at the Realm announcement for some background on the project, performance numbers, and example code.
The API is incredibly simple and straightforward to use, and looks to address many of the complaints iOS and Mac developers have with Core Data. The Docs and API Reference are a great way to get a better idea of how it could fit in your next mobile app. I’ve worked through the examples at this point, and look forward to seeing what the developers have in store for upcoming versions of the database and dev frameworks.

+ more

Accurate Timing

Accurate Timing

In many tasks we need to do something at given intervals of time. The most obvious ways may not give you the best results. Time? Meh. The most basic tasks that don't have what you might call CPU-scale time requirements can be handled with the usual language and...

read more