A Comparison of Programming Languages in Economics
20 Pages Posted: 30 Jun 2014 Last revised: 13 Nov 2024
Date Written: June 2014
Abstract
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.
Suggested Citation: Suggested Citation
Aruoba, S. Boragan and Fernández-Villaverde, Jesús, A Comparison of Programming Languages in Economics (June 2014). NBER Working Paper No. w20263, Available at SSRN: https://ssrn.com/abstract=2460602
Do you have a job opening that you would like to promote on SSRN?
Feedback
Feedback to SSRN
If you need immediate assistance, call 877-SSRNHelp (877 777 6435) in the United States, or +1 212 448 2500 outside of the United States, 8:30AM to 6:00PM U.S. Eastern, Monday - Friday.