Asynchronous programming in .NET### Asynchronous programming in .NET by Gerardo Lijs Twitter @GerardoLijs April 2019 ## Content What is Asynchronous Programming CPU-bound vs IO-bound Obsolete patterns Tasks and async/await Practical Count(n => Enumerable.Range(2, (int)Math.Sqrt(n) - 1).All(i => n % i > 0)); } ## Asynchronous method TaskGetPrimesCountAsync(int start, int count) { return Task.Run(() => of the time you will need asynchronous to deal with IO-bound operations and the times you will use CPU-bound operations you will probably use a library that provides asynchronous methods for you to interact 0 码力 | 29 页 | 942.73 KB | 2 年前3
Custom Views for the Rest of UsCustom Views for the Rest of Us ## JACOB RICE 20 21 October 24-29 ## Custom Views for the Rest of Us Jacob Rice jacob.rice.cpp@gmail.com KEYSIGHT TECHNOLOGIES 1 using namespace std::views; 2 for y> ## → ## → ## → ## What is a view? ## Easy to access: namespace std { 3 } namespace views = ranges::views; ## Range • Semantically: a collection of "things". • Has begin and end functions iterated. Pipelines are cheap to create; “real” work is done during iteration. 1 using namespace std::views; 2 for (int i : iota(2) | filter(even) | transform(square)) 3 std::cout << i <<0 码力 | 187 页 | 13.25 MB | 1 年前3
Distributed Ranges: A Model for Building Distributed Data Structures, Algorithms, and Views## +23 ## Distributed Ranges: A Model for Building Distributed Data Structures, Algorithms, and Views ## BENJAMIN BROCK ## Notices and Disclaimers For notices, disclaimers, and details about performance Other names and brands may be claimed as the property of others. ## Human Readable Disclaimer - The views in this talk are mine, not necessarily those of my employer. - This is a speculative, academic-style dot_product(vector& x, vector & y) { auto z = views::zip(x, y) | views::transform([](auto element) { auto [a, b] = element; return a * b; 0 码力 | 127 页 | 2.06 MB | 1 年前3
Taro: Task graph-based Asynchronous Programming Using C++ Coroutine## +23 ## Taro: Task graph-based Asynchronous Programming Using C++ Coroutine DIAN-LUN LIN 20 23 October 01 - 06 ## Agenda • Understand the motivation behind Taro • Learn to use the Taro C++ programming Conclusion ## Synchronous/Asynchronous Mechanisms Synchronous Boil the water  Multitasking! Asynchronous Wait ) This example does not use any of Tornado’s asynchronous features; for that see this simple chat room [https://github.com/tornadoweb/tornado/tree/stable/demos/chat] with only one thread per process. See the User's guide for more on Tornado's approach to asynchronous programming. While some support of WSGI is available in the tornado.wsgi module, it is not a0 码力 | 407 页 | 385.03 KB | 2 年前3
Spanny 2: Rise of std::mdspanto access elements of the std::mdspan are blocking the arms need to operate asynchronously ## asynchronous dual arm control templatestruct bin_checker_t { using element_type private: Arbiter* checker_; }; github.com/griswaldbrooks/spanny2 ## asynchronous dual arm control templatestruct bin_checker_async_t { using element_type Arbiter* checker_; }; github.com/griswaldbrooks/spanny2 ## asynchronous dual arm control struct arbiter_dual_async { using result_type = std::expected0 码力 | 117 页 | 2.02 MB | 1 年前3
Что нужно знать об архитектуре ClickHouse, чтобы его эффективно использовать0 码力 | 28 页 | 506.94 KB | 2 年前3
Tornado 6.1 Documentation
Tornado [https://www.tornadoweb.org] is a Python web framework and asynchronous networking library, originally developed at FriendFeed [https://en.wikipedia.org/wiki/FriendFeed]. By using non-blocking listen(8888) tornado.ioloop.IOLoop.current().start() This example does not use any of Tornado’s asynchronous features; for that see this simple chat room [https://github.com/tornadoweb/tornado/tree/stable/demos/chat] with only one thread per process. See the User's guide for more on Tornado's approach to asynchronous programming. While some support of WSGI is available in the tornado.wsgi module, it is not a0 码力 | 931 页 | 708.03 KB | 2 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100
相关搜索词
异步编程async/await响应式用户界面扩展性性能测试custom viewsproxy iteratorsviewable_rangerange-v3customization points分布式范围分布式数据结构分段处理分布式算法并行计算任务图协程调度算法性能评估asynchronous viewsJSONFielddeprecationPython compatibilitycaching middlewareDjangomodelsviewstemplatesformsadminTornadoAsynchronousIOLoopWebSocketHTTPstd::mdspanlayoutaccessorasynchronouspolicyClickHouseDistributed tablesreplicated merge treeshardingmaterialized viewsasynchronous networkingevent loopIOStreamcoroutine













