Good languages for writing compilers in?

This page summarizes the projects mentioned and recommended in the original post on /r/ProgrammingLanguages

Our great sponsors
  • Onboard AI - ChatGPT with full context of any GitHub repo.
  • WorkOS - The modern API for authentication & user identity.
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • TablaM

    The practical relational programing language for data-oriented applications

    It sounds puzzling, I start learning Rust with https://tablam.org and probably was making my life harder trying to do "advanced" stuff when not have any idea of what I was doing.

  • Pegged

    A Parsing Expression Grammar (PEG) module, using the D programming language.

    Also pegged is a pretty nice library for generating parsers from PEG grammars.

  • Onboard AI

    ChatGPT with full context of any GitHub repo. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at app.getonboardai.com.

  • Odin

    Odin Programming Language

    You can try using Odin language: https://github.com/odin-lang/Odin

  • AECforWebAssembly

    A port of ArithmeticExpressionCompiler from x86 to WebAssembly, so that the programs written in the language can run in a browser. The compiler has been rewritten from JavaScript into C++.

    Well, I have written the first compiler for my programming language, targetting x86, in IE6-compatible JavaScript, and the second compiler, targetting WebAssembly, has been written in C++11. I think that, to choose a language to write a compiler in, you need to look at at least two things:

  • rust

    Empowering everyone to build reliable and efficient software.

    Also I think rustc itself tends to use arenas to solve this problem, which also gets around the lifetime issues

  • mpl

    The MaPLe compiler for Parallel ML

    Maple is a fork of MLton: https://github.com/MPLLang/mpl

  • Carp

    A statically typed lisp, without a GC, for real-time applications.

  • WorkOS

    The modern API for authentication & user identity. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • ppci

    A compiler for ARM, X86, MSP430, xtensa and more implemented in pure Python

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts