libxev VS Tornado

Compare libxev vs Tornado and see what are their differences.

libxev

libxev is a cross-platform, high-performance event loop that provides abstractions for non-blocking IO, timers, events, and more and works on Linux (io_uring or epoll), macOS (kqueue), and Wasm + WASI. Available as both a Zig and C API. (by mitchellh)

Tornado

Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed. (by tornadoweb)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
libxev Tornado
7 14
1,684 21,579
- 0.3%
7.9 6.9
7 days ago 5 days ago
Zig Python
MIT License Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

libxev

Posts with mentions or reviews of libxev. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-06-15.
  • Leveraging Zig's Allocators
    2 projects | news.ycombinator.com | 15 Jun 2024
    It scales to complex examples as well. Retained memory would be handled with its own allocator: for a large data structure like an LRU cache, one would initialize it with a pointer to the allocator, and use that internally to manage the memory.

    Blocking (or rather, non-blocking, which is clearly what you meant) IO is a different story. Zig had an async system, but it had problems and got removed a couple point releases ago. There's libxev[0] for evented programs, from Mitchell Hashimoto. It's not mature yet but it offers a good solution to single-threaded concurrency and non-blocking IO.

    I don't think Zig is the best choice for multithreaded programs, however, unless they're carefully engineered to share little to no memory (using message passing, for instance). You'd have to take care of locking and atomic ops manually, and unlike memory bugs, Zig doesn't have a lot of built-in support for catching problems with that.

    A language with manual memory allocation isn't going to be the language of choice for writing web servers, for pretty obvious reasons. But for an application like squeezing the best performance out of a resource-constrained environment, the tradeoffs start to make sense.

    [0]: https://github.com/mitchellh/libxev

  • libxev: A cross-platform, high-performance event loop
    4 projects | news.ycombinator.com | 17 Apr 2024
    io_uring support is obviously great & excellent, fulfills the "high performance" part well.

    i was not expecting "Wasm + WASI" support at all. that's very cool. implementation is wasi_poll.zig (https://github.com/mitchellh/libxev/blob/main/src/backend/wa...). not to be unkind, but this makes me wonder very much if WASI is already missing the mark, if polling is the solution offered.

    gotta say, this is some very understandable clean code. further enhancing my sense that i really ought be playing with zig.

  • Show HN: Async tasks in 350 lines of C
    5 projects | news.ycombinator.com | 11 Mar 2024
  • Epoll: The API that powers the modern internet (2022)
    7 projects | news.ycombinator.com | 11 Jan 2024
    You might be interested in a pure Zig implementation of these primitives by Mitchell in his libxev library: https://github.com/mitchellh/libxev
  • Zig: The Modern Alternative to C
    12 projects | news.ycombinator.com | 10 Mar 2023
    https://github.com/mitchellh/libxev

    - one from the Tigerbeetle DB

  • Libxev: A cross-platform, high-performance event loop
    1 project | news.ycombinator.com | 25 Jan 2023

Tornado

Posts with mentions or reviews of Tornado. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-11.

What are some alternatives?

When comparing libxev and Tornado you can also consider the following projects:

unzig - Zig with Unused Variables

fastapi - FastAPI framework, high performance, easy to learn, fast to code, ready for production

async_io_uring - An event loop in Zig using io_uring and coroutines

Flask - The Python micro framework for building web applications.

sokol-tools - Command line tools for use with sokol headers

AIOHTTP - Asynchronous HTTP client/server framework for asyncio and Python

zig-pico - Not so scuffed Zig project for using the Raspberry Pi Pico SDK

Django - The Web framework for perfectionists with deadlines.

http.zig - An HTTP/1.1 server for zig

CherryPy - CherryPy is a pythonic, object-oriented HTTP framework. https://cherrypy.dev

mach - zig game engine & graphics toolkit

sanic - Accelerate your web app development | Build fast. Run fast.

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured