趣å³ã§ã¢ã«ã´ãªãºã åå¼ã®ã·ã¹ãã ãéçºã»éç¨ãã¦ã¿ããã¨ã§å¾ãããç¥è¦ã«ã¤ãã¦ã社å ã®ãã¼ãèªç±ãªåå¼·ä¼ã§çºè¡¨ãã¾ãããRead less
趣å³ã§ã¢ã«ã´ãªãºã åå¼ã®ã·ã¹ãã ãéçºã»éç¨ãã¦ã¿ããã¨ã§å¾ãããç¥è¦ã«ã¤ãã¦ã社å ã®ãã¼ãèªç±ãªåå¼·ä¼ã§çºè¡¨ãã¾ãããRead less
http://blog.johnryding.com/post/78544969349/how-to-reconnect-web-sockets-in-a-realtime-web-app 1 comment | 0 points | by WazanovaNews â comment by Jshiike | ç´2æéå John Rydingã®ããã°ã§WebSocketã®åæ¥ç¶ã®ã¢ã«ã´ãªãºã ã®å·¥å¤«ã«ã¤ãã¦ç´¹ä»ãã¦ãã¾ãã ãªã¢ã«ã¿ã¤ã ã¦ã§ãã¢ããªã«ããã¦ãä½ããã®çç±ã§ããã¯ã¨ã³ãã¨ã®æ¥ç¶ãåããå ´åãã¯ã©ã¤ã¢ã³ãã¯ä¸å®ééã§å試è¡ããã¨ãããã¸ãã¯ãè¨å®ï¼åèã³ã¼ãï¼ãã¦ããã¨ãã¾ãããã®å ´åã大éã®ã¯ã©ã¤ã¢ã³ãããã¦ãããé·ãæéæ¥ç¶ãä¸è½ã§ããã°ãåéæã«ããã¯ã¨ã³ãã«ã¯å¤§éã®ãªã¯ã¨ã¹ããéä¸ãããã¨ã«ãªãã¾ãã ããã§Johnããè¦ãããExponential Backoff
æè¿è©±é¡ã®ãæ¥æ¬èªå ¥åãæ¯ããæè¡ããéä¸ã¾ã§èªãã ã 3ç« ããã®ãããæ°åããå ¥ã£ã¦ããã trieï¼ãã©ã¤ï¼ã¨ãããã¼ã¿æ§é ã®2ã¤ã®å®è£ ããããã«é åãã¨ãLOUDSãã«ã¤ãã¦è©³ãã説æãããã¦ããã ããã«é åã«ã¤ãã¦ã¯ãã¼ãã¯ä»¥åè«æãèªãã§åå¼·ãããã¨ããã®ã ãããã®æã¯é£ããã¦ãããããè¦ããããããããããã®æ¬ã®èª¬æãèªããã¨ã§ç解ãã§ããã ãããããã æéãåããã®ã§ããã®æ¬ãææã«åéã¨2人åå¼·ä¼ãããã ãã®2人åå¼·ä¼ã¨ããã®ã¯ãã¼ãã復ç¿ãå ¼ãã¦åéã«æããã¨ããã®ãã ãããã®ã¹ã¿ã¤ã«ã ãããããããã£ã¦ã¿ãã¨ããããã¨é£ããã 次ã®ãããªã¨ããã§ã²ã£ãããããã ã ä¾ã®ãµã¤ãºãå°ãããã¤ã¡ã¼ã¸ãåèµ·ããã®ãé£ããã æåã®å³ã®ãã¼ãçªå·ã¨ãæçµçãªããã«é åä¸ã®ä½ç½®ãç°ãªããããæ··ä¹±ããã åèªçµç«¯ã«ã¤ãã¦è¨åããªãã®ã§ãã©ã®ãã¼ããåèªã表ãã¦ããããããã
å æ¥ãTimSortã¨ããã½ã¼ãã¢ã«ã´ãªãºã ã話é¡ã«ãªãã¾ãããTimSortã¯ãé«éãªå®å®ã½ã¼ãã§ãPython(>=2.3)ãJava SE 7ãããã³Androidã§ã®æ¨æºã½ã¼ãã¢ã«ã´ãªãºã ã¨ãã¦æ¡ç¨ããã¦ããããã§ãã C++ã®std::sort()ãããé«éã§ããã¨ãããã³ããã¼ã¯çµæ1ã話é¡ã«ãªã(å¾ã«ãã³ããã¼ã¯ã®èª¤ãã¨å¤æ)ãç§ãããã§åå¨ãç¥ãã¾ãããå®éã®ã¨ãããã©ã³ãã ãªãã¼ã¿ã«å¯¾ãã¦ã¯ã¯ã¤ãã¯ã½ã¼ã(IntroSort)ã»ã©éããªãããã§ãããã½ã¼ãã¨ããã·ã³ãã«ãªã¿ã¹ã¯ã®ã¢ã«ã´ãªãºã ãä»ããªãæ¹è¯ããç¶ãã¦ãã¦ããªããã¤äººã ã®é¢å¿ãå¼ãã¨ããã®ã¯èå³æ·±ããã®ã§ãã ããããªããããªãªã¸ãã«ã®TimSortã®ã³ã¼ãã¯è¥å¹²è¤éã§ãå®éã®ã¨ããã©ãããã¢ã«ã´ãªãºã ãªã®ããããã¥ããã¨ãããããã¨æãã¾ããããã§ä»åã¯TimSortã®ã¢ã«ã´ãªãºã ãã§ããã ããããããã解
John Hughes, Institutionen för Datavetenskap, Chalmers Tekniska Högskola, 41296 Göteborg, SWEDEN. [email protected] ãã®æ¥æ¬èªè¨³ã¯åèè ã®æ¿è«¾ãå¾ã¦å±±ä¸ãããã«å ¬éãããã®ã§ãã ãã®è¨³æã«ã¤ãã¦ã®ã御ææãªã©ã¯å±±ä¸ä¼¸å¤«(nobsun .at. sampou.org)ã¾ã§ãããã ãããã¾ãã 翻訳æçµæ´æ°æ¥ : 2011-09-17 åæ "Why Functional Programming Matters" æ¥æ¬èªè¨³PostScript ãã®è«æã¯1984年以æ¥ä½å¹´ãã®ããã Chalmers大å¦ã®ã¡ã¢ã¨ãã¦å覧ãããã 1989å¹´ã¨1990å¹´ã«å¹¾åãæ¹è¨ãããã®ã[Hug89]㨠[Hug90]ã§ããããã®çã¯ãã¨ã®Chalmer大å¦ã®ã¡ã¢ ã®nroffå稿ããã¨ã«
å ãã¿ã¯Pythonã§æ«å°¾å帰æé©åãããã - wasabizã®æ¥è¨ãPythonã®ãã³ã¬ã¼ã¿ã使ã£ã¦ãæ«å°¾å帰ã§æ¸ãããé¢æ°ã«å¯¾ãã¦æ«å°¾å¼ã³åºãæé©å(TCO)ãè¡ããã¨ãããã®ã§ã(ã©ããã£ã¦TCOãå®ç¾ãã¦ãããã®è©³ç´°ã«ã¤ãã¦ã®èª¬æã¯ããã§ã¯å²æãã¾ã)ã ãã¦ãå ã¨ã³ããªã§ã¯ãPythonãããããããããªãã¨ãã§ãããã ãã¨ããæãã§æ¸ããã¦ãã¾ãããã¿ãããåããã°ããããªè¨èªã§ã§ãããã ã¨ãããã¨ãåãã£ãã®ã§ãä»ã®è¨èªã§ã試ãã¦ã¿ããã¨ã«ãã¾ããã ã¾ãã¯ããã«ã試ãã«Schemeçãæ¸ãã¦ã¿ããã®ã®ãããããSchemeã¯TCOãåæã«ãã£ã¦ãããã®ã§ãã¾ãæå³ã®ãªãä¾ã«ãªã£ã¦ãã¾ãã¾ããã ãã®å¾ãSchemeçãã ããããã®ã¾ã¾Rubyã«æ¸ãç´ããã®ã以ä¸ã®Rubyçã§ãã class Module def tco(name) continue = [] first
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}