Cross-Compiled Plotting with SwiftVis2
Nicholas J. Smoker, Mark C. Lewis · 2020
This paper explores adding support to SwiftVis2, a plotting library written in Scala, for compiling and running across the JVM, web browsers, and native compiled code. We find that it is possible to use a single core library written in standard Scala across these various compile targets with little additional code. The quality of the output and ability to handle large datasets varies significantly for different implementations. The use of Scala, or other languages that have compilers targeting multiple platforms, makes it possible to easily target many platforms with relatively little effort.