kaleidoscope alternatives and similar packages
Based on the "Compiler" category.
Alternatively, view kaleidoscope alternatives based on common mentions on social networks and blogs.
-
binaryen
DEPRECATED in favor of ghc wasm backend, see https://www.tweag.io/blog/2022-11-22-wasm-backend-merged-in-ghc -
accelerate
Embedded language for high-performance array computations -
pi-forall
A demo implementation of a simple dependently-typed language -
husk-scheme
A full implementation of the Scheme programming language for the Haskell Platform. -
hyper-haskell-server
The strongly hyped Haskell interpreter. -
hint
Runtime Haskell interpreter [Moved to: https://github.com/haskell-hint/hint] -
bound
Combinators for manipulating locally-nameless generalized de Bruijn terms -
accelerate-examples
Examples for the Accelerate language -
accelerate-cuda
DEPRECATED: Accelerate backend for NVIDIA GPUs -
lambdacube-compiler
LambdaCube 3D is a Haskell-like purely functional language for GPU. Try it out: -
elm-street
:deciduous_tree: Crossing the road between Haskell and Elm -
haskell-to-elm
Generate Elm types, encoders, and decoders from Haskell types -
hLLVM
A library for analyzing and transforming LLVM (3.5) assembly codes -
unbound
Replib: generic programming & Unbound: generic treatment of binders -
accelerate-io
Read and write Accelerate arrays in various formats -
haskelm
Haskell to Elm translation using Template Haskell. Contains both a library and executable. -
lazyboy
An EDSL implemented in Haskell for programming the Nintendo Game Boy. -
elm-syntax
Library for generating Elm syntax from Haskell in a scope-safe way -
accelerate-fft
FFT library for Haskell based on the embedded array language Accelerate -
strict-ghc-plugin
Compiler plugin for making Haskell strict -
feldspar-compiler
This is the compiler for the Feldspar Language.
Learn any GitHub repo in 59 seconds
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of kaleidoscope or a related project?
README
A short guide to building a tiny programming language in Haskell with LLVM.
Stephen Diehl
Haskell LLVM Tutorial
Read Online:
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.
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)
$ stack build
You can then run the source code from each chapter (starting with chapter 2) as follows:
$ stack exec chapter2
Building with Cabal
Ensure that llvm-config
is on your $PATH
, then run:
$ cabal sandbox init
$ cabal configure
$ cabal install --only-dependencies
Then to run the source code from each chapter (e.g. chapter 2):
$ 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:
$ make chapter2
$ make chapter6
A smaller version of the code without the parser frontend can be found in the 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:
$ make tutorial.html
A standalone PDF can also be generated with:
$ 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
*Note that all licence references and agreements mentioned in the kaleidoscope README section above
are relevant to that project's source code only.