coro-chat

Playing with the C++17 Coroutines TS to implement a simple chat server (by heavenlake)

Coro-chat Alternatives

Similar projects and alternatives to coro-chat

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better coro-chat alternative or higher similarity.

coro-chat reviews and mentions

Posts with mentions or reviews of coro-chat. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-02-22.
  • David Mazieres' tutorial and take on C++20 coroutines
    5 projects | news.ycombinator.com | 22 Feb 2021
    Stackless means when you resume a coroutine you're still using the same OS thread stack. Coroutine contexts/activation records are conceptually heap allocated (although in some cases that can be optimized away).

    You can use coroutines for what you say, but there are no execution contexts (like a thread pool or an event loop) in C++20 standard library in which to execute coroutines, so to async I/O you need to use a library or DIY. This will come later as part of the Executors proposal.

    You can currently use C++ native coroutines withe ASIO library, but this is probably subject to quite a bit of API churn in the future:

    https://www.boost.org/doc/libs/1_75_0/doc/html/boost_asio/ov...

    You can also wrap things like ASIO yourself. I did this in 2018 when I was learning about C++ coroutines to create a simple telnet based chatroom:

    https://github.com/heavenlake/coro-chat/blob/master/chat.cpp

    Note that this code is likely garbage by todays standards.

Stats

Basic coro-chat repo stats
1
0
0.0
over 4 years ago

The primary programming language of coro-chat is C++.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com