2013-01-01ãã1å¹´éã®è¨äºä¸è¦§
PHPã ã£ã¦ã·ã§ã«çµç±ã§ãªãã³ãã³ãå¼ã³åºãæ©è½ã欲ãã ã³ãã³ãå®è¡ã§ã·ã§ã«ãæããªã使ããªããã°ãããããªã ã©ã¡ãã®è¨äºã§ã Python ã® subprocess ã使ã£ã¦ã·ã§ã«ãä»å¨ããã«ã³ãã³ããå®è¡ããæ¹æ³ãç´¹ä»ããã¦ãã¾ãã ã·ã§ã«ãä»å¨ããã¨ãã¨â¦
Python Advent Calendar 2013 ã®4æ¥ç®ã§ãã Python 3.4 ã§æ¨æºã©ã¤ãã©ãªã«è¿½å ããã asyncio ã触ã£ã¦ã¿ã¾ãã ãªãã Tulip ã¨ã¯ asyncio ã®ãªãã¡ã¬ã³ã¹å®è£ ã®ããã¸ã§ã¯ãåã§ãã èæ¯ Python ã¯ããéåæ I/O ããã°ã©ãã³ã°ã«ä½¿ããã¾ãã Twistedâ¦
PyPy 2.2 ããªãªã¼ã¹ããã¾ããã PyPy ã¯ã RPython -> C -> ãã¤ããªã¨ããæµãã§ãã«ãããã¾ããã C è¨èªã®ã½ã¼ã¹ã³ã¼ããé å¸ããã¦ããªãã®ã§ããã¤ããªé å¸ç©ã使ããæåãããã«ãããããããã¾ããã ã¡ãªã¿ã«ã(ã½ã¼ã¹é å¸ç©ã® Makefile ã«ããâ¦
Go ã使ãã¨ãµã¼ãã¼ã¨ã¢ããªã±ã¼ã·ã§ã³ã®å¢çãç¡ããªããã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ãæ¸ããããã«ãªãã¾ãã ããã¯è¯ããã¨ãªã®ã§ãããã¢ããªã±ã¼ã·ã§ã³ãæ¸ã人ããå¾æ¥ãµã¼ãã¼ãæ¸ã人ãè¨è¨ãã¦ããæ©è½ãç解ãã¦å®ç¾ã§ããªãã¨ãéç¨ã§ããªããµã¼â¦
Go ã¯ãããã¯ã¼ã¯ã¢ããªã±ã¼ã·ã§ã³ãæ軽ã«æ¸ããè¨èªã§ãããä¾ãã° 80 çªãã¼ããªã©ã root ã§ãã bind ã§ããªãã¢ãã¬ã¹ã Listen ããã¢ããªã±ã¼ã·ã§ã³ãã root ã§ãªãã¦ã¼ã¶ã¼ã§åããã®ã¯å°å³ã«é¢åã§ãã æ®éã¯ã½ã±ããã bind ãã¦ãã setuid/sâ¦
ãã°ãã Mac ãããããã°ãã¦ããã®ã§ããããããã£ã¦æ»ã£ã¦ãã¾ããã Python 3.3 ãã¼ã¹ã§ Python ç°å¢ã®æ§ç¯ãããã®ã§ãåèã¾ã§ã«æé ãæ®ãã¦ããã¾ãã 1. Homebrew 㧠Python 3 ãã¤ã³ã¹ãã¼ã« ã¨ãããããã¼ã¹ã«ãªã Python ãç¨æãã¾ãããã¾â¦
ã¤ãã¬ã¼ã¿ãä»ãã¦è¦ãPHPã¯ã©ã¹ã®å é¨æ§é ãèªãã ã®ã§ããã æè¿ã® php ã¯ã¡ãã㨠Python ãªã©ã®è¨èªãåèã«ãã¦ããªã¼ã¨æããã¨ãå¤ãã£ãã®ã«ãã®ä»æ§ã¯æ®å¿µã§ãã Python ãªã©å¤ãã®è¨èªã§ã¯ãã¤ãã¬ã¼ã¿ã®åå¾ã¨ã¤ãã¬ã¼ã¿ã®ä½¿ç¨ãæ確ã«åºå¥ãâ¦
libmysqlclient ã static ãªã³ã¯ããæ¹æ³ ãç´¹ä»ããã°ããã§ããã MySQL 5.6 ã ã¨ãã®æ¹æ³ã§ãã«ããã¦ã Import ã¨ã©ã¼ã«ãªãã¨ããå ±åãããã¾ããã static link ã¯åçã©ã¤ãã©ãªã®æ¤ç´¢ãã¹ãèããªãã¦è¯ããªã代ããã«ãåçã©ã¤ãã©ãªãªãèã¥ãâ¦
ãã£ã¹ããªã®ãã®ã§ã¯ãªã㦠Oracle ãããã¦ã³ãã¼ããã MySQL ã使ãå ´åãªã©ã ãã®ã¾ã¾ã§ã¯ libsqlclient_r.so ãåçãªã³ã¯ã§ããªãå ´åã®è§£æ±ºçã®ä¸ã¤ã¨ãã¦ã static link ãã¦ãã¾ãã¨ããæ¹æ³ãããã¾ãã MySQL-python ã®å ´åã pip install ã諦â¦
golangã§å®è¡æã«é¢æ°ã®å¼æ°ã®ååãåå¾ããæ¹æ³ ãè¦ã¦ã Go ã«ã¯ debug ã£ã¦ããã±ã¼ã¸ãåã£ããªã¼ã¨ããã£ã¦è©¦ãã¦ã¿ã¾ããã å½åãåãããã±ã¼ã¸å ã«ããã¼ã®é¢æ°ãç¨æãã¦ãããã¨æã£ãã®ã§ããããªã³ã¯æã« strip ããããããã ããã«å¼ã³åºãâ¦
åã®çºè¡¨ çºè¡¨è³æã¨ãããã¡ã¢ çºè¡¨æéã20åã ã£ãã®ã§ãISUCONã®ç´¹ä»ã¨ã Go åããã£ã¦ãã¨ãã¢ãã¼ã«ãã¦ãã¾ããã ãã¨ã§æµãã¦ã Tweet ãè¦ã¦ããããåãä¸çªæåããé¨åããã¾ãæ¡æ£ããã¦ãªãã£ãã®ã§ ãã¡ãã§ç¹°ãè¿ãã¦ããã¾ãã å»å¹´ã® ISâ¦
Python 3.3 ã®ç¾ç¶ã® MySQL äºæ ã£ã¦ã ãã¶è§£ãã«ããã®ã§ã MySQL-python 㨠PyMySQL ã«ã¤ãã¦ã¾ã¨ãã¦ããã¾ãã MySQL Connector/Python ã¨ãã Python 3 対å¿ãã¦ããã¯ãã§ãã使ã£ã¦ãªãã®ã§ç¥ãã¾ããã MySQL-python å¤åããã¡ã¯ãã¹ã¿ã³ãã¼ã㪠Mâ¦
10/5 ã« ISUCON 3 ã®äºé¸ã« Go è¨èªã§åæ¦ãã¦ãã¾ããã ã¨ããããã¬ãã¼ãã¯ä¼ç¤¾ã®ããã°ã«æ¸ããã®ã§ã Go è¨èªã§ go-sql-driver/mysql ã使ã£ã¦ MySQL ã使ãæã«ç¥ã£ã¦ããã¨è¯ãç¹ãã¾ã¨ãã¦ããã¾ãã ã¡ãªã¿ã« MySQL ãã©ã¤ãã«ã¯ããã²ã¨ã¤ MyMySQâ¦
PyMySQL ã®ã³ã³ããªãã¥ã¼ãå§ãã¾ãã ã¨ããè¨äºãæ¸ãããããã¡ããã© PyMySQL ã®ã¡ã³ãããæ´»åã§ããªãã¦éçºãåæ»ãã¦ããã®ã§æ°ããã¡ã³ãããåéãã¦ãã¾ããã åã¯ãã®åéã«æ°ã¥ãã¦ããªãã£ãã®ã§ç«åè£ããã¦ããªãã£ãã®ã§ããã幸éãªãã¨â¦
MyKaze ãä½ã£ã¦ã¿ããã http://www.techempower.com/benchmarks/ 㧠PyPy ã使ã£ã¦ã¿ãããã¦ã PyMySQL ã®éè¦ããå¼·ãæãã¾ããã libmysqlclient 㯠non blocking IO ã¨ã®ç¸æ§ãæªããã MySQLdb 㯠Python/C API ãã¬ãããªä½¿ã£ã¦ãã®ã§ CPython ã§ã®â¦
PEP 8 ã®é¦è¨³ã¯æ¢ã«ããã¾ãããã誤訳ãæ®ã£ã¦ããçãå¤ãã£ããã¨åé¡ããã£ãã®ã§ãææ°çã® PEP 8 ãã¨ã¤ã¤ã¨ç¿»è¨³ãã¾ããã å ¬å¼ããã¥ã¡ã³ãã®ç¿»è¨³ããã¸ã§ã¯ã㧠PEP 翻訳ã®ç®¡çã»å ¬éã§ããä½å¶ãã§ããã¾ã§ã DropBox ã«ããã¦ãã¾ãã https://dlâ¦
https://support.bitcasa.com/entries/23769606-Known-Issue-Desktop-App-is-Stuck-at-X-MB-to-go- ããã«æ¸ãã¦ããã¨ãããBitCasa ãä¸æ¦çµäºãã¦ãã£ãã·ã¥ãå ¨é¨åé¤ãã¦ããèµ·åããªããããããã°ããåæã㦠Idle ã«æ»ãã
æãé°å²æ°ã¯è¦æã§ãã https://github.com/methane/MyKaze Tornado 㧠MySQL 使ãã®ãã¾ã ã¯ã¼ã«ã¼ã¹ã¬ããã§ããã ãã ãã©ã ãªãããã£ãæªãããããã£ããã ãã Tornado ã®ä»çµã¿ã§éä¿¡ãããããã ã£ã¦ãã¨ã§ã PyMySQL ã®ä¸ã® socket ã Tornadâ¦
PHP ã® interface ãªãã㪠ãèªã¿ã¾ããã Python ãé Duck typing ã®è¯ããé 調ã«åãè¾¼ãã§ãã¾ãã Python ã§ä¸è¨è¨äºã®ãµã³ãã«ãæ¸ã㨠from __future__ import print_function # for Python 2/3 compatibility import abc class Renderable(metaclasâ¦
ç§ã¯ãã¬ã¬ã·ã¼ã³ã¼ãæ¹åã¬ã¤ãããèªãã ãã¨ããªãã®ã§ãããä¸éçã«ããã¹ãã³ã¼ãããªãã³ã¼ããæè¡çè² åµãã¨ããèªèãåºã¾ã£ã¦ããããã§ãã ã¬ã¬ã·ã¼ã³ã¼ãæ¹åã¬ã¤ããæ¹å¤ããã¤ããã¯å ¨ãããã¾ããããããã«ãã®æ¬ã®ä¸ã§ä½¿ããã¦ãããã¬ã¬â¦
setuptools ã®éçºãåæ»ãã fork ã® distribute ãéçºãç¶ç¶ãã¦ããç¶æ ã§ãåå¿è ã«ã¨ã£ã¦æåã®å¤§ããªç½ ã«ãªã£ã¦ãã¾ããã ãã®2ã¤ããã¼ã¸ããããã¨ã«ãªãã setuptools 0.7 ããªãªã¼ã¹ããã¾ããã 移è¡æé How do I upgrade... ã«ããã¾ãã setâ¦
ãã®è¨äºã¯ åæã«æ·»å: PHPåå¿è åãã®ã³ã¼ãæé©å ã®ç¶ç·¨ã§ãããªã¼ãããªãã£ã®å®ç¾©ã¯åã¨åãããããã®ã³ã¼ããä½ããããããææ¡ããæéï¼ãã®ã³ã¼ããã¬ãã¥ã¼ãã¦æ£ããã¨èªä¿¡ãæã¦ãã¾ã§ã®æéãã®çãã§ãã ãããphp ããã Python ã®æ¹ãâ¦
PHPåå¿è åãã®ã³ã¼ãæé©å ã¨ããè¨äºãã¡ãã£ã¨ç¤¾å ã§è©±é¡ã«ãªã£ãã®ã§åæã«æ·»åãã¾ãã 話é¡ã«ãªã£ãçç±ã¯ã確ãã«ã³ã¼ãã¯æé©åã§ãã¦ããã©å§åçã«æ±ããªã£ã¦ãããã§ãã ãã®è¨äºãèªãåã«ãã¾ããªã¼ãããªãã£ã«ã¤ãã¦æèåãããã¦ããã¾â¦
pip ã easy_install ãçªç¶éããªããããããªã ã§ç´¹ä»ãã pypi ããã®ã¤ã³ã¹ãã¼ã«é«éåã®ç¬¬ä¸å¼¾ãå§ã¾ãã¾ããã ã¨ãã£ã¦ãããããªãåæã« pypi å´ã§ã¹ã¯ã¬ã¤ãã³ã°ããURLãå¤æ´ããã®ã§ã¯ãªãã¦ãããã±ã¼ã¸ç®¡çè ãæ示çã«æå®ããæ¹æ³ã«ãªãã¾â¦
Vagrant 1.2 ãã ansible ããµãã¼ããããã¨ãããã¨ã§ãæ°ã«ãªã£ã¦è©¦ãã¦ã¿ãã ã¾ã èªä½ã¢ã¸ã¥ã¼ã«ã¨ãã¯ä½ã£ã¦ãªãã¦ãåã« vagrant ã§ä½¿ããã¨ããã¾ã§ã vagrant-ansible vagrant plugin install ansible 㧠vagrant ã® provision æ©è½ã¨ã㦠ansibleâ¦
çºè¡¨è³æã¨ãããã³ã¼ãã®æµãã®ã¡ã¢ã¯ãã¡ãã® gist ã«ããã¾ãã https://gist.github.com/methane/5377227 ã»ãã®æ°ã«æåã«èªãã ã¨ãã®è¨æ¶ãããããééã£ã¦ã¦ã proc.c ã®ãã°ãè¦ããä»å¹´ã«å ¥ã£ã¦ããã ãã§ããããé²åãã¦ããã®ã解ãã¾ãã ãâ¦
PyPI ãå®å ¨ã«å©ç¨ããããã«ãå æ¥ããã©ã«ã㧠https ãå©ç¨ãã pip ããªãªã¼ã¹ããã¾ããã ã§ããããã§çµããã§ã¯ããã¾ããã pip ã easy_install 㯠PyPI ã®ãã¼ã¸ãããªã³ã¯ã辿ã£ã¦ã¹ã¯ã¬ã¤ãã³ã°ãã¦ããã±ã¼ã¸ãæ¢ãã¦ãã¾ãããªã³ã¯å ãhttpsâ¦
æåã® wsaccel 㯠UTF-8 ã®ããªãã¼ãå¦çã ããé«éåãã¦ããã®ã§ããã WebSocket Frame ã®ãã¹ã¯å¦çã1ãã¤ããã¨ãããã§xorãã¨ãå¦çã ã£ãã®ã§é«éåããããã«ãã¦ã 0.5 ããªãªã¼ã¹ãã¾ããã Tornado ã¯UTF-8ã®ããªãã¼ãããã¦ããªã (ãã®ãâ¦
å人çã«ä» dotCloud ãã¢ããã§ããç¡ææ ãç¡å¶éã«ä½¿ãããWebSocketã«å¯¾å¿ãã¦ãããè¨å®ã®èªç±åº¦ãã¡ãã£é«ãã®ã§ãã¡ãã£ã¨ä½ã£ããã®ãä»äººã«è¦ãããèªåã®æºå¸¯ããè¦ããããããã«æ°è»½ã«ä½ãã¡ããã¾ãã ãã¦ã dotCloud 㧠golang ã使ãã¨ãã â¦
wsaccel ã§ã UTF-8 ã®ããªãã¼ãã ãã§ãªããåããï¼ãã¤ããã¤ã®å¦çã§ãã mask ã Cython ã§å®è¡ããããã«ãªãã¾ããã UTF-8 ã®ããªãã¼ãã¯ããã¹ããã¬ã¼ã ã®ã¿ã«è¡ãããå¦çã§ãããJSONããã¤ããªã ã¨è¨ã£ã¦è»¢éãã¦ããªãã¼ããJSONãã³ã¼ãã«â¦