Compilers

Top 23 Compiler Open-Source Projects

  • Modern-CPP-Programming

    Modern C++ Programming Course (C++03/11/14/17/20/23/26)

  • Project mention: 3rd Edition of Programming: Principles and Practice Using C++ by Stroustrup | news.ycombinator.com | 2024-04-19
  • binaryen

    Optimizer and compiler/toolchain library for WebAssembly

  • Project mention: Bring garbage collected programming languages efficiently to WebAssembly | news.ycombinator.com | 2023-11-03

    The Binaryen wasm optimizer (mentioned in the article) is always open for contributions,

    https://github.com/WebAssembly/binaryen

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • Project mention: Needed an advice in compilers dev! | /r/Compilers | 2023-12-07

    linking and loading: https://github.com/MattPD/cpplinks/blob/master/executables.linking_loading.md - in addition to the aforementioned books and blog posts, there also some pretty good talks: https://github.com/MattPD/cpplinks/blob/master/executables.linking_loading.md#talks

  • go-recipes

    🦩 Tools for Go projects

  • Project mention: 2023 update to go-recipes collection | /r/golang | 2023-12-11
  • llvm-tutor

    A collection of out-of-tree LLVM passes for teaching and learning

  • verilator

    Verilator open-source SystemVerilog simulator and lint system

  • Project mention: What's new for RISC-V in LLVM 17 | news.ycombinator.com | 2023-10-11

    You may want to check out Verilator:

    https://verilator.org/

  • awesome-quantum-software

    Curated list of open-source quantum software projects.

  • WorkOS

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

    WorkOS logo
  • minixfromscratch

    Development and compilation setup for the book versions of MINIX (2.0.0 and 3.1.0) on QEMU

  • Project mention: Ask HN: High-quality resources for writing complex systems software? | news.ycombinator.com | 2023-11-05

    Open BSD software source.

    UNIX Systems Programming: Communication, Concurrency and Threads: Communication, Concurrency and Threads 2nd Edition by K Robbins and S. Robbins

    minix from scrath [0]; linux from scratch[1];

    [1] : https://www.linuxfromscratch.org/

    [0] : https://github.com/o-oconnell/minixfromscratch

  • libfsm

    DFA regular expression library & friends

  • compilers-targeting-c

    A list of compilers that can generate C code

  • Project mention: Ask HN: Who is developing a programming language that compiles to C? | news.ycombinator.com | 2023-10-09

    https://github.com/dbohdan/compilers-targeting-c

    I'm long time fan of programming languages that compiles to C hoping that one day will fall in love with one endlessly! :-)

  • micro-mitten

    You might not need your garbage collector

  • bolt

    Bolt is a language with in-built data-race freedom! (by mukul-rathi)

  • waforth

    Small but complete dynamic Forth Interpreter/Compiler for and in WebAssembly

  • Project mention: Show HN: TinyWasm – A tiny WebAssembly Runtime written in Rust | news.ycombinator.com | 2024-03-07

    Super nice project! I also spent the last month writing a WASM interpreter ( https://github.com/rrampage/wart ) using Java 21. I started it as an excuse to try out the pattern matching in switch / sealed classes in Java. It kind of snowballed in scope and can now run Doom and Waforth ( https://github.com/remko/waforth )! Have not yet tried compiling it to WASM and running it as a meta-circular interpreter.

  • never

    Never: statically typed, embeddable functional programming language.

  • vast

    VAST is an experimental compiler pipeline designed for program analysis of C and C++. It provides a tower of IRs as MLIR dialects to choose the best fit representations for a program analysis or further program abstraction.

  • Project mention: Print(“lol”) doubled the speed of my Go function | news.ycombinator.com | 2023-08-23

    Most languages target C or LLVM, and C and LLVM have a fundamentally lossy compilation processes.

    To get around this, you'd need a hodge podge of pre compiler directives, or take a completely different approach.

    I found a cool project that uses a "Tower of IRs" that can restablish source to binary provenance, which, seems to me, to be on the right track:

    https://github.com/trailofbits/vast

    I'd definitely like to see the compilation processes be more transparent and easy to work with.

  • decomp.me

    Collaborative decompilation and reverse engineering website

  • Project mention: Ask HN: What Underrated Open Source Project Deserves More Recognition? | news.ycombinator.com | 2024-03-07

    https://github.com/decompme/decomp.me

    I’ve posted this before but I love it so much I gotta do it again.

    You plug in a piece of ASM from a video game ROM, and it gives you a first pass decompilation. On the left hand side you can edit this decompilation, and on the right there’s a side-by-side diff of the target ASM and what your source currently compiles to. It’s slightly gamified, looks great, is super easy to fork/share, and can be pretty addicting once you get into it. Super cool community.

  • pytket-docs

    User manual and example notebooks for the pytket quantum SDK

  • Project mention: What does it look like using a quantum computer? | /r/QuantumComputing | 2023-04-26

    First step is you might implement your quantum circuit in (Just for example) a Python Jupyter notebook using some SDK like TKET https://github.com/CQCL/pytket

  • gllvm

    Whole Program LLVM: wllvm ported to go

  • clangir

    A new (MLIR based) high-level IR for clang.

  • Project mention: Decoding C/C++ Compilation Process: From Source Code to Binary | /r/cpp | 2023-06-08

    It could be cool to see some explanation of CFG representations or GIMPLE/LLVM here. GCC/Clang can print those out as text, or just compile to that code and not go lower if you ask them to. There are some interesting things you can do with bytecode, like Rellic, AFL++, or optview2. It seems a bit reductive imo to go straight from high-level code to disassembly without at all examining any layers in between. Especially if we use something like Polygeist or CIR.

  • system-programming-roadmap

    A roadmap to teach myself compiler dev, malware reverse engineering, exploitation and kernel dev fundamentals

  • honey-potion

    Writing eBPF programs with Elixir!

  • Project mention: Honey Potion: an eBPF backend for Elixir | /r/elixir | 2023-05-18

    Hi all! We are working on an eBPF backend for Elixir. It's called Honey Potion. The project is under development, but it is possible to write some useful programs at this point. For instance, in this video, one of the guys involved explains how to write a program to count system calls.

  • ipr

    Compiler-neutral Internal Program Representation for C++

  • Project mention: Module interfaces for pre-built libraries | /r/cpp | 2023-04-26

    I'm not sure about clang or gcc. For VS, u/GabrielDosReis might be able to speak to the .ifc IPR stability/volatility. My wager (deferring to him to correct me) is that the IPR is still changing over time but will stabilize more over time.

  • crafting-interpreters-rs

    Crafting Interpreters in Rust

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Compilers related posts

Index

What are some of the best open-source Compiler projects? This list will help you:

Project Stars
1 Modern-CPP-Programming 10,765
2 binaryen 7,099
3 cpplinks 3,976
4 go-recipes 3,807
5 llvm-tutor 2,710
6 verilator 2,083
7 awesome-quantum-software 1,340
8 minixfromscratch 1,182
9 libfsm 897
10 compilers-targeting-c 655
11 micro-mitten 531
12 bolt 525
13 waforth 451
14 never 402
15 vast 334
16 decomp.me 329
17 pytket-docs 324
18 gllvm 278
19 clangir 274
20 system-programming-roadmap 253
21 honey-potion 234
22 ipr 216
23 crafting-interpreters-rs 215

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com