最近——正在翻译 Text Process in Python 附录A:
选择性的令人印象深刻的 python 简短回顾
这算是本老书了,可惜以往总是瞟一眼那短小的目录就感觉似乎都懂,没啥好看的,所以一直都没正眼瞧过它,最近偶然仔细看了几眼却惊喜地发现这竟是本不可多得的好书。
就说这篇附录吧,我发现它正是我一直在寻求的对 python 的超精简的但绝不失深度的介绍。更别说书中还有大量的高质量的(pythonic的) python 程序。
我想这篇附录最适合让已经有丰富的其他语言编程经验,甚至是有丰富的动态语言编程经验的兄弟来快速掌握 python 语言的精髓的了!
最近——惊现新的模版引擎 mako (
http://www.makotemplates.org/) ,myghty 杀手啊!估计最吸引眼球是它那个 benchmark 了:
Mako: 0.90 ms Myghty: 5.25 ms
Cheetah: 0.70 ms Genshi: 12.53 ms
Django: 5.43 ms Kid: 19.12 ms
Cheetah above gets a speed boost from native C extensions, whereas Mako is pure Python.
恐怖啊!
genshi 刚成取代 kid 之势,看来 myghty 就快要被 mako 取代了,呵呵。
genshi/kid 的特点在于方便灵活的 xml 生成;mako/myghty 是用来生成任意形式的模版的,特点在于将 python 语言优雅地植入到模版中,并且将模版编译成 python 代码,获得极高的性能。
而这两组中的前者都超越了后者一大步!难道 genshi 和 mako 要平分(django以外的)模版世界了?拭目以待。
另外由于 mako 将模版查找的逻辑抽象到灵活的 TemplateLookup 里面 (窃以为是学习了 django 模版的思想),我想在要在 django 的基于 app 的架构中应用 mako 模版应该不是难事,有机会要尝试一下。
再另外 mako 模版还吸收了 django 模版中的 filter 的概念。
最近—— cherrypy3.0 发布了 (
http://cherrypy.org/wiki/WhatsNewIn30),大量的重构!
我感兴趣的变化首先是:"CherryPy 3 is much faster than CherryPy 2 (as much as three times faster in benchmarks)."
其次就是 web 服务器和逻辑服务器的完全分离了,说 cherrypy 的 web 服务器是目前最优秀的 wsgi服务器应该没有人会反对 ;-)
另外:"cherrypy.Application objects are now WSGI applications",也就是说 cherrypy 的 url dispatcher 直接处理的就是 wsgi 应用程序了,好处不言自明,呵呵。
另外,刚又发现了这篇文章
cherrypy 3 has fastest WSGI server yet.
和
aspen:一个基于 cherrypy wsgi server 的 web server,目的是方便各种风格的 web 应用程序以统一的方便的 pythonic 的方式进行部署。
直到最近——才发现原来
routes 已经支持了 REST 形式的 dispatch 了,跟 rails 还跟得挺紧,呵呵。还发现不少新特性:
# Sub-domain support built-in
# Conditional matching based on domain, cookies, HTTP method (RESTful), and more
# Easily extensible utilizing custom condition functions and route generation functions
分享到:
相关推荐
31 What happened to China Renaissance recently.docx
伦敦三一口语五级讲义-What_happened_to_you_recently.pdf
Magento用户手册目录 第一章:Magento介绍...................................................................................................................4 Magento 的特色.................................
Session Description: HDR display devices have received much attention recently. However, most of the focus has been on TVs, making it difficult for production pipelines and PC gamers. With desktop HDR...
9.3.1 Monitoring and Fixing Errors ...............................350 9.3.2 Alex King’s 404 Notifier Plugin .....................................................351 9.3.3 Broken Link Checker Plugin ....
Due to its benefit to a variety of downstream tasks such as knowledge graph completion, question answering and recommendation, KGE has gained significant attention recently. Despite its effectiveness...
Least Recently Used Page replacement algotihm
You'll also get new and updated techniques for Flume, Sqoop, and Mahout, all of which have seen major new versions recently. In short, this is the most practical, up-to-date coverage of Hadoop ...
elimination scheme described recently. It is shown that the proposed adaptive feedback regulator converges locally in the mean to the optimal (minimum-variance) regulator. It is also shown that it has...
… has become a hot topic among people recently. Opinions vary from person to person. Some people are inclined to think that … On the contrary, there are still many people who won’t agree, and they ...
You'll also get new and updated techniques for Flume, Sqoop, and Mahout, all of which have seen major new versions recently. In short, this is the most practical, up-to-date coverage of Hadoop ...
ests recently. However, the capability of using point clouds with convolutional neural network has been so far not fully explored. In this paper, we present a convolutional neural network for semantic...
【AIX】3004-314 Password was recently used and is not valid for reuse
classical book for AI. This is the latest edition which is published recently. Good quality! High readability!
He was most recently Chair for three years at Northern Kentucky University's Department of Physics, Geology and Engineering Technology, and holds several awards for teaching excellence. 1. Building ...
XML has emerged recently. The difference between text database and XML database results in three new challenges: (1) Identify the user search intention, i.e. identify the XML node types that user ...
Multi-Label dimensionality Reduction Multi-label learning concerns supervised learning problems in which each instance may be associated with multiple labels ...mining and machine learning recently.
Signal processing and neural computation have separately and significantly influenced many disciplines, but the cross-fertilization of the two fields has begun only recently. Research now shows that ...
brew example about calculator,it is very helpful to leaner who start recently.
实现最近最久未使用(Least Recently Used, LRU)算法。含linux下可执行代码和windows下的工程文件。以及一份实验文档。