Enhancing R with Advanced Compilation Tools and Methods
I describe an approach to compiling common idioms in R code directly to native machine code and illustrate it with several examples. Not only can this yield significant performance gains, but it allows us to use new approaches to computing in R. Importantly, the compilation requires no changes to R...
Gespeichert in:
Veröffentlicht in: | arXiv.org 2014-09 |
---|---|
1. Verfasser: | |
Format: | Artikel |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
container_end_page | |
---|---|
container_issue | |
container_start_page | |
container_title | arXiv.org |
container_volume | |
creator | Lang, Duncan Temple |
description | I describe an approach to compiling common idioms in R code directly to native machine code and illustrate it with several examples. Not only can this yield significant performance gains, but it allows us to use new approaches to computing in R. Importantly, the compilation requires no changes to R itself, but is done entirely via R packages. This allows others to experiment with different compilation strategies and even to define new domain-specific languages within R. We use the Low-Level Virtual Machine (LLVM) compiler toolkit to create the native code and perform sophisticated optimizations on the code. By adopting this widely used software within R, we leverage its ability to generate code for different platforms such as CPUs and GPUs, and will continue to benefit from its ongoing development. This approach potentially allows us to develop high-level R code that is also fast, that can be compiled to work with different data representations and sources, and that could even be run outside of R. The approach aims to both provide a compiler for a limited subset of the R language and also to enable R programmers to write other compilers. This is another approach to help us write high-level descriptions of what we want to compute, not how. |
doi_str_mv | 10.48550/arxiv.1409.3144 |
format | Article |
fullrecord | <record><control><sourceid>proquest_arxiv</sourceid><recordid>TN_cdi_arxiv_primary_1409_3144</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>2084610748</sourcerecordid><originalsourceid>FETCH-LOGICAL-a518-18b41fd2c0ecab9385ee0f436ddb4e1e12042f5cb5221947367981c5a64fb1bb3</originalsourceid><addsrcrecordid>eNotj8FLwzAYxYMgOObuniTguTVf8qVNj6NMHUwE6b0kTWozuqa23dT_3s55evD48Xg_Qu6AxaikZI96-PanGJBlsQDEK7LgQkCkkPMbshrHPWOMJymXUixIuuka3VW--6Dv9MtPDV3b01w4S_Nw6H2rJx86WoTQjlR3lr66qQl2vCXXtW5Ht_rPJSmeNkX-Eu3enrf5ehdpCSoCZRBqyyvmKm0yoaRzrEaRWGvQgQPOkNeyMpJzyDAVSZopqKROsDZgjFiS-8vsn1TZD_6gh5_yLFee5Wbg4QL0Q_g8unEq9-E4dPOlkjOFCbAUlfgFhbBQdg</addsrcrecordid><sourcetype>Open Access Repository</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype><pqid>2084610748</pqid></control><display><type>article</type><title>Enhancing R with Advanced Compilation Tools and Methods</title><source>arXiv.org</source><source>Free E- Journals</source><creator>Lang, Duncan Temple</creator><creatorcontrib>Lang, Duncan Temple</creatorcontrib><description>I describe an approach to compiling common idioms in R code directly to native machine code and illustrate it with several examples. Not only can this yield significant performance gains, but it allows us to use new approaches to computing in R. Importantly, the compilation requires no changes to R itself, but is done entirely via R packages. This allows others to experiment with different compilation strategies and even to define new domain-specific languages within R. We use the Low-Level Virtual Machine (LLVM) compiler toolkit to create the native code and perform sophisticated optimizations on the code. By adopting this widely used software within R, we leverage its ability to generate code for different platforms such as CPUs and GPUs, and will continue to benefit from its ongoing development. This approach potentially allows us to develop high-level R code that is also fast, that can be compiled to work with different data representations and sources, and that could even be run outside of R. The approach aims to both provide a compiler for a limited subset of the R language and also to enable R programmers to write other compilers. This is another approach to help us write high-level descriptions of what we want to compute, not how.</description><identifier>EISSN: 2331-8422</identifier><identifier>DOI: 10.48550/arxiv.1409.3144</identifier><language>eng</language><publisher>Ithaca: Cornell University Library, arXiv.org</publisher><subject>Compilers ; Computer Science - Mathematical Software ; Computer Science - Programming Languages ; Domain specific languages ; Level (quantity) ; Statistics - Computation ; Virtual environments</subject><ispartof>arXiv.org, 2014-09</ispartof><rights>2014. This work is published under http://arxiv.org/licenses/nonexclusive-distrib/1.0/ (the “License”). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.</rights><rights>http://arxiv.org/licenses/nonexclusive-distrib/1.0</rights><oa>free_for_read</oa><woscitedreferencessubscribed>false</woscitedreferencessubscribed></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><link.rule.ids>228,230,780,784,885,27924</link.rule.ids><backlink>$$Uhttps://doi.org/10.48550/arXiv.1409.3144$$DView paper in arXiv$$Hfree_for_read</backlink><backlink>$$Uhttps://doi.org/10.1214/13-STS462$$DView published paper (Access to full text may be restricted)$$Hfree_for_read</backlink></links><search><creatorcontrib>Lang, Duncan Temple</creatorcontrib><title>Enhancing R with Advanced Compilation Tools and Methods</title><title>arXiv.org</title><description>I describe an approach to compiling common idioms in R code directly to native machine code and illustrate it with several examples. Not only can this yield significant performance gains, but it allows us to use new approaches to computing in R. Importantly, the compilation requires no changes to R itself, but is done entirely via R packages. This allows others to experiment with different compilation strategies and even to define new domain-specific languages within R. We use the Low-Level Virtual Machine (LLVM) compiler toolkit to create the native code and perform sophisticated optimizations on the code. By adopting this widely used software within R, we leverage its ability to generate code for different platforms such as CPUs and GPUs, and will continue to benefit from its ongoing development. This approach potentially allows us to develop high-level R code that is also fast, that can be compiled to work with different data representations and sources, and that could even be run outside of R. The approach aims to both provide a compiler for a limited subset of the R language and also to enable R programmers to write other compilers. This is another approach to help us write high-level descriptions of what we want to compute, not how.</description><subject>Compilers</subject><subject>Computer Science - Mathematical Software</subject><subject>Computer Science - Programming Languages</subject><subject>Domain specific languages</subject><subject>Level (quantity)</subject><subject>Statistics - Computation</subject><subject>Virtual environments</subject><issn>2331-8422</issn><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2014</creationdate><recordtype>article</recordtype><sourceid>ABUWG</sourceid><sourceid>AFKRA</sourceid><sourceid>AZQEC</sourceid><sourceid>BENPR</sourceid><sourceid>CCPQU</sourceid><sourceid>DWQXO</sourceid><sourceid>GOX</sourceid><recordid>eNotj8FLwzAYxYMgOObuniTguTVf8qVNj6NMHUwE6b0kTWozuqa23dT_3s55evD48Xg_Qu6AxaikZI96-PanGJBlsQDEK7LgQkCkkPMbshrHPWOMJymXUixIuuka3VW--6Dv9MtPDV3b01w4S_Nw6H2rJx86WoTQjlR3lr66qQl2vCXXtW5Ht_rPJSmeNkX-Eu3enrf5ehdpCSoCZRBqyyvmKm0yoaRzrEaRWGvQgQPOkNeyMpJzyDAVSZopqKROsDZgjFiS-8vsn1TZD_6gh5_yLFee5Wbg4QL0Q_g8unEq9-E4dPOlkjOFCbAUlfgFhbBQdg</recordid><startdate>20140909</startdate><enddate>20140909</enddate><creator>Lang, Duncan Temple</creator><general>Cornell University Library, arXiv.org</general><scope>8FE</scope><scope>8FG</scope><scope>ABJCF</scope><scope>ABUWG</scope><scope>AFKRA</scope><scope>AZQEC</scope><scope>BENPR</scope><scope>BGLVJ</scope><scope>CCPQU</scope><scope>DWQXO</scope><scope>HCIFZ</scope><scope>L6V</scope><scope>M7S</scope><scope>PIMPY</scope><scope>PQEST</scope><scope>PQQKQ</scope><scope>PQUKI</scope><scope>PRINS</scope><scope>PTHSS</scope><scope>AKY</scope><scope>EPD</scope><scope>GOX</scope></search><sort><creationdate>20140909</creationdate><title>Enhancing R with Advanced Compilation Tools and Methods</title><author>Lang, Duncan Temple</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-LOGICAL-a518-18b41fd2c0ecab9385ee0f436ddb4e1e12042f5cb5221947367981c5a64fb1bb3</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2014</creationdate><topic>Compilers</topic><topic>Computer Science - Mathematical Software</topic><topic>Computer Science - Programming Languages</topic><topic>Domain specific languages</topic><topic>Level (quantity)</topic><topic>Statistics - Computation</topic><topic>Virtual environments</topic><toplevel>online_resources</toplevel><creatorcontrib>Lang, Duncan Temple</creatorcontrib><collection>ProQuest SciTech Collection</collection><collection>ProQuest Technology Collection</collection><collection>Materials Science & Engineering Collection</collection><collection>ProQuest Central (Alumni Edition)</collection><collection>ProQuest Central UK/Ireland</collection><collection>ProQuest Central Essentials</collection><collection>ProQuest Central</collection><collection>Technology Collection</collection><collection>ProQuest One Community College</collection><collection>ProQuest Central Korea</collection><collection>SciTech Premium Collection</collection><collection>ProQuest Engineering Collection</collection><collection>Engineering Database</collection><collection>Publicly Available Content Database</collection><collection>ProQuest One Academic Eastern Edition (DO NOT USE)</collection><collection>ProQuest One Academic</collection><collection>ProQuest One Academic UKI Edition</collection><collection>ProQuest Central China</collection><collection>Engineering Collection</collection><collection>arXiv Computer Science</collection><collection>arXiv Statistics</collection><collection>arXiv.org</collection><jtitle>arXiv.org</jtitle></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext</fulltext></delivery><addata><au>Lang, Duncan Temple</au><format>journal</format><genre>article</genre><ristype>JOUR</ristype><atitle>Enhancing R with Advanced Compilation Tools and Methods</atitle><jtitle>arXiv.org</jtitle><date>2014-09-09</date><risdate>2014</risdate><eissn>2331-8422</eissn><abstract>I describe an approach to compiling common idioms in R code directly to native machine code and illustrate it with several examples. Not only can this yield significant performance gains, but it allows us to use new approaches to computing in R. Importantly, the compilation requires no changes to R itself, but is done entirely via R packages. This allows others to experiment with different compilation strategies and even to define new domain-specific languages within R. We use the Low-Level Virtual Machine (LLVM) compiler toolkit to create the native code and perform sophisticated optimizations on the code. By adopting this widely used software within R, we leverage its ability to generate code for different platforms such as CPUs and GPUs, and will continue to benefit from its ongoing development. This approach potentially allows us to develop high-level R code that is also fast, that can be compiled to work with different data representations and sources, and that could even be run outside of R. The approach aims to both provide a compiler for a limited subset of the R language and also to enable R programmers to write other compilers. This is another approach to help us write high-level descriptions of what we want to compute, not how.</abstract><cop>Ithaca</cop><pub>Cornell University Library, arXiv.org</pub><doi>10.48550/arxiv.1409.3144</doi><oa>free_for_read</oa></addata></record> |
fulltext | fulltext |
identifier | EISSN: 2331-8422 |
ispartof | arXiv.org, 2014-09 |
issn | 2331-8422 |
language | eng |
recordid | cdi_arxiv_primary_1409_3144 |
source | arXiv.org; Free E- Journals |
subjects | Compilers Computer Science - Mathematical Software Computer Science - Programming Languages Domain specific languages Level (quantity) Statistics - Computation Virtual environments |
title | Enhancing R with Advanced Compilation Tools and Methods |
url | https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2025-01-10T09%3A45%3A07IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-proquest_arxiv&rft_val_fmt=info:ofi/fmt:kev:mtx:journal&rft.genre=article&rft.atitle=Enhancing%20R%20with%20Advanced%20Compilation%20Tools%20and%20Methods&rft.jtitle=arXiv.org&rft.au=Lang,%20Duncan%20Temple&rft.date=2014-09-09&rft.eissn=2331-8422&rft_id=info:doi/10.48550/arxiv.1409.3144&rft_dat=%3Cproquest_arxiv%3E2084610748%3C/proquest_arxiv%3E%3Curl%3E%3C/url%3E&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_pqid=2084610748&rft_id=info:pmid/&rfr_iscdi=true |