This page is no longer maintained — Please continue to the home page at www.scala-lang.org

What's the state of IO in Scala?

1 reply
santiagobasulto
Joined: 2011-11-04,
User offline. Last seen 49 weeks 3 days ago.

Hello people, i've to start a heavy I/O app in Scala. What should i
use? The Scala implementation, the Java inherited one, or something
else??

Thanks!

Jesse Eichar 2
Joined: 2011-04-06,
User offline. Last seen 42 years 45 weeks ago.
Re: What's the state of IO in Scala?
I have been working on a Scala-io library that is nearing the 0.4 release.  While that sounds scary it is less so than it may seem.  I have nearly 2000 tests and it handles most of the standard usage pattern that one might see as well as allowing access to the Java API when required.  I have lots of performance tests and in many cases it is slower than a hand crafted Java solution but I have been iterating over it and have have made many giant performance improvements since I started and several cases are faster than the Java API.
The main reason to use the Scala-io library is because it is much higher level, and handlings opening and closing resources as well as a filesystem API that is similar to the Java 7 API (with a few niceties).
The glaring TODO is the Async support which, now that I have done the processing API, I am ready to address.  
So Java API or scala... Maybe both at times depending on your requirements.
Jesse

On Sat, Feb 18, 2012 at 1:06 PM, Santiago Basulto <santiago.basulto@gmail.com> wrote:
Hello people, i've to start a heavy I/O app in Scala. What should i
use? The Scala implementation, the Java inherited one, or something
else??

Thanks!

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland