forked from Superconductor/superconductor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
101 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sc-lang.com |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Copyright (c) 2013, Leo A. Meyerovich | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
* Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
* Redistributions in binary form must reproduce the above copyright | ||
notice, this list of conditions and the following disclaimer in the | ||
documentation and/or other materials provided with the distribution. | ||
* Neither the name of the <organization> nor the | ||
names of its contributors may be used to endorse or promote products | ||
derived from this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY | ||
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,77 @@ | ||
Superconductor | ||
============== | ||
##Superconductor | ||
###Parallel Web Programming for Massive Visualizations | ||
|
||
*Open Source Release in May 2013! (BSD3 license)* | ||
|
||
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. | ||
|
||
== | ||
### Three key ideas: | ||
|
||
1. **DSLs:** Programs are written in high-level *domain specific* languages (DSLs) -- and mostly standard web ones at that. | ||
|
||
It supports the core visualization pipeline: data loading, styling, layout, rendering, and interaction. | ||
|
||
2. **Automatic Parallelism:** Aggressive compilers employ program synthesis and modern parallel algorithms | ||
|
||
Superconductor's DSL compilers are aggressive, yet are hidden from typical programming interactions. | ||
|
||
3. **Parallel JavaScript:** 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). | ||
|
||
|
||
== | ||
### 1. Domain specific languages (DSLs) | ||
|
||
Superconductor supports web languages: | ||
|
||
-- JSON for data | ||
-- CSS selectors for styling | ||
-- JavaScript for interaction | ||
|
||
It also introduces FTL for building custom layouts: | ||
|
||
-- FTL is a declarative language ("attribute grammar") | ||
-- We've used it for 2D and 3D graphics, charting, hierarchical data, and interactive animations | ||
-- A layout is a tree schema with local constraints between node attributes | ||
|
||
Ex: | ||
class HBox : Node { | ||
children { left: Node; right : Node } | ||
actions { | ||
width := left.width + right.width | ||
|
||
@render paintRect(x, y, width, height, red) | ||
} | ||
} | ||
class VBox : Node { ... } | ||
|
||
-- The constraints must be solvable as a sequenence of parallel tree traversals (the compiler automatically figures this out) | ||
-- An experimental extension for OMeta (static / metapgrogramming), and through it, declarative rendering (@render in the example) | ||
|
||
== | ||
### 2. Automatic Parallelism | ||
|
||
Superconductor provides compilers for each of its high-level DSLs. It automatically finds and exploits parallelism. | ||
|
||
-- It uses the GPU for the basic animation/interaction loop, except for data loading (parsing), which is multicore | ||
-- It optimizes data representation and scheduling, but largely hides this from the programming API | ||
-- It uses modern data parallel compilation techniques when viable | ||
-- It uses new techniques in program synthesis to find parallelism in the layout language | ||
|
||
== | ||
### 3. Parallel JavaScript | ||
|
||
For portability and scriptability, Superconductor uses parallel JavaScript: | ||
|
||
-- multicore (web workers) and GPU (WebCL, and WebGL) | ||
|
||
-- programming is in our DSLs; Superconductor generates the parallel JavaScript code | ||
|
||
-- visualizations live in standard webpages, meaning they interact normally with the surrounding page through standard JavaScript | ||
|
||
-- we are working on supporting multiple backends, but the focus is on enabling new types of experiences on modern clients | ||
|
||
Big data visualization on the web |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.