Polyglot compiling from Episode 371

19 views
Skip to first unread message

Jim McDonnell

unread,
Dec 6, 2011, 9:06:29 AM12/6/11
to java...@googlegroups.com
In 371, there was talk about the desire to have a build framework that would allow Java code to rely on Scala code, and that Scala code to rely on other Java code or maybe code in another JVM language.

Wouldn't the different build frameworks like Maven or Gradle enable this (or at least could be updated to enable this)?  Wouldn't you make sure your Java code was in a package that had a dependency on a package that contains the Scala (or whatever) code?

Ricky Clarkson

unread,
Dec 6, 2011, 9:37:58 AM12/6/11
to java...@googlegroups.com
For Scala and Java this is a solved problem; scalac understands just enough Java that you can run scalac, passing it all the source, then run javac, passing it all the Java source.

Beyond that, there's probably some sanity to be gained by *not* combining them in one module, except perhaps very briefly or on a separate branch while converting one way or the other.
From: Jim McDonnell <james.t....@gmail.com>
Date: Tue, 6 Dec 2011 06:06:29 -0800 (PST)
Subject: [The Java Posse] Polyglot compiling from Episode 371

In 371, there was talk about the desire to have a build framework that would allow Java code to rely on Scala code, and that Scala code to rely on other Java code or maybe code in another JVM language.

Wouldn't the different build frameworks like Maven or Gradle enable this (or at least could be updated to enable this)?  Wouldn't you make sure your Java code was in a package that had a dependency on a package that contains the Scala (or whatever) code?

--
You received this message because you are subscribed to the Google Groups "The Java Posse" group.
To view this discussion on the web visit https://groups.google.com/d/msg/javaposse/-/uBMUrDVajYoJ.
To post to this group, send email to java...@googlegroups.com.
To unsubscribe from this group, send email to javaposse+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
Reply all
Reply to author
Forward
0 new messages