Skip to content

HFTrader/hbthreads

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hbthreads

A coroutine-based reactor library with a few unique features:

  • simple to read for learning purposes: it uses very basic Modern C++ constructs that newcomers will find easy(ier) to grasp
  • it has code complexity first and performance second as goals. We do not compromise on these.
  • full documented, plenty of unit tests to learn
  • minimal, voluntarily incomplete so it can be easily extended
  • built-in intrusive pointer with integrated pool allocator (no new/malloc calls)
  • uncomplicated coroutine semantics based on very basic (and fast) stack primitives
  • event reactor with poll() and epoll() support (anyone still using select?)
  • coroutines embedded as reactor dispatch mechanism

Motivation

The primary motivation is to show that network/socket/coroutine programming does not need to be necessarily complicated. I hope also to provide some learning material for my charity blog at https://lucisqr.substack.com/

TODO

Please check our issues page on Github for our ever-changing list of requirements.

About

A simple coroutine-based reactor library

Resources

Stars

Watchers

Forks

Packages

No packages published