Lessons in converting from Python to C++

  • Authors:
  • David Mulder;Curtis Welborn

  • Affiliations:
  • Lehi, UT;Utah Valley University, Orem, Utah

  • Venue:
  • Journal of Computing Sciences in Colleges
  • Year:
  • 2013

Quantified Score

Hi-index 0.00

Visualization

Abstract

Compilers are a core technology within Computer Science, whether they create a native executable file that runs directly on the hardware or a byte-code file that runs in a Virtual Machine. This paper begins by outlining the primary author's capstone where he implemented an Assembler, Virtual Machine and Compiler all from scratch. No existing code-base or any special purpose libraries could be used in the implementation. The major components for these programs will be discussed and the base approach taken to creating them discussed. Following this overview, a more detailed description of lessons learned by the author while converting part of his capstone project from Python to C++ will be given. The project used in this paper provided for a rather unique perspective on the issue of converting a program from one language to another as the example program was the non-trivial Virtual Machine. The paper will conclude with a brief section describing future work where a Garbage Collector will be implemented.