3 ms·
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, e
by jcdavis 15y ago
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
- alexatkeplar 15y agoTrue, 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-script-startup-time-client-mode http://stackoverflow.com/questions/4237863/improving-scala-s...
- gaius 15y agoSee http://www.scribd.com/doc/36045849/Practical-Haskell-Programming-scripting-with-types http://www.scribd.com/doc/36045849/Practical-Haskell-Program... Type safety, much better type inference than Scala, and no JVM overhead.
- opensas 15y agoI'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-scala-revisited-bash-and-python-strikes-back/#performance http://playlatam.wordpress.com/2012/01/13/first-steps-with-s...