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

Tochigi Ruby Kaigi 08 Keynote

Tochigi Ruby Kaigi 08 Keynote

分散オブジェクトとはアレですか?

seki at druby.org

June 29, 2019
Tweet

More Decks by seki at druby.org

Other Decks in Programming

Transcript

  1. hello_server.rb require 'drb/drb' class Hello def hello puts('Hello, World.') end

    end DRb.start_service('druby://localhost:54000', Hello.new) while true sleep 1 end
  2. require require 'drb/drb' class Hello def hello puts('Hello, World.') end

    end DRb.start_service('druby://localhost:54000', Hello.new) sleep
  3. DRb.start_service require 'drb/drb' class Hello def hello puts('Hello, World.') end

    end DRb.start_service('druby://localhost:54000', Hello.new) sleep
  4. URI require 'drb/drb' class Hello def hello puts('Hello, World.') end

    end DRb.start_service('druby://localhost:54000', Hello.new) sleep
  5. ऴྃͤ͞ͳ͍ require 'drb/drb' class Hello def hello puts('Hello, World.') end

    end DRb.start_service('druby://localhost:54000', Hello.new) sleep
  6. require 'drb/drb' DRb.start_service ro = DRbObject.new_with_uri('druby://localhost:54000') ro.hello require 'drb/drb' class

    Hello def hello puts('Hello, World.') end end DRb.start_service('druby://localhost:54000', Hello.new) sleep
  7. WEBrick::CGI require 'webrick/cgi' class MyCGI < WEBrick::CGI def do_GET(req, res)

    res["content-type"] = "text/plain" ret = "hoge\n" res.body = ret end end MyCGI.new.start()