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
README.md Node.jsã®TypeScriptãµãã¼ãã«ã¤ã㦠Created: 2024-07-28 Node.jsã®TypeScriptãµãã¼ãã«é¢ããè°è«ãæç³»åã§ã¾ã¨ãããã®ã§ãã Start Issue: Support typescript with --experimental-strip-types · Issue #208 · nodejs/loaders SWCã使ã£ã¦TypeScriptã®åãåé¤ãããã¨ã§ãNode.jsã®TypeScriptãµãã¼ããå®ç¾ããã¨ããææ¡ããã¹ã¿ã¼ãããã æåã®æ¸å¿µã¨ãã¦ã¯ãNode.jsã®LTSã¯3å¹´ä¿å®ããå¿ è¦ãããã®ã§ãä¾åã«ãã£ã¦Node.jsã®LTSãµãã¼ããé£ãããªãã¨ãã話ã å ·ä½çã«ã¯æ¬¡ã®ãããªæ¸å¿µããã£ã SWCãSemverã§ã¯ãªãã㨠TypeScriptãSemverã§ã¯ãªãã㨠SWCã«ã¤ãã¦ã¯ã
æè¿ãã£ããDenoã«è§¦ã£ã¦ãªããä¸è¨ã§è¨ãã¨é£½ãã¦ãã¾ã£ãã ã¨ã¯ããã©ããªã£ã¦ãããããã®æ å ±ã¯è¿½ã£ã¦ããã®ã ããã©ãã使ãããã¨è¨ãæ°åã«ãªããªãã ä»èªåã¯Denoã³ã³ããªãã¥ã¼ã¿ã¼ã§ã¯ãªãã®ã§ãã¡éçºè ã¨ãã¦ã®å¤ããè¦ãDenoã®ç¾ç¶ãèªã£ã¦ã¿ã æè¿ã®Denoã¯Webæ¨æºã«è¿½å¾ãã¦ãã å ·ä½çã«ã¯ãfetch APIã®å®è£ ã«å§ã¾ãããã©ã¦ã¶ã«å®è£ ããã¦ããAPIã®å®è£ ãé å¼µã£ã¦ãã windowãªãã¸ã§ã¯ããããããwebcryptoãWebGPUã®ãããªããã©ã¦ã¶ã§ã誰ã使ã£ããã¨ã®ãªããããªAPIã¾ã§å®è£ ãã¦ãã èªåã¯ã©ãããã®æµãã«ä¹ããªãã£ã ãã®æ¹éã¯ç¾å¨ã®Denoã³ã¢ãã¼ã ã®å¼·ã姿å¢ã§ãããæè¿JavaScriptã®æ¨æºåå£ä½ã§ããTC39ã«åå ããã¨ãã ã ãDenoããµã¼ãã¼ãµã¤ãã®è¨èªã§ãã以ä¸ããã©ã¦ã¶ã«åå¨ããæ§ã ãªãã©ã¦ã¶çåé¡ã解決ããããã®ä»çµã¿ã
ããã«ã¡ã¯ãããã³ãã¨ã³ãã¨ãã¹ãã¼ãã®å¹³éï¼@shisama_ï¼ã§ãã ããã³ãã¨ã³ãã¨ãã¹ãã¼ããã¼ã ã§ã¯æ¥åæéã® 30 % ã®æéã§æè¡æ¢ç©¶ãè¡ã£ã¦ãã¾ãã ä»åã¯æ¢ç©¶ããæè¡ã®ä¸ãã Node.js ã® ES Modulesï¼ä»¥ä¸ ESMï¼ã«ã¤ãã¦ã¨ Dual Package (CommonJS/ES Modules) ã«å¯¾å¿ãã npm ããã±ã¼ã¸ã®éçºã«ã¤ãã¦ç´¹ä»ãã¾ãã ES Modules ã®ç¹å¾´ ESM ã¯ãã©ã¦ã¶äºæ ESM 㯠Strict ã¢ã¼ã ESM ã¯éåæ ESM ã¯éç解æå¯è½ Node.js ã® ESM 対å¿ã«ã¤ã㦠Dual Packageï¼CJS/ESMï¼ã«å¯¾å¿ãã npm ããã±ã¼ã¸ã®éçº Conditional Exports ã«ãããã¡ã¤ã«ã®æå® .mjs 㨠.cjs require ãªã© CJS ç¹æã®æ©è½ã使ã ESMãã CJS ãã¡
ã¯ããã« ãã¤ãã¯es6ã®ã¢ã¸ã¥ã¼ã«ç®¡çæ¹å¼ã§ããimport/export(ES modules)ã使ã£ã¦ãnpmã§æã«å ¥ããã©ã¤ãã©ãªãèªåã§ä½æããã¢ã¸ã¥ã¼ã«ããã¼ããã¦ãããããã¾ã«æã£ãæåã«ãªããªããã¨ããããã¾ããexport defaultããã¢ã¸ã¥ã¼ã«ããã¹ããããã¨ãã¦karmaã§require()ããã¨ã¨ã©ã¼ã«ãªã£ãããããããããå ´åã¯ãã¨ããããmodule.exportsã使ã£ã¦ã¿ãã¨ãã¾ããã£ãããããã¨ãå¤ãã®ã ãããªããªã®ãã¯ãã¾ãèãã¦ããªãã£ãã ã¨ãããã¨ã§ãå®éã«ã¯ã©ããªã£ã¦ããã®ããã¾ãã¢ã¸ã¥ã¼ã«ã·ã¹ãã ã¨ã¯ä½ãªã®ãã¨ããç¹ã§åºæ¬çãªãã¨ããç解ãæ·±ãã¦ães6ã®import/exportã¨ã®éããç¥ããããæ£ããå®è£ ã§ããããã«ãªãã°è¯ãã¨æã£ã¦ããã çµè«ã¨ãã¦ã¯ æ¹éã¨ãã¦ã¯åºæ¬çã«ã¯ES6å½¢å¼ã§è¨è¿°ããããCommonJSå½¢å¼ã®èªã¿æ¸ãã
class: middle, center <img src="./assets/logo.svg" align="center" width="200" /> Deno ã® ããã¾ã§ 㨠ãããã --- ã¢ã¸ã§ã³ã - Deno ã¨ã¯ - Deno ã®ããã¾ã§ã®ãã¼ãããã - Deno ã®ããããã®ãã¼ãããã --- # 話ã人 <img src="./assets/hinosawa.jpg" align="right" width="300" /> æ¥é澤æä¹ twitter @kt3k - GREE (2012 - 2013) - Recruit (2015 - 2019) - Deno Land (2021 -) <small>2018å¹´ãã Deno ã«ã³ã³ããªãã¥ã¼ããéå§ã2020å¹´ä½è ã«èªãã Deno Land ã«è»¢è·ãç¾å¨ã¯ãã«ã¿ã¤ã 㧠Deno 㨠Deno D
Node.js Performance æ¹åã¬ã¤ã Memory ã®å ´å ã¡ã¢ãªãªã¼ã¯ãã©ãããç¹å®ãã ã¡ã¢ãªãªã¼ã¯ã§ã¯ãªãå ´å CPU ã®å ´å ã©ãã®å¦çã«æéãããã£ã¦ããã®ãã確èªãã v8 simple profiler flame graph ãåå¾ãã File ã®å ´å 大ããªãµã¤ãºã®ãã¡ã¤ã«ãã©ããã¦ãæ±ãæ Network ã®å ´å keepalive ã on ã«ãã ãã®ä»: å ¨ä½çã«ããã©ã¼ãã³ã¹ãæ¹åããããã«ããã㨠JIT ãå¹ãã¦ãããã確èªãã clusterã使ããªããæ¤è¨ãã C++ addons vs JavaScript libraries ã¾ã¨ã åèè³æ Node.js Performance æ¹åã¬ã¤ã ãã®è¨äºã¯ Node.js 2 Advent Calender ã® 5æ¥ç®ã®è¨äºã§ãã qiita.com Node.js ã®ããã©ã¼ãã³ã¹ã«
ããã³ãã¨ã³ãã®ããã©ã¼ãã³ã¹è¨æ¸¬ã¯å¾æãªã®ã ãããµã¼ãã¼ãµã¤ã node.js ã®ã¡ããªã¯ã¹ã®åãæ¹ã¯ãã¾ãç¥ããªãã¦ããã¤ãåã§ãããã¡ã ã£ããæè¿ã¯æ¥åã§ãã®å¨è¾ºã§å°ããã¨ãå¢ããã®ã§ãåå¼·ããªãããã ã¾ããæè¿ä½¿ã£ã¦ã¿ããã£ã cloudflare workers ã®å¶éã§ãã¡ã¢ãª 128MBãCPU æé 50ms ã¨ããå¶ç´ãããããã®ããã«ã Node.js ã® CPU ã®ã¡ããªã¯ã¹ãè¨æ¸¬ã§ããããã«ãªã£ã¦ããå¿ è¦ããã£ãã ã¨ããç®çãè¸ã¾ãã¦ãä»å㯠OS ããã¼ã¿ãã¼ã¹ã®æé©åã¯æ±ããããããã¯ã¼ã¯ã¨ã¢ããªã±ã¼ã·ã§ã³å±¤ã ãã«çµã£ã¦å¦ç¿ããããã¨ä»äºã® Docker ã¤ã¡ã¼ã¸ã®ãµã¤ãºã«ãæ©ãã§ãã®ã§ããããã (ã㨠ISUCON åå è ã楽ãããã ã£ãã®ãããã ISUCON ã®ãã¥ã¼ãã³ã°å¯¾è±¡ã«ããã³ãã¨ã³ãã¯å«ã¾ããªãã®ã§â¦) è¨æ¸¬å¯¾è±¡ ä»åå®é¨ãããªãã¸ããªã¯ã
Denoã¨Node.jsã¯ä¸¡æ¹ã¨ãV8ãããã¯ã¨ã³ãã«ãããµã¼ãã¼ãµã¤ãJavaScriptã©ã³ã¿ã¤ã ã ããããã«ã¯å¤§ããªéããåå¨ããkeroxp.icon
SREãã¼ã ã®è¤åã§ããTech Kayac Advent Calendar Migration Track 19æ¥ç®ã®è¨äºã§ããããããå¹´ãæ¼ãè©°ã¾ã£ã¦ãã¾ãããâ¦! AWS Lambdaã使ã£ã¦ã¾ããï¼æè¿ã¯ãµã¼ãã¼ã¬ã¹ã¨ããæèã§åãä¸ãããããã¨ãå¤ã Lambda ã§ãããã«ã¤ãã¯ã§ã¯ããã¾ã§ãµã¼ãã¼ã¬ã¹ã«ãã ãããã¨ã¯ããã主ã«ã¤ãã³ãããªãã³ãªå¦çã«é©åãªã¦ã¼ã¹ã±ã¼ã¹ã«ä½¿ç¨ãã¦ãã¾ãã Lambda ã®ãªãªã¼ã¹å½åã«ç¨æããã¦ããã©ã³ã¿ã¤ã 㯠Node.js ã®ã¿ã§ãããã«ã¤ãã¯ã§æè¿ä½¿ããã¨ãå¤ãè¨èªã§ãã Go, Ruby ã®ã©ã³ã¿ã¤ã ããµãã¼ããããã®ãæ¯è¼çæè¿ã ã£ãã¨ãããã¨ããããNode.js ã® Lambda function ãæ¯è¼çå¤ãåå¨ãã¦ããç¶æ³ã§ããã Node.js EoL (End of Life) ã¨ããã§ãæè¡åºç¤ãã¼ã ã®ãªãã¸ããªã§ãLa
Node.jså¾¹åºæ»ç¥Â â ã¤ãã¼ã®ãã¦ãã¦ã«å¦ã¶ãããã©ã¼ãã³ã¹å£åãã³ã¼ã«ããã¯å°çã¨ã®æ¦ãæ¹ Node.jsããã¾ãæ´»ç¨ã§ãã¦ããä¼æ¥ã¯ãã©ã®ãããªæ¹æ³ã§ãã¹ããã©ã¯ãã£ã¹ãç¿å¾ãã¦ããã®ã§ãããããã¤ãã¼æ ªå¼ä¼ç¤¾ã§Node.jsã®ç¤¾å æ®åã«åãã¦ããè¨èªãµãã¼ããã¼ã ã«ãå社ã®å®æ½ãç´¹ä»ãã¦ãããã¾ããã Node.jsã¯ãã¤ãã³ãã«ã¼ãã¢ãã«ã§ããã³ããããã³ã°I/Oã使ç¨ãã¦ããããåé¡çºçæã«HTTP/TCPãPOSIX APIãªã©ä½ã¬ã¤ã¤ã¼ã®ç¥èãæ±ãããããã¨ãã£ãç¹å¾´ãæã¤è¨èªã§ããéçºè ãç¿å¾ãã¹ãæè¡é åãåºããããNode.jsãããæ¸ãæ¹ã®å¦ç¿é£æ度ã¯é«ãã¨è¨ãã¾ãã ããã§ã¯ãNode.jsããã¾ãæ´»ç¨ã§ãã¦ããä¼æ¥ã¯ãã©ã®ãããªæ¹æ³ã§Node.jsã®ãã¹ããã©ã¯ãã£ã¹ãç¿å¾ãã¦ããã®ã§ãããããã¤ãã¼æ ªå¼ä¼ç¤¾ã§Node.jsã®ç¤¾å æ®åã«åãã¦ããè¨èªãµãã¼ã
Ryan Dahl 㯠Node.js ã® original author ã§ãããå½¼ã®ä½ã£ããããã¯ã deno ã«é¢ãããã¼ã¯ã jsconf.eu 2018 ã§ããã¾ããã Node.js ã«ãã£ã¨é¢ãã£ã¦ããåãè¦ã¦é常ã«è奮ãããããªè©±ã ã£ãã®ã§ããã°ããã¶ãã«ããã°ã«æ¸ãèµ·ãããã¨ã«ãã¾ããã èæ¯ Ryan Dahl ã¯2009å¹´ã« Node.js ã®è©±ãåãã¦å ¬ã®å ´ã«å ¬éãã¾ããããã®æã®ãå ¬ã®å ´ãã¨ããã®ããjsconf.eu 2009ãã§ãã www.youtube.com Video: Node.js by Ryan Dahl - JSConf.eu - 2009 ãã®çºè¡¨ãã Node.js ãåºã¾ããä»ããµã¼ãã®ã¿ãªãããIoTããã¤ã¹ããã¹ã¯ãããã¢ããªãªã©ãæ§ã ãªã¨ããã§åä½ãã¦ãã¾ãã ã§ãä»åã¯ãã®çºè¡¨ãã9å¹´ã®æ³æãçµéããNode.jsã«å¯¾ãã¦ã®è¨è¨ä¸
ISUCON7ã®Node.jsçã®åèå®è£ ã®ä½æãæ å½ããã¦ããã ãã¾ããã åå è ã®ã¨ãã¨ã¯å ¨ç¶å¥è¦ç¹ã§ãå¾ããããã¨ã沢山ããã¾ããã Twitterã§ãã¤ãã¤ãã¨æ¸ãã¦ãã®ã§ãããã¾ã¨ããæ¯ãè¿ããæ¸ãããã¨æãã¾ãã ãªãåèå®è£ ã®ãªãã¸ããªã¯ãã¡ãããã確èªããã ãã¾ãã â ISUCON7 äºé¸åé¡ã®å ¬éã¨è§£èª¬ : ISUCONå ¬å¼Blog èªåã®ISUCONæ´ ISUCON5, 6ã¨äºååå ããã©ã¡ããäºé¸æéãã¦ã¾ãã ã¡ãªã¿ã«éå»äºåã¨ãGoã§ã®ææ¦ã§ãNode.jsã§æãã ãã¨ã¯ããã¾ããã§ããã ãªããã£ãã èªåã¯åå ã¡ã³ãã¼ãéããããªãã£ããã Node.jsçã§åå ãããã¨ããç¥ãåããããNode.jsçã«æ¸ ãä¸ç¥¨ãï¼ï¼ãã¨æ¨ããã¦ä¸ç¥¨å ¥ãã ãã¨ã¯ä»å¹´ã®ISUCONã«ã¯é¢ãããçµããããªã¨æã£ã¦ãã¾ããã ISUCONåå äºå®è ã«ã¢ã³ã±ã¼ãã§ããPHP,
(注ï¼2017/07/19ãããã ãããã£ã¼ãããã¯ãå ã«ç¿»è¨³ãä¿®æ£ãããã¾ããã) ESMãCJSãUMDãAMDâãâãã©ãã使ãã¹ãï¼ æè¿ã Twitter ã§ã¯ã ESã¢ã¸ã¥ã¼ã« ã®ç¾ç¶ãç¹ã«ã *.mjs ããã¡ã¤ã«æ¡å¼µåã¨ãã¦å°å ¥ããã¨æ±ºãã Node.js ã®ç¾ç¶ã«ã¤ãã¦å¤§é¨ãã«ãªã£ã¦ãã¾ãããã®è©±é¡ã¯è¤éã§ãããªãã®å´åãè²»ããã¦ããã«å°å¿µããªãã¨è°è«ã«ã¤ãã¦è¡ããªãã®ã§ã çãæãã¨ä¸å®ãæ±ã ã®ãç¡çã¯ããã¾ããã å¤ãæã ããã³ãã¨ã³ãéçºè ãªãã JavaScriptã®ä¾åé¢ä¿ã®ç®¡çã«æ©ã¾ãããæ¥ã ãæ¶ãã¦ãã人ãå¤ãã§ãããããã®é ã¯ãã©ã¤ãã©ãªããã³ãã¼ãã©ã«ãã«ã³ãã¼&ãã¼ã¹ãããã°ãã¼ãã«å¤æ°ã«ä¾åããããããç©ãæ£ããé åºã§concatãããã¨ãã¦ããã¼ã ã¹ãã¼ã¹ã®åé¡ã«å¯¾å¦ããå¿ è¦ãããã¾ããã ä½å¹´ãããã£ã¦ãç§ãã¡ã¯å ±éã¢ã¸ã¥ã¼ã«å½¢å¼ã¨ä¸å¤®é権
Node v8.0 is released!!!!!! Node v7 ããåå¹´çµéãã¦æ¬¡ã®LTS対象ã«ãªãå¯è½æ§ãé«ã Node v8.0 ããªãªã¼ã¹ããã¾ããã ããã¤ã Notable Changes ã話ããããªã¨ãã¡ãªã¿ã« Node v8 ã¨è¨ãã¨å é¨ã§ä½¿ã£ã¦ãã JS ã¨ã³ã¸ã³ã® V8 ã¨æ··åãããã®ã§ãã¿ã㪠Node8 ã¨ãå¼ãã§ãã¨ããå¤ãã§ãããã®ããã°ã®ä¸ã§ã¯ã¾ã åºãã°ããã¨ãã£ã¦ã v8.0 㨠minor ãã¼ã¸ã§ã³ä»ãã§ç´¹ä»ãã¾ãã LTS åè£ v6.x ä¾é ¼ã®ä¸å¹´ã¶ãã® LTS åè£ã«ãªãã¾ãã LTS ã«ãªãã®ã¯ 10æ以éã¨äºå®ããã¦ãã¾ãã Current ãã LTS ã«ãªãããã«ã¯ã³ã¢ã®æçãå¾ ã¤å¿ è¦ãããããªãªã¼ã¹ããåå¹´çµéãããäºå®ã§ãã Notable Changes ããã¤ãå¤æ´ç¹ãããã¯ã¢ãããã¦ç´¹ä»ãã¾ãã npm5 util.pro
After five years working with Node.js, Iâve learned a lot. Iâve already shared a few stories, but this time I wanted to focus on the ones I learned the hard way. Bugs, challenges, surprises, and the lessons you can apply to your own projects! Basic concepts Any new platform has its share of tricky bits, but at this point these concepts are second-nature for me. Digging into a bug you caused is a g
Nodeã®ã¢ããã³ãã«ã¬ã³ãã¼ãæ¢ã«çµãã£ãæ ã空ãã¦ãã¦ããã®éæ¸ããããã¿ããã£ããã§åå ãã¾ãããå®ãããé¡ããã¾ãã ã¢ããã³ãã«ã¬ã³ãã¼ã®ææã ãåºæ²¡ããå¼±ãæ¥æHaskellerã§ããæ®æ®µã®å®åã§ã¯Node.jsã«ãä¸è©±ã«ãªã£ã¦ã¾ããå®ãããé¡ããã¾ãã ãã¦ãã¿ãªããStream API使ã£ã¦ã¾ããï¼Node.jsã¨ãã£ããéåæã§ãããããã£ã±ããããããªãããJavaScriptã§ãä»ã®è¨èªã§ããéåæå¦çèªä½ã¯æ³¨ç®ããã¦ãããã®ã®ãã¾ã experimentalã¨ããæãã§æ§ã ãªAPIãèæ¡ããã¦ã¯æ¶ãã¦ãããã¾ãå ã ããããæåãæ ¹å¼·ããªãã£ãã¨ããããæ¥ã人ãã¡ã«ã¨ã£ã¦ãããããæåã¯ã¡ãã£ã¨ç«ã¡å ¥ãã¥ããã¨ãããããããããã¾ãããã ä»æ¥ã¯ã主ã«ãããã人ãã¡ã«åãã¦ãã¾ãéåæã®è²ã ãªAPIã®ç´¹ä»ãããã¦ãã®ä¸ã§ã®ã¹ããªã¼ã ã®ã¡ãªãããããã¦å®éã®Stream
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}