Re:First steps with Scala, say goodbye to bash scripts…
by jcdavis on Thursday January 12, 2012 @01:39AM
(#3455295)
A nice article, but its worth mentioning that scala for bash script usage is a non-starter for most stuff you might use bash for because JVM startup overhead, even for the client VM, is so substantial
[ Parent
| on HN ]
Re:First steps with Scala, say goodbye to bash scripts…
by gaius on Thursday January 12, 2012 @04:20AM
(#3455635)
See http://www.scribd.com/doc/36045849/Practical-Haskell-Program...
Type safety, much better type inference than Scala, and no JVM overhead.
Re:First steps with Scala, say goodbye to bash scripts…
by alexatkeplar on Thursday January 12, 2012 @03:49AM
(#3455584)
True, but: 1. There are a ton of long-running/cron-style tasks where JVM startup overhead just isn't relevant (and Scala's type safety, access to Java libraries and logging tools rinse Bash), and: 2. If you are using Scala scripting in "live operator" mode, here's a good SO answer on how to speed that up: http://stackoverflow.com/questions/4237863/improving-scala-s...
Re:First steps with Scala, say goodbye to bash scripts…
by opensas on Friday January 13, 2012 @02:38AM
(#3459596)
I've found out that with the -savecompiled option the delay is not so pitiful... see http://playlatam.wordpress.com/2012/01/13/first-steps-with-s...