libxev VS v

Compare libxev vs v 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)

v

Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Supports automatic C => V translation. https://vlang.io (by vlang)
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 v
7 219
1,684 35,446
- 0.5%
7.9 9.9
7 days ago 5 days ago
Zig V
MIT License MIT License
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

v

Posts with mentions or reviews of v. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-24.
  • V Language Review (2023)
    6 projects | news.ycombinator.com | 24 Feb 2024
    Their site is clearly showing the language is in beta. The V documentation also states that autofree is WIP, and to use the GC instead. This isn't a corporate created language, but looks to be a true volunteer open source effort from people around the world.

    Their community, in comparison to others, even has their discussions open and open threads for criticism[1]. These

    [1]https://github.com/vlang/v/discussions/7610

  • Towards memory safety with ownership checks for C
    3 projects | news.ycombinator.com | 19 Feb 2024
    V also has this https://github.com/vlang/v/blob/master/doc/docs.md#embed_fil...
  • Vlang Release v0.4.4
    1 project | news.ycombinator.com | 16 Jan 2024
  • Vox: Upcoming open-source browser engine in V
    4 projects | news.ycombinator.com | 4 Jan 2024
  • Building a web blog in V &amp; SQLite
    1 project | /r/code | 29 Oct 2023
  • bultin_write_buf_to_fd_should_use_c_write
    1 project | /r/programmingcirclejerk | 25 Oct 2023
  • The V Machine Learning Roadmap and Ecosystem
    1 project | /r/programmingcirclejerk | 6 Oct 2023
  • Show HN: A new stdlib for Golang focusing on platform native support
    7 projects | news.ycombinator.com | 2 Oct 2023
    Goroutines was the selling point for me until they decided to introduce telemetry in their toolchain; that was what forced me to stop using Golang as a whole.

    About GC, I would say: if you implement C++'s RAII mechanism to replace garbage collection, then I believe this project will have a bright future.

    My final question is the following: how `pcz` compares to V language, from a syntax's perspective [1]?

    [1] https://github.com/vlang/v

  • Hopefully, the V developers will establish a relationship with Microsoft.
    1 project | /r/programmingcirclejerk | 4 Sep 2023
  • The V Programming Language 0.4
    6 projects | news.ycombinator.com | 28 Aug 2023
    V has the right to exist, have its supporters, and do things its own way. The creator and developers of V, from what I have seen, has always responded well to constructive criticism. Their language has discussions opened at their GitHub, unlike those for various other languages. They even have a thread for what people don't like and want improved about the language[1], again, something many other languages don't have.

    A lot of what was going on initially, was coming from obvious competitors, to include being uncivil, inflammatory, and insulting. The initial "criticism" was not so much that, but false accusations of the language being a scam, vaporware, fraud, or didn't really exist. To include attacks and jealousy about its funding and having supporters. This was not any kind of "valid" criticism, that the creator or contributors of the language could reason about.

    The "criticism" never died down, but rather after V was open-sourced and established itself on GitHub. The initial series of false accusations could not stand nor could the support it was getting be stopped. So, the rhetoric and targets shifted to whatever could be found to go after on the newly released alpha version of the language and its new website. In that new mix of what was being thrown at it, there were indeed some very valid criticisms, as can be found with any new language.

    Constructive and valid criticism, is not the same as insults, trolling, misinformation, rivalry, or false accusations. There is clearly a difference. It's disingenuous to pretend something from one group is the same as the other, or that the intent behind what is being done is not different.

    [1] https://github.com/vlang/v/discussions/7610

What are some alternatives?

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

unzig - Zig with Unused Variables

zig - General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.

async_io_uring - An event loop in Zig using io_uring and coroutines

go - The Go programming language

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

Odin - Odin Programming Language

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

Nim - Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).

http.zig - An HTTP/1.1 server for zig

sokol - minimal cross-platform standalone C headers

mach - zig game engine & graphics toolkit

hn-search - Hacker News Search

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