Google Dartããªãçå¤ããªã®ã
èªåã®æãããã¨ããããã«ã¾ã¨ãã¦ããã¦ãæç« ããã£ãã®ã§é©å½è¨³ã
http://www.sitepoint.com/google-dart-fail/
Google Dartããªãçã¯ãããªã®ã
Dartã¯Googleã«ããæ§é åãããã¦ã§ãã¢ããªã±ã¼ã·ã§ã³ãè¨è¨ããããã®æ°ããè¨èªã ããµã¼ãä¸ã§åä½ããããã¨ãã§ããã°ãã¯ã©ã¤ã¢ã³ãä¸ã§åãããã¨ãã§ãããã¤ã¾ããã©ã¦ã¶ä¸ã§ã
ããªããä½ãèªãã ãã«ãã£ã¦ãGoogleã¯DartãJavaScriptã®ä»£æ¿ã«ãªããã¨ãèªãã¦ãããå¦å®ãã¦ãããããã ãããããããChromeã¯è¿ããã¡ã«ä¸¡æ¹ã®è¨èªãå©ç¨å¯è½ã«ãªããé¸æè¢ãä¸ãããããã¨ã«ãªãããã¡ããGoogleã¯éçºè ãã¡ãå½¼ãã®ã³ã³ããã¼ã«ä¸ã«ããæè¡ãé¸ã¶ãã¨ãæãã§ããã¨ç§ã¯ç¢ºä¿¡ãã¦ããã
æåã¯ç§ãDartã«æççã§ããã¤ã¤ãè©ä¾¡ã¯ããå¤ãã®æ å ±ãåºã¦ããã¾ã§ä¿çãã¦ããããããä»ç¢ºä¿¡ãæã£ã¦çããããããã®è¨èªã¯Internet Explorerã§ã®VBScriptã¨åããããªå½¢ã§ééããªã失æããã ããã
Dartã®ç®æ¨
Dartã¯æ¬¡ã®ãããªè¨è¨ä¸ã®ã´ã¼ã«ããã£ããªã¼ãã³ã½ã¼ã¹ããã¸ã§ã¯ãã :
1. ã¦ã§ãã®ããã®æ§é åããã¦ãã¦æè»ãªããã°ã©ãã³ã°è¨èªãåµãä¸ãããã¨ã
ãã°ãããããããä»ã®æ§é åããã¦ãã¦æè»ãªè¨èªã ã¨ä½ãåé¡ãªã®ã ããï¼ã¦ã§ãã®ãã£ã¨ãå大ãªå©ç¹ã¯ãµã¼ãã¼ãµã¤ãã§å¥½ã¿ã®è¨èªã使ããã¨ãã§ããç¹ã : PHPã C#ã VBã Perlã Javaã Rubyã Pythonã ãªã©ãªã©
æ¹åã®ä½å°ã¯å¸¸ã«ããããé¸æã¯å¸¸ã«ä¸ãããã¦ãããDartã¯ãªã«ãæ°ãããã®ãä¸ãã¦ãããããããªã - åã«é¸æè¢ãå¢ããã ãã ã
2. Dartã¯ããã°ã©ãã«é¦´æã¿æ·±ãèªç¶ãªå°è±¡ãä¸ããç°¡åã«å¦ã¶ãã¨ãã§ããã
æ§æä¸ã¯ãDartã¯JavaãC++ãC#ã«é常ã«ããä¼¼ã¦ãããã§ã¯ãªãGoogleã¯åã«ãããã®è¨èªã®å
ä¸ã¤ãé¸ã°ãªãã£ãã®ãï¼ãã®æ¹ãä¸å±¤å¦ç¿ã容æã ã£ãããã«ã
3. Dartã¯ãããã種é¡ã®ããã¤ã¹ã«å¯¾å¿ããã
Googleã¯ãã¢ãã¤ã«ãã©ãããã©ã¼ã ã®ç´°ååã«å¯¾æãããã¨è¨ã£ããããã«æ°ããè¨èªã®ç´°ååãæãããããªãã¦ï¼
Googleã¯Androidç¨ã®Dartãã¤ãã£ãã©ã³ã¿ã¤ã ãä½ããã¨ã¯ã§ããã ãããããããWindows Phoneã大ä¸å¤«ã ãã§ã¯Appleã¯ã©ããªãï¼æãæåãã¦ããã¹ãã¼ããã©ã³ãã³ãã¼ã¯ï¼ç¡çã«æ±ºã¾ã£ã¦ããã
4. Dartããã¹ã¦ã®ã¡ã¸ã£ã¼ã§ã¢ãã³ãªãã©ã¦ã¶ã§é«éã«åä½ããããã¼ã«ãæä¾ããã
MicrosoftãMozillaãAppleãOperaãå½¼ãã®ãã©ã¦ã¶ã«ãã¤ãã£ãDartã¯ã©ã¤ã¢ã³ããä»ããã¨ã§ãï¼ããã¯ã¡ãã£ã¨èãã¥ãããã
Googleã¯ãããã®ãã©ãããã©ã¼ã åãã«ãã©ã°ã¤ã³ãä½ããã¨ã¯ã§ããã ããããããã¦ã§ããããããã¯ãã®ãã©ã°ã¤ã³ãååã«è¡ã渡ãã¾ã§Dartã§ã³ã¼ããæ¸ãããã¨ã¯æããªãã ãããããã¦ã¦ã¼ã¶ã¼ã¯Dartã使ã£ãåªããã¢ããªã±ã¼ã·ã§ã³ãéçºãããã¾ã§ã¤ã³ã¹ãã¼ã«ãããã¨ã¯ããªãã ãããããã§ã¯ã©ãã«ã身åããã¨ããªãã
JavaScriptã¸ã®ã³ã³ãã¤ã«
å®ã¯Googleã¯Dartãã©ã°ã¤ã³ãå¿ è¦ã¨ããªããã¨ããã®ããå½¼ãã¯ãã§ã«Dartã³ã¼ãããã¤ãã£ãJavaScriptã«ãã©ã³ã¹ã¬ã¼ãããã³ã³ãã¤ã©ãä½æãã¦ããããã ã
ã ãåã¶ã®ã¯å°ãæ©ããã³ã³ãã¤ã«ãããDartの"Hello World"プログラムãè¦ã¦ã¿ããã9è¡ã®Dartã³ã¼ãã¯ã³ã³ãã¤ã«ã«æåããã¨ã»ã»ã»17,259è¡ã®JavaScriptã«ãªãã
ããã¯ä»å¾æ¹åããããã¨ã¯ããã£ã¦ããä»ã ã£ã¦ãGoogleのClosure Compilerã使ãã°ã³ã¼ããããå¹ççã«ãã¦ããå®è¡ã§ãããããããããªãã®JavaScriptéçºè ãæ¸ãããã¤ãã£ãã®JavaScriptã¯å¸¸ã«ã³ã³ãã¤ã«ãããDartã³ã¼ããæã¡è² ãããã¨ãã§ããã¨ããäºå®ã¯æ®ãã
Dartã§éçºããã¨ãã¦ããããããã©ããã®æç¹ã§å¹çãæ¹åããããã«JavaScriptã®ä¸ãå¼ããããªãã ãããããããããã§ã«åªããå質ã®JavaScriptãæ¸ããã¨ãã§ããã®ãªããã©ããã¦Dartã§éçºããå¿ è¦ãããï¼èº«åãã®åããªãç¶æ³ãã®ï¼ã ã
JavaScriptã«å°ãã®æã
Googleã®ããã¥ã¡ã³ãããæãããªã®ã¯ãDartã¯JavaScriptãå«ã£ã¦ããéçºè ãå©ããããã®ãã®ã ã¨ãããã¨ã ã
ä¸çã§ä¸çªå©ç¨ããã¦ããããã°ã©ãã³ã°è¨èªã§ããã«ãããããããJavaScriptã¯å¤§ãã«èª¤è§£ããã¦ãããååãã¾ãã¾ãã - Javaã§ããªããã°ã¹ã¯ãªããã§ããªã - ããæªå°è±¡ã®æã大ããªåå ã¯ãããã§ãã·ã§ãã«ãªããã°ã©ãã ã
ä¸è¦ããã¨ãJavaScriptã¯C++ãJavaã«ã¡ãã£ã¨ä¼¼ã¦ããããã«è¦ããããããã®è¨èªãç¥ã£ã¦ããéçºè ã¯ããã¥ã¢ã«ã§ã¯ã©ã¹ã®æ§æãæ¢ãã¦ã¾ããããããªãã®ãåå¨ããªããã¨ãç¥ããããã¦å½¼ãã¯JavaScriptãªã©ä¸ããªãã¨çµè«ã¥ããããç¡çããã¦ã¯ã©ã¹é¢¨ã®ç¶æ¿ãã¯ããã¯ãã³ã¼ãã«åãè¾¼ããã¨ããã
ã ãããã¯å°ãå¾ ã£ã¦æ¬²ãããJavaScriptã¯æè»ãªè¨èªã ãããããããªããæ¹ã§ã³ã¼ããæ¸ããããããã¿ã¤ãã«ããç¶æ¿ã®ã³ã³ã»ãããä¸åº¦ç解ããã°ãJavaScriptãç´ æ´ããããã®ã ã¨æããã¯ãã ããã¡ããããã¯å®ç§ã§ã¯ãªããããããªãããããã«ã¯ã©ã¹ãã¼ã¹ã®è¨èªãããµãæããããã«ãªãã ããã
ä¸æ©ã§ãããªãã¨æå¾ ãã¦ã¯ãããªããéçºè ãã¡ãJavaScriptã®ç¾ãããåçºè¦ããã¾ã§10年以ä¸ããã£ããä»ã¯å¹¸ããªãã¨ã«ç´ æ´ããããªã½ã¼ã¹ãã¦ã§ãä¸ã«ãããããããJavaScriptã¯ä¸ç´ã®è¨èªã ã¨ã¿ãªããã¦ããã
æããã¨ã¯ã§ããªããã
Dartã®å¤§ããªåé¡ç¹ã¯ãJavaScriptã¯ããããã¨ããã«åå¨ããã¨ãããã¨ã ããã³ã±ãªæºå¸¯é»è©±ããAppleã®iPadãã¢ãã³ãªãã¹ã¯ããããã©ã¦ã¶ã¾ã§ãMicrosoftã§ããWindows 8ã§ã®ã¢ããªã±ã¼ã·ã§ã³éçºã§ã¯HTML5ã¨JavaScriptããã¼ãã¯ããã¸ã¼ã«ä½ç½®ã¥ãã¦ããã
Chromeãä»®ã«50%ã®ãã¼ã±ããã·ã§ã¢ãå¾ããã¨ãã§ããã¨ãã¦ããåã¯ããããå ´æã§ãµãã¼ãããã¦ããè¨èªã¨ãå ¨ããã¤ã¹ã®ãã£ãååã§ãããµãã¼ãããã¦ããªãè¨èªãã©ã¡ãã使ãããï¼ãã10å¹´åã«ãªãªã¼ã¹ããã¦ããããã¾ãã¯JavaScriptã¯ã¾ã£ãããã¡ãã¡ã§Dartãé©å½çãªããã¾ã ãã£ã³ã¹ããã£ããããããªããã ãã©ã¡ããæ£ãããªãã
Googleãé©æ°ãç¶ãããã¨ãã¦ãããã¨ãå¬ããæãããDartã¯å¾éã£ã¦ããããã«æãããåã¯JavaScriptãå«ããHTMLãæã¿ãCSSã馬鹿ã«ãã¦ãããããããªãããããã¦ã§ããããããã§ãããããããããããéãããã¨ã¯ã§ããªãã®ã ã
ã¾ãå人çãªDartã®ææ³ã¯ããã§FAãªãã ãã©ã
http://twitter.com/#!/technohippy/status/124433302466727936