You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
future.apply: Separate package for future_lapply(), future_apply(), ...(?) (req for feedback) #159
As some of you've already noticed, I've been holding back on announcing the future_lapply() function to the world. One of the reasons is that I'm not sure it should be part of the future package per se. It probably better suited in a separate package that provides such a higher-level API on top of the Future API (future() + value() and %<-%). This is also the reason for why there is yet no future_sapply(), future_apply() and so on.
Putting future_lapply() and friends in a separate package future.apply would be analogue to how foreach provides foreach(), plyr provides llply(), and so on;
Future-versions of common goto *apply() functions available in core R (the 'base' package and some 'stats' package): future_apply(),
future_eapply(),
future_lapply(),
future_mapply(),
future_rapply(),
future_sapply(),
future_tapply(),
future_vapply(),
future_aggregate(), ...
Bioconductor's parallel mappers: bpaggregate(),
bpiterate(),
bplapply(), and
bpvec()
All future backends via doFuture (because it supports foreach) or via BiocParallel.FutureParam (direct BiocParallelParam support; prototype)
None of the above high-level APIs implement their own parallel backends, but they rather enhance existing ones (such as doParallel and doMC).
By having future_lapply() and friends in a separate package, it keeps the identity and the size of the future package much lighter. The core idea of the future package is not to replace foreach and other higher-level "parallel mapper" functions, but to provide a minimalistic parallel framework for such to built upon such that they can utilize all backends that implements the Future API.
Just a very early heads up: I'm pretty sure this will happen at some point, i.e. future_lapply() will be moved to a future.apply package that works on-top of the future package. Such a transition will be done by making future.apply::future_lapply() available first giving enough time for downstream packages to migrate. Then future::future_lapply() can be deprecated and eventually be made defunct.
Activity
xiaodaigh commentedon Aug 24, 2017
Good idea
ThoDuyNguyen commentedon Aug 24, 2017
That would be great
HenrikBengtsson commentedon Oct 25, 2017
Just a very early heads up: I'm pretty sure this will happen at some point, i.e.
future_lapply()will be moved to afuture.applypackage that works on-top of thefuturepackage. Such a transition will be done by makingfuture.apply::future_lapply()available first giving enough time for downstream packages to migrate. Thenfuture::future_lapply()can be deprecated and eventually be made defunct.wlandau-lilly commentedon Oct 25, 2017
Thank you for the heads up. Very important for ropensci/drake#42.
HenrikBengtsson commentedon Dec 7, 2017
I've created a future.apply package which currently provides
future_lapply()and a newfuture_sapply(). It'll be on GitHub-only for a while. Let's continue any future discussions/feature requests related tofuture_lapply()related topics there, i.e. https://github.com/HenrikBengtsson/future.apply.ThoDuyNguyen commentedon Dec 7, 2017
Thank you for the update.
DEPRECATED: future::future_lapply() is formally deprecated [#159]
CLEANUP: future::future_lapply() is now defunct [#159]
CLEANUP: Removing internal functions that was used by future_lapply()…