busybox
hush
Our great sponsors
busybox | hush | |
---|---|---|
6 | 7 | |
55 | 626 | |
- | 0.5% | |
0.0 | 2.9 | |
about 5 years ago | 8 months ago | |
C | Rust | |
GNU General Public License v3.0 or later | 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.
busybox
-
Sorry if this is too political.
Well.
- Guide: Hush Shell-Scripting Language
-
There's a tool to produce a diff-like output from c code?
Maybe you have better luck with the Busybox diff: https://github.com/brgl/busybox/blob/master/editors/diff.c
-
How could /dev/mem Linux directory be used in order to control the peripherals (MM/IO) ?
You can use busybox devmem to debug. The source code gives you an idea of how it works to write your own code.
-
Programming Puzzles
You can fairly easily spot things like recursive search tree implementations in the wild.
Also, compilers and interpreters often recursion, and that goes to as many levels as the program requires.
Have you heard of a "recursive descent parser"? GNU C++ uses one (a huge source file written in C++, well over a megabyte long). This will recurse as deeply as the program's nesting goes; C++ programs often go to more than three levels of nesting. (There are some non-recursive hacks mixed in there, like some operator precedence parsing involving an explicit stack: Shunting-Yard or similar?)
https://github.com/gcc-mirror/gcc/blob/master/gcc/cp/parser....
Let's switch over to embedded. Have you heard of BusyBox? BusyBox provides scaled down system utilities for embedded systems. It is very widely used.
BusyBox's "libb" internal library contains a function called "recursive_action" for walking file system trees. This is actually recursive, and frequently goes more than three levels deep in actual use:
https://github.com/brgl/busybox/blob/master/libbb/recursive_...
This is used by BusyBox programs like mdev (udev replacement) lsusb, lspci, chmod, ...
Also, HN isn't a good place to exhibit Lisp condescension/ignorance.
-
Go & secondary groups: a kaniko adventure!
This is almost the same implementation you see in busybox's id command source
hush
-
Why should I care wether my shell is POSIX compliant?
If we're detaching from POSIX, why not get more wild? Why not xonsh or something? Also I found this lua inspired shell which could be cool: https://github.com/hush-shell/hush
-
Working with JSON in traditional and next-gen shells like Elvish, NGS, Nushell, Oil, PowerShell and even old-school Bash and Windows Command Prompt
Maybe hush (https://github.com/hush-shell/hush) should be included in this list.
- Hush – Unix shell based on the Lua programming language
- Hush - unix shell based on the Lua programming language
-
Guide: Hush Shell-Scripting Language
While being extremely small is a worthy goal, I suppose the aim of Hush is to make writing larger shell scripts easier and less error-prone. It's more for the niche of Perl of old than of minimal shells like ash.
For a very limited device, a very limited shell like that in Busybox is sufficient, because it likely does not need large shell scripts, or a lot of interactive work.
Looking at [1], current Hush is under 700k, which is still way smaller than Python or Perl, with much of its expressiveness.
[1]: https://github.com/hush-shell/hush/releases
-
Announcing Hush, a modern shell scripting language
Official guide: https://hush-shell.github.io/ Repository: https://github.com/hush-shell/hush
-
If you're not using a lexer generator for your compiler, why?
Yes, you can check the code here: https://github.com/gahag/hush
What are some alternatives?
barebox - The barebox bootloader - Mirror of ssh://[email protected]/barebox
busybox - BusyBox mirror
gcc
busybox - Docker Official Image packaging for Busybox
kaniko - Build Container Images In Kubernetes
hush - hush (a Bourne-style shell) for the GNO multitasking environment on the Apple IIgs
stshell
u-boot - "Das U-Boot" Source Tree
logos - Create ridiculously fast Lexers
parsegen - An LR parser generator, implemented as a proc macro