Show HN: Simplexhc – Haskell to LLVM compiler (design phase)
pixel-druid.com
pixel-druid.com
GHC Core is not a subset of Haskell, it's just a simplification of it. The same thing but explained with fewer words (constructors).
That being said, we completely agree that Spineless Tagless G-Machine is full of badassery. Just imagine being able to reduce any Haskell app to, like, 8 different instructions. Something about that fascinates me, even though I'm not quite sure what it is.
It's a universal property of all programming languages that they can be reduced to a language with just one instruction, so it isn't a surprising result.
[1] Indeed it defines the operational semantics
That match(int) technique seems naïve. How would you handle the function arguments/application. The size of the function would also, presumably, large enough to be either very bad for one's icache or requiring more optimisation, which on the assumption that my previous paragraph is correct would make this a wasted effort?
Has this been profiled at all?
I wonder what it would take to add a wiki to lambda-the-ultimate.
What semantic information?
This could give a speed boost: LLVM has llvm.assume with which one can annotate IR with, using this would mean that the optimizer doesn't have to infer this (and therefore save time).