4 ms·
Show HN: Bashcached – memcached built on bash and ncat
- tokenizerrr 10y agoCool. Why?
- ttul 10y agoBecause bash.
- OskarS 10y agoWhy ask "why" when the delicious question is "why not?"
- tokenizerrr 10y agoI do honestly think this is cool. The readme does not make it clear if this is a joke (which would be fine), or has any practical use whatsoever (which would be awesome).
- sbarre 10y agoPotentially as a dev-environment-only drop-in for an application that uses Memcached in production? It's not like full-blown Memcached is hard to set up locally, so this might be a bit of a stretch. ;-)
- lobo_tuerto 10y agoWould be good to see some benchmarks on this! :)
- c3RlcGhlbnI_ 10y agoThey won't look very good. I'm pretty sure the hash map data type that bash provides is of a fixed size, so performance will degrade pretty quickly as the number of cached items increases past that.
- make_now_just 10y agoSorry. Benchmarks is too wrong to use in production. In fact, it is x200~1000+ slower than real memcached.
- stonewhite 10y agoIt can be used with a relevant Bash HTTP server for minimal developer learning curve. https://github.com/avleen/bashttpd https://github.com/avleen/bashttpd
- thecopy 10y agoAwesome! These small tools built on top of standard GNU tools are so refreshing.
- tener 10y agoI wonder how many security holes this thing has. can != should.
- ardacinar 10y agoIt's obviously more oriented towards testing and stuff (as something compatible with memcached, but lighter) more than actual production use. Security holes are a bit less urgent in that case.
- NelsonMinar 10y agoLovely hackery. If I understand right, line 92 is reading and evaling commands off a private named pipe. https://github.com/MakeNowJust/bashcached/blob/master/bashcached#L92 https://github.com/MakeNowJust/bashcached/blob/master/bashca...
- yotamoron 10y agoSo cool!
- make_now_just 10y agoNow, it uses socat instead of ncat because socat is more simple than ncat and it can cut off lsof.