Leviathan: A Simple, Ultra-Fast EventLoop for Python asyncio
Hello Python community!
I’d like to introduce Leviathan, a custom EventLoop for Python’s asyncio built in Zig.
What My Project Does
Leviathan is designed to be:
Simple: A lightweight alternative for Python’s asyncio EventLoop.
Ultra-fast: Benchmarked to outperform existing EventLoops.
Flexible: Although it’s still in early development, it’s functional and can already be used in Python projects.
Target Audience
Leviathan is ideal for:
Developers who need high-performance asyncio-based applications.
Experimenters and contributors interested in alternative EventLoops or performance improvements in Python.
Comparison
Compared to Python’s default EventLoop (or alternatives like uvloop), Leviathan is written in Zig and focuses on:
Simplicity: A minimalistic codebase for easier debugging and understanding.
Speed: Initial benchmarks show improved performance, though more testing is needed.
Modern architecture: Leveraging Zig’s performance and safety features.
It’s still a work in progress, so some features and integrations are missing, but feedback is welcome as it evolves!
Feel free to check it out and share your thoughts: https://github.com/kython28/leviathan