ST instead of Effect?
Opened this issue · 5 comments
jamesdbrock commented
Should everything in this package be in the ST monad instead of Effect?
https://pursuit.purescript.org/packages/purescript-st/5.0.1/docs/Control.Monad.ST.Global#v:toEffect
garyb commented
I would say not until purescript/purescript-st#31 happens
jamesdbrock commented
This was attempted in 2017 #11
jamesdbrock commented
jamesdbrock commented
Maybe with this ST optimization in purs-backend-es the performance penalty of ST is going away.
https://discourse.purescript.org/t/purs-backend-es-v1-3-0-released/3269
JordanMartinez commented
I believe the same optimizations done in ST are also done in Effect? So, does switching to ST really benefit from that?