IDEAS home Printed from https://ideas.repec.org/p/nbr/nberwo/20263.html
   My bibliography  Save this paper

A Comparison of Programming Languages in Economics

Author

Listed:
  • S. Borağan Aruoba
  • Jesús Fernández-Villaverde

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

  • S. Borağan Aruoba & Jesús Fernández-Villaverde, 2014. "A Comparison of Programming Languages in Economics," NBER Working Papers 20263, National Bureau of Economic Research, Inc.
  • Handle: RePEc:nbr:nberwo:20263
    Note: EFG
    as

    Download full text from publisher

    File URL: http://www.nber.org/papers/w20263.pdf
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Tauchen, George, 1986. "Finite state markov-chain approximations to univariate and vector autoregressions," Economics Letters, Elsevier, vol. 20(2), pages 177-181.
    2. Unknown, 1986. "Letters," Choices: The Magazine of Food, Farm, and Resource Issues, Agricultural and Applied Economics Association, vol. 1(4), pages 1-9.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Paulo Garrido & Pedro Campos & André Dias, 2015. "Balance Sheet Analysis Of Credit And Debt Networks," Advances in Complex Systems (ACS), World Scientific Publishing Co. Pte. Ltd., vol. 18(05n06), pages 1-18, August.
    2. Gintaras Palubeckis, 2020. "An Approach Integrating Simulated Annealing and Variable Neighborhood Search for the Bidirectional Loop Layout Problem," Mathematics, MDPI, vol. 9(1), pages 1-30, December.
    3. Radu Tunaru, 2015. "Model Risk in Financial Markets:From Financial Engineering to Risk Management," World Scientific Books, World Scientific Publishing Co. Pte. Ltd., number 9524.
    4. Thomas Kirschstein & Christian Bierwirth, 2018. "The selective Traveling Salesman Problem with emission allocation rules," OR Spectrum: Quantitative Approaches in Management, Springer;Gesellschaft für Operations Research e.V., vol. 40(1), pages 97-124, January.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Nakashima, Kiyotaka & Ogawa, Toshiaki, 2020. "The Impacts of Strengthening Regulatory Surveillance on Bank Behavior: A Dynamic Analysis from Incomplete to Complete Enforcement of Capital Regulation in Microprudential Policy," MPRA Paper 99938, University Library of Munich, Germany.
    2. Laczó, Sarolta & Rossi, Raffaele, 2020. "Time-consistent consumption taxation," Journal of Monetary Economics, Elsevier, vol. 114(C), pages 194-220.
    3. Pratap, Sangeeta & Urrutia, Carlos, 2004. "Firm dynamics, investment and debt portfolio: balance sheet effects of the Mexican crisis of 1994," Journal of Development Economics, Elsevier, vol. 75(2), pages 535-563, December.
    4. D’Erasmo, P. & Mendoza, E.G. & Zhang, J., 2016. "What is a Sustainable Public Debt?," Handbook of Macroeconomics, in: J. B. Taylor & Harald Uhlig (ed.), Handbook of Macroeconomics, edition 1, volume 2, chapter 0, pages 2493-2597, Elsevier.
    5. Rodolphe Dos Santos Ferreira & Frédéric Dufourt, 2013. "On Stabilization Policy in Sunspot-Driven Oligopolistic Economies," AMSE Working Papers 1337, Aix-Marseille School of Economics, France, revised 30 Jun 2013.
    6. Matteo Iacoviello, 2008. "Household Debt and Income Inequality, 1963–2003," Journal of Money, Credit and Banking, Blackwell Publishing, vol. 40(5), pages 929-965, August.
    7. Aldrich, Eric M. & Fernández-Villaverde, Jesús & Ronald Gallant, A. & Rubio-Ramírez, Juan F., 2011. "Tapping the supercomputer under your desk: Solving dynamic equilibrium models with graphics processors," Journal of Economic Dynamics and Control, Elsevier, vol. 35(3), pages 386-393, March.
    8. Alisdair McKay, 2011. "Household Saving Behavior and Social Security Privatization," Boston University - Department of Economics - Working Papers Series WP2011-027, Boston University - Department of Economics.
    9. Martin, Fernando M., 2015. "Debt, inflation and central bank independence," European Economic Review, Elsevier, vol. 79(C), pages 129-150.
    10. Alfaro, Laura & Kanczuk, Fabio, 2009. "Optimal reserve management and sovereign debt," Journal of International Economics, Elsevier, vol. 77(1), pages 23-36, February.
    11. Yongsung Chang & Sun-Bin Kim & Bo Hyun Chang, 2015. "Pareto Weights in Practice: Income Inequality and Tax Reform," 2015 Meeting Papers 224, Society for Economic Dynamics.
    12. Heer Burkhard & Maußner Alfred, 2011. "Value Function Iteration as a Solution Method for the Ramsey Model," Journal of Economics and Statistics (Jahrbuecher fuer Nationaloekonomie und Statistik), De Gruyter, vol. 231(4), pages 494-515, August.
    13. Jason Matthew DeBacker, 2015. "Flip‐Flopping: Ideological Adjustment Costs In The United States Senate," Economic Inquiry, Western Economic Association International, vol. 53(1), pages 108-128, January.
    14. Yamada, Tomoaki, 2011. "A politically feasible social security reform with a two-tier structure," Journal of the Japanese and International Economies, Elsevier, vol. 25(3), pages 199-224, September.
    15. De loecker, Jan & Asker, John & Collard-Wexler, Allan, 2011. "Productivity volatility and the misallocation of resources in developing economies," CEPR Discussion Papers 8469, C.E.P.R. Discussion Papers.
    16. Carlo A. Favero, 2007. "Model Evaluation in Macroeconometrics: from early empirical macroeconomic models to DSGE models," Working Papers 327, IGIER (Innocenzo Gasparini Institute for Economic Research), Bocconi University.
    17. Greenwood, Jeremy & Guner, Nezih & Santos, Cezar & Kocharakov, Georgi, 2015. "Technology and the Changing Family: A Unified Model of Marriage, Divorce, Educational Attainment and Married Female Labor-Force," CEPR Discussion Papers 10434, C.E.P.R. Discussion Papers.
    18. Marta González-Torrabadella & Josep Pijoan-Mas, 2006. "Flat tax reforms: a general equilibrium evaluation for Spain," Investigaciones Economicas, Fundación SEPI, vol. 30(2), pages 317-351, May.
    19. Zhou, Jie, 2009. "The asset location puzzle: Taxes matter," Journal of Economic Dynamics and Control, Elsevier, vol. 33(4), pages 955-969, April.
    20. Facundo Piguillem & Anderson Schneider, 2013. "Heterogeneous Labor Skills, The Median Voter and Labor Taxes," Review of Economic Dynamics, Elsevier for the Society for Economic Dynamics, vol. 16(2), pages 332-349, April.

    More about this item

    JEL classification:

    • C0 - Mathematical and Quantitative Methods - - General
    • E0 - Macroeconomics and Monetary Economics - - General

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:nbr:nberwo:20263. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: the person in charge (email available below). General contact details of provider: https://edirc.repec.org/data/nberrus.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.