composewell / streamly

High performance, concurrent functional programming abstractions
https://streamly.composewell.com
Other
849 stars 63 forks source link

Streamly cleanup conventions #2735

Open stuser81 opened 3 months ago

stuser81 commented 3 months ago

Streamly seems to have a very GC-based cleaning convention... using the IOFinalizer construct from streamly-core.

Why was this approach taken? Some Haskellers might say GC is too late for cleanup (things needing cleanup might unpredictably "build up"). The normal Haskell way is usually more bracket based.

Hoping to learn some of your general thoughts on this topic.