Profile cover photo
Profile photo
Kosei Kitahara
1,705 followers -
Lazy programmer
Lazy programmer

1,705 followers
About
Kosei's posts

Post has attachment

Post has shared content
App Engine to announce new runtime at I/O.  The linked page is the description of a code lab, and it says that they will be adding "another very popular programming language to the list of supported runtimes".

Post has attachment

Post has attachment

Post has attachment

Post has attachment

Post has attachment

Post has shared content
Some patterns for fast Python. Know any others?

- Avoid overengineering datastructures. Tuples are better than objects (try namedtuple too though). Prefer simple fields over getter/setter functions.

- Built-in datatypes are your friends. Use more numbers, strings, tuples, lists, sets, dicts. Also check out the collections library, esp. deque.

- Be suspicious of function/method calls; creating a stack frame is expensive.

- Don't write Java (or C++, or Javascript, ...) in Python.

- Are you sure it's too slow? Profile before optimizing!

- The universal speed-up is rewriting small bits of code in C. Do this only when all else fails.

Post has shared content
Wanted: experts in Twisted, Tornado, asyncore or other Python async APIs (greenlets/gevent, Stackless, libevent all welcome!). In python-ideas@python.org we're trying to hash out the async API for the future (for the Python stdlib) and we need input from expert users of the current generation of async APIs.

Post has attachment
Wait while more posts are being loaded