Zedãä½æ mongrel2ã«C++ã使ããªãã£ãã
Linusã«ç¶ãã¦ZedãC++ãããã¯ã½ã«ããªãã¦ããã
ã¡ã¼ãªã³ã°ãªã¹ãã§ãC++ã§std::stringã¨ã使ã£ããã¡ã¢ãªç®¡çã¨ãã¹ãããããããã¨ããæè¦ã«å¯¾ãã¦ã®Zedã®åè«ï¼
http://librelist.com/browser//mongrel2/2010/7/15/c-verses-c++/#770d94bcfc6ddf1d8510199996b607dd
ã¾ããZedã¯C++使ã£ãçµé¨ããããLinusã®ããå ¨ãC++ãå¦å®ãã¦ããçç±ã§ã¯ãªããç¾å¨ã§ãMulletDBãªã©ããã¸ã§ã¯ãã«ãã£ã¦ã¯ä½¿ãããã ãGrace frameworkã¯è¯ãã¨ãã¦ããããã ãmongrel2ã®ããã«ãç°¡åãªãããã°ã©ã ã«ã¯C++ã¯å¤§è¢è£ã¨ãã¦ããã
mongrel2ãCã§å®è£ ããçç±
以ä¸ãrantã§ãªãçãC++ã好ããªäººã¯ä»¥ä¸èªã¾ãªãæ¹ãããã¨ã¢ããã¤ã¹ãã¦ããã
ãã³ãã¬ã¼ãã»ã¡ã¿ããã°ã©ãã³ã°==é»æ»ç
ãããªZedãC++ãå«ãã«ãªã£ãåå ã¯ã2000å¹´ã®ãã³ãã¬ã¼ãã»ã¡ã¿ããã°ã©ãã³ã°ã®å¤§æµè¡ãã("Great Template Metaprogramming Plague of 2000") ãã³ãã¬ã¼ãã®æµè¡ãé»æ»ç ã«ä¾ãã¦ããã
C++ã¯ã¡ã¢ãªç®¡çãç°¡åã«ã¯ãã¦ãããªã
- ãã£ã¹ãã©ã¯ã¿ã¼ã®æåã¯ã¨ã¦ãè¤éãç¹ã«ä¾å¤ãããã¨ã
- çµå±Cã¨åããããªãã§ãã¯ãããªããããããªããbalgrindã使ã£ãããã
- ãã®ä¸ãä¾å¤ããã³ãã¬ã¼ããã¡ã¢ãªç®¡çãè¤éåãã¦ãã
- çµå±ãCã®ã¡ã¢ãªç®¡çã®æ¹ãç°¡å
æååãµãã¼ãã¯ãé¿åã
bstring test = bformat("I want %d ponies", count);
ããããããã¨ããã¨ããã¡ã¤ã«ãã©ãã«æ¸ãè¾¼ãç¶æ¿ã ããã§æ³¥ã®ããã«ã®ãã<<ã®å±±ããã«ãªãã
constã«å¯¾ããå¥å¦ãªæãå ¥ã
ããã«è«¸ã ã®åé¡
- ãã³ãã¬ã¼ããªã©ã«ããã³ã¼ããã¸ã¯ã¸ã¯ã¨.hã«å ¥ã£ã¦ãã
- ãã POSIXã®Cé¢æ°ã使ãããã ããªã®ã«é¢åãªãã¨ãããªããã°ãªããªã
- ABIã®åé¡
- ã¨ã©ã¼ã¡ãã»ã¼ã¸ãé ·ã
ãboostã使ãã°ãããããªããã«å¯¾ãã¦
(ããã¾ã§ããã¨ã¡ãã£ã¨æå³ä¸æã®rantã«ãªã£ã¦ãã)
Zedãboostãå«ãçç±ã¯ï¼ ãã«ãããã«ãããã®ã«æéããããããã©ãããã©ã¼ã éã§ãã¼ã¸ã§ã³ã®ç¸éãããããããªã©ã®ããã ãã©ããC++ã§ãä½ã§ã使ã£ã¦ãã ãã
ããããããã¦ãã®ãã¹ãããã¹ãã£ã³ã°ãã¦ãããlibrelist.comãã£ã¦ã®ã¯
Zedã®ã¡ã¼ã«å¦çãã¬ã¼ã ã¯ã¼ã¯ãlamsonãã§å½¼èªèº«ã製ä½ç®¡çãã¦ããã¡ã¼ãªã³ã°ãªã¹ããµã¼ããããªããï¼