# photonlibos **Repository Path**: mirrors/photonlibos ## Basic Information - **Project Name**: photonlibos - **Description**: PhotonLibOS 是阿里巴巴开源的高性能 c++ 开发框架 - **Primary Language**: C/C++ - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: https://www.oschina.net/p/photonlibos - **GVP Project**: No ## Statistics - **Stars**: 13 - **Forks**: 7 - **Created**: 2022-06-20 - **Last Updated**: 2025-08-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PhotonLibOS [![Linux x86_64](https://github.com/alibaba/PhotonLibOS/actions/workflows/ci.linux.x86_64.yml/badge.svg?branch=main)](https://github.com/alibaba/PhotonLibOS/actions/workflows/ci.linux.x86_64.yml) [![Linux ARM](https://github.com/alibaba/PhotonLibOS/actions/workflows/ci.linux.arm.yml/badge.svg)](https://github.com/alibaba/PhotonLibOS/actions/workflows/ci.linux.arm.yml) [![macOS x86_64](https://github.com/alibaba/PhotonLibOS/actions/workflows/ci.macos.x86_64.yml/badge.svg)](https://github.com/alibaba/PhotonLibOS/actions/workflows/ci.macos.x86_64.yml) [![macOS ARM](https://github.com/alibaba/PhotonLibOS/actions/workflows/ci.macos.arm.yml/badge.svg)](https://github.com/alibaba/PhotonLibOS/actions/workflows/ci.macos.arm.yml) [PhotonlibOS.github.io](https://photonlibos.github.io) ## What's New * Photon has been included in [awesome-cpp](https://github.com/fffaraz/awesome-cpp). * Version 0.9 has been released in April 2025. * We present an article to illustrate the theory of Photon's coroutine. [Stackful Coroutine Made Fast](https://photonlibos.github.io/blog/stackful-coroutine-made-fast) * Version 0.8 has been released in August 2024 * Feb 2024,[中文文档](https://photonlibos.github.io/cn/docs/category/introduction)在官网上线了 * Since 0.7, Photon will use release branches to enhance the reliability of software delivery. Bugfix will be merged into a stable release at first, then to higher release versions, and finally main. * Since version 0.6, Photon can run with a userspace TCP/IP stack on top of `DPDK`. [En](https://developer.aliyun.com/article/1208512) / [中文](https://developer.aliyun.com/article/1208390). * How to transform `RocksDB` from multi-threads to coroutines by only 200 lines of code? [En](https://github.com/facebook/rocksdb/issues/11017) / [中文](https://developer.aliyun.com/article/1093864).
Click to show more history...

* Version 0.5 is released. Except for various performance improvements, including spinlock, context switch, and new run queue for coroutine scheduling, we have re-implemented the HTTP module so that there is no `boost` dependency anymore. * Version 0.4 has come, bringing us these three major features: 1. Support coroutine local variables. Similar to the C++11 `thread_local` keyword. See [doc](doc/thread-local.md). 2. Support running on macOS platform, both Intel x86_64 and Apple M1 included. 3. Support LLVM Clang/Apple Clang/GCC compilers. * Photon 0.3 was released on 2 Sep 2022. Except for bug fixes and improvements, a new `photon_std` namespace is added. Developers can search for `std::thread`, `std::mutex` in their own projects, and replace them all into the equivalents of `photon_std::`. It's a quick way to transform thread-based programs to coroutine-based ones. * Photon 0.2 was released on 28 Jul 2022. This release was mainly focused on network socket, security context and multi-vcpu support. We re-worked the `WorkPool` so it's more friendly now to write multi-vcpu programs. * Made the first tag on 27 Jul 2022. Fix the compatibility for ARM CPU. Throughly compared the TCP echo server performance with other libs.

## Community Join Slack: [link](https://join.slack.com/t/photonlibos/shared_invite/zt-25wauq8g1-iK_oHMrXetcvWNNhIt8Nkg) Join DingTalk group: 55690000272