7 ms·
Bash on Balls: an MVC web framework for Bash, powered by netcat
- lysol 15y agoWhat a great name.
- dstein 15y ago"Bash with Balls" might've been better.
- jackpirate 15y agoThen it loses the Ruby on Rails reference.
- dstein 15y agoWhy is that important?
- gaustin 15y agoIt's funny on multiple levels. Physically abusing testicles and the Ruby on Rails reference being the two obvious ones. If you change the name as you suggest, then it's significantly less funny. Funny is an important component of fun.
- cpeterso 15y agoAnd bash can be a verb, too!
- laughinghan 15y agoIt basically pipes a fifo into netcat, and pipes the output of netcat to an HTTP parsing script, which calls router and model "methods" (which use Bash's built-in "namespacing") which runs the Bash templating language esh and pipes the the HTTP response back into the fifo.
- deleted 15y ago[deleted]
- ikbear 15y agoSo how can we use that? Is there any tutorial or examples?
- mrspeaker 15y agoI think it's best watched from a far.
- mattdeboard 15y agoReminds me of an old SNL skit: http://en.wikipedia.org/wiki/Happy_Fun_Ball#Warnings http://en.wikipedia.org/wiki/Happy_Fun_Ball#Warnings Do not taunt Bash on Balls. Bash on Balls may stick to certain types of skin.
- deleted 15y ago[deleted]
- chuhnk 15y agoI have nothing but praise for this piece of insanity. I love bash and truly enjoy watch it being taken beyond is intended use cases.
- jayferd 15y agoHa! Yeah, it's totally not done yet, but yes, certainly intended as a piece of insanity. With all seriousness, of course. The model layer still needs a good deal of work, and I think it might be fun to write up some tutorials or something :)
- voronoff 15y agoSo, I guess I need to finish writing the blog for BoB in BoB now.
- nzoschke 15y agoWow. Shell is my favorite programming language these days. For systems programming there's really no way to get terser or more accurate programs with a scripting language. Once they work, my shell scripts are essentially side effect free. That said, I use it for true pipelines. An MVC framework sounds insane. But I already learned some new Bash tricks from reading the code so keep up the madness!
- tathagatadg 15y agoThink I found true love ...
- tlrobinson 15y agoI wrote a CGI webserver and microframework in bash awhile ago too: https://github.com/tlrobinson/wwwoosh/ https://github.com/tlrobinson/wwwoosh/
- laughinghan 15y agoNice! Similar netcat trick, more Sinatra-y router. Way smaller, just one file. No templating language like esh, though.
- Calamitous 15y agoBut can it scale?
- patrickgzill 15y agoSounds painful to use.
- koenigdavidmj 15y agoSimilar to http://werc.cat-v.org/ http://werc.cat-v.org/
- dsimms 15y agoI wonder what would sed's framework should be called? Sed on Sails?
- laughinghan 15y agoDo it! who wants to take up Awk on Awnings?
- silentbicycle 15y agoGNU awk has some decent built-in networking functionality. So: gawk on goats
- beaker 15y agoJust looked over the source. This package is unkempt and extremely hairy in some places. I'd advise using Occam's razor over the whole thing, or at least running trim and tidy on the main parts.
- windexh8er 15y agoA swing and a miss.
- chopsueyar 15y agoI thought it was good.
- laughinghan 15y agoThat is almost always a valid criticism. We certainly agree and plan to do so. =)
- endgame 15y agoReminds me of nanoblogger: http://nanoblogger.sourceforge.net/ http://nanoblogger.sourceforge.net/
- dolphenstein 15y agoI prefer http://www.coboloncogs.org/ http://www.coboloncogs.org/
- pygy_ 15y agoDon't forget DOS on Dope: http://dod.codeplex.com/ http://dod.codeplex.com/ This one is a real MVC framework with scaffolding, written almost exclusively in batch scripts (IIRC they had to cheat a bit for the server code). All user code is also batch files. The site contains a few gems, like: In DoD we embrace the NoSQL movement and jump straight to the data-store of the future: a CSV file. or Does it scale? So far I haven't run into any performance problems. Whenever I've opened up a DoD website to several users, my hard drive tends to get wiped long before I discover performance issues.
- amritayannayak 15y agoVery original. I could have never thought that bash could be put to such use.
- deleted 15y ago[deleted]
- BjornW 15y agoThis is why I visit HN. Great hack!
- sneak 15y agoassert(can != should)