A Methodology for Fine- Grained Parallelism in JavaScript ...
A Methodology for Fine- Grained Parallelism in JavaScript ...
A Methodology for Fine- Grained Parallelism in JavaScript ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Mak<strong>in</strong>g <strong>Parallelism</strong> Easier<br />
Use an Embedded Doma<strong>in</strong> Specific Language (EDSL)<br />
How to put a DSL <strong>in</strong>to a general purpose language:<br />
1. restrict the language to not do th<strong>in</strong>gs you don't like<br />
2. augment the language to do the th<strong>in</strong>gs you do like<br />
3. add runtime AST construction + DSL compiler<br />
Get the benefits of the host syntax, compiler, libraries, etc.<br />
Examples:<br />
Copperhead <strong>for</strong> Python,<br />
Intel Array Build<strong>in</strong>g Blocks / Rapidm<strong>in</strong>d / Ct <strong>for</strong> C++,<br />
Microsoft Accelerator <strong>for</strong> .NET