asm.js is ä½
解説è¨äºãããªãã§ãããå 容ã¯ä¿è¨¼ãã¾ããã
asm.js ã¯ä½ã¬ãã«è¨èª
ä»æ§æ¸[1]ã«ããã°ãasm.jsã¯JavaScriptã®å³å¯ãªãµãã»ããã§ãã£ã¦ãã³ã³ãã¤ã©ã¼ã®ä½ã¬ãã«ã§å¹ççãªã¿ã¼ã²ããè¨èªã¨ãã¦ä½¿ããã¨ãã§ããè¨èªã ã
This specification defines asm.js, a strict subset of JavaScript that can be used as a low-level, efficient target language for compilers.
http://asmjs.org/spec/latest/
ã³ã³ãã¥ã¼ã¿ã¼ã®è©±ã«åºã¦ãããä½ã¬ãã«ãï¼ä½æ°´æºï¼ã¯ããã¼ãã¦ã§ã¢ã«è¿ããã¨ããæå³ã ãä½ã¬ãã«ã®ããã°ã©ãã³ã°è¨èªã«ã¯ãããã»ããµã¼ã解éãå®è¡ãããã·ã³èªãããã·ã³èªã人éã«èªã¿ãããå½¢ã«éèªè¨³ããã¢ã»ã³ããªè¨èªãªã©ãããã
ã¤ã¾ããasm.jsã¯ãã³ã³ãã¥ã¼ã¿ã¼ãå¦çããããããã«è¨è¨ãããè¨èªã§ã人éãç´æ¥èªã¿æ¸ãããç¨éã®è¨èªã§ã¯ãªãã
ãã¡ãããasm.js ã¯ã¢ã»ã³ããªè¨èªã®ããã«èªã¿æ¸ããããã¨ã¯ã§ãã*1ããã ãããã¯ä½ã¬ãã«è¨èªã®å°éç¥èãæã£ã¦ãã人ããããã¨ã§ãå¤ãã®äººã¯é«ã¬ãã«è¨èªã§ããã°ã©ã ãæ¸ããä¸ã§ãã³ã³ãã¤ã©ã¼ã使ã£ã¦ asm.js ã®ã³ã¼ãã«ã³ã³ãã¤ã«ããã°ããããã®æ使ãé«ã¬ãã«è¨èªã¯Cè¨èªãC++ãªã©ãã©ã³ã¿ã¤ã ã©ã¤ãã©ãªã¼ãç¡ãã¦ï¼ãããã¯å°ããã¦ï¼ãéç解æãããããè¨èªã ã¨ãããCoffeeScriptã¯ãæ®éã«JavaScriptãã³ã³ãã¤ã«ããã®ã¨å¤ããããéããªãã¾ããã
Webæ¨æº
å¹ççãªã³ã¼ããå®è¡ããã ããªããå¥ã«Javaãã¤ãã³ã¼ãã§ã .NET Assembly ã§ã RPython ã§ã LLVM ã§ãããã®ã ãã©ããããã£ãæè¡ããã©ã¦ã¶ã«æè¼ããã¨ããWebæ¨æºãããå¤ãã¦ãã¾ããFirefox ãã対å¿ãã¦ããªãã£ããäºå®ä¸äºææ§ããªãã¨ãããæè¦ããããã©ãããã¯WebGLã ã¨ãä»ã®ãWebæ¨æºããåããªããã§ãasm.jsã ãã®è©±ã§ã¯ãªãããasm.jsã¯åãªãJavaScriptã®ãµãã»ããã§æ¢åã®ãã©ã¦ã¶ã§ãåãããã ããããã£ã¨ãã·ã ã¨è¨ããã
UIãã¢ããªã±ã¼ã·ã§ã³ãæ¢åã®Webæè¡ã使ã Firefox OS ã¨ã®çµ¡ã¿ãèããã°ã asm.js ãå¿ è¦ãªã®ã ããã¨æãã
æç®
*1:asm.jsã®asmã¯ã¢ã»ã³ããªè¨èª assembly language ã®ç¥ã®asmã ãã