moreutils
zig
moreutils | zig | |
---|---|---|
19 | 816 | |
2 | 30,773 | |
- | 3.2% | |
0.0 | 10.0 | |
over 1 year ago | 4 days ago | |
Shell | Zig | |
GNU General Public License v3.0 only | MIT License |
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.
moreutils
-
Pipexec – Handling pipe of commands like a single command
I use mutlios and even I'm not that attached to it. The majority of my use is combined with process substitution, and could be replaced with common-ish tools like pee¹ or pipexec for more complex cases. The only occasion when I'm thankful for it is if I want to use a shell function as a target, but there are workarounds for that too.
As a noclobber user the footgun is largely hidden to me, but I feel its presence. multios without globbing support would be less useful, but would still work for most of my use cases. Scanning my shell history I see various cases of relying on zsh's ability to apply sorting and filtering to globs with multios' input redirection, but only a couple where I want that in output redirection.
Even with multios unset the behaviour is different between zsh and bash. For example, multios disables all the expansion, so zsh behaves like more like dash with ': >t{1,2}' by creating a file instead producing an error like bash does.
[FWIW, I google'd multiios to link the option in original comment. It really feels to me like it needs double-i, and I read the single i name the same way you do.]
---
I'd be one of those people whose desire for dgsh-like functionality wanes. If it was slight DSL that I could "upgrade" pipelines to I'd probably use it, but not enough to warrant working on it or switching other tooling to support it.
The end of result of this morning's pipeline was breaking my jobs up, and applying some judicious use of nq² to keep track of it. I'd follow your advice and move on to more specialist tools if the job grew significantly or if it became a regular occurrence.
¹ https://joeyh.name/code/moreutils/
² https://git.vuxu.org/nq/about/
- Show HN: Simple Script for Enhanced LLM Interaction in Vim
-
The shell and its crappy handling of whitespace
For filesystem operations like batch renames at least, I am usually happy with `vidir` (part of `moreutils`: https://joeyh.name/code/moreutils/).
`vidir [path]` will open an editor with the given directory as buffer contents.
-
Show HN: LineSelect, shell utility to interactively select lines in a pipeline
See also: "vipe" from the excellent "moreutils" package: https://joeyh.name/code/moreutils/
There are some other gems in this package. The ones I find myself using regularly are 'ts' and 'sponge' but I'm sure the useful subset depends a lot on the kind of work you are doing
-
Vim Keybindings Everywhere – The Ultimate List
Joey Hess' excellent moreutils¹ comes with vipe which is a generalised solution for these types of tasks. It allows you to run whatever $EDITOR you've configured mid-pipe, making it possible to work your changes up in an interactive editor session. Useful for those of us not smart enough to write up our changes as a series of -c arguments ;)
(It fixes the vim issue by virtue of using a temporary file to do the magic)
¹ https://joeyh.name/code/moreutils/
-
vimv has not only changed my workflow, it changed my life
Sounds like `vidir` from moreutils.
-
What "nice-to-have" CLI tools do you know?
vidir and a few others from moreutils
-
rtl_fm - record and also output audio on a speaker (Raspberry pi?)
Use pee (yes, I know) from moreutils. Something like:
-
How to re-order the strings of a filename in bulk?
I would use vidir from moreutils. Then you can do any edits and play around with any regexes you want!
-
Should i learn file management using terminal?
For bulk file renaming, I recommend vidir from moreutils - it lets you rename everything in a directory with your $EDITOR (vim being the default).
zig
-
Memory-mapped IO registers in Zig. (2021)
There is an issue proposing this approach: https://github.com/ziglang/zig/issues/4284
- Zig Programming Language
- Zig Language 0.12 Release
-
Zig 0.12.0 Release Notes
https://github.com/ziglang/zig/issues/224
e.g.:
> > When debugging/prototyping, it's useful to comment out a line without having to refactor, e.g.
-
How to Write a PHP Extension with Zig?
When writing code in a scripting language, sometimes you need that extra bit of performance (or maybe an async feature from Zig).
-
Bun - The One Tool for All Your JavaScript/Typescript Project's Needs?
NodeJS is by no means a slow runtime, it wouldn’t be so popular if it was. But compared to Bun, it’s slow. Bun was built from the ground up with speed in mind, using both JavascriptCore and Zig. The Bun team spent an enormous amount of time and energy trying to make Bun fast, including lots of profiling, benchmarking, and optimizations.
-
Bun 1.1
ntdll.dll!RtlUserThreadStart()
There are valid reasons to use APIs from NTDLL. Where I disagree with zig#1840 is the idea that it is always better to use NTDLL versions of API. Every other software ecosystem uses the standard Win32 APIs and diverging from that without a good reason seems like a good way to have unexpected behavior. One concrete example is most users and programmers expect Windows to redirect some file system paths when running on WOW64. But this is implemented in Kernel32, not ntdll.
https://github.com/ziglang/zig/issues/11894
- Zig, Rust, and Other Languages
-
Nanos – A Unikernel
Zig also has an IRC channel on libera (#zig) that is moderated by Andrew Kelley.[1]
[1] https://github.com/ziglang/zig/wiki/Community
- Ask HN: What Underrated Open Source Project Deserves More Recognition?
What are some alternatives?
pipe-rename - Rename your files using your favorite text editor
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).
atomicxt
Odin - Odin Programming Language
map.xplr - Visually inspect and interactively execute batch commands using xplr
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
lineselect - Shell utility to interactively select lines from stdin
rust - Empowering everyone to build reliable and efficient software.
fstring - Make searching for text strings easier on Linux :)
go - The Go programming language
vidir - edit directory in $EDITOR (better than vim . with netrw)
ssr-proxy-js - A Server-Side Rendering Proxy focused on customization and flexibility!