PhotonLibOS
tsmp
Our great sponsors
PhotonLibOS | tsmp | |
---|---|---|
6 | 8 | |
792 | 88 | |
4.3% | - | |
9.4 | 6.4 | |
4 days ago | 9 months ago | |
C++ | C++ | |
Apache License 2.0 | MIT License |
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
tsmp
-
A basic reflection-like system for editing object fields in a C++ game engine
I wrote a libclang based code generation tool and a support library to do static reflection and generate proxies for classes. You can check it out here https://github.com/fabian-jung/tsmp.
-
How to link against libclang-cpp on windows/cmake
I'm trying to port my reflection library tsmp to windows and struggle linking the introspection tool to libclang-cpp and llvm. I tried different routes with no success so far.
-
What have you brilliant guys done with custom Clang/LLVM AST plugin or Pass plugin?
I use an additional AST pass to generate type traits for static reflection. You can check it out here: tsmp
-
Tool Supported Meta Programming Lib v.1.0.1 release
I'm happy to announce the first release of my meta-programming library tsmp. The library allows you to iterate through the public fields and functions of classes and the values of enumeration types. The reflection is enabled by parsing the source tree in the background and generating special type-traits that are consumed by the library. The big advantage is that you do not need to litter your code with macros and it does support custom types that are handed into your APIs from your users.
-
C++ Show and Tell - September 2022
I'm working on a static reflection library called tsmp. It lets you iterate over structs and (typed) enums, as well as wrap class methods with proxies. The main goal is to be non intrusive (no macros) and i did it with the help of code generation in the background. I'm currently finishing a json helper and after that I'll polish the buildsystem and release the first version.
-
Tried my hand at creating a reflection library for C++17
I tried basically the same with my introspection library here. Maybe we can join forces.
-
struct2json converter in ~30 loc with tsmp
You can find the source code an the example in my repository here: https://github.com/fabian-jung/tsmp
-
On which hobby or side projects are you working on?
A static reflection library for C++20. It is work in progress and feedback is very much appreciated. https://github.com/fabian-jung/tsmp
What are some alternatives?
libfiber - The high performance c/c++ coroutine library for Linux/FreeBSD/MacOS/Windows, supporting select/poll/epoll/kqueue/iouring/iocp/windows GUI
metacpp - Meta C++ Library and Tool
concurrencpp - Modern concurrency for C++. Tasks, executors, timers and C++20 coroutines to rule them all
Soup - Soup is a build system that guarantees incremental build correctness and aims to simplify many aspects of developing shared code while maintaining best in class performance.
libgo - Go-style concurrency in C++11
bomba - C++ library for convenient implementation of RPC and serialisation
coost - A tiny boost library in C++11.
tomlplusplus - Header-only TOML config file parser and serializer for C++17.
tolc - A bindings compiler for C++
beryldb - BerylDB is a fully modular data structure data manager that can be used to store data as key-value entries. The server allows channel subscription and is optimized to be used as a cache repository. Supported structures include lists, sets, multimaps, and keys.
f-stack - F-Stack is an user space network development kit with high performance based on DPDK, FreeBSD TCP/IP stack and coroutine API.
clauf - A C interpreter developed live on YouTube