Re:A comparison of programming languages in economics
by thinkpad20 on Wednesday July 02, 2014 @06:08PM
(#7980096)
There are legions of reasons to choose Java over C++, or vice-versa, none of which have anything to do with syntax. Is this a strawman on the part of the authors, or are they unaware of the legion of things that make C++ a far more complex and dangerous language than Java? Or are those things irrelevant to the needs of economists?
Re:A comparison of programming languages in economics
by Alupis on Wednesday July 02, 2014 @09:25PM
(#7980949)
It is a very un-scientific study, done by non-programmers with little knowledge about programming in general. To them, syntax may seem like a big deal... just because they are ignorant to the languages other advantages or disadvantages.
As you noted, there are a plethora of reasons to choose either Java or C++...
Re:A comparison of programming languages in economics
by grayclhn on Thursday July 03, 2014 @12:27AM
(#7981430)
I think it's a combination of unawareness and irrelevance (or perceived irrelevance): many economists are essentially running simulations on a workstation, and that's the use case of the paper.
Re:A comparison of programming languages in economics
by dodders on Wednesday July 02, 2014 @03:56PM
(#7979295)
In my professional life I have rarely (if ever?) seen a language chosen on the basis of it's syntax.
Re:A comparison of programming languages in economics
by adrusi on Wednesday July 02, 2014 @06:08PM
(#7980097)
It's true, most good programmers won't choose a language based on just syntax. And even though most economists aren't good programmers (in my experience), they're still smart people who can see past the syntax.
The paper is probably misusing the term syntax though. C++ and java really are quite similar in many ways, far beyond just syntax, java just letting the programmer forget about some annoying things like memory management and portability. If most of what they're doing in the language is numeric analysis, then there probably isn't much of a difference at all, and they will probably get slightly better performance from C++.
Re:A comparison of programming languages in economics
by collyw on Wednesday July 02, 2014 @05:36PM
(#7979901)
Plenty of people claim they won't use Python for its whitespace. Not quite the same, but it seem that elements of syntax are influencing peoples decisions.
I would also recommend Python to new programmers, partly for the syntax.
Re:A comparison of programming languages in economics
by MrBuddyCasino on Wednesday July 02, 2014 @04:23PM
(#7979485)
I get what you mean, but lots of languages have seen limited popularity due to their unfamiliar or odd syntax (e.g. lisp).
"Our fourth result is that Java imposes a speed penalty of 110 to 169 percent. Given the similarity between Java and C++ syntax, there does not seem to be an obvious advantage for choosing Java unless portability across platforms or the wide availability of Java programmers is an important factor."