LL Planets "Node.jsã¨ã¯ä½ã ã£ãã®ã"ã»ãã·ã§ã³åããã¸ã
LL Planets "Node.jsã¨ã¯ä½ã ã£ãã®ã"ã»ãã·ã§ã³åããã¸ã
並å1000ã³ãã¯ã·ã§ã³ã«èããï¼ Ruby ã®ã¤ãã³ãé§åã©ã¤ãã©ãª Rev 㨠EventMachine ã® HTTPã¯ã©ã¤ã¢ã³ã ããã«ã¡ã¯ãtakada-at ã§ãã Rubyã®ã¤ãã³ãé§ååãããã¯ã¼ã¯ããã°ã©ãã³ã°ãã¬ã¼ã ã¯ã¼ã¯ Rev 㨠EventMachine 㧠HTTPã¯ã©ã¤ã¢ã³ããåããã¦ã¿ã¾ããã ã¤ãã³ãé§ååãããã¯ã¼ã¯ããã°ã©ãã³ã°ãã¬ã¼ã ã¯ã¼ã¯ã¨ã¯ä½ã説æãã ãã¨é£ããã§ãããä¸è¨ã§è¨ãã¨ã以ä¸ã®ããã«ãªãã¾ãã # ãµã¤ãã®ããã¼é§ååããã°ã©ã Net::HTTP.start(host, port){|http| res = http.get(path) #ãã®å¦çãçµãã£ã¦ãã } puts "done" #ãã®æ¬¡ã®å¦çãå®è¡ããã # ã¤ãã³ãé§ååããã°ã©ã client = Rev::HttpClient::connect(host, port
Mongrel + EventMachine + Rack RubyInsideã§Thinã¨ãããã®ãç´¹ä»ããã¦ãããããã§ãã俺ã¯ã¯ã¦ãçµç±ã§ç¥ã£ãã®ã§ãããå ¬å¼ãµã¤ããè¦ãéãã§ã¯Mongrelã®ãã¼ãµã¼ã使ã£ã¦ãEventMachineã¨ãããããã¯ã¼ã¯ I/O ã©ã¤ãã©ãªã使ã£ã¦ãRack対å¿ãããã§ããMongrelã®ãã¼ãµã¼ã使ã£ã¦ããããé«éã§å®å ¨ãEventMachine使ã£ã¦ããããå®å®ãã¦ãã¦ã¹ã±ã¼ã©ããªãã£ãã¨ã®ãã¨ã§ããã Mongrel è¨ãããããªãRubyã«è¦åããä»ãããããããªãZedãä½ã£ãRuby製Webãµã¼ãã¼ã§ãã Mongrel: Home EventMachine ãããã¯ã¼ã¯ããã°ã©ãã³ã°ç¨ã®ã©ã¤ãã©ãªãããã§ããã³ã¢ã¯C++ã§æ¸ããã¦ãããããã§ãããRubyã§æ¸ããã¦ãããã®ãããããã§ãã RubyForge: Ruby/EventMa
Ruby/EventMachine Ruby/EventMachineã¯ã·ã³ã°ã«ã¹ã¬ããã§é«éã«åä½ãããããã¯ã¼ã¯ããã°ã©ãã³ã°ã®ããã®ã©ã¤ãã©ãªã§IPã¬ã¤ã¤ãæ±ãã³ã¢é¨åã¯C++ã§å®è£ ããã¦ããã(Pure Rubyçãç¨æããã¦ããã) ã¤ãã³ãããªãã³ãªã¢ã¼ããã¯ãã£ã§å®è£ ããã¦ãããã¦ã¼ã¶ã¯IP層ãå ¨ãã»ã¨ãã©æèãããã¨ãªããããã³ã«ã®å®è£ ã«éä¸ã§ããããã«è¨è¨ããã¦ãããã¦ã¼ã¶ãæ¸ãã½ã¼ã¹ã³ã¼ãã§ã¯æ±ºã¾ã£ãã¯ã©ã¹ãç¶æ¿ã決ã¾ã£ãã¡ã½ããããªã¼ãã¼ã©ã¤ãããã ãã§ããã ç¾å¨ã®å®è£ ã¯ãUnixç³»ã®ã·ã¹ãã ã使ç¨ãã¦ããå ´åã¯slect(2)ã·ã¹ãã ã³ã¼ã«ã§å®è£ ããã¦ãããå°æ¥ã®ãã¼ã¸ã§ã³ã§ã¯epoll(4)ã«ç½®æãããã¨ã®ãã¨ã æåæ°ãè¿ããµã¼ã require 'rubygems' require 'eventmachine' module CharacterCount <
ã¯ã¦ãªã°ã«ã¼ãã®çµäºæ¥ã2020å¹´1æ31æ¥(é)ã«æ±ºå®ãã¾ãã 以ä¸ã®ã¨ã³ããªã®éããä»å¹´æ«ãç®å¦ã«ã¯ã¦ãªã°ã«ã¼ããçµäºäºå®ã§ããæ¨ããç¥ãããã¦ããã¾ããã 2019å¹´æ«ãç®å¦ã«ãã¯ã¦ãªã°ã«ã¼ãã®æä¾ãçµäºããäºå®ã§ã - ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãã®ãã³ãæ£å¼ã«çµäºæ¥ã決å®ãããã¾ããã®ã§ã以ä¸ã®éãã確èªãã ããã çµäºæ¥: 2020å¹´1æ31æ¥(é) ã¨ã¯ã¹ãã¼ãå¸æç³è«æé:2020å¹´1æ31æ¥(é) çµäºæ¥ä»¥éã¯ãã¯ã¦ãªã°ã«ã¼ãã®é²è¦§ããã³æ稿ã¯è¡ãã¾ãããæ¥è¨ã®ã¨ã¯ã¹ãã¼ããå¿ è¦ãªæ¹ã¯ä»¥ä¸ã®è¨äºã«ãããã£ã¦æç¶ãããã¦ãã ããã ã¯ã¦ãªã°ã«ã¼ãã«æ稿ãããæ¥è¨ãã¼ã¿ã®ã¨ã¯ã¹ãã¼ãã«ã¤ã㦠- ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãå©ç¨ã®ã¿ãªãã¾ã«ã¯ãè¿·æãããããããã¾ãããã©ãããããããé¡ããããã¾ãã 2020-06-25 è¿½è¨ ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ã®ã¨ã¯ã¹ãã¼ããã¼ã¿ã¯2020å¹´2æ28
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}