Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Haskell LLVM JIT Compiler Tutorial
| Date | Stars |
|---|---|
| 2026-07-30 | 1039 |
| 2026-08-09 | 1040 |
| 2026-09-05 | 1041 |
| 2026-09-15 | 1040 |
| 2026-09-18 | 1041 |
| 2026-09-22 | 1040 |
| 2026-09-23 | 1040 |
| 2026-09-26 | 1039 |
| 2026-11-04 | 1039 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
<p align="center">
<a href="http://dev.stephendiehl.com/fun/">
<img src="https://github.com/sdiehl/kaleidoscope/raw/master/img/dragon.png"/>
</a>
</p>
<p align="center">
<em>A short guide to building a tiny programming language in Haskell with LLVM.</em>
</p>
<p align="center">
<a href="https://twitter.com/smdiehl">Stephen Diehl</a>
</p>
Haskell LLVM Tutorial
=====================
[](https://travis-ci.org/sdiehl/kaleidoscope)
[](https://github.com/sdiehl/kaleidoscope/blob/master/LICENSE-MIT)
Read Online:
* [**HTML**](http://www.stephendiehl.com/llvm)
* [**PDF**](http://www.stephendiehl.com/llvm/tutorial.pdf)
* [**Source Code**](https://github.com/llvm-hs/llvm-hs-kaleidoscope)
* [**Condensed Code**](https://github.com/llvm-hs/llvm-hs-kaleidoscope)
Setup
-----
You will need GHC 7.8 or newer as well as LLVM 4.0. For information on installing LLVM 4.0 (not 3.9 or earlier)
on your platform of choice, take a look at the
[instructions posted by the llvm-hs maintainers](https://github.com/llvm-hs/llvm-hs/blob/llvm-4/README.md#installing-llvm).
With Haskell and LLVM in place, you can use either Stack or Cabal to install the necessary Haskell
bindings and compile the source code from each chapter.
### Building with Stack (Recommended)
```bash
$ stack build
```
You can then run the source code from each chapter (starting with chapter 2) as follows:
```bash
$ stack exec chapter2
```
### Building with Cabal
Ensure that ``llvm-config`` is on your ``$PATH``, then run:
```bash
$ cabal sandbox init
$ cabal configure
$ cabal install --only-dependencies
```
Then to run the source code from each chapter (e.g. chapter 2):
```bash
$ cabal run chapter2
```
### Building with make
The source code for the example compiler of each chapter is included in the ``/src`` folder. With the dependencies
installed globally, these can be built using the Makefile at the root level:
```bash
$ make chapter2
$ make chapter6
```
A smaller version of the code without the parser frontend can be found in the
[llvm-tutorial-standalone](https://github.com/sdiehl/llvm-tutorial-standalone)
repository. The LLVM code generation technique is identical.
Editing
-------
This is an open source project, patches and corrections always welcome.
To generate the HTML page:
```bash
$ make tutorial.html
```
A standalone PDF can also be generated with:
```bash
$ make tutorial.pdf
```
License
-------
Text is adapted from the LLVM tutorial and is subsequently licensed under the
LLVM license.
The Haskell source files are released under the MIT license. Copyright (c)
2013-2016, Stephen Diehl
Excerpt of 2,742 characters
Read on GitHub109
10
6
3
2
2
2
1
Jason Davies · United Kingdom
1
1
1
1
1
1
Would you bet a product on this? Bounded 0–100 and slow moving.
matched fp:4736c21a0aa24384, topic:tutorial, desc:tutorial, readme:tutorial