bashttpd
Bash-web-server
bashttpd | Bash-web-server | |
---|---|---|
6 | 10 | |
1,492 | 923 | |
- | - | |
0.0 | 6.9 | |
over 4 years ago | 2 months ago | |
Shell | Shell | |
MIT License | 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.
bashttpd
-
[DISCUSSION] What if BASH could be used as a web server interpreter?
I've had https://github.com/avleen/bashttpd/blob/master/bashttpd bookmarked for a while... not sure if it address:
-
Zig: The Modern Alternative to C
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.
-
Examples of cool || non-standard || "simply insane" bash stuff?
https://github.com/avleen/bashttpd - httpd implementation in bash
- Bashing the Bash – Replacing Shell Scripts with Python
-
Did you know? Perl is the tenth most in-demand programming language in 2021.
Even bash, awk, and sed can do it.
- An HTTP server in a single .c file
Bash-web-server
- Pure Bash Web Server
-
A simple web server written in Awk
Actually, bash has now a loadable builtin to listen on tcp socket. I wrote a script and the patch. https://github.com/dzove855/Bash-web-server
The patch is now included in bash 5.2
- [DISCUSSION] What if BASH could be used as a web server interpreter?
- Bash-Web-Server
- Show HN: A (very) simple web server in Bash
-
Bashing the Bash – Replacing Shell Scripts with Python
> For example, there is an implementation of an HTTP daemon written purely in bash[2]. Once again-- terrible idea, but great execution.
It's not pure bash, as it relies on netcat or socat plus some external programs (ls, tree, cat, date).
There does exist a pure bash httpd though. It relies on a loadable builtin (from the bash tree though not built by default).
https://github.com/dzove855/Bash-web-server
- A bash web server, no socat, netcat, etc.. Juste loadable builtins
- J’espère que le fisc regarde Instagram!
- A purely bash web server, no socat, netcat, etc...
- Show HN: A pure bash web server. No netcat, socat, etc.
What are some alternatives?
darkhttpd - When you need a web server in a hurry.
bash-server - A http server in bash
awk-webserver - A simple webserver, written in GNU awk, that supports directory listing and download of file from the directory where it is launched
sedmario - NES Super Mario Bros level 1 written in pure sed!
sed-httpd - HTTP daemon written in SED
subb - a wrapper module for python subprocess
uip - The historical uIP sources
xonsh - :shell: Python-powered, cross-platform, Unix-gazing shell.
stoneknifeforth - a tiny self-hosted Forth implementation
yosh
PiBluetoothMidSetup - Turn a raspberry pi into a Bluetooth Midi device