PyCon US 2011
http://us.pycon.org/2011/home/
(this website is based on Django and Pinax.)
PyCon Asia Pacific 2011
http://apac.pycon.org/
(this website is based on Plone.)
2011年1月10日 星期一
2010年6月25日 星期五
Python Code (.py) 編成執行檔
使用 pyinstaller 把 .py 原始碼編成執行檔,用來保護原始碼
http://www.pyinstaller.org/%20
http://www.dev.idv.tw/mediawiki/index.php/PyInstaller%E4%BD%BF%E7%94%A8%E7%B0%A1%E4%BB%8B
在 win32 下,可以用 py2exe
http://www.pyinstaller.org/%20
http://www.dev.idv.tw/mediawiki/index.php/PyInstaller%E4%BD%BF%E7%94%A8%E7%B0%A1%E4%BB%8B
在 win32 下,可以用 py2exe
2010年4月21日 星期三
Thread-local storage
http://en.wikipedia.org/wiki/Thread-local_storage
Thread-local storage (TLS) is a computer programming method that uses static or global memory local to a thread.
This is sometimes needed because all threads in a process share the same address space. In other words, data in a static or global variable is normally always located at the same memory location, when referred to by threads from the same process. Variables on the stack however are local to threads, because each thread has its own stack, residing in a different memory location.
Sometimes it is desirable that two threads referring to the same static or global variable are actually referring to different memory locations, thereby making the variable thread local, a canonical example being the C error code variable
errno.If it is possible to make at least a memory address sized variable thread local, it is in principle possible to make arbitrarily sized memory blocks thread local, by allocating such a memory block and storing the memory address of that block in a thread local variable.
2010年3月30日 星期二
2010年2月23日 星期二
2010年1月12日 星期二
訂閱:
文章 (Atom)