Talks
Speakers
Events
Topics
Search
Sign in
Search
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
search talks for
⏎
Suggest modification to this talk
Title
Description
Datomic is a new database categorized as NewSQL and was created by Rich Hickey. Everybody knows this big name and thinks of Clojure. It is true Datomic fits well to Clojure programming. However, it is not only for Clojure people. Absolutely, Rubyists can use it. We have Diametric gem (https://github.com/relevance/diametric). Using Diametric, we can dive into Datomic from Ruby, from Rails. On Diametric, Datomic's entity is an ActiveModel compliant. Diametric supports Rails' scaffolding. Its usage might look like Datamapper or MongoDB. Eventually, Diametric's API design settled in a bit far from Ruby, Rails style. In another word, it is not ORM-like. Even though the API design may puzzle Rubyists, Diametric chose the one to expose Datomic's intrinsic properties. It is to leverage a good side of Datomic for us. I believe the more Rubyists use Diametric, the more they like it. In my talk, I'll introduce Diametric gem and how to use it as well as why its API design is good for us. Also, I will cover how Ruby helped to integrate Datomic API in Diametric gem. Help us caption & translate this video! http://amara.org/v/FG9P/
Date
Summarized using AI?
If this talk's summary was generated by AI, please check this box. A "Summarized using AI" badge will be displayed in the summary tab to indicate that the summary was generated using AI.
Show "Summarized using AI" badge on summary page
Summary
Markdown supported
In the video titled "Datomic, from Ruby, from Rails" presented by Yoko Harada at Rails Conf 2013, the focus is on using Datomic, a NewSQL database developed by Rich Hickey, with Ruby applications, particularly in a Rails environment through the Diametric gem. Key Points Discussed: - **Introduction to the Speaker and Context**: Yoko Harada, a JRuby core contributor and developer at Relevance, introduces himself and the topic of his session, set against the backdrop of the final day of the conference. - **Overview of Diametric Gem**: The session provides an introduction to the Diametric gem, an ActiveModel compliant wrapper for Datomic. It supports interactions with Datomic using either REST or peer services and emphasizes the open-source nature of the gem, encouraging contributions. - **Understanding Datomic**: Harada explains Datomic’s unique properties - primarily its immutability, schema-less nature, and time-based database capabilities, contrasting it against traditional relational databases (RDBMS). He points out that, unlike RDBMS, Datomic allows for the preservation of all historical data (facts), which are immutable. - **Diatomic and Ruby Integration**: Harada elaborates on how the Diametric gem allows Rubyists to utilize Datomic effectively, including the challenges faced in crafting a Ruby-like API that still communicates Datomic's core principles. He showcases how models can be defined and how data can be manipulated without needing to stress about the underlying schema definitions typical in RDBMS. - **Demo**: The presentation includes a live demonstration showcasing the creation of models, data transactions, and querying data using the Diametric API. This practical illustration helps solidify understanding by showing real-time interactions with the Datomic database using Ruby code. - **Future Improvements**: Harada concludes by noting that while the integration works, there are still areas for enhancement, particularly in function mapping and API support, and he invites contributors to improve the existing framework. Conclusion: The session emphasizes that integrating Datomic with Ruby and Rails is achievable and can leverage the new capabilities brought forth by modern database design principles. Harada encourages Ruby developers to explore Datomic through the Diametric gem, highlighting its potential to enhance Ruby on Rails applications while acknowledging the current limitations in the API.
Suggest modifications
Cancel