NewsCrawler.org

blood: shell that outperforms bash, fish and elvish by up to 120x

Robust, reliable and performant shell. Contribute to navid-m/blood development by creating an account on GitHub.
Image: Reddit

blood is a shell, a program that runs commands, built for performance, reliability and ergonomics. It is written in the Spectre Programming Language, and the project says it outperforms ksh and dash on several benchmarks and outperforms Elvish and Fish by up to 120x on general purpose tasks, as per Shell Arena. In blood, the shell and the language are one: shell commands are values, strings interpolate, and loops hold real data, so there are no quoting layers to get tangled with. Parallelism is a keyword, so every iteration of a parallel loop runs as a child process, with no thread pools or async/await. The command blood -translate-sh converts one shell script, or a directory tree of scripts, to blood, and by default writes each new file next to its source with .sh or .bash replaced by .bx.

Read the original github.comDiscussion

Sources

Terms

  1. shell — A program that lets you type and run commands, and that can also run scripts.
  2. quoting layers — The extra rules for writing quote marks in shell commands so that spaces and special characters are read correctly.
  3. child process — A program started by another program, which runs separately from it.

Published: First seen: Читать по-русски

Open as a page