shashi / FileTrees.jl

Parallel computing with a tree of files metaphor
http://shashi.biz/FileTrees.jl
Other
88 stars 6 forks source link

document `delayed` #17

Open shashi opened 4 years ago

shashi commented 4 years ago

Just to think over what would happen if users start to use delayed a la carte:

  1. mapvalues -- returning delayed(f)(x) is completely OK. The chaining of lazy values should work as expected. Calling delayed functions with other values which may themselves be delayed is OK. But calling it with say an array of delayed values is not.
  2. mapsubtrees -- returning delayed(f)(x) will work but not when f(x) is a FileTree. However, a FileTree with delayed values is OK.
  3. reducevalues -- seems fine again. as in 1.

cc @DrChainsaw

shashi commented 4 years ago

Maybe users want to apply a function such that

This is done internally by FileTrees.lazy_if_lazy(f) but I don't know if we should just export that.