27.01.2015 Views

A Methodology for Fine- Grained Parallelism in JavaScript ...

A Methodology for Fine- Grained Parallelism in JavaScript ...

A Methodology for Fine- Grained Parallelism in JavaScript ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!