libxev VS kv-bash

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

kv-bash

key/value database written in bash script (permanent variables in shell) (by damphat)
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 kv-bash
7 1
1,684 100
- -
7.9 10.0
7 days ago over 1 year ago
Zig Shell
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

kv-bash

Posts with mentions or reviews of kv-bash. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-03-10.
  • Zig: The Modern Alternative to C
    12 projects | news.ycombinator.com | 10 Mar 2023
    In a way I feel that everything is an alternative to everything and at the same time nothing is.

    As you said it all depends on the circumstances. But I don't really see Zig competing with Go. They both can do mostly the same things, but they both approach them from quite a different sides.

    For example bash is being used in:

    - gaming (https://github.com/JosefZIla/bash2048)

    - web apps (https://github.com/avleen/bashttpd)

    - networking

    - CLIs

    - distributed systems (https://github.com/frameable/aviary.sh)

    - crypto (https://armedia.com/blog/blockchain-program-written-bash/ https://github.com/grondilu/bitcoin-bash-tools)

    - systems programming (https://github.com/damphat/kv-bash)

    - language tooling

    Some of those make more sense than others. However we all talk about a mythical general case. For every language there are niches that are covered by it more significantly. For Go it would probably be web backend. It doesn't mean it is only suited to this one niche, it is used in everything. In general it is used there more. I don't believe that Rust sees the most use in the same niche to the same order that Go sees it.

    Is Rust or Zig an alternative to php, awk or Lisp? In practice I don't really think so.

    I guess it all depends on one's definition of "alternative". I don't think that a statistical Go programmer would see Zig as a real alternative. Statistical C programmer might see it as a Go alternative, but that probably would not be a question he would ask.

What are some alternatives?

When comparing libxev and kv-bash you can also consider the following projects:

unzig - Zig with Unused Variables

aviary.sh - Minimal distributed configuration management in bash

async_io_uring - An event loop in Zig using io_uring and coroutines

bash2048 - Bash implementation of 2048 game

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

bitcoin-bash-tools - Set of bitcoin-related bash functions

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

http.zig - An HTTP/1.1 server for zig

mach - zig game engine & graphics toolkit

bashttpd - A web server written in bash

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