在Mac OS X应用程序开发中使用动态脚本语言

关于使用动态脚本语言编写桌面应用程序,上周进行了很多有趣的讨论以下是一些吸引我眼球的东西:

  • 安德鲁Shebanowargues that this transition isn’t in the future; it’s happening nowAdobe Lightroom’s user interface is mostly written inLUA, 例如He also has a good point that what makes these languages interesting isn’t that they are interpreted, but that they’re dynamic.

  • Bill Bumgarnerreminds us that the Python-Cocoa PyObjC bridge isn’t new; it’s been used in production since the Next era in the mid-90sHe also has some good insight into why Ruby and Python are such good fits for bridging to frameworks originally designed for use with Objective-CHe also links to a couple of professional Mac apps that are already written using PyObjC.

  • 迈克尔蔡is already writing commercial software using a hybrid approach with Python and Objective-C; he writes that the most common performance hit comes when crossing the bridge.

  • 加斯帕has more on why the Python and Ruby Cocoa bridges aren’t likely to suffer the same fate — irrelevance and eventual obsolescence — that Apple’s Java Cocoa bridge didIn a nut: Ruby and Python are both更多dynamic than Objective-C; Java is动态比Objective-C。

  • 斯科特史蒂文森says not so fast — Objective-C 2.0 (coming in Leopard), which adds garbage collection and some useful new syntax like properties and的foreachloops, obviates many of the things that might draw Cocoa developers to Ruby or Python, and has the advantage of being the language Cocoa was specifically written for.

(大多数这些文章的评论主题也值得一读。)