Comments (3)
-
Yes, stlab.cc is where the documentation is posted, which is still incomplete.
-
Yes, futures strive to be a better future model by supporting regularity and cancelation (and similar for channels). We haven't set a milestone for the library. The library was initially created from the example code for the talk you cited and has evolved since then (more in answer to 4).
-
The portable implementation of the default executor is on par with libdispatch and outperforms the other implementations. The reason for having multiple implementations is that an application with more than one thread pool oversubscribes the hardware and may reduce performance. Using their provided thread pools is recommended if you run on Apple platforms, Windows, or within QT. Both the Windows thread pool and libdispatch have kernel access, and so can do a better job at spinning up additional threads as needed without relying on
invoke_waiting()
. -
At some point, there will likely be a significant update to the stlab concurrency library to augment the sender-receiver model. The standard proposals lack support for a system executor, and I'm convinced the cancellation model in sender/receivers is wrong (or at the very least I don't see how to make it work. What sender/receivers get correct is a lightweight composition model by deferring parallelism. stlab::future continuations were not intended to be lightweight, but I frequently see them used as if they were. What I currently have on my list for a future revision is:
-
Provide a deferred sender/receiver model for futures supporting cancelation on destruction.
a. As part of this, I'll likely make future destruction blocking (same as senders) to better support structured concurrency without function coloring. -
Provide an actor model for serialized access to state. See PR #525.
-
Provide full C++ coroutine support to the channel library to support "Go Routine" style code.
from libraries.
https://join.slack.com/t/stlab/shared_invite/zt-24bezet5e-9PlXy_FWyrvPXpG6znqa7g
from libraries.
Hi @sean-parent, appreciated for your detail response. The bulletin points 4 ~ 7 above look significant and especially 6 and 7 since they are exactly something I wish to have.
BTW, regarding stlab Slack channel, is it private ? It seems requiring an invitation since @meetingcpp email address is required. Would like to join the Slack if i could to follow more discussion etc.
from libraries.
Related Issues (20)
- Version in CMakeLists.txt is not correct
- Some files are missing in ./stlab/CMakeLists.txt HOT 1
- Build Error for Portable Executor for c++14 HOT 1
- Executor of packaged_task not used in reduction HOT 7
- Extra Copy of Object in Future Somewhere
- wasm main executor object not defined
- Upgrade to 1.7.1 now requires Qt and Boost HOT 20
- Is documentation generation broken? HOT 12
- No build output HOT 2
- Generated config.hpp Disables Ability to Use Same Source For Multiple Platforms HOT 1
- main_executor_type lost in main_executor.hpp for EMSCRIPTEN HOT 1
- Problem with main_executor for Qt on application exit HOT 3
- WASM main_executor improvements
- Broken compatibility with Qt5 HOT 1
- Handling more then one priority_task_system instance HOT 6
- Express the type of `promise` HOT 3
- windows default executor is not exception safe.
- Add weak_future<>
- Update range based algorithms
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libraries.