Ammonite, an open source tool to use the Scala language for scripting, should debut in its Version 1.0 production version in next two months.
The two-year-old project lets Scala be used for small scripts. It offers an interactive REPL (read-eval-print loop) and system shell capabilities. The project also can be used as a library in existing Scala projects, via the Ammonite-Ops file system library.
“Scala has traditionally been a heavy, powerful language with heavy, powerful tools. Ammonite aims to let you use it for small, simple tasks as well,” said Ammonite developer Li Haoyi, a former engineer at Fluent Systems. The project enables Scala to vie for tasks that previously have been the domain of Python or the Bash shell for small housekeeping or automation scripts. It also can be used for file system and system administration.
Ammonite’s REPL serves as a replacement for the default Scala REPL. It offers syntax-highlighted input and multiline editing. Ammonite’s scripts provide a lightweight way to execute Scala code without the boilerplate and slowness of the Scala SBT build tool.