NATIONAL BUREAU OF ECONOMIC RESEARCH
NATIONAL BUREAU OF ECONOMIC RESEARCH

A Comparison of Programming Languages in Economics

S. Borağan Aruoba, Jesús Fernández-Villaverde

NBER Working Paper No. 20263
Issued in June 2014
NBER Program(s):   EFG

We solve the stochastic neoclassical growth model, the workhorse of modern macroeconomics, using C++11, Fortran 2008, Java, Julia, Python, Matlab, Mathematica, and R. We implement the same algorithm, value function iteration with grid search, in each of the languages. We report the execution times of the codes in a Mac and in a Windows computer and briefly comment on the strengths and weaknesses of each language.

You may purchase this paper on-line in .pdf format from SSRN.com ($5) for electronic delivery.

Information about Free Papers

You should expect a free download if you are a subscriber, a corporate associate of the NBER, a journalist, an employee of the U.S. federal government with a ".GOV" domain name, or a resident of nearly any developing country or transition economy.

If you usually get free papers at work/university but do not at home, you can either connect to your work VPN or proxy (if any) or elect to have a link to the paper emailed to your work email address below. The email address must be connected to a subscribing college, university, or other subscribing institution. Gmail and other free email addresses will not have access.

E-mail:

A code repository is available at https://github.com/jesusfv/Comparison-Programming-Languages-Economics

This paper was revised on July 30, 2014

Machine-readable bibliographic record - MARC, RIS, BibTeX

Document Object Identifier (DOI): 10.3386/w20263

Users who downloaded this paper also downloaded these:
Chodorow-Reich w20230 Effects of Unconventional Monetary Policy on Financial Institutions
Cavallo, Neiman, and Rigobon w20225 The Price Impact of Joining a Currency Union: Evidence from Latvia
Bordo, Choudhri, Fazio, and MacDonald w20228 The Real Exchange Rate in the Long Run: Balassa-Samuelson Effects Reconsidered
Devereux and Yetman w20252 Globalisation, Pass-through and the Optimal Policy Response to Exchange Rates
Nagel w20265 The Liquidity Premium of Near-Money Assets
 
Publications
Activities
Meetings
NBER Videos
Data
People
About

Support
National Bureau of Economic Research, 1050 Massachusetts Ave., Cambridge, MA 02138; 617-868-3900; email: info@nber.org

Contact Us