- Dynamic Compilation and Adaptive Optimization in Virtual Machines: old but interesting [pdf]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dom.raw.Navigator | |
@native | |
trait MidiNavigator extends Navigator { | |
def requestMIDIAccess(): MidiAccess = js.native | |
} | |
object MidiNavigator { | |
implicit def midinavigator(mn: Navigator): MidiNavigator = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scalaVersion in ThisBuild := "2.11.2" | |
lazy val macros = project settings( | |
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value, | |
scalacOptions += "-language:experimental.macros") | |
lazy val main = project dependsOn(macros) settings( | |
scalacOptions += "-Xmacro-settings:foo=bar,bippy") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test | |
import scala.util.parsing.combinator.RegexParsers | |
import java.io.StringReader | |
object SI8542_ParserCombinatorBenchmark extends App with RegexParsers { | |
lazy val line = """(?m)^.*$""".r ^^ { _ => 0 } | |
lazy val parser = rep(line) ^^ { _ => 1 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error: error while loading <root>, error in opening zip file | |
error: scala.reflect.internal.MissingRequirementError: object scala.runtime in compiler mirror not found. | |
at scala.reflect.internal.MissingRequirementError$.signal(MissingRequirementError.scala:16) | |
at scala.reflect.internal.MissingRequirementError$.notFound(MissingRequirementError.scala:17) | |
at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:48) | |
at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:40) | |
at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:61) | |
at scala.reflect.internal.Mirrors$RootsBase.getPackage(Mirrors.scala:172) | |
at scala.reflect.internal.Mirrors$RootsBase.getRequiredPackage(Mirrors.scala:175) | |
at scala.reflect.internal.Definitions$DefinitionsClass.RuntimePackage$lzycompute(Definitions.scala:181) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.orbisgis.utils.FileUtils; | |
public class WMSTest { | |
... | |
private File f; | |
@Before | |
public void setUp() throws Exception { | |
f = File.createTempFile("wms", null); | |
f.delete(); |