{"id":1377,"date":"2019-08-26T12:15:42","date_gmt":"2019-08-26T12:15:42","guid":{"rendered":"http:\/\/sdi.thoughtstorms.info\/?p=1377"},"modified":"2019-08-26T12:15:42","modified_gmt":"2019-08-26T12:15:42","slug":"clojure-shell","status":"publish","type":"post","link":"https:\/\/sdi.thoughtstorms.info\/?p=1377","title":{"rendered":"CLOjure SHell"},"content":{"rendered":"<p>I&#8217;ve been playing with <a href=\"https:\/\/github.com\/dundalek\/closh\">CloSH<\/a>, the Clojure Shell.<br \/>\nAnd I have to say, I&#8217;m sold.<br \/>\nIf you&#8217;d like to have the full power of Clojure. And to write shell scripts that look like this :<br \/>\n[cc lang=&#8221;clojure&#8221;]<br \/>\n(doseq [f (expand &#8220;*jpg&#8221;)<br \/>\n    (println f)<br \/>\n    (sh identify -format &#8220;%wx%h&#8221; (str f))<br \/>\n    (println))<br \/>\n[\/cc]<br \/>\nrather than in hard to remember shell-script language.<br \/>\nThen this sorts you out.<br \/>\nTab completion is a bit weirdly slow. And there are some glitches. But it basically works as you&#8217;d want \/ expect.<br \/>\nI&#8217;m now running it and, as of today, using it to do real things (eg. that batch process of analyzing jpegs, above).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been playing with CloSH, the Clojure Shell. And I have to say, I&#8217;m sold. If you&#8217;d like to have the full power of Clojure. And to write shell scripts that look like this : [cc lang=&#8221;clojure&#8221;] (doseq [f (expand &#8220;*jpg&#8221;) (println f) (sh identify -format &#8220;%wx%h&#8221; (str f)) (println)) [\/cc] rather than in hard [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[66,79],"class_list":["post-1377","post","type-post","status-publish","format-standard","hentry","category-tools","tag-clojure","tag-command-line"],"_links":{"self":[{"href":"https:\/\/sdi.thoughtstorms.info\/index.php?rest_route=\/wp\/v2\/posts\/1377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sdi.thoughtstorms.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sdi.thoughtstorms.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sdi.thoughtstorms.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sdi.thoughtstorms.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1377"}],"version-history":[{"count":0,"href":"https:\/\/sdi.thoughtstorms.info\/index.php?rest_route=\/wp\/v2\/posts\/1377\/revisions"}],"wp:attachment":[{"href":"https:\/\/sdi.thoughtstorms.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sdi.thoughtstorms.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sdi.thoughtstorms.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}