If you have a moment, help us out by taking the Superconductor design survey!
Superconductor is a framework for creating interactive big data visualizations in the web browser. It contains two components: a JavaScript library for running visualizations in your browser, and a compiler which generates the high-performance visualization code from our simple domain specific language for describing visualizations.
Superconductor was created by Leo Meyerovich and Matthew Torok at the University of California, Berkeley's Parallel Computing Laboratory. The ideas behind it evolved out of our research in the parallel browser project. Over the last two years, we've worked to apply the ideas behind that research to the task of big data visualization, and to create a polished, easy-to-use framework based around that work. Superconductor is the result.
Superconductor is a collection of compilers for scripting large, interactive visualizations.
By supporting data sets of hundreds of thousands of data points, Superconductor enables new classes of interactive visualizations that were previously out of reach.
Programs are written in a high-level domain specific languages (DSLs) — and mostly standard web ones at that. Superconductor supports the core visualization pipeline: data loading, styling, layout, rendering, and interaction.
Superconductor supports the web languages widely known today:
It also introduces our own FTL domain specific language for building custom layouts:
An example of FTL code:
class HBox : Node { children { left: Node; right : Node } actions { width := left.width + right.width @render paintRect(x, y, width, height, red) } } class VBox : Node { ... }
This snippet demonstration one constraint we place on the FTL language to allow our compiler to parallelize it: attributes must be solvable as a sequences of parallel tree traversals. How these tree traversals are done is automatically determined by the compiler, as long as this constraint holds true.
Aggressive compilers employ program synthesis and modern parallel algorithms. Superconductor's DSL compilers are aggressive, yet are hidden from typical programming interactions. Superconductor provides compilers for each of its high-level DSLs. It automatically finds and exploits parallelism.
Portability and scriptability is through exploiting modern web standards from multicore and GPU processing. Superconductor automates use of: web workers (multicore), WebCL (GPU), and WebGL (GPU). For portability and scriptability, Superconductor uses parallel JavaScript: