purec
purec copied to clipboard
C backend for PureScript
Update the `mk/target.mk` file to have a one-to-one mapping from corefn.json to a .c file, something like: `%.c: %/corefn.json`. That means Make can compile the corefn jsons into C files...
Currently compiling `Data.Either.Nested` takes about 10 seconds. It emits about 84k lines of code! So we should (a) investigate optimization passes to remove the lines to output and (b) make...
Implement an equivalent for the `inlineCommonOperators` pass in PureScript. https://github.com/purescript/purescript/blob/master/src/Language/PureScript/CoreImp/Optimizer/Inliner.hs#L109 I think a good few hours can be sunk into this one alone, but will be worth it. We should...
It would be preferable if the files could be copied as part of purs compile so that we can have incremental rebuilds of single modules. Currently the only way to...
https://github.com/purescript/purescript/blob/b07042fb7b4f6a68c0fdc68b7e51076b7106cfba/src/Language/PureScript/CoreImp/Optimizer/MagicDo.hs