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.

Access to NBER Papers

You are eligible for 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:

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:
Devereux and Yetman w20252 Globalisation, Pass-through and the Optimal Policy Response to Exchange Rates
Nagel w20265 The Liquidity Premium of Near-Money Assets
Poterba w19930 Retirement Security in an Aging Society
Bordo, Choudhri, Fazio, and MacDonald w20228 The Real Exchange Rate in the Long Run: Balassa-Samuelson Effects Reconsidered
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