PhotonLibOS
AnyAny
PhotonLibOS | AnyAny | |
---|---|---|
6 | 22 | |
812 | 422 | |
4.2% | - | |
9.4 | 6.2 | |
about 8 hours ago | about 1 month ago | |
C++ | C++ | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
PhotonLibOS
-
Coroutine made DPDK dev easy
So, we try to use Photon coroutine lib to simplify the development of DPDK applications with the new concurrency model, and provide more functionalities, such as lock, timer and file I/O. First of all, we need to choose a userspace network protocol stack. After investigation, we have chosen Tencent's open source F-Stack project, which has ported the entire FreeBSD 11.0 network protocol stack on top of DPDK. It also has made some code cuts, providing a set of POSIX APIs, such as socket, epoll, kqueue, etc. Of course, its epoll is also simulated by kqueue, since it is essentially FreeBSD.
-
200 lines of code to rewrite the 600'000 lines RocksDB into a coroutine programx
Finally, the PhotonLibOS project is open sourced at https://github.com/alibaba/PhotonLibOS. If you are interested in C++ coroutines and high-performance IO, welcome to have a try.
- A performance review of io_uring vs. epoll for standard/streamed socket traffic
-
C++ Show and Tell - September 2022
Photon (https://github.com/alibaba/PhotonLibOS) is a coroutine lib, and it just released v0.3.
- C++ Show and Tell - July 2022
-
I was thinking of submitting a proposal to make std::coroutine_handle<void> convertible to void (*)() and was looking for feedback.
the fastest coroutine library by the year of 2022, https://github.com/alibaba/PhotonLibOS
AnyAny
- DynaMix 2.0.0 Released
-
rust-like traits on plain C++ with short macro (type erasure actually)
https://github.com/kelbon/AnyAny trait(add, void(int), self.add(args...));
-
Static Interfaces, concepts vs de-virtualisation?
i dont know what he means, but with this type erasure library you can have non virtual interface and still use dynamic polymorphism with those types, so you dont need choose *do i need to do this type polymorphic* etc
-
[C++23] constexpr std::function in 40 LOC (simplified) powered by constexpr std::unique_ptr
There are also invoking from tuple and curring (just an example of technique)https://github.com/kelbon/AnyAny/blob/main/examples/functional_paradigm.hpp
-
A call to action: Think seriously about “safety”; then do something sensible about it -> Bjarne Stroustrup
As for my example containers: https://github.com/kelbon/AnyAny/blob/main/include/data_parallel_vector.hpp
- C++ Polymorphism Without Inheritance Using Glaze
-
С++20 library for high-performance polymorphic types usage
variant_swarm - container which behaves as set of std::variant, but with much faster visit operation and operation for getting view to all values of type T. It short, it just stores all types separatelly and supports operations visit, view, also you can change underlying containers for Ts..., it is std::vector by default https://github.com/kelbon/AnyAny/blob/main/include/variant_swarm.hpp
-
I wrote multidispatching(runtime overload resolution) in C++ (and its not std::variant)
Its part of my library for working with polymorphic types.
-
I wrote a library that emulates dyn traits from Rust in C++
Good idea selling Rust from behind enemy lines soldier! My god, your readme doesn't even mention Rust, wonderful!
-
Using final in C++ to improve performance
https://github.com/kelbon/AnyAny here you can see how it implemented, for example
What are some alternatives?
libfiber - The high performance c/c++ coroutine/fiber library for Linux/FreeBSD/MacOS/Windows, supporting select/poll/epoll/kqueue/iouring/iocp/windows GUI
tolc - A bindings compiler for C++
concurrencpp - Modern concurrency for C++. Tasks, executors, timers and C++20 coroutines to rule them all
dyno - Runtime polymorphism done right
libgo - Go-style concurrency in C++11
Kalman - Kalman Filter
coost - A tiny boost library in C++11.
tinyformat - Minimal, type safe printf replacement library for C++
kelcoro - C++20 coroutine library
f-stack - F-Stack is an user space network development kit with high performance based on DPDK, FreeBSD TCP/IP stack and coroutine API.
ReactivePlusPlus - Implementation of async observable/observer (Reactive Programming) in C++ with care about performance and templates in mind in ReactiveX approach