grin
GRIN is a compiler back-end for lazy and strict functional languages with whole program optimization support. (by grin-compiler)
manual-stg-experiment
Manually constructed STG programs compiled with the standard GHC codegen backend. (by csabahruska)
grin | manual-stg-experiment | |
---|---|---|
3 | 1 | |
1,015 | 22 | |
-0.1% | - | |
1.0 | 1.8 | |
about 1 year ago | over 3 years ago | |
Haskell | Haskell | |
- | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
grin
Posts with mentions or reviews of grin.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-12-08.
-
A New Backend for Standard ML of New Jersey
You could take a look at GRIN, which is an IR especially made for optimizing functional languages before passing them to something like LLVM. (keep in mind that that project is still very early in development) See also their paper.
-
Haskell compiled onto LLVM increase performance?
There is the GRIN optimizer that is implemented based on Urban Boqist PhD thesis. It works really well with LLVM because GRIN removes all indirect calls so it allows LLVM to do its job really well. But Boq GRIN PhD does not tell how to support the complex GHC primop and RTS features. That's why I have another direction as well.
- Grin: A compiler back-end for lazy and strict functional languages
manual-stg-experiment
Posts with mentions or reviews of manual-stg-experiment.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-01-10.
-
Next-gen Haskell Compilation Techniques
Yes, unlifted boxed STG values does not have thunk checks. The STG to Cmm codegen generates only a single ADT tag lookup code. You can check the generated ASM code: https://github.com/csabahruska/manual-stg-experiment https://github.com/csabahruska/manual-stg-experiment/blob/master/StgSample.hs#L390-L391
What are some alternatives?
When comparing grin and manual-stg-experiment you can also consider the following projects:
hackage-server - Hackage-Server: A Haskell Package Repository
IdrisExtSTGCodegen
ghc-whole-program-compiler-project - GHC Whole Program Compiler and External STG IR tooling
sense-lang - Sense is a very high level, functional programming language for creating software by writing only the absolute necessary information and not a single line above that.
hoogle - Haskell API search engine
mlir-hs - Haskell bindings for MLIR
capri - A statically typed, general purpose programming language with an emphasis on functional programming and simplicity. Compiles to LLVM IR.
scoped-arena - Arena allocator with scopes
kempe - Kempe is a compiled stack-based language
grin vs hackage-server
manual-stg-experiment vs IdrisExtSTGCodegen
grin vs ghc-whole-program-compiler-project
manual-stg-experiment vs sense-lang
grin vs sense-lang
manual-stg-experiment vs ghc-whole-program-compiler-project
grin vs hoogle
grin vs mlir-hs
grin vs capri
grin vs scoped-arena
grin vs kempe