Top 9 C++ compiler-design Projects
-
xl
A minimalist, general-purpose programming language based on meta-programming and parse tree rewrites
From what I can read the author got really unlucky with some kind of radical API changes. Maybe at that time the LLVM team was a bit less serious with deprecations ?
I use LLVM since v9, nowadays I'm stuck on v15 (that's not because of LLVM btw).
Between the two versions there's been a radical change too, i.e "opaque pointers", but the transition was rather smooth as we were provided, for a long time, the two versions of the functions affected by the change. Maybe the LLVM team got more serious since the author experienced the said difficulties ?
Other thing I note is that the author uses the CPP API. I use the C one which exposes only a high-level subset of the CPP one. This encourages a saner use of LLVM, a more concrete separation between the front-end and the mid-end, although sometimes there are limitations.
A simple example of what encourages the C API, especially since opaque ptrs are added, is not to rely on LLVM to retrieve the IR type of an IR value. That should always be done using the AST, eg with an `.ir` field in your nodes.
Another one I remark, after a brief overview of LLVM-CRAP, is that the author had to change the internal data structure used, depending on the LLVM version [0]. Using the C API that would never had happened. The C API essentially allows to create block refs, instructions refs, value refs, type refs, contexts. Then you choose the containers you want to use to hold them. No need to switch to another stdcpp one, even if internally LLVM does so.
[0]: https://github.com/c3d/xl/blob/master/src/llvm-crap.cpp#L265
-
Project mention: Looking for some compiler development resources | /r/ProgrammingLanguages | 2023-05-26
See https://github.com/LensPlaysGames/Intercept/tree/machine_code/docs
-
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.
-
LLVM-Guide
LLVM (Low Level Virtual Machine) Guide. Learn all about the compiler infrastructure, which is designed for compile-time, link-time, run-time, and "idle-time" optimization of programs. Originally implemented for C/C++ , though, has a variety of front-ends, including Java, Python, etc.
-
There were number of innovative but relatively obscure languages that came out of the first wave of cybernetics. Glushkov, one of Lyapunov's contemporaries who made a number of significant contributions to automata theory, created a language called Analytik [1], with early support for linear algebra and symbolic differentiation. REFAL is another language that emerged from the same era and still under active development [2]. At its foundation is an alternative and surprisingly rich algebraic theory of computation based on so-called word problems [3].
[1]: https://link.springer.com/content/pdf/10.1007/BF01070461.pdf
-
jet
A Fast C and Python like Programming Language that puts the Developer first. WIP (by The-NextGen-Project)
-
-
-
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.
-
-
C++ compiler-design related posts
- Show HN: ShnooTalk – A new programming language (unrelated to Smalltalk)
- I created a programming language
- Local Register Allocator for 8086
- Implementation of a LL(1) parser using C++ made to parse a C like language. It has the support of Lexer, Symbol Table, Left Recursion Removal and Left factoring. On successful parsing, a Json output is produced which is visualized with TreantJs,
Index
What are some of the best open-source compiler-design projects in C++? This list will help you:
Project | Stars | |
---|---|---|
1 | xl | 242 |
2 | LensorCompilerCollection | 182 |
3 | LLVM-Guide | 108 |
4 | refal-5-lambda | 76 |
5 | jet | 42 |
6 | JuCC | 39 |
7 | mewa | 21 |
8 | ShnooTalk | 15 |
9 | trans | 2 |