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.

download in pdf format
   (263 K)

email paper

Supplementary materials for this paper:

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:
Poterba w19930 Retirement Security in an Aging Society
Devereux and Yetman w20252 Globalisation, Pass-through and the Optimal Policy Response to Exchange Rates
Bordo, Choudhri, Fazio, and MacDonald w20228 The Real Exchange Rate in the Long Run: Balassa-Samuelson Effects Reconsidered
Bitler and Zavodny w20169 Medicaid: A Review of the Literature
Dang, Gorton, Holmstrom, and Ordoñez w20255 Banks as Secret Keepers
 
Publications
Activities
Meetings
NBER Videos
Themes
Data
People
About

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

Contact Us