Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/klntsky/purescript-fusion-poc

A proof-of-concept showing how fusion can be implemented ad-hoc for some set of fusion laws in purescript
https://github.com/klntsky/purescript-fusion-poc

Last synced: 5 days ago
JSON representation

A proof-of-concept showing how fusion can be implemented ad-hoc for some set of fusion laws in purescript

Awesome Lists containing this project

README

        

# purescript-fusion

A proof-of-concept showing how fusion, a.k.a. deforestation, can be implemented ad-hoc for some set of fusion laws in purescript. Laws are defined as instances of the `Fusion` class - see the code for more info.

This approach is not extensible: the user is not able to define their own laws.

There are other issues (note the green line on the first image, which appears higher than it should).

# Benchmarks

![identity](benchmarks/results/identity.png)

![foldrMapFusion](benchmarks/results/foldrMapFusion.png)

![mapFusion](benchmarks/results/mapFusion.png)