C++ Compiler

Open-source C++ projects categorized as Compiler

Top 23 C++ Compiler Projects

  1. carbon-lang

    Carbon Language's main repository: documents, design, implementation, and related tools. (NOTE: Carbon Language is experimental; see README)

    Project mention: Kickstart insight needed: A new retrofitted C dialect? | news.ycombinator.com | 2025-02-22

    Kind of along these lines but for C++: https://docs.carbon-lang.dev/

  2. InfluxDB

    InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.

    InfluxDB logo
  3. V8

    The official mirror of the V8 Git repository

    Project mention: MCP Run Python | news.ycombinator.com | 2025-04-15

    It's a bit hard to do comparisons without going into threat models and all that _fun_ stuff :shrug:

    For example, JS runs in almost every browser on earth too, yet it took V8 devs 2 years to find out that `Math.expm1()` could return -0.0 (https://chromium.googlesource.com/v8/v8.git/+/56f7dda67fdc97...). This is a cherry-picked example, and JS is clearly more complex than WASM, but still.

    Just because stuff runs on a lot of devices doesn't mean it's more or less secure.

    Linux runs on quite a few devices too, yet we still find bugs, people still don't ship updates to said bugs, yadda yadda yadda.

    My point is just that lots of devs often skip the threat modeling and just think "I'll slap it in a WASM thingie an it'll be fine". Well good luck.

  4. Halide

    a language for fast, portable data-parallel computation

    Project mention: CubeCL: GPU Kernels in Rust for CUDA, ROCm, and WGPU | news.ycombinator.com | 2025-04-23

    This reminds me of Halide (https://halide-lang.org/).

    In Halide, the concept was great, yet the problems in kernel development were moved to the side of "scheduling", i.e. determining tiling/vectorization/parallellization for the kernel runs.

  5. reshade

    A generic post-processing injector for games and video software.

  6. asmjit

    Low-latency machine code generation

    Project mention: Book – Writing a C Compiler: Build a Real Programming Language from Scratch | news.ycombinator.com | 2024-08-15
  7. fully-homomorphic-encryption

    An FHE compiler for C++

  8. glslang

    Khronos-reference front end for GLSL/ESSL, partial front end for HLSL, and a SPIR-V generator.

    Project mention: Ask HN: Resources for GPU Compilers? | news.ycombinator.com | 2024-09-02

    Newer editions of Computer Organization and Design: The Hardware Software Interface covers GPUs [1]

    Multiflow still has some relevant ideas [2]

    Programming on Parallel Machines: GPU, Multicore, Clusters and More. Gives you a look at some of the issues [3]

    SPIRV-VM is a virtual machine for executing SPIR-V shaders [4]

    NyuziRaster: Optimizing Rasterizer Performance and Energy in the Nyuzi Open Source GPU [5]

    Ocelot is a modular dynamic compilation framework for heterogeneous systems, providing various backend targets for CUDA programs and analysis modules for the PTX virtual instruction set. [6]

    glslang is the Khronos-reference front end for GLSL/ESSL, partial front end for HLSL, and a SPIR-V generator.

    [1]: https://www.goodreads.com/book/show/83895.Computer_Organizat...

    [2]: https://en.wikipedia.org/wiki/Multiflow

    [3]: http://heather.cs.ucdavis.edu/parprocbook

    [4]: https://github.com/dfranx/SPIRV-VM

    [5]: https://www.cs.binghamton.edu/~millerti/nyuziraster.pdf

    [6]:https://code.google.com/archive/p/gpuocelot/

    [7]: https://github.com/KhronosGroup/glslang

  9. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  10. iree

    A retargetable MLIR-based machine learning compiler and runtime toolkit.

    Project mention: IREE | news.ycombinator.com | 2025-04-23
  11. faust

    Functional programming language for signal processing and sound synthesis (by grame-cncm)

    Project mention: Ask HN: What Are You Working On? (February 2025) | news.ycombinator.com | 2025-02-23
  12. ispc

    Intel® Implicit SPMD Program Compiler

    Project mention: Compiling Array Languages for SIMD [pdf] | news.ycombinator.com | 2025-02-12
  13. gccrs

    GCC Front-End for Rust

    Project mention: Rust Needs an Official Specification | news.ycombinator.com | 2024-11-12
  14. Beef

    Beef Programming Language (by beefytech)

    Project mention: The Beef Programming Language | news.ycombinator.com | 2024-10-07
  15. jank

    The native Clojure dialect hosted on LLVM with seamless C++ interop.

    Project mention: Ask HN: What less-popular systems programming language are you using? | news.ycombinator.com | 2025-03-01

    Lately I've been using: https://janet-lang.org/ It's not a systems programming language, but it can be embedded in C.

    https://jank-lang.org/ looks interesting to me --I have not tried it yet. I'm not sure if this language could qualify as a systems programming language. What do you think?

  16. ccache

    ccache – a fast compiler cache

    Project mention: Ccache – a fast C/C++ compiler cache | news.ycombinator.com | 2024-09-26
  17. mrustc

    Alternative rust compiler (re-implementation)

  18. shaderc

    A collection of tools, libraries, and tests for Vulkan shader compilation.

  19. ShaderConductor

    ShaderConductor is a tool designed for cross-compiling HLSL to other shading languages

    Project mention: Shadertoys Ported to Rust GPU | news.ycombinator.com | 2025-04-12

    I think this is the way forward for shading languages.

    I'm writing a simple renderer with an OpenGL, Metal and Vulkan backend. I avoid using any shader transpiler such as Microsoft's ShaderConductor [0], as this adds a huge dependency to the project. As a hacky solution I'm simply maintaining a copy for each shading language (Metal Shading Language, GLSL, etc.). For a focused non-gaming project that seems easier.

    However, having a compiler that compiles a subset of the programming language I'm using for a project (such as Rust or C++) to the individual shading languages, sounds amazing, and would make shader writing when not using a game engine more joyful.

    [0] https://github.com/microsoft/ShaderConductor

  20. AdaptiveCpp

    Compiler for multiple programming models (SYCL, C++ standard parallelism, HIP/CUDA) for CPUs and GPUs from all vendors: The independent, community-driven compiler for C++-based heterogeneous programming models. Lets applications adapt themselves to all the hardware in the system - even at runtime!

    Project mention: AdaptiveCpp – Implementation of SYCL and C++ Parallelism for CPUs and GPUs | news.ycombinator.com | 2025-01-02
  21. lpython

    Python compiler

  22. torch-mlir

    The Torch-MLIR project aims to provide first class support from the PyTorch ecosystem to the MLIR ecosystem.

  23. fetlang

    Fetish-themed programming language

  24. kphp

    KPHP — a PHP compiler

  25. VTIL-Core

    Virtual-machine Translation Intermediate Language

  26. 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).

C++ Compiler discussion

Log in or Post with

C++ Compiler related posts

Index

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

# Project Stars
1 carbon-lang 32,813
2 V8 24,019
3 Halide 6,034
4 reshade 4,483
5 asmjit 4,127
6 fully-homomorphic-encryption 3,563
7 glslang 3,245
8 iree 3,107
9 faust 2,713
10 ispc 2,645
11 gccrs 2,612
12 Beef 2,613
13 jank 2,493
14 ccache 2,450
15 mrustc 2,283
16 shaderc 1,947
17 ShaderConductor 1,806
18 AdaptiveCpp 1,604
19 lpython 1,551
20 torch-mlir 1,506
21 fetlang 1,494
22 kphp 1,419
23 VTIL-Core 1,372

Sponsored
InfluxDB high-performance time series database
Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.
influxdata.com

Did you know that C++ is
the 7th most popular programming language
based on number of references?