Upgrade to Pro — share decks privately, control downloads, hide ads and more …

edo cabinet (2009)

edo cabinet (2009)

An old deck about Tokyo Cabinet and Ruby (Ruby Kaigi 2009)

John Mettraux

July 19, 2009
Tweet

More Decks by John Mettraux

Other Decks in Technology

Transcript

  1. jmettraux swiss guy wants to write less code ends up

    writing too much http://github.com/jmettraux/ Sunday, July 19, 2009
  2. 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
  3. 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
  4. 2 products Tokyo Cabinet local file Tokyo Tyrant remote cabinet

    file over TCP socket (or Unix socket) Sunday, July 19, 2009
  5. { k => v } { k => { k

    => v } } hash table B+ tree table fixed length table Sunday, July 19, 2009
  6. { k => v } { k => { k

    => v } } abstract table Sunday, July 19, 2009
  7. 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
  8. tt-src $ .configure --enable-lua tt-src $ make tt-src $ sudo

    make install http://openwferu.rubyforge.org/tokyo.html Sunday, July 19, 2009
  9. FFI + ruby, jruby + no compilation when ‘gem install’

    - slower than classical c extension => Rufus::Edo Sunday, July 19, 2009
  10. 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
  11. 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
  12. 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