Code Archive Skip to content Google About Google Privacy Terms
æå¹Rubyä¼è°01è¡ã£ã¦ãã¾ãããæåããæå¾ã¾ã§é¢ç½ã話ã°ããã§ããããææ³ãæ¸ãã®ãè¦æãªã®ã§ããã°ã©ã æ¸ãã¾ãã ã¾ãèå³æ·±ãã£ãã®ããartonããã®è©±ãActiveScriptRubyã¯Windowsåãã«ä¾¿å©ãªæ©è½ãããããããããããHTAã®ä¸èº«ãRubyã§æ¸ããããWindowsåºæã®OLEæä½ã¨ãã§ããã£ã¦ããªããããã¼ã ããããé¢ããã®dRubyã®è©±ãdRubyã£ã¦ååããæ©è½ãæ³åã§ããªãã¦å ¨ç¶ä¸èº«ãç¥ããªãã£ããã ãã©ããªã¢ã¼ãã§ã¡ã½ãããå¼ã¹ãã£ã¦ãã¨ã ãããªãé¢ç½ãã ãï¼ã¦ãã¨ã¯ãããããçµã¿åãããã¨Linuxãã·ã³ãããªã¢ã¼ãã§Windowsã®OLEãæä½ãããã£ã¦ã®ãRubyã§ã§ãããããã®ããªã ãã£ã¦ã¿ããã ã§ããã ãªã¢ã¼ãã§Excelãæä½ãã¦è¨ç®çµæãå¾ãã¯ã©ã¤ã¢ã³ãã®ä¾ excelcl.rb #!/usr/bin/ruby requir
â [ruby] Rubyã§åºããæ¥æ¬èªDSLã®ä¸çï¼ï¼ æ¨æ¥ã®ãã¿ãã¦ã±ãã®ã§ãæªããªãã¦ã¿ã¾ããã Rubyã使ã£ã¦èªç¶è¨èªï¼ã¨ãããè±èªï¼ã£ã½ãè¨è¿°ãè¡ãã©ã¤ãã©ãªã¨ããã°RSpecãã¾ãä¾ã«ä¸ãããã§ããã©ã æè¿ã¯ããè±èªã«è¿ããªãããã¦ãæ¥æ¬äººã«ã¨ã£ã¦ã¯éã«ä½¿ãã«ãããªã£ã¦ããããããªããã¨ããæ°ããããã§ããã ãã®ã¾ã¾ã§ã¯è±èªåã¨æ¥æ¬äººã®ããã°ã©ãã®çç£æ§ã®æ ¼å·®ã¯é«ã¾ãã°ããã ã¦ãããæ£ç´ã«è¨ã£ã¦è±èªã°ã£ããããããããã¯ä¸ã¤æ¥æ¬èªãçãããã³ã¼ããæ¥æ¬èªDSLã®ç»å ´ãå¾ ã¡æã¾ãã¦ããã®ã§ã¯ãªããã 以ä¸ããããªã§ããã§ã§ããããç¦æ¢ã ã¨ããããã§å¦æ³ãã¦ã¿ã¾ãããæ¥æ¬èªã§BDDãè¡ãã©ã¤ãã©ãªããã®åããJapanespecãã require 'japanespec' include Japanespec "Ruby".ã® ä»æ§{ # == Math.sqrt(4)
å°ãåã«æµæ¯å¯¿ã®åçç¾è¡é¤¨ã§åç°ãããã¨ããåç家ã20å¹´éèªåã®é¡ãæ®ãç¶ãã¦ããã®ãè¦ãã è¥ãåç家ã§2å¹´ã¨ã3å¹´ã¨ãæ®ã£ã¦ãã人ãããã®ã¯ç¥ã£ã¦ãã(éã人ã ãã©YouTube - Me: Girl takes pic of herself every day for three yearsã¨ããèªåãæ®ãç¶ãã¦ãã人ã¯ãããããã)ã20å¹´ãæ®ã£ã¦ãã人ãããã¨ã¯ããã ãããããã®ã¯é·å¯¿ä¸çä¸ã¿ãããªã®ã¨åãã§ããã¨ããã¯ããã人ãå ã«ã¯ããã¦ãã人ãããããããªãããããªãã ããªãã ãã¾ãã¾åäºå°çµµã¨ããååãã¤ãã¦ããåçãFlickrã«ããããããã®ã«æ°ãã¤ãããåäºå°çµµã£ã¦èª°ã ããã¨æã£ã¦èª¿ã¹ããåäºå°çµµ - Wikipediaã«è¼ã£ã¦ãããNHKã®ãã¬ãã®å¤©æ°ãæãã¦ããã人ã ã£ãã ã¸ã¼ãã¨æã£ã¦Flickrã®æ¤ç´¢çµæãè¦ã¦ããã¨ããã¬ãã®å¤©æ°äºå ±ããã£ããã£ãã¦ã
æ¥ã ã®æµè»¢ ãã©ãã¯ããã¯ã¹ãã ã大éã«å°ãã£ãã®ã§ããã©ãã¯ããã¯ãä¸æçã«ç¡å¹ã«ãã¦ãã¾ãã λ. éåãã¬ãã¼ãã¼ã·ã§ã³ã®è¡åè¨ç® QMLããéååè·¯ã¸ã®ã³ã³ãã¤ã«ã§ã¯ä»¥ä¸ã®Teleã®ã³ã³ãã¤ã«çµæã®éåã²ã¼ããè¦ã¦ã¿ãã -- The Teleport algorithm Tele (a,qb) |- let (b,c) = Epr () in let f = Bnmeas (a,b) in U (c,f) :: qb; çµæã¯1qubitã®å ¥åºåã«å ãã¦ã2qubitã®ãã¼ãã¨2qubitã®ã´ããããåè·¯ã ã£ãã®ã ãã©ããã¼ãã®åæåã¨æå¾ã®è¦³æ¸¬ãé¤ããåè·¯æ¬ä½ã¯3qubitã®å ¥åºåãæã¤åè·¯ã«ãªã£ã¦ããããã®é¨åã¯ã¦ãã¿ãªã¼å¤æã«ãªã£ã¦ããã¯ããªã®ã§ãè¡åã«å¤æãã¦ã¿ãã Prelude QML> s <- readFile "teleport.qml" Prelude QM
åã®ã¨ã³ããªã¼ ã§GAEã«ããããã©ã³ã¶ã¯ã·ã§ã³ã®åé¡ã¯ä¸å¿è§£æ±ºãã¿ãã ãã®å¾ãGAEã§éçºãç¶ããçµæããã¯ãGAEã«ããã°ã移è¡ããã®ã¯æ念ãããçç±ã¨ãã¦ã¯ os.listdir ãªã©ã§ä¸å¯©ãªæåãè¦ããã ã¹ãã¼ããå¤æ´ããã¨ããé常ã«é¢å ã¤ã³ãã¼ããã¨ã¯ã¹ãã¼ãã®é£ãã ã主ãªã¨ããã os.listdir ã«ã¤ãã¦ã¯ãweb.pyã§ãã³ãã¬ã¼ããæ¤ç´¢ããã¨ãã« os.listdir ã使ã£ã¦ããã®ã ãã©ãã©ããåããæªãããæ£ãããã¡ã¤ã«ãªã¹ãã帰ã£ã¦ããã帰ã£ã¦ããªãã£ããããã®ã ãä½åãæ¬çªã«ã¢ãããã¦è©¦ããã¨ããã os.listdir("hoge");os.listdir("hoge") ã¨ããããã«åãå 容ã§2åé£ç¶ã§å¼ã³åºãã¨ãªãã確å®ã«ãã¡ã¤ã«ãªã¹ãã帰ã£ã¦ãããã¨ãã・・・ããã¯ã¡ãã£ã¨ï½¥ï½¥ï½¥ ã¹ãã¼ãã®å¤æ´ã«é¢ãã¦ã¯ãã¾ãã¾ãå¤æ´ããã¨ãããããæ¬çªã«åæ
å¤é¢ä½æç»é楽 (19) å¾®å解ææ© (17) å帰æ²ç· (14) Christopher Stracheyã®GPM (10) ææ¥ã®è¨ç® (8) ç´ å æ°æ¢ã (7) è±å½¢å åé¢ä½ (7) EDSACã®ããã°ã©ã ææ³ (6) Life Game (6) å¤ãè¨ç®æ© (6) SATã½ã«ã (5) ããããã¨ã®ç§æ³ã¨ææ³ ãã (5) ãããã¹ã¯ãã (5) éå¹³æ³ (5) é¢ç©è¨ã使ã調å解æå¨ (5) ARMã®ããã°ã©ã ææ³ (4) HP-16Cã®ããã°ã©ã ææ³ (4) Rubicãã¥ã¼ãã®ã·ãã¥ã¬ã¼ã¿ (4) ä¹ç®è¡¨ (4) å人ç¨é»åã®ããã°ã©ãã³ã° (4) å ¥ãåã®ãã£ã (4) 復活ç¥å ¬å¼ (4) 15ããºã« (3) 3ã·ãªã³ãæ©é¢è» (3) Maxwellã®é¢ç©è¨ (3) PDP8ã®ããã°ã©ã ææ³ (3) Piã®1000æ¡ (3) unix time (3) ãã£ããããæ°ã®è©±é¡
COPACOBANA, the Cost-Optimized Parallel COde Breaker, is an FPGA-based machine which is optimized for running cryptanalytical algorithms. COPACOBANA is suitable for parallel computation problems which have low communication requirements. DES cracking is such a parallelizable problem: an exhaustive key search of the Data Encryption Standard (DES) takes no longer than a week on average with COPACOBA
5æ23 ã·ã¹ãã ãå¤ãããã¨ãã¦ãã¾ããã¨ããç æ° çµå±ã©ãã«ãã£ã¦ãã¨ã¤ãªã¢ã³ãªãã ãªã¼ã¨æãã ã©ãã«ãã£ã¦ãããã¶ãäºè¨ç®ã«ã¯ãã§ããã®ã·ã¹ãã ã¯ã©ãããã°å¤ãããããã§ããï¼ãã¨æã£ã¦ãã¾ãã ã©ããä¸ã®ä¸ã®å¹³åã¯ããã§ã¯ãªããããããã®èªèã¯ãããªã¨ããã§ãããã ã«ã¼ã«ã¯ã¢ããªãªãªã«åå¨ãããã®ã§ãããå¤æ´ã§ãããã®ã§ã¯ãªã ã«ã¼ã«ãå¤ããã³ã¹ãããã¯å°æå ã®ã¯ã¼ã¯ã¢ã©ã¦ã³ãã®æ¹ãç°¡å ã·ã¹ãã ã¯èªåã¨ã¯é¢ä¿ãªãã¨ããã§è¨è¨ã»éç¨ããã¦ãã èªåã¯ã·ã¹ãã ã¨ã¯éãã¨ããã§å¤§åãªãã®ããããã·ã¹ãã ãå¤ããã®ãªãã¦é¢åãªã ã ã³ãããããã¨è¨ãåºãã£ãºã®æ³åãåºã¦ããããã³ãããããªã ä¸åº¦ã¤ã¶ããã¦å¤ãããªããã®ã¯å¤åæ°¸é ã«å¤ãããªã å¤åãããæ示çã«èªèãã¦ããªãã¾ã§ããä¸ã®ä¸ã®å¤ãã®äººã«ã¨ã£ã¦ãã·ã¹ãã ãã«ã¼ã«ã¨ããã®ã¯ãããããã®ã ã¨æããã¦ãããããªæ°ãããã å ¨ã
å ¬åãã¶ã¤ã³ã§æ±ºå®ããã¤ã®ãªã¹ã®æ°è²¨å¹£ãã¢ãã³ããã¦ã¤ã«ã¹ã å ¨é¨ã®æ¨¡æ§ãããããã¨ãã¤ã®ãªã¹ã®ç´ç« ã«ãªãã¨ãã趣åãã³ã¤ã³ï¼æãã¨ã§ã¿ãã¨ããªãã³ã°ããã¦ã¦ä¸æè°ãªæããªã®ãããã ãã¶ã¤ãã¯è¥å¹²26æ³ã®Matthew Dentã
Ruby, GCplanSweepãLazySweepã«ãã¦ãæ大åæ¢æéãæ¹åããHeapå ã®ãªãã¸ã§ã¯ãæ°ãããä¸å®ãè¶ ãã¦ããLazySweepã«åãæ¿ãã é常ã®ããã°ã©ã ã®ã¹ã«ã¼ããããè½ã¨ããããªãã®ã§ä»ã¯ä¸å¿100ä¸ã«ãã¦ããLazySweepãã§ã¤ãºã§ã¯Heapã®é åã®æ°æ¬ãããªãã¸ã§ã¯ãæ°ãä¸å®ã«ãªãããã«é¸ãã§Sweepãã é åä¸æ¬ãã¤ã®ãªãã¸ã§ã¯ãæ°ãç°ãªããããSweepã®æéãã°ãã¤ããªãããã«èª¿æ´ããHeapã®é åã1.8åã¥ã¤å¢ããã®ãã¡ã¢ãªå¹ççã«ããã¾ããããªãã®ã§ãLazySweepãå§ã¾ã£ã¦ããã¯å°ãæããããã«ããã1.1åãããããçæ³ã¯ããªãã¸ã§ã¯ããä½ç¾ä¸ãä½ã£ã¦ããã°ã©ã ãã¶ãã¾ããæã®æ大åæ¢ãæ¹åããããã§ãããã®å ´åå½ç¶ã¹ã«ã¼ãããæ§è½ãä½ä¸ãã¦ãã¾ãã®ã¯ããããããªãããpatchgc_lazy_sweep_r15749_patch
_ é²åè«çã¢ããã¼ãã¨éåã³ã³ãã¥ã¼ã¿ ããããã¯ã©ã¤ããã¯ã¹(å¾ãæ°ãã¼ã¸)ã ãã話ã¯ã©ãã©ãåºãã£ã¦ããã æèããæ©æ¢°ã³ã³ãã¥ã¼ã¿ (ãµã¤ã¨ã³ã¹ã»ãã¹ã¿ã¼ãº)(ããã¨ã« ããªã¹) è¶ ä¸¦åã³ã³ãã¥ã¼ã¿ãå¿ è¦ãã¤ææ義ãªåé¡ã¨ãã¦ãé²åè«çã¢ããã¼ãã«ããããã°ã©ã ã®çæãåºã¦ãã(ãã ãã³ã³ããã¹ãã¯ã¢ã¸ã¥ã¼ã«åã¢ããã¼ãã®éçã«å¯¾ããå ææ段ã®ä¾ã¨ãã¦)ã çææ¹æ³ã«ãã¡ã¤ã³åºæã®åããä¸ãã¦ããæ°ä¸åã®ããã°ã©ã ãçæãå®è¡ãã¦æãæ£ãããã®ãé¸æãã¦ããã ç´æçã«ç¡çã ã¨æãããã ãï¼ã¨ãããèªã¿é²ãããã½ã¼ãããã°ã©ã ã¯å®éã«ä½ã£ãã¨æ¸ãã¦ãã£ãï¼ãã§ãå¾ ã¦ãï¼ ããããéåã³ã³ãã¥ã¼ã¿ã§(ãã)解決å¯è½ãªåé¡ã«ã¿ããã ããã§çå½ã®ä¸æè°ãã«ã¤ãã¦ãã°ãèãããã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}