mratsim / weave

A state-of-the-art multithreading runtime: message-passing based, fast, scalable, ultra-low overhead
Other
537 stars 22 forks source link

Rename Pledge to FlowEvent #135

Closed mratsim closed 4 years ago

mratsim commented 4 years ago

Dataflow parallelism was introduced in #94.

The term Pledge was coined as a parallel to Promises in the Async world.

However the term does not sound intuitive even though the concept is actually simple.

Besides, from looking into:

Event is a commonly accepted term for what the Pledge is doing.

Hence we should rename Pledge to FlowEvent

In parallel, spawnDelayed should be renamed spawnOnEvent. And the dependsOn clause in parallelFor should be renamed waitForEvent to ease grep-ing for event-based / dataflow-based constructs.