Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
2015.06.03 ã¹ã㫠社ä¼äººã«ãªã£ãã°ããã®è¥ãã¨ã³ã¸ãã¢ã®ä¸ã«ã¯ãä¸åº¦ãã®éã«è¶³ãè¸ã¿å ¥ããããã«ã¯ãèªãã®æè¡ä¸æ¬ã§èº«ãç«ã¦ã¦ããããã¨ãããå¼·ãæããè¸ã«ç§ãã¦ãã人ãå°ãªããªãã®ã§ã¯ãªããã ããèãã¦ä»åãRubyã®ç¶ã¨ãã¦ç¥ãããã¾ã¤ãã¨ããã²ãæ°ã«ãããã¦ãããããã®æ代ã«æè¡ã ãã§çãæ®ãã«ã¯ï¼ãã¨ããåã£ããã¼ãã§åæãä¾é ¼ãããè¿ã£ã¦ããã¡ã¼ã«ã®åé ã«ãã£ãã®ãã次ã®ä¸æã§ããã ãæè¡ã ãã§çããã¨ããã®ã¯å¹»æ³ã§ããã ã¾ãã¯ãã®çæãèãã¨ãããããåæã¯å§ã¾ã£ãã ã¾ã¤ãã¨ããã²ããã(@yukihiro_matz) 1965å¹´çã¾ããç波大å¦ç¬¬ä¸å¦ç¾¤æ å ±å¦é¡åæ¥ãããã°ã©ãã³ã°è¨èªRubyã®çã¿ã®è¦ªãæ ªå¼ä¼ç¤¾ãããã¯ã¼ã¯å¿ç¨éä¿¡ç 究æãã§ãã¼ãä¸è¬è²¡å£æ³äººRubyã¢ã½ã·ã¨ã¼ã·ã§ã³çäºé·ãSpeeeãã¯ããã¨ããè¤æ°ç¤¾ã®æè¡é¡§åãHerokuãã¼ãã¢ã¼ãã
æè¿ãMixin ã¯é¿ããããã°é¿ããã»ããããã®ã§ã¯ãªãããã¨æãå§ãã¦ãããæ±ãã«å°ããã¡å®è£ ã® Mixin ãç°¡åã«ä½ãããã¦ãã¾ãããã ã Wikipedia ã®å®ç¾©ã«ããã¨ã mixin ã¨ã¯ãªãã¸ã§ã¯ãæåããã°ã©ãã³ã°è¨èªã«ããã¦ããµãã¯ã©ã¹ã«ãã£ã¦ç¶æ¿ããããã¨ã«ããæ©è½ãæä¾ããåä½ã§åä½ãããã¨ãæå³ããªãã¯ã©ã¹ã§ããã ã¨ã®ãã¨ãªã®ã§ããããã Mixin ãããå´ã®å®è£ ã¨çµã³ã¤ããå¼·ããªãã®ã¯ä»æ¹ãªãã®ã ãããããããã¾ãã«ã ãç ´ãç´ã®çå²ãã®ãããªå®è£ ãæ㤠Mixin ãã§ãã¦ãã¾ããã¨ãããã ä¸æã®ç´ãé©å½ã«æã§ç ´ã£ã¦äºæã«ãããæé¢ã¯ã®ã¶ã®ã¶ã ããç ´ã£ãäºæã®ç´ã®æé¢ã¯ã´ã£ããä¸è´ããããã¨ãã¨ç¹ãã£ã¦ãããã®ãåãé¢ããã®ã ããå½ç¶ã ãã ãç ´ãç´ã®æé¢ã«ã´ã£ããåããããªå¥ã®ç´ãç¨æããã®ã¯ç°¡åã§ã¯ãªããå¥ã®ç´ãåãããå¿ è¦ãããã®ãªãã°ãç´ãç ´ãã¨ãã«
0x1234567890abcdef ã¨ã¦ãªæãã®ãã¤ããªãã¼ã¿ããã£ãã¨ãã¾ãã*1 ãããé©æ£ã«æ¯ãåããå ´åãã©ããã¦ã¾ããï¼ ããã¾ã§ã®ç§ã ã¨ãæååã®ã¾ãã¾ val_a = "1234567890abcdef"[10].chr ã¨ãããªããunpackã§é ååã㦠val_a = "ab".unpack("CC")[0].chr ã¨ãããªããã¦ã¾ããã ãã ãããã ã¨32bitã®æã®æ±ããé¢åã§ãããã ãã®ä¸ãå¯å¤é·ã®å ´åã¯å°ç¨ã®ãã¸ãã¯ãçµãå¿ è¦ãããã ãããéä¸ã§ã»ã³ãµã®ä»æ§ãå¤ãã£ã¦å ¥ãçµãã ã¡ã½ãããã§ã¤ã³ã解ãéç¨ã§çºçãããã«ãªã£ããããäºãâ¦â¦ã ãããªè²´æ¹ãç§ã®æ©ã¿ã解決ãã¦ãããã®ããä»åç´¹ä»ããGemãBinDataãã§ãã å°å ¥ $ gem install bindata 使ãæ¹ require 'bindata' class Sample < BinD
Posted by usa on 27 Oct 2014 We changed the default setting of ext/openssl in Ruby 2.1.4, Ruby 2.0.0-p594 and Ruby 1.9.3-p550. With this change, insecure SSL/TLS options are now disabled by default. However, by this change, there is a possibility of some problems in the SSL connection. Details OpenSSL still implements protocols and ciphers that are considered insecure today by historical circumsta
æè¿ã® RSpec ã¯ãããã¾ã§ obj.stub(hoge: value) ã¨æ¸ãããã®ãã allow(obj).to receive(:hoge).and_return value ã¨æ¸ããªãã¨ãããªããªã£ããã¨ããæ£æ°ã®æ²æ±°ã¨ã¯æããªããããªå¤æ´ããããããã®ã§ãä½å¹´ãã¶ãã« Test::Unit ã使ã£ã¦ã¿ããã¨ãªãããªä¸ã§ãã RSpec ã¯ããã¹ãã±ã¼ã¹ãå ¥ãåã«ã§ãããããã¹ãã±ã¼ã¹ã example ãã¯ã©ã¹ãã¡ã½ããã§ã¯ãªããæååã§èªç±ã«æ¸ããã¨ãã§ãããããã®ãè¯ãã£ãã®ã§ãããæè¿ã® Test::Unit ã§ã¯ãããã§ããããã«ãªã£ã¦ãã¾ãã [ruby-list:48926] [ANN] test-unit 2.5.2 ãã®ãªãªã¼ã¹ã¯ã¨ã¿ãããã«ä½¿ã£ã¦ããããããã«æ¹è¯ãããªãªã¼ ã¹ã§ããæ°ãã追å ãã--locationã¯RSpecã®--line_number
ã¯ããã¦ã®åå ã ã£ãã®ã§ããã¨ã¦ã楽ããã£ãã§ãã ãããããã¨ãå ¨é¨æ¸ãã¨é·ããªãã®ã§æãã¤ãããã¨ããæ¸ãã¦ãããã¨æãã¾ãã å¤åæãããã£ã±ãããã¾ãã ããã¼ã¨ï¼æ¥ç® ããã ããã®è©±ã§Rubyã®ç¾ç¶ã¨æ¬¡ã®èª²é¡ããããããåãã£ã ã·ã³ãã«ã¯GC対象ã«ãªããªãã®ç¥ããªãã£ã(ããã¦2.2ããGC対象ã«ãªã) ãªãGVL(Giant VM Lock)ãããã¨ä¸¦åå¦çãé ããªãã®ãããªãã¨ãªãåãã£ã å°ç¨ãã¼ãã¦ã§ã¢ãGoã«ããRubyVMã®å®è£ ãªã©ã§ãã£ã¬ã³ã¸ãã¦ãã人ããã Rubyã«ãã¿ã¼ã³ãããã³ã°ã欲ãã ã¨ãã人ãçµæ§ãã åãã¦ããrubyããã°ã©ã ã®ã©ã®è¡ããã¡ã°ãã¡ã¢ãªãæ¶è²»ãã¦ããã®ãç¥ããã ko1/allocation_tracer ãä¾¿å© ã³ããããã°ãæ¸ãã¨ãã«éè¦ãã¦ãããã¨ã¯ï¼ ãªãã§ç´ãããã¯æ¸ãã¦æ¬²ãã ã³ã³ãã¤ã©åãããªãã¦ãã³ã³ããªãã¥ã¼ãåºæ¥
JITã³ã³ãã¤ã«ã®çæå ããASTããYARVã¤ã³ã¹ãã©ã¯ã·ã§ã³ã¸å¤æ´ãã話ã§ãã JITã³ã³ãã¤ã«ãè¡ãå ã¨ãªãæ å ±ã¨ãã¦ãããã°ã©ã ããã¼ã¹ããçµæã®æ§ææ¨ï¼ASTï¼ã¨ããããããã«ã³ã¼ãåããYARVã¤ã³ã¹ãã©ã¯ã·ã§ã³ãããã¾ããä»ã¾ã§ã¯ASTã«åºã¥ãã¦CFGãçæãã¦ãã¾ããã ASTã使ããã¨ã«ã¯ã以ä¸ã®å©ç¹ãããã¾ãã å®å®ãã¦ãããææ³ãå¤ãããªãéããASTãå¤ãããã¨ã¯ãã¾ãããã¾ãããYARVã¤ã³ã¹ãã©ã¯ã·ã§ã³ã¯æé©åã®å¯¾è±¡ãªã®ã§ããã¤å¤æ´ãããããããã¾ããã çæãããCFGãæé©åãããããYARVã¤ã³ã¹ãã©ã¯ã·ã§ã³ã¯MRIã®å®è¡ã¨ã³ã¸ã³ã§å¹ççã«å®è¡ã§ããããã«è¨è¨ããã¦ãããJITã³ã³ãã¤ã©ã«ã¨ã£ã¦æé©ã¨ã¯éãã¾ãããASTãç´æ¥å¤æããæ¹ãå¹ççãªCFGãçæããããã¨ããã¾ãã ççµåãASTã¯ææ³ã®è¡¨ç¾ã§ããã¨ããæå³ã§YARVã¤ã³ã¹ãã©ã¯ã·ã§ã³ããæ½è±¡
ãã®ããã°ã¯ãRubyã«JITã³ã³ãã¤ã©ãå®è£ ããå人çãªããã¸ã§ã¯ãã®æ å ±ãçºä¿¡ããããã°ã§ããã¡ãªã¿ã«ã¾ã ã³ã¼ãã¯1è¡ãæ¸ãã¦ãã¾ããã ããã¸ã§ã¯ãã®ç®æ¨ã¯æ¬¡ã®éãã§ãã æ¬å®¶ããé«éã«åä½ããRubyã¨ã³ã¸ã³ãå®è£ ããã æ¬å®¶ã¨ã®100%äºææ§ãç¶æããã å ·ä½çã«ã¯ãMRIã«JITã³ã³ãã¤ã©ã追å ãã¾ããç¾å¨ã®MRIã§ä½¿ããã¦ããããããyarvå®è¡ã¨ã³ã¸ã³ã¨å ±åããã¢ããªã±ã¼ã·ã§ã³ã®ãããã¹ãããã ãJITã³ã³ãã¤ã«ããã¤ã¡ã¼ã¸ã§ããJITã³ã³ãã¤ã©ä»¥å¤ã®é¨åã¯MRIã«ãã®ã¾ã¾ä¹ã£ãããã¨ã§ãå¤é¨ã©ã¤ãã©ãªãå«ããäºææ§ãç¶æãã¾ããæ¬å®¶ã¨äºææ§ããªãã¨ããããéãã¦ãéå®çãªç¨éã«ãã使ãããªãã®ã¯pypyãã¿ãã°æããã§ãäºææ§ç¶æã¯è³ä¸å½é¡ã§ãã 以åãå人çã«ã¹ã¯ã©ããããRubyå®è£ ãæ¸ãããã¨ããããJITã³ã³ãã¤ã©ãå®è£ ãã¦ãã¾ããããMRIãããé ãæ§è½ããåºã¾
Concurrency and parallelism are hard. With the traditional threading model, a developer has to constantly ensure threads are not in conflict, which is a very difficult task. The team behind Go implemented fantastic concurrency primitives within the language that make reasoning about concurrent code far easier. Fortunately, all that goodness is no longer locked up inside Go; thereâs now a library f
ããã³ã¾ãã¯ãRuby ã«é¢ããæè¡è¨äºã¯ãã¡ããã®ãã¨ãRubyist ã¸ã®ã¤ã³ã¿ãã¥ã¼ãã¨ãã»ã¤ããã®ä»ããå±ãããã¦ã§ãéèªã§ãã Rubyist Magazine ã«ã¤ã㦠ãRubyist Magazineããç¥ãã¦ããã³ã¾ãã¯ãRubyist ã® Rubyist ã«ãããRubyist ã¨ããã§ãªã人ã®ããã®ã¦ã§ãéèªã§ãã ææ°å· Rubyist Magazine 0064 å· ããã¯ãã³ãã¼ Rubyist Magazine 0064 å· Rubyist Magazine 0063 å· Rubyist Magazine 0062 å· Kaigi on Rails ç¹éå· RubyKaigi Takeout 2020 ç¹éå· Rubyist Magazine 0061 å· Rubyist Magazine 0060 å· RubyKaigi 2019 ç´åç¹éå· Rubyist
photo credit: Kmark via photopin cc Ruby ãåã㦠2æ¥ç®ã Railsãã¥ã¼ããªã¢ã«ç¬¬4ç« ã§ Ruby ã®åºæ¬çãªä½¿ãæ¹ãå¦ãã ã Ruby ã使ã£ã¦é©ãããã¨ãããã¤ããã£ãã®ã§ã¾ã¨ãã¦ããã ï¼ããã°ã©ãã³ã°çµé¨ã¯ãããªãã«ãããC# ã JavaScript, PHP ãªã©ï¼ Rubyist ã®æ¹ã¯ãåã㦠Ruby ã«è§¦ããã¨ãã®ãã¨ãæãåºããã£ããã«ã éRubyist ã®æ¹ã¯ãRuby ã«èå³ãæã£ã¦ãããããã£ããã«ãªãã°ã ãªããããã¤ãã®ã³ã¼ã㯠Railsãã¥ã¼ããªã¢ã«ããæç²ãã¦ããã end ã¯ãããã© begin ããªã å¤ãã®è¨èªã§ã¯é¢æ°ããããã¯ãä¸æ¬å¼§ã§æ¬ãã Pascal ç³»è¨èªã§ã¯ begin ã end ã§æ¬ãã Ruby ã§ã¯ begin ãªãã§æ¥ã« end ãåºã¦ããã if string.empty?
2008/01/10 ãµã³ã»ãã¤ã¯ãã·ã¹ãã ãºã¯1æ10æ¥ãæ±äº¬å¤§å¦ã¨ç£å¦é£æºã¢ãã«ã®ç¢ºç«ãç®æããå ±åç 究ã«çæããã¨çºè¡¨ããã両è éã®å ±åç 究ã«é¢ããåå®æ¸ã¯2005å¹´6æã«æ±äº¬å¤§å¦ã¨ç±³ãµã³ã»ãã¤ã¯ãã·ã¹ãã ãºã®éã§åã交ãããã¦ãããã®ã§ãä»ååãã¦2ã¤ã®ç 究ãã¼ãã決å®ããå½¢ã ã ãã¼ãã¯ãRubyã¨JRubyã§ã®ãã«ãVirtual Machineï¼MVMï¼ç°å¢ã®å®ç¾ãã¨ãFortressä¸ã§ã®ã¹ã±ã«ãã³ä¸¦åããã°ã©ãã³ã°ææ³ã«åºã¥ããã©ã¤ãã©ãªéçºãã®2ã¤ã Rubyï¼JRubyã®MVMç 究ã¯ãæ±äº¬å¤§å¦ 大å¦é¢æ å ±çå·¥å¦ç³»ç ç©¶ç§ ç«¹å ééææã®ã°ã«ã¼ãã¨ãç±³ãµã³ã®ãã£ã ã»ãã¬ã¤æ°ï¼Director of Web Technologiesï¼ãããã³JRubyã®ã¡ã³ãã¼ã¨ã®éã§é²ãããMVMç°å¢ã®å®ç¾ã«ããRubyããã°ã©ã ãããã«å¹ççã«å®è¡ã§ãããã¨ãæå¾ ã§ããã¨ããããã®ææ
##ãªã¢ã«ã¿ã¤ã webï¼ ãªã¢ã«ã¿ã¤ã ã«webã®æ å ±ããµã¼ãããã®pushéç¥ã§æ´æ°ããã æåã©ããã§ããã¨FBãChatworkãTwitterã¨ãã æè¡çã«ã¯æ¹æ³ã大ãã3ã¤ããã ####ã»ãã¼ãªã³ã°(Polling) ä¸å®ã®æéã«ä¸åº¦ãAjaxã§ãµã¼ãã«æ¥ç¶ãã æ°ããæ å ±ããªããã©ãã調ã¹ããæ¬ä¼¼çãªããã·ã¥åã ####ã»ã³ã¡ãã(Comet) ã¯ã©ã¤ã¢ã³ãããéããã¦ããã¬ã¹ãã³ã¹ãããã«è¿ããã«å¦çä¸ã®å½¢ãåã£ã¦ã³ãã¯ã·ã§ã³ãå¼µã£ãã¾ã¾ã«ããã æ°çã®æ å ±ããã£ãã¿ã¤ãã³ã°ã§ã¬ã¹ãã³ã¹ãè¿ãã ####ã»Websocket HTML5ããä½ãããæ°ããéä¿¡è¦æ ¼ãç¬èªã®ãããã³ã«ãæã¤ã å ç¨ã®2éãã®ãã¡ãªãããè£ãããå¹çããåæ¹åéä¿¡ãå¯è½ã ä»åã¯æè¡çãªæµããå«ããWebsocketãç¨ããã ##railsã§ã©ããã£ã¦æ§ç¯ããï¼ railsãç¨ããäºãmust
Updated with Jörg's Sept 2011 comment You seem to be confusing two very different things here: the Ruby Programming Language and the specific threading model of one specific implementation of the Ruby Programming Language. There are currently around 11 different implementations of the Ruby Programming Language, with very different and unique threading models. (Unfortunately, only two of those 11 i
第6åããã¯ãªã«Ruby大è³ãã«ã¯ãå½å 40件ãæµ·å¤14件ï¼ã¢ã¡ãªã«ãã¡ãã·ã³ãã¤ã®ãªã¹ããã©ã¸ã«ãããã¤ããããã ãã·ã³ã¬ãã¼ã«ããªã¼ã¹ãã©ãªã¢ãä¸å½ï¼ã®åè¨54件ã®å¿åãããã¾ãããäºå審æ»ãæ¬å¯©æ»ãçµã¦ã大è³ãåªç§è³ï¼3ç¹ï¼ãç¹å¥è³ï¼6ç¹ï¼ã奨å±è³ï¼6ç¹ï¼ãé¸å®ããã¾ãããã¾ããæ ªå¼ä¼ç¤¾Engine YardãHeroku社ãæ ªå¼ä¼ç¤¾paperboy&co.ã®3社ã«ä¼æ¥ã¹ãã³ãµã¼è³ãè¨ãã¦ããã ãã¾ããã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}