Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
edo cabinet (2009)
Search
John Mettraux
July 19, 2009
Technology
0
43
edo cabinet (2009)
An old deck about Tokyo Cabinet and Ruby (Ruby Kaigi 2009)
John Mettraux
July 19, 2009
Tweet
Share
More Decks by John Mettraux
See All by John Mettraux
hiroshima.rb #70 pomodoro
jmettraux
0
400
tests and the database
jmettraux
0
350
OpenBSD and Ruby
jmettraux
1
740
Ruby and FFI
jmettraux
0
400
headless in Hiroshima.rb #061
jmettraux
0
360
Ruby methods in ect - Hiroshima.rb #058
jmettraux
0
1.5k
flor - hubristic interpreter - RubyKaigi 2017
jmettraux
1
1.7k
deli @ Hiroshima.rb #057
jmettraux
0
1.4k
suhi215 yahoo proxy in python
jmettraux
0
1.6k
Other Decks in Technology
See All in Technology
S3 Glacier のデータを Athena からクエリしようとしたらどうなるのか/try-to-query-s3-glacier-from-athena
emiki
0
200
「Roblox」の開発環境とその効率化 ~DAU9700万人超の巨大プラットフォームの開発 事始め~
keitatanji
0
120
Amazon Qで2Dゲームを作成してみた
siromi
0
120
마라톤 끝의 단거리 스퍼트: 2025년의 AI
inureyes
PRO
1
710
アカデミーキャンプ 2025 SuuuuuuMMeR「燃えろ!!ロボコン」 / Academy Camp 2025 SuuuuuuMMeR "Burn the Spirit, Robocon!!" DAY 1
ks91
PRO
0
130
Strands Agents & Bedrock AgentCoreを1分でおさらい
minorun365
PRO
6
270
Jamf Connect ZTNAとMDMで実現! 金融ベンチャーにおける「デバイストラスト」実例と軌跡 / Kyash Device Trust
rela1470
0
170
AIに目を奪われすぎて、周りの困っている人間が見えなくなっていませんか?
cap120
1
500
Google Cloud で学ぶデータエンジニアリング入門 2025年版 #GoogleCloudNext / 20250805
kazaneya
PRO
18
4.2k
【CEDEC2025】『Shadowverse: Worlds Beyond』二度目のDCG開発でゲームをリデザインする~遊びやすさと競技性の両立~
cygames
PRO
1
320
AIに頼りすぎない新人育成術
cuebic9bic
3
190
Serverless Meetup #21
yoshidashingo
1
110
Featured
See All Featured
Documentation Writing (for coders)
carmenintech
73
5k
Building a Modern Day E-commerce SEO Strategy
aleyda
43
7.4k
Testing 201, or: Great Expectations
jmmastey
45
7.6k
GraphQLの誤解/rethinking-graphql
sonatard
71
11k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
18
1.1k
Writing Fast Ruby
sferik
628
62k
Git: the NoSQL Database
bkeepers
PRO
431
65k
For a Future-Friendly Web
brad_frost
179
9.9k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.8k
The Cost Of JavaScript in 2023
addyosmani
51
8.8k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
183
54k
Building an army of robots
kneath
306
45k
Transcript
edo cabinet http://tinyurl.com/edocabinet Sunday, July 19, 2009
ruby and tokyo cabinet http://www.flickr.com/photos/kiim/3185168797/ Sunday, July 19, 2009
jmettraux swiss guy wants to write less code ends up
writing too much http://github.com/jmettraux/ Sunday, July 19, 2009
why rufus-tokyo ? need to persist data quickly Sunday, July
19, 2009
Tokyo Cabinet|Tyrant key/value store persistent fast, fast, fast http://tokyocabinet.sourceforge.net/ Sunday,
July 19, 2009
Hirabyashi-san is providing ruby bindings but no “sudo gem install”
and it’s ‘extconf’ and ... http://tokyocabinet.sourceforge.net/rubydoc/ Sunday, July 19, 2009
Sunday, July 19, 2009
what I want { } Sunday, July 19, 2009
Sunday, July 19, 2009
what I want what I built Sunday, July 19, 2009
rufus-tokyo ruby gem Tokyo Cabinet Tokyo Tyrant ruby FFI Sunday,
July 19, 2009
http://blog.headius.com/2008/10/ffi-for-ruby-now-available.html Sunday, July 19, 2009
ruby FFI Sunday, July 19, 2009
FFI Foreign Function Interface common lisp haskell Sunday, July 19,
2009
ruby FFI from Rubinius thanks to Wayne Meissner to jruby
and ruby http://wmeissner.blogspot.com/2008/11/more-on-ruby-ffi.html Sunday, July 19, 2009
ruby FFI an example the ‘crypt’ function Sunday, July 19,
2009
Sunday, July 19, 2009
http://files.getdropbox.com/u/76595/rk_crypt.rb Sunday, July 19, 2009
ruby FFI an example ‘uuid_generate’ Sunday, July 19, 2009
http://files.getdropbox.com/u/76595/rk_uuid.rb Sunday, July 19, 2009
ruby FFI flow 1) attach functions 2) call functions Sunday,
July 19, 2009
ruby FFI an example libevent Sunday, July 19, 2009
http://files.getdropbox.com/u/76595/rk_libev.rb Sunday, July 19, 2009
http://files.getdropbox.com/u/76595/rk_libev.rb Sunday, July 19, 2009
Sunday, July 19, 2009
ruby FFI more fun from ruby to lua Sunday, July
19, 2009
http://jmettraux.wordpress.com/2009/03/16/ruby-to-lua/ Sunday, July 19, 2009
http://github.com/remogatto/ffi-inliner/ Sunday, July 19, 2009
Sunday, July 19, 2009
Tokyo Cabinet|Tyrant Sunday, July 19, 2009
Mikio Hirabayashi is the author mixi.jp is the source http://tokyocabinet.sourceforge.net/index.html
Sunday, July 19, 2009
http://alpha.mixi.co.jp/blog/?author=3 Sunday, July 19, 2009
http://www.slideshare.net/estraier/introduction-to-tokyo-products Sunday, July 19, 2009
Sunday, July 19, 2009
rufus-tokyo Sunday, July 19, 2009
2 products Tokyo Cabinet local file Tokyo Tyrant remote cabinet
file over TCP socket (or Unix socket) Sunday, July 19, 2009
local cabinet lib Sunday, July 19, 2009
remote tyrant server cabinet lib Sunday, July 19, 2009
tt memcached http tyrant server cabinet lib Sunday, July 19,
2009
2 flavours - key/value (abstract) - key/hash of values (table)
Sunday, July 19, 2009
{ k => v } { k => { k
=> v } } hash table B+ tree table fixed length table Sunday, July 19, 2009
{ k => v } { k => { k
=> v } } abstract table Sunday, July 19, 2009
key/value like { } Sunday, July 19, 2009
Sunday, July 19, 2009
key/hash of values (table) like a { pk => {
} } Sunday, July 19, 2009
Sunday, July 19, 2009
Sunday, July 19, 2009
local local remote remote Rufus::Tokyo:: Cabinet Rufus::Tokyo:: Table Rufus::Tokyo:: Tyrant
Rufus::Tokyo:: TyrantTable { } { pk => { } } { } { pk => { } } 1 access 1 access 1+ accesses lua embedded 1+ accesses lua embedded Sunday, July 19, 2009
tt-src $ .configure --enable-lua tt-src $ make tt-src $ sudo
make install http://openwferu.rubyforge.org/tokyo.html Sunday, July 19, 2009
http://jmettraux.wordpress.com/2009/04/07/rufus-tokyo-0112-extlua/ Sunday, July 19, 2009
http://www.igvita.com/2009/07/13/extending-tokyo-cabinet-db-with-lua/ Sunday, July 19, 2009
Sunday, July 19, 2009
Rufus::Edo Sunday, July 19, 2009
FFI + ruby, jruby + no compilation when ‘gem install’
- slower than classical c extension => Rufus::Edo Sunday, July 19, 2009
Sunday, July 19, 2009
local local remote remote Rufus::Tokyo:: Rufus::Tokyo:: Rufus::Tokyo:: Rufus::Tokyo:: FFI Cabinet
Table Tyrant TyrantTable Rufus::Edo:: Rufus::Edo:: Rufus::Edo:: Rufus::Edo:: c ext Cabinet Table ? ? pure ruby NetTyrant NetTyrantTable Sunday, July 19, 2009
ruby to tyrant, the fastest http://github.com/actsasflinn/ ruby-tokyotyrant/ ruby c extension
for Tyrant rufus-tokyo friendly Sunday, July 19, 2009
projects using rufus-tokyo (github search) - wycats/moneta - jcrosby/cloudkit -
elisehuard/tokyo_cabinet4r - terralien/metry - nofxx/tokyo_store - sethyates/content_manager - heycarsten/gcoder - joshbuddy/tokyo_cache_cow - ... Sunday, July 19, 2009
many thanks to Mikio Hirabayashi Zev Blut Ilya Grigorik Justin
Reagor Flinn Muller Wayne E. Seguin Matthew King Yuki Satow Wayne Meissner Kim Erlandsen (picture) and many others Sunday, July 19, 2009