-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
future.apply: Separate package for future_lapply(), future_apply(), ...(?) (req for feedback) #159
Comments
Good idea |
That would be great |
Just a very early heads up: I'm pretty sure this will happen at some point, i.e. |
Thank you for the heads up. Very important for ropensci/drake#42. |
I've created a future.apply package which currently provides |
Thank you for the update. |
…, which is now defunct [#159] Removing also package tests that tested these removed (public or internal) functions.
UPDATE 2017-12-06: See https://github.com/HenrikBengtsson/future.apply.
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 nofuture_sapply()
,future_apply()
and so on.Putting
future_lapply()
and friends in a separate packagefuture.apply
would be analogue to howforeach
providesforeach()
,plyr
providesllply()
, and so on;*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()
, ...foreach()
,times()
**ply(..., .parallel = TRUE)
functions:aaply()
,ddply()
,dlply()
,llply()
, ...bpaggregate()
,bpiterate()
,bplapply()
, andbpvec()
None of the above high-level APIs implement their own parallel backends, but they rather enhance existing ones (such as
doParallel
anddoMC
).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.Comments and feedback much appreciated.
The text was updated successfully, but these errors were encountered: