
現在甚麼都可以放在雲上,連閞發環境也是。Mozilla Labs 剛剛推出了一個叫 Bespin 的 Web-based Code Editor,用的是 Canvas 技術,開發者只要使用瀏覽器即可進行開發,功能包括實時協作、指令欄 (如 VI) 等等。
Due to writing yesterday's entry , I gotcurious enough to go see how CPython handles the creation of some of thebuilt-in types, and what sorts of optimizations it does. The necessarydisclaimer is that this is for CPython 2.5.1; it doesn't necessarilyapply to other versions of CPython, and it probably doesn't apply at allto other Python implementations (although I expect that they have theirown tricks). Thus, the best use for this is as an illustration
In a reddit comment thread I was accurately dinged for being a bit casual in how I talked aboutobject allocation at the end of my previous entry . As the comment notes, calling ' .setdefault(k,[]) ' creates and throws away a new object each time the key alreadyexists, just as ' .setdefaults(k, SomeClass()) ' would.
Well, sort of. One of the things I assume about Python is thatallocating and freeing new empty instances of built-in types