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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

An empirical comparison of C, C++, Java, Perl, Python, Rexx, and Tcl

38 点作者 CaptainMorgan超过 15 年前

9 条评论

koblas超过 15 年前
While this article is 10 years old, it contains a few very good points -- I've referenced it many times over the last 8 years. Specifically:<p>-- Scripting languages relative run time and memory consumption overhead will often be acceptable and they may offer significant advantages with respect to programmer productivity.<p>-- For all program aspects investigated, the performance variability due to different programmers is on average about as large or even larger than the variability due to different languages.
houseabsolute超过 15 年前
I've always kind of felt that any claim to empiricity in programming language comparison will be fatally undermined by a focus on only one task. The choice of task itself is very opinionated in a way that makes it difficult to apply the conclusions of this study more broadly.
评论 #1124318 未加载
lg超过 15 年前
should maybe note that this was written 10 years ago.
评论 #1124180 未加载
nomen超过 15 年前
Indeed; for some aspects of the study ten years ago was a different epoch.
antileet超过 15 年前
I've seen so many benchmark comparisons that only focus on conciseness (that too involving lines of code), and speed. Yeah, they all re-affirm what is already known - C is fast, python/ruby is concise, C#/Java is somewhere in between and there are the ones which do well in both - haskell, clojure, etc. (And then there's APL)<p>All the benchmarks are algorithm and processor intensive, while quite a few applications are idling most of the time. How about a comparison regarding the standard libraries, ease of debugging, external tools, code readability, available support, external libraries, etc. In short - developer productivity.<p>I'm not saying performance is not important - it is quite critical, but there are other things code does as well (At least most of my code is mundane, and is just calling APIs, updating files, serializing objects, etc. Nothing too fancy.) &#60;/rant&#62;
评论 #1124482 未加载
patrickgzill超过 15 年前
In many respects, TCL is dead at this point ... there is still a lot of legacy use for it but few new users in comparison to Python, Ruby, etc. Rexx is dead outside of IBM shops, and was ever since Amiga and OS/2 died.
评论 #1124387 未加载
评论 #1124554 未加载
thisrod超过 15 年前
One section of the paper describes which algorithms the programers used. It appears that the solutions in scripting languages made heavy use of associative arrays, so the results might change if you swapped Tcl's hashing algorithm for Perl's.<p>The algorithms described don't seem very clever. I expect you could do much better by splitting the input number into digraphs or trigraphs, sorting those by frequency in the dictionary, and matching the rarest ones first.
balu超过 15 年前
It's always nice to see papers published by my profs on HN. I would not have looked at those on my own.
cmallen超过 15 年前
Am I the only one tired of mathematical tests? I'd rather see a test comparing the relative speed and scalability of various web app implementations.<p>And don't give me that line about scaling not mattering, I have to cope with a cantankerous server and database at work, I know full well what my problem sets are.