You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
ãããã 第29åã§ã¯ãéåæå¦çãå®ç¾ããæ¹æ³ã¨ãã¦Reactorãã¿ã¼ã³ãç´¹ä»ãã¾ããã ä¸è¬çã«éåæå¦çã¨ãã¦ä½¿ããã¦ããã¹ã¬ããå¦çã¨éããReactorãã¿ã¼ã³ã¯ã·ã³ã°ã«ã¹ã¬ããã§åä½ããã¹ã¬ããéã®ãã¼ã¿ã®å ±æã«æ©ãå¿ è¦ã¯ããã¾ããããããReactorãã¿ã¼ã³ã¯ã³ã¼ããç´æçã§ã¯ãªããæ £ãã¦ããªã人ã«ã¯åã£ã¤ãã«ãããã®ã§ãããã¨ã確ãã§ãã ãã®ãããReactorãã¿ã¼ã³ãæèããã«éåæå¦çãå®ç¾ããããã®ã©ã¤ãã©ãªãRubyã«ã¯ããããç¨æããã¦ãã¾ãã ä»åã¯ããã®ä¸ã§ããã使ããã¦ããEventMachineã«ã¤ãã¦ç°¡åã«èª¬æãã¾ãã EventMachineã¨ã¯ EventMachineã¨ã¯ãReactorãã¿ã¼ã³ãå©ç¨ãã¦éåæå¦çãå®ç¾ããé«ã¬ãã«ãªãããã¯ã¼ã¯ã¤ã³ã¿ã¼ãã§ã¼ã¹ãæä¾ããã©ã¤ãã©ãªã§ãã è¤éãªReactorãã¿ã¼ã³ã«ããå¦çã¯ãã©ãã¯ãã
ã¯ããã« ä½ã æ¨ã§ããéçºçµé¨ãç¡ãJavaScriptã触ã£ããã¨ããªãåã§ãããã©ããã¦ãAWS lambdaã触ã£ã¦ã¿ããã£ãã®ã§ãåè¦å «è¦ããªãããã£ã¦ã¿ã¾ããã ãã§ã«ããªããªæ´»ç¨ãã¦ããããã°è¨äºãããããåºã¦ãã¾ãããæ¬è¨äºã¯æ¬å½ã«ä½ãããããªãåããã¡ãã¡æ©ããã¦ããå 容ã§ãã®ã§ãæ·±ãã¨ããã¯æå¾ ããªãã§ãã ãããããã¦èè ã®ããã³ãããå¾ ã¡ãã¦ããã¾ãã AWS lambdaã®åºæ¬çãªä½¿ãæ¹ã¯ä»¥ä¸ã®è¨äºããåç §ãã ããã AWS Lambdaãå§ãã¦ã¿ã(1).ã¦ã¼ã¶ã¼ã¢ããªã±ã¼ã·ã§ã³ããã®ã¤ãã³ããæ±ã AWS Lambdaãå§ãã¦ã¿ã(2).Amazon S3ã¤ãã³ããæ±ã ãã£ã¦ã¿ã MBAã«node.jsãã¤ã³ã¹ãã¼ã«ãã ã¨ããããç°¡åãªæ§æãã§ãã¯ã ãã§ãæå ã§ããããã®ã§ãMBAã«brewã使ã£ã¦node.jsãã¤ã³ã¹ãã¼ã«ãã¾ãã $ brew insta
In 2011, I wrote a three-part series called How GitHub Works. I wanted to detail how we planned ideas, built them, and shipped them. GitHub no longer works like this, electing instead to institute a hierarchical, manager-driven, top-down, geocentric organization. Iâm going to keep these posts up, though, because I think they address extremely important aspects of how good technical companies shoul
ã¯ããã« Webãµã¼ãã¹ã®APIãã³ã¼ã«ãããããªããããã¯ã¼ã¯ãä»ããéä¿¡å¦çã¯ãä»æ¥ã§ã¯é »ç¹ã«è¡ããã¦ãã¾ãã ãã¼ã«ã«ãã·ã³ã®ã¿ã§å®çµããå¦çã¨æ¯ã¹ãã¨ãéä¿¡ãå¿ è¦ãªå¦çã¯å¤å¤§ãªæéãå¿ è¦ã«ãªãã¾ããç¸æãµã¼ãã¸ã®æ¥ç¶ãç¸æãµã¼ãå´ã§ã®å¦çãç¸æãµã¼ãããã®åä¿¡ãªã©ãä½ããããã¨ãªããã å¾ ã¤ã ãã®æéãåå¨ãã¾ãã ãã®ç¡é§ãªæéã®éã«ä»ã®å¦çãã§ãããªãã°ããã¼ã¿ã«ã®å¦çæéãå¤§å¹ ã«ç縮ãããã¨ãå¯è½ã«ãªãã¾ãããããå®ç¾ããããã«ã¹ã¬ããããã使ããã¦ãã¾ããããããã«ãã¹ã¬ããããã°ã©ãã³ã°ã¯ããããã¨æ³¨æãæãç¹ãå¤ãã使ãã«ãããæãã¦ããæ¹ãå¤ãã®ã§ã¯ãªãã§ããããã ä»åã¯Reactorãã¿ã¼ã³ã¨ããããã«ãã¹ã¬ããã¨ã¯éã£ãã¢ããã¼ãã§éåæå¦çãå®ç¾ãã¦ã¿ããã¨æãã¾ãã è¤æ°ã®webãµã¼ãããHTMLæç« ãåå¾ãã¦ã¿ã åæå¦ç ã²ã¨ã¾ãéåæå¦çãå¿ãã¦ãã·ã¼ã±
ååã¯POSIX AIOã¨Linuxã«ã¼ãã«ã®AIOãµãã¼ãã«ã¤ãã¦è§£èª¬ãã¾ãããä»åã¯ããã®AIOã®ä½¿ãåæãè¯ããããããPOSIX AIOã¤ã³ã¿ãã§ã¼ã¹æºæ ã®ã©ã¤ãã©ãªãä½æãã¦ãã¾ãã Linuxãã¤ãã£ãAIOã©ã¤ãã©ãªliblaioã®è©¦ä½ Linux AIOã使ç¨ããå ´åãç¾å¨ã§ã¯åè¿°ã®libaioã®å©ç¨ã第ä¸åè£ã«ãªãã¾ããããã使ãåæãæªããããæ¬è¨äºã§POSIX AIOã¤ã³ã¿ãã§ã¼ã¹æºæ ã®ã©ã¤ãã©ãªã試ä½ãã¦ã¿ã¾ããLinux AIOã§ã¯O_DIRECTãåæã¨ãªãããããã®ç¹ããã使ãåæãæªãã®ã§ãããSSDãªã©ã¡ã¢ãªãã¼ã¹ã®ãã¡ã¤ã«ã·ã¹ãã ãããã¾ãããåä½ã¯éåæã«ãªãã¾ãããio_submit(2)ã¯O_DIRECTããªãã¨ã使ç¨å¯è½ã§ããããã¾ã試ãã«ãã£ã¦ã¿ã¾ãããã ã©ã¤ãã©ãªè¨è¨è¦ç¹ãæãã¾ãã Linux AIOã«POSIX AIOã¤ã³ã¿ãã§ã¼ã¹ãã
æ¬æ¸ã¯ãC#5.0ã§æ°ãã«è¿½å ãããéåæå¦çã®æ©è½ãasyncã«ã¤ãã¦è§£èª¬ããæ¸ç±ã§ããæ¢ã«C#ããã使ã£ã¦ããéçºè ã«åãã¦ãè¤éãªã³ã¼ããæ¸ããã¨ãªãéåææ©è½ãå®ç¾ã§ããasyncã®æ©è½ãç´¹ä»ãã¾ããæ¢åã®ã¡ã½ãããéåæã«ããæ¹æ³ãã¿ã¹ã¯ãã¼ã¹ã®éåæãã¿ã¼ã³ï¼TAPï¼ãéåæã³ã¼ãã«ãããä¾å¤å¦çã並åå¦çãªã©ãã³ã³ãã¯ããªç´å¹ ã®ä¸ã§è§£èª¬ãã¦ãã¾ãããªãæ¬æ¸ã¯Ebookçã®ã¿ã®è²©å£²ã¨ãªãã¾ãã ã¯ãã㫠対象ã¨ããèªè æ¬æ¸ã®èªã¿æ¹ æ¬æ¸ã§ã®è¡¨è¨ ãµã³ãã«ã³ã¼ãã®ä½¿ç¨ã«ã¤ã㦠ãååãå è¬è¾ 1ç« åº éåæããã°ã©ãã³ã° éåæã³ã¼ãã®ã©ããåªãã¦ããã®ã asyncã¨ã¯ä½ã asyncã®æ©è½ asyncã§ãã¹ã¦ã解決ãããããã§ã¯ãªã 2ç« ããã°ã©ã ãéåæã§ãªããã°ãããªãçç± ãã¹ã¯ãããã¦ã¼ã¶ã¤ã³ã¿ãã§ã¼ã¹ã¢ããªã±ã¼ã·ã§ã³ ãã¨ã話ââã«ã㧠Webã¢ããªã±ã¼ã·ã§
第2åAP4Rã¨Railsã§ã¤ããéåæã¢ããªã±ã¼ã·ã§ã³ å è¤ç©¶ï¼ç¯ åä¿ä¸ 2007-09-13
JavaScriptãã¡ã¤ã«ãã¹ã¯ãªããããéåæã§èªã¿è¾¼ããã¿ã¼ã³ã¯å¤ããã¨ãã話ãç®ã«ããã®ã¯ããåå¹´åã®ãã¨ã è¨ã£ãã®ã¯Ilya Grigorikãææ«ã®Google Japanã§ã®ã¤ãã³ããæåã®HTTP2Conferenceã«ããWebããã©ã¼ãã³ã¹çã®ãããã²ã¨ã§ããã Script-injected "async scripts" considered harmful - igvita.com 件ã®ãã¿ã¼ã³ã¯ãã¹ã¯ãªããã§åçã« script ãçæãã¦ãããã«èªã¿è¾¼ã¿ããJavaScriptãã¡ã¤ã«ãã¶ã£ããã§èªã¿è¾¼ãã¨ãããã®ã <script> var script = document.createElement('script'); script.src = "//somehost.com/awesome-widget.js"; document.getEleme
ååã¾ã§ãã¡ã¤ã« I/O å ¨è¬ã«ã¤ãã¦ç°¡åã«æ¯ãè¿ãã¾ãããããããæ¬é¡ã®AIOã«åãæããã¾ããä»åã¯ãPOSIXã®AIOã¤ã³ã¿ãã§ã¼ã¹ã¨ãLinuxã«ã¼ãã«ã®AIOãµãã¼ãã«ã¤ãã¦ç´¹ä»ãã¾ãã POSIX AIO ã¤ã³ã¿ãã§ã¼ã¹ ãããã¡ãã£ãã·ã¥ã«ããç·©åãããã¨ã¯ããããã¡ã¤ã« I/Oã®æçµå°éå°ç¹ã¯ãã£ã¹ã¯ã§ããããåæçãªI/Oã¯ãã¯ããã®æéãåé¡è¦ããããã¨ãããã¾ããã¾ã ãããã¡ãã£ãã·ã¥ã«åå¨ããªããã¼ã¿ãèªã¿åãå ´åã«ã¯é ããã£ã¹ã¯å¿ ãå¾ ããªããã°ãªãã¾ããããã®åä½ãéåæã«è¡ããå¾ ã£ã¦ããéã«ä»ã®å¦çãé²ããããããã«ããã®ãéåæ I/OãAIOï¼Asynchoronous I/Oï¼ã§ããPOSIXã§ã¯aio_read(3)ãaio_write(3)ãaio_suspend(3)ãaio_fsync(3)ãaio_return(3)ãaio_cancel(3)ã
ã¤ãã³ãã«ã¼ããæã¤ã¢ã¸ã¥ã¼ã«ãæ±ããåé¡ç¹ ã¤ãã³ãã«ã¼ããæã¤ã¢ã¸ã¥ã¼ã«ã®ä¸ä¾ã¨ãã¦ãååã¯POEãåãä¸ãã¾ãããããã¡ããåããããªã«ã¼ããæã¤ã¢ã¸ã¥ã¼ã«ã¯ã»ãã«ãããã¾ãã ãã¨ãã°1995å¹´ã«æ ããã¯ã»ã¤ã³ã°ã»ã·ã¢ã³ãºï¼Nick Ing-Simmonsï¼æ°ãå§ããPerl/TkããPOEèªçåå¤ã®1997å¹´ããéçºãè¡ããã¦ããGtkï¼ã®ã¡ã®Gtk-Perlâ ï¼â ããã®å¾ç¶ã«ãããGtk2/Glibã®Perlãã¤ã³ãã£ã³ã°ï¼2003å¹´ï¼ãªã©ãGUIã¢ããªã±ã¼ã·ã§ã³é¢é£ã®ãã¼ã«ãããã§ãããIO::Pollï¼1997å¹´ï¼ãIO::Asyncï¼2007å¹´ï¼ã®ãããªã¢ã¸ã¥ã¼ã«ã«ãã¤ãã³ããç£è¦ããããã®ã«ã¼ãã使ããã¦ãã¾ããã¾ããEventï¼1997å¹´ï¼ãlibeventã®ã©ããã§ããEvent::Libï¼2004å¹´â ï¼â ãEVï¼2007å¹´ï¼ã®ããã«ãã¤ãã³ãã«ã¼ããã®ãã®ãå®è£ ã
ã©ããã¯ããã¾ãã¦ãæ ªå¼ä¼ç¤¾ã¯ã¦ãªã®id:cho45ã§ããããããæ°åã«æ¸¡ããæä½ã®JavaScriptã®ã©ã¤ãã©ãªã§ããJSDeferredã®ç´¹ä»ã¨ãããã«é¢ä¿ããJavaScriptã«ãããéåæã®æè¡ã«é¢ãã¦è§£èª¬ããã¦ããã ãã¾ãã JavaSciptã«ãããéåæå¦ç éåæå¦çã¨ã¯ ã¾ãã¯ç¢ºèªç¨åº¦ã«ãéåæå¦çãã©ããããã®ãã解説ãã¦ããã¾ããå ã«ä¹±æ´ã«ã¾ã¨ãã¦ãã¾ãã¨ã以ä¸ã®äºæã大åãªã¨ããã§ãã éåæã¨ã¯ããã¨ã§ãã¨ããæå³ åæå¦çã¯ã³ã¼ãã®è¦ãç®é ã«å®è¡ãããï¼éåæã§ã¯ãããªããªã JavaScript ã®éåæå¦çã¯çµ¶å¯¾ã«åæå¦çã«ãããã¨ãã§ããªã JavaScriptã«ãããéåæå¦çãããã¤ãä¾ã«åºãã¨ã以ä¸ã®ãããªãã®ãæãããã¾ãã ãªã¹ã1 // XMLHttpRequest ã®ä¾ var req = new XMLHttpRequest(); re
2014-09-18 ãPythonã2è¡ã§HTTPãªã¯ã¨ã¹ãã並åå¦çã§ãã便å©ã©ã¤ãã©ãªãGRequestsã ããæ¹ GRequestsã¯HTTPãªã¯ã¨ã¹ãã並åå¦çããã©ã¤ãã©ãªã§ãã GRequestsã¯GitHubã§ã¹ã¿ã¼ã759åä»ãããã¦ããã®ã«ãæ¥æ¬èªã§GRequestsã«ã¤ãã¦è§¦ããããè¨äºã¯ã²ã¨ã¤ãã¿ã¤ããã¾ããã§ãã(ã»ãã¨ããªï¼) ãªã®ã§ç´¹ä»ãã¾ãã GRequestsã®ã¤ã³ã¹ãã¼ã« pip install grequestsã§ããã¾ããGReqestsã¯requestsã¨geventã使ã£ã¦ãã¾ãã®ã§ãããããä¸ç·ã«ã¤ã³ã¹ãã¼ã«ããã¾ãã帰ã£ã¦ãããªãã¸ã§ã¯ããrequestsã®ãããªã®ã§å®ç§ã§ãã ã³ã¼ãã¯ä»¥ä¸ã®ããã«ãªãã¾ãã â» ãã404ã ã£ããããå ´åã¯Noneãæ ¼ç´ããã¾ãã ãµã£ã¨HTTPãªã¯ã¨ã¹ããéåæå¦çããã¨ãã«pip install gr
Familiar API Luvit implements the same APIs as Node.js, but in Lua! This helps teams migrate without having to learn a new way of programming. Async Choice Choose your async model; we donât mind; we encourage experimentation. If you donât like callbacks and event emitters, use coroutines and write blocking style code without actually blocking your event loop! Modular Core The various projects in t
ã¤ãã¼æ ªå¼ä¼ç¤¾ã¯ã2023å¹´10æ1æ¥ã«LINEã¤ãã¼æ ªå¼ä¼ç¤¾ã«ãªãã¾ãããLINEã¤ãã¼æ ªå¼ä¼ç¤¾ã®æ°ããããã°ã¯ãã¡ãã§ããLINEã¤ãã¼ Tech Blog Yahoo!ãããããã¼ãããã¯ã¼ã¯ã®ä¸é(@Hiraku)ã§ããJavaScriptã§ãµã³ãã«ã³ã¼ããæ¸ãæ©ä¼ããã£ãã®ã§ãã©ããªã¤ã³ã¿ã¼ãã§ã¼ã¹ã§æä¾ããã®ã便å©ãªã®ãèãã¦ã¿ã¾ãããããåé¡ã«ãªãã³ã¼ã«ããã¯ã®ãã¹ãåé¡ã«ã¤ãã¦ãä¸è¬çãªè©±ãã¾ã¨ãã¦ã¿ã¾ãã ãé¡ çªç¶ã§ããã次ã®ãããªå¦çãè¡ãå¿ è¦ãããã¨ãã¾ãã ã0ããåºåãã 1ç§å¾ 㤠ã1ããåºåãã 1ç§å¾ 㤠ã2ããåºåãã ãããããã°ã©ã ã§æ¸ãã¨ã©ããªãã§ããããï¼ ã·ã§ã«ã¹ã¯ãªããã®å ´åï¼åæï¼ ãã¨ãã°ã·ã§ã«ã¹ã¯ãªããã§ç´ ç´ã«æ¸ãã¨ã次ã®ããã«ãªãã¾ãã
JavaScript Promiseã®æ¬ã¨ããç¡æã§èªããé»åæ¸ç±ãæ¸ãã¾ããã ã¿ã¤ãã«ãã®ã¾ã¾ã§ãJavaScriptã®Promiseã«ã¤ãã¦æ¸ããæ¸ç±ã§ãã æ¸ç±ã®ç®ç ãã®æ¸ç±ãèªããã¨ã§å¦ã¹ãäºã¨ãã¦ã次ã®3ã¤ãç®æ¨ã«ãã¦æ¸ãã¾ããã Promiseã«ã¤ãã¦å¦ã³ããã¿ã¼ã³ããã¹ããæ±ããããã«ãªãäº Promiseã®åãä¸åãã«ã¤ãã¦å¦ã³ãä½ã§ãPromiseã§è§£æ±ºããã¹ãã§ã¯ãªãã¨ç¥ãäº ECMAScript6 Promiseã®åºæ¬ãããå¦ã³ãçºå±ããå½¢ãèªåã§å½¢æã§ããããã«ãªãäº Promiseã¯ã次ã®ECMAScriptã®è¨èªä»æ§ã¨ãã¦çå®ãé²ãããã¦ãã¦æ¢ã«å¤ãã®ãã©ã¦ã¶ã«å®è£ ããã¦ãã¾ãã Promiseã«ã¤ãã¦æ±ãæ¸ç±ã§ããããã®æ©è½ã¯jQuery.Deferred()ãAngularJSã®$qãBluebirdçã®é¡ä¼¼ã®æ©è½ãæ¢ã«ããããæ±ã£ããã¨ãããããããã¾
JavaScript (Node.js) ã§éçºããä¸ã§é¿ãã¦ã¯éããªã éåæå¦çãã³ã¼ã«ããã¯ã«ã¤ãã¦èãã¦ã¿ããã èªåãªãã®ãå§ãã®æ¹å¼ãæ¸ãã¦ã¿ãã ãããããªãã®ã試ããçµæã§ããã â»ãã®è¨äºã§ã®ãå§ãã®æ¹æ³ã¯ ES2015 (ES6) ã§å®è£ ããã generators (yield) ã®æè¡ã使ç¨ãã¦ãã¾ãã å®ã¯ã¾ã Babel(6to5) çãå©ç¨ããã Node.js v4ï½v8 ã§ãã å®è³ªçã«ä½¿ç¨ã§ããªãæè¡ã ã¨æãã¾ããæªããããã (æ©ãå ¨ã¦ã®ãã©ã¦ã¶ã«åºãæ®åããäºãç¥ã£ã¦ãã¾ã) ã¾ã ãã©ã¦ã¶ã§ã¯ç¬èªã©ã¤ãã©ãªã Promise (Deferred) çã使ã£ã¦ãã¾ãã â»2015/10/15: è¨äºã®å 容ã npm aa (async-await) ã«å¯¾å¿ããã¾ããã â»2015/04/19: è¨äºã®å 容ã npm co@4 ã«å¯¾å¿ããã¾ããã â»20
4. ThreadãããTask for (int i = 0; i < num; i++) { var t = new Thread(_ => b[i] = F(a[i]) ); } for (int i = 0; i < num; i++) { Task.Run(() => b[i] = F(a[i]) ); } Ãæªãä¾ âè¯ã(ã¾ã ãã·â»ãª)ä¾ ãã¼ã¿ã®æ°ã ã ã¹ã¬ããä½æ Threadã§ãªã Taskå©ç¨ â» ãã®å ´åãParallelã¯ã©ã¹ãParallel.Enumerableã¯ã©ã¹ã使ãããã 5. ThreadãããTask for (int i = 0; i < num; i++) { var t = new Thread(_ => b[i] = F(a[i]) ); } for (int i = 0; i < num; i++) { Task.Run(() => b[
Hackers Barã£ã¦ãªã«ï¼ Hackers Bar å æ¬æ¨ã«ããã«ã¼ãããã¦ãªãããããã¼ãèªçãã¾ãã ãHackers Barãã¯ãããã«ã¼ã®ããã°ã©ãã³ã°ã©ã¤ãã ãã¸ãã¹ã¡ã¤ãã³ã°ã楽ãã空éã§ãã ãããããã ããã¾ãã§å¶æ¥ãã¦ãã®ï¼ï¼ã£ã¦åä¿¡åçã§è¡ã£ã¦ã¿ããã ã¾ãã§å¶æ¥ãã¦ãï½ãåå¨ãã¦ãï½ï½ï½ï½ ãåºèªä½ã®ããããã¬ãããã¨ãã¼ã«ãè¼ã£ãã¿ãã ã«ã¯ãã«åãããã«ã¼ã¹ã¯ãªã¼ã³ããã¹ãã²ããã£ãã£ã¦ä¸åãããã§ããï¼ãå æ¬æ¨ã«ã§ãããHackers Barãè¡ã£ã¦ãã - ãã¨ãã¼ ãã£ã¦ããã£ãã©ã¤ãã³ã¼ãã£ã³ã° å¼ããããã´ã«ã½ãã¡ã¼ããããã£ã¦è¨ã£ã¦ã¦ã ãã£ãã¼ã£ã¦ããããªãã ãã©ãâ¢äººæãã§ã¾ããã«ãã£ã½ãï¼ ãé¨å±ã®ã¥ãã ãããã¶ã£ã½ããã ãã©ã éã°ãã¦ããæããã³ã·ã§ã³ã®ã¨ã¬ãã¼ã¿ã¼ã«ã¡ããã¨å ¥ãã®ããªï¼ â¦ã£ã¦ãã¨ã§ããããè¨ç®ãããã¦ï¼(^o^)ï¼¼
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}