busybox VS stshell

Compare busybox vs stshell and see what are their differences.

busybox

The Swiss Army Knife of Embedded Linux - private tree (by brgl)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
busybox stshell
6 2
55 0
- -
0.0 0.0
about 5 years ago over 2 years ago
C Smalltalk
GNU General Public License v3.0 or later -
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.

busybox

Posts with mentions or reviews of busybox. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-04-25.
  • Sorry if this is too political.
    1 project | /r/linuxmasterrace | 22 Dec 2022
    Well.
  • Guide: Hush Shell-Scripting Language
    23 projects | news.ycombinator.com | 25 Apr 2022
  • There's a tool to produce a diff-like output from c code?
    1 project | /r/C_Programming | 1 Mar 2022
    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) ?
    2 projects | /r/embedded | 16 Jan 2022
    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
    3 projects | news.ycombinator.com | 23 Sep 2021
    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!
    3 projects | dev.to | 25 Feb 2021
    This is almost the same implementation you see in busybox's id command source

stshell

Posts with mentions or reviews of stshell. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-08-31.
  • Evennia a MUD/Mu* Creation System
    6 projects | news.ycombinator.com | 31 Aug 2023
    It's slowly getting traction - Kotlin on Android has a "live update" feature (in development, only available in alpha release), for example. Multiple less mainstream languages also offer the feature. Nim got it in the last major release, for example. V has it as one of the base features. Erlang and Elixir had it since forever. Common Lisp as well. Racket and Clojure are a little more limited than CL, but also support it. Many interpreted languages offer some degree of this, either by default (JavaScript) or as a library/package (Python, Ruby).

    In general, programming language features take about 20 to 30 years to go from obscure niche implementation into the mainstream. Look at lambdas - anonymous function literals - they're now everywhere, including Java and C++. Ten years ago, though, only some scripting languages had it. The feature itself is as old as the bones of the Earth (LISP, 1960, 63 years old). The same is true for many other "advanced" features. I think this is tied to generational changes - each generation of programmers has a chance to bring one or two lesser known features into mainstream, and then they're content with that. Other features have to wait for the next generation to discover them.

    As for Smalltalk - I made a mistake and based the implementation on GNU Smalltalk, which is unmaintained. I should have gone with Smalltalk/X, Visual Works, or (begrudgingly) Pharo (or Cuis). I started the project as yet another attempt at making a MUD, but then changed focus to making a productive command-line-based programming env for Smalltalk. Then I changed my mind again and tried to make it into a usable shell. Here's the project: https://github.com/piotrklibert/stshell/ The screenshots focus on the REPL/shell side, but in the source you'll see things like "server", "player", and "world". There are a few locations IIRC and you can move your character between them still. It was an interesting project, but without a clear vision of what it should be it lost focus and I left it to rot after a while :(

  • Guide: Hush Shell-Scripting Language
    23 projects | news.ycombinator.com | 25 Apr 2022
    > We need better shells.

    Obviously. I don't think this is the most important missing part, though. I would say it differently: we need way, way better REPLs.

    IPython is an example of a REPL that's passable as a shell. It can run in a terminal and has a GUI version based on Qt, which allows displaying images inline. You can drop into a "real" shell with a single `!` character (you get pipes, output capture, and (Python) variable interpolation), and it even has some syntactic shortcuts for the parts where Python's own syntax is irritatingly verbose. If you like Python, then IPython can be your day-to-day shell right now. You just need to remember not to start ncurses programs from within qtconsole (works ok in terminal). I used it for a few years when I was forced to work on Windows. Before my time, I heard it was popular to use tclsh as a shell on Windows.

    I think that it proves that almost any language can be used as a shell, as long as its REPL is as rich and featureful enough. Since you can use Python as a shell, which as a language is not exactly the epitome of terseness and expressiveness, you could definitely make do with almost any other interpreted language, too. The problem is that very, very few languages have REPLs that are anywhere near IPython. It's so bad sometimes that you're advised to use `rlwrap` just to get basic line editing and history!

    I've been working on a new shell based on GNU Smalltalk[1]. I really like the syntax - or lack of thereof - and being able to dump an image at any time seemed like a good idea. The only change I needed was to add the `|>` pseudo-operator, which puts what's on the left into parens. Being able to introspect the running session was my primary motivation: I wanted to make the shell and the whole environment as discoverable as possible. I wrote some code for that and then realized that the default REPL uses readline from C, so it freezes the entire VM when waiting for input (including all background threads). My workaround was to set up a socket server and connect to it via rlwrapped telnet...

    Anyway, I think "do we need a new shell" is the wrong question; instead, we should focus on improving REPLs to the point where a separate shell becomes unnecessary.

    [1] https://github.com/piotrklibert/stshell

What are some alternatives?

When comparing busybox and stshell you can also consider the following projects:

barebox - The barebox bootloader - Mirror of ssh://[email protected]/barebox

readline - Pure Go reimplimentation of readline

gcc

lash - A modern, robust glue language

kaniko - Build Container Images In Kubernetes

Wormies-AU-Helpers - Helper scripts to make maintaining packages using AU even easier

hush - Hush is a unix shell based on the Lua programming language

u-boot - "Das U-Boot" Source Tree

hush - hush (a Bourne-style shell) for the GNO multitasking environment on the Apple IIgs

oil - Oils is our upgrade path from bash to a better language and runtime. It's also for Python and JavaScript users who avoid shell!