Skip to content

Release 0.10.0

Latest

Choose a tag to compare

@lihuiba lihuiba released this 20 Nov 02:42
fe63fab

What's Changed

Task scheduling and synchronization:

  • Work-stealing made production-ready, with comprehensive tests by @lihuiba in #1598
  • Global pooled coroutine stack allocator by @Coldwings in #1599
  • Golang-like go / channel / select, and SingleFlight by @Coldwings in #1108 and #1097
  • WorkPool: configurable ring_size via FlexRingChannel and configurable queue yield parameters, plus full usability outside a photon environment by @taoting1234 @MJY-HUST @lihuiba in #1314 and #1721
  • New and optimized lock primitives: queued spinlock (reimplemented on thread_local, no photon vcpu dependency), qrwlock for read-heavy workloads, contending mutex, and a faster spin lock by @lihuiba @Coldwings @EricHuangqx in #962 and #1131 and #992 and #1126
  • Scheduler fairness: a standby queue to avoid sleep-queue starvation, thread_yield_to() made less prone to starving threads, and better try_goto runq placement by @lihuiba @Coldwings in #979 and #982 and #1316

Event-driven I/O:

  • io_uring cascading engine for I/O, with immediate reaping after eager submit by @lihuiba in #848 and #1624
  • FUSE adaptor: sync and io_uring session-loop modes, compatibility with the FUSE low-level interface, and a splice API for all loop modes by @haolianglh in #835 and #850

Networking and HTTP:

  • Per-client dialers with injectable dialer / resolver by @Coldwings in #1572
  • Socket pool refactored, and connection idle expiration exposed for pooled connections by @lihuiba @Moonpuck in #1484 and #1734
  • Proxy support: per-operation proxy URL, plus userinfo in URL and proxy authentication by @pakkah @WaberZhuang in #1201 and #1183
  • TLS: ALPN client/server options and custom CA certificate support for TLSContext by @Coldwings @Moonpuck in #1088 and #1529
  • HTTP/2 frame and stream layer (H2Connection / H2Stream, both client- and server-initiated) with a Huffman codec by @lihuiba in #1524 and #1509 — standalone layer, not yet wired into http::Client / http::Server
  • Simple WebSocket implementation by @Coldwings in #1109
  • KCP binding by @lihuiba in #1541
  • Bounds against wire-driven allocation: maximum RPC request size, maximum WebSocket frame size, and HTTP client retry backoff capped at 5 seconds by @jfeng18 in #1307 and #1309 and #1250
  • vDMA: transportable shared-memory buffers with initiator/target roles by @hapulus798 in #801

Storage:

  • Three-tier LRU cache (active → inactive → idle), with an idle LRUContainer for full file cache and the rwlock moved from LruEntry to FileStore to cut memory usage by @xiaoyang-hhh in #1209 and #1182 and #1149
  • FileCachePool is now thread-safe for multi-vCPU access, with optional async cache-dir scan at init, eviction triggered by disk free space on the write path, manual eviction by filename, and a storeCacheTTLUsecs parameter by @xiaoyang-hhh in #1555 and #1590 and #1548 and #1137
  • extfs maintenance: resize_extfs and fsck_extfs interfaces, customizable buffer size, and a unique on-disk signature by @OsentryO @WaberZhuang in #1276 and #1660 and #1584
  • Virtual block device servers: NBD, TCMU, ublk, vhost-user and VDUSE backends behind a common IBlkDevice / BlkConfig interface, with vduse-cli and vhost-user-cli tools by @lihuiba in #1668
  • SPDK integration: bdev backend, NVMe wrapper for local SSDs, and a bdev module with RPC server by @hapulus798 in #838 and #845 and #860

Ecosystem (OSS):

Common utilities:

  • Delegate family: multi-delegate groups to a same object, TempDelegate, and Delegate<> support in thread_create() / thread_usleep_defer() / wait_defer() by @Coldwings @lihuiba in #981 and #1234 and #1168
  • Lock-free queues: flexible-size LockfreeQueue, user-definable MPMC mark size, tuned MPMCRingQueue layout, isolated unpublished reservations in WorkPool consumers, and a lock-free park stack for RingChannel notification by @Coldwings @MJY-HUST in #905 and #1690 and #1649
  • New utilities: xxhash32, string-keyed set / unordered_set, and common/intrusive_list.h (moved from thread/list.h) by @lihuiba in #1232 and #1207
  • simple_dom: .ini support, document node order preserved via an index, a type system, and unmodified (unpatched) parser dependencies by @lihuiba @Coldwings in #1692
  • simple_dom no longer depends on a patched rapidjson; downstream builds carrying rapidjson.patch need updating by @Coldwings in #1692
  • Checksum rework: compile-time generated tables, a full combine / series / trim family for crc32c and crc64ecma (hardware and software paths), and simplified SIMD by @Coldwings @lihuiba in #1160 and #1111 and #1118 and #1147

Logging:

  • alog: colored output with integer color codes, optimized async output, thread_local state, buffer hidden inside __log__(), always-logged items, revised startup log rotation, and LOG_ERROR_RETURN / LOG_ERRNO_RETURN able to enforce setting errno by @Coldwings @lihuiba @EricHuangqx @yyaoling in #824 and #1175 and #1189 and #983

Platform, build and CI:

  • CMake modernized around a declarative module registry, with new options PHOTON_ENABLE_BLK, PHOTON_ENABLE_KCP, PHOTON_ENABLE_RESIZE and PHOTON_ENABLE_SPDK by @Coldwings in #1563
  • x86-64 baseline raised to v2 (AVX-512 disabled on macOS) and clang 21 compatibility by @lihuiba in #1526 and #1187
  • CI: GCC 13/14 jobs, migration to ARC runners on an ACS cluster, liburing 2.15, macos-15 images, and a header-independence check for every public header by @Coldwings @lihuiba in #1101 and #1525 and #1729
  • Backport automation: auto-PR action with an asymmetric anti-loop mechanism, bugfix label gate, conflict handling, need-backport split, and cascading prefix stripping by @Coldwings in #1301 and #1410 and #1630
  • Documentation: new module docs (common, delegate_callback, rpc, ecosystem overview) indexed from AGENTS.md, plus the PPoPP paper, cache architecture and CRC notes by @lihuiba in #1236 and #1159

New Contributors

Full Changelog: v0.9.0...v0.10.0