å æ¥ phpã®serializeã使ãããé«éã§ãµã¤ãºãã³ã³ãã¯ãã«ä»ä¸ãããMessagePackãã¨PHPæ¡å¼µ ã§ãç´¹ä»ããã¦ãã MessagePack for PHP ã§ãããWebãã¹ãã£ã³ã°ãµã¼ãã¹ã«ãæ¨æºã§çµã¿è¾¼ã¾ãå§ãã¦ããããã§ãï¼ Joeâsã¦ã§ããã¹ãã£ã³ã°ãé«éã·ãªã¢ã©ã¤ãºã©ã¤ãã©ãªãMessagePackãã®PHPæ¡å¼µã¢ã¸ã¥ã¼ã«ãå ¨å ±ç¨ãµã¼ãã¼ã«æä¾éå§ MessagePackã¯ãªã¼ãã³ã½ã¼ã¹ã§éçºãé²ãã§ããããã¸ã§ã¯ãã§ããããã¦åè¨èªçã¯ããããã®è¨èªã®ã¨ãã¹ãã¼ãã«ãã£ã¦å®è£ ãããã¨ããå½¢æ ã«ãªã£ã¦ãã¾ãï¼èªç¶ã«ãããªã£ãã®ã§ãã^^;ï¼ã PHPçã¯advectããã«ããå®è£ ã§ãã å®ã¯PHPçã«ã¯ä»¥åã«å¥ã®å®è£ ããããadvectããããæ°ããå®è£ ãéããã¦ããã¨ã㯠2,3åãããææ¡ãããå®è£ ãå ¨é¨ãªã¸ã§ã¯ããã ã¨ããçµç·¯ãããã®ã§ããï¼ç¬ï¼ãæ
ããã«ã¡ã¯ãtakei-hã§ãã ã¡ãã£ã¨æéãçµã£ã¦ãã¾ã£ãã®ã§ãããã¢ã·ã¢ã«æ ªå¼ä¼ç¤¾ãKLabæ ªå¼ä¼ç¤¾ã®åååå¼·ä¼ã§MessagePackã¨PHP Extensionã«ã¤ãã¦çºè¡¨ãã¾ããã®ã§ãè³æãå ¬éãã¾ãã Php Meets Messagepack View more documents from Hideyuki Takei. ã¾ããPHP Extensionãã ãããå½¢ã«ãªã£ãã®ã§ãå ¬éãã¾ãã MessagePack PHP Extensionã®ãã¦ã³ãã¼ã ã½ã¼ã¹ã解åããå¾ãã¤ã³ã¹ãã¼ã«ã¯ä»¥ä¸ã®ã³ãã³ãã§ã $ ./configure $ make $ sudo make install ããã¦ãphp.iniã«ä»¥ä¸ã®è¡ã追å ãã¾ãã extension=msgpack.so ããã§æºåå®äºã§ãã 主ã«ãrubyçã®ã©ã¤ãã©ãªãåèã«ãã¦ãã¾ãã使ãåæã¯PHPã®jso
Googleãå ¬éãããã¤ããªã¨ã³ã³ã¼ãææ³ã§ããProtocol Buffersã¯ãã¯ã©ã¤ã¢ã³ãã¨ãµã¼ãã¼ã®ä¸¡æ¹ã§ã·ãªã¢ã©ã¤ãºå½¢å¼ãåã決ãã¦ããï¼IDLï¼ãåæ¹ãããã«å¾ã£ã¦ãã¼ã¿ãããã¨ãããããã«ãã¾ãã ãã®æ¹æ³ã§ã¯é«éãªãã¼ã¿ã®ããã¨ããã§ããåé¢ãIDLãæ¸ããªããã°ãªããªããä»æ§ãå¤ãããã³ã«IDLãæ¸ãç´ããªããã°ãªããªãï¼ããããããã£ããã¨IDLãè¨è¨ãã¦ãããªãã¨ããã°ã©ãã³ã°ãå§ããããªãï¼ã¨ããé¢åããããã¾ãã â»è¿½è¨ï¼Protocol Buffersã®ãã·ãªã¢ã©ã¤ã¶ã¯IDLã«è¨è¿°ããã¦ããªããã¼ã¿ãæ¥ã¦ãç¡è¦ããã®ã§ï¼Updating A Message Type - Protocol Buffers Language Guideï¼ãä»æ§ãæ¡å¼µãã¦ãã£ã¦ãåé¡ãªãããã§ãã ä¸æ¹JSONãYAMLãªã©ã®ã·ãªã¢ã©ã¤ãºå½¢å¼ã§ã¯ãä½ãèããã«ã·ãªã¢ã©ã¤ãºãããã¼ã¿
MessagePack äºæå®è£ ãä½ãããã«ã¯ãã©ããã MessagePack ã®ã¨ã³ã³ã¼ãã£ã³ã°ãã©ã®ãããªãã©ã¼ããããªã®ã調ã¹ãå¿ è¦ãããã ã¨ããããã§ãã¾ãã¯ãã©ã¼ãããã®æ¦ç¥ãã¾ã¨ãã¦ã¿ãã é¢é£ã¨ã³ã㪠id:viver ã® blog ãæ¬å®¶ï¼ä¸æ¬¡æ å ±ã§ãã MessagePack ã®æ±ããããªããã£ãåã¾ã¨ã MessagePack ã®æ±ããã³ã³ããåã¾ã¨ã é·ãã®æ±ã MessagePack ã®ã¨ã³ã³ã¼ãæ¹å¼ã§ã¯ãã¨ã³ã³ã¼ãçµæã®é·ããä¸å®ã®åã¨ãé·ããä¸å®ãªåã¨ã§æ±ãããããã以ä¸ã®ããã«åããã¦ããã é·ããä¸å®ãªå: ä¸ä½ããããã¨ã³ã³ã¼ã種å¥ãæ®ãã®ããããå¤ é·ããä¸å®ãªå: æåã®ãã¤ããã¨ã³ã³ã¼ã種å¥ã§æ®ãããããé·ãããããå¾ç¶ãã¤ããå¤ é·ããé·ãããå ´åã2 byte ç®ä»¥éãé·ãæ å ±ã«å æããããã¼ã¿æ¬ä½ããã£ã¨å¾ã«ãªããã¨ãããã ããã§ããã¨ã³
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}