News for hackers. Stuff that matters.
Re:A tool for thought by amelius on Saturday June 04, 2016 @05:01AM (#11835591)
Also fix clojure startup time please. I want to be able to run it like fast Unix style commands such as ls and grep.
Re:A tool for thought by hashkb on Saturday June 04, 2016 @09:32AM (#11836248)
I think you're missing the point if you want this. Boot once, leave running, swap in new code, interact. A clj process (like most lisps) is alive and dynamic in more ways than you might be used to. There's no need to be constantly booting it.
Re:A tool for thought by fnordsensei on Saturday June 04, 2016 @05:04AM (#11835600)
Try Planck if you're on OS X: https://github.com/mfikes/planck
Re:A tool for thought by amelius on Saturday June 04, 2016 @05:46AM (#11835702)
Thanks, but i also need my applications to be portable :S
Re:A tool for thought by fnordsensei on Saturday June 04, 2016 @06:11AM (#11835753)
Alright, how about running it on Node then? I assume this is mostly for scripting, as long running servers and the like wouldn't need to be concerned with start-up times.
Re:A tool for thought by amelius on Saturday June 04, 2016 @06:26AM (#11835788)
That might be a solution, yes. But Node is a single-threaded engine, so I'm not sure if I can run parts of Clojure which use multiple threads, or if there are other restrictions.
Re:A tool for thought by Scarbutt on Saturday June 04, 2016 @05:20PM (#11838109)
Anything that uses the JVM will never (at least for a long time) achieve the startup time of cpython, cruby or node, less of ls and grep, so don't get your hopes up :) - that said, most of clojure's startup problems lie in clojure itself and not the JVM.
Re:A tool for thought by swannodette on Saturday June 04, 2016 @10:23AM (#11836429)
On modern hardware Clojure starts in under a second. I write simple support scripts in Clojure all the time.