4 ms·
Unix tools are composable. Functional languages (e.g. Clojure) are all about composability. While bash might be a reasonable glue language, I wonder why Clojure
by nine_k 12y ago
Unix tools are composable. Functional languages (e.g. Clojure) are all about composability. While bash might be a reasonable glue language, I wonder why Clojure wouldn't be — and it could probably be as compact, if not terser.
The problem of the Hadoop approach is that the overhead of parallelization over multiple hosts is serious, and the task fits one machine neatly. A few GBs of data can and should be processed on one node; Hadoop is for terabytes.
- eru 12y ago> [...] I wonder why Clojure wouldn't be — and it could probably be as compact, if not terser. Because Clojure is a goo language, that question depends mostly on the libraries available for Clojure. (Whereas some other languages are worse at gluing, so libraries will only help you so far.)
- rakoo 12y agoThat's if you want to do everything in Clojure, but if Clojure were to be used as a glue language, it seems to me it has a clear syntax to do it : http://clojuredocs.org/clojure.java.shell/sh http://clojuredocs.org/clojure.java.shell/sh Someone even went further to make it more useful: https://github.com/Raynes/conch https://github.com/Raynes/conch
- konradb 12y agoI'd never heard of conch, thanks loads for the reference; really useful.