Re: [sbt] When could I use Zinc with sbt as the front-end to pump down Scala compilation times

177 views
Skip to first unread message

Peter Vlugter

unread,
Nov 11, 2012, 10:03:51 PM11/11/12
to simple-b...@googlegroups.com
Hi,

On 10/11/2012, at 10:05 PM, Asko Kauppi <aka...@gmail.com> wrote:

> i.e. I would like to have a fast build server for Scala.
>
> The current stage of Zinc, as I have understood it, is that:
> - it consists of the incremental compiler part of sbt
> - Maven has integration with Zinc
> - sbt has no integation with Zinc?

Zinc wraps sbt's incremental compiler as a command-line tool and build daemon, and provides an API for other build tools like Maven, Gradle, Buildr, and Pants to integrate with. sbt already has everything that zinc has.

> My project is a pretty simple, usual sbt project. What I'd like to is to set up a second computer somewhere in the network, that my 'sbt compile' would automatically utilize to make builds faster. Other than the speed, it should behave exactly as a local build. No sharing of file system would be necessary; the interaction would happen simply via a network socket of some sort.

Yes, the idea of a distributed sbt that compiles in parallel across several machines has been discussed before. It could use some kind of general purpose distributed task engine. There has been some work in this area, and in distributed testing.

Your project, however, would need to have multiple subprojects that can be compiled in parallel for the work to be distributed. I don't how simple you mean, but I don't think a simple project would see much benefit, given the overhead of transferring files and less opportunities to parallelise.

Tools like rsync and ssh will get you a long way towards working across machines.

Cheers,
Peter
Reply all
Reply to author
Forward
0 new messages