pang-gj / luce Goto Github PK
View Code? Open in Web Editor NEWC++20协程net,基于epoll,可以方便地使用await语法
C++20协程net,基于epoll,可以方便地使用await语法
你好,我之前参加了阿里云举办的一个比赛,也是使用了 C++20 的协程封装异步操作,我封装的是 io_uring,也实现了 HTTP 协议的解析,但是代码写的有些乱
io_uring 的封装我包装成了一个库:uringpp
参赛的代码:hcache-uring
我更想实现的是封装 DPDK 和 SPDK 相关的用户态高性能库,不知道你是否有了解
似乎无法在两个协程中并发调用 connection::read/write,因为它们的在 epoll 中注册的是 coroutine_handle,这意味着同一时间在同一 fd 上最多只能关联一个 coroutine_handle。
如果对一个 socket 开两个协程,一个只 read,一个只 write,这似乎是不支持的。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.