TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Making one line of code do the work of 47

17 点作者 techdog大约 16 年前

3 条评论

tptacek大约 16 年前
I've never liked this paper.<p>First, I quibble that the metrics are off: the "code ratio" ignores intrinsic factors that alter the numbers, such as the overhead in a "scripting" language for driving the interpreter and managing its resources.<p>Second, and more importantly, it posits that the role of a scripting language is to automate and glue together systems code. History hasn't borne that argument out. You can assert that every Python or Ruby extension is an example of systems code offered by the interpreter for glueing, but architecturally I can make the same claim about every kernel interface, device driver, and chipset feature. The fact is that in 2009 high-level languages are the principal programming environment; lots of apps get built without even considering a "systems programming" environment.<p>Finally, what makes Osterhout's argument even more incoherent is the fact that there's no real line of division between systems programming languages and scripting languages. Feature for feature, Common Lisp and Python are both "scripting" languages in Osterhout's definition. But Common Lisp is a fine systems programming language (people build operating systems in it). He really just seems to be building walls around the immaturity of specific interpreters --- Tcl, in particular, which has always had one of the most primitive execution environments.<p>There's no such thing as a "scripting language". They're all just programming languages.
评论 #522229 未加载
评论 #522628 未加载
jwilliams大约 16 年前
"47 lines into 1" invokes for me the idea of very specialised scripting languages, that have been tooled for a specific task. You can do "start http server", but can't parse a cookie for yourself.<p>Nothing wrong with this for sure - But, what I think is the holy grail is taking 47 lines into <i>3</i> - with a language has the capability to let you do that again, and again - (i.e. exponentially increasing the semantic power of the language).
michael_dorfman大约 16 年前
That's a classic paper, and well worth reading for those who haven't come across it before.