▲ | kccqzy a day ago | |||||||
ApplicativeDo can be thought of as a compile-time transformation that turns sequential code into possibly parallel* code just by analyzing the way variables are used. Once I've had that realization I really appreciated it more. *: By "possibly parallel" I mean the blocks of code are known to be independent from each other. They could be actually executed in parallel if the Applicative instance does so. | ||||||||
▲ | ambicapter a day ago | parent [-] | |||||||
Does that mean it may or may not run the code in parallel once compiled? Doesn't seem very ergonomic to the developer if true. | ||||||||
|