2013
DOI: 10.1002/spe.2187
|View full text |Cite
|
Sign up to set email alerts
|

From bytecode to JavaScript: the Js_of_ocaml compiler

Abstract: We present the design and implementation of a compiler from OCaml bytecode to JavaScript. The compiler first translates the bytecode into a static single-assignment intermediate representation on which optimizations are performed, before generating JavaScript. We believe that taking bytecode as an input instead of a high-level language is a sensible choice. Virtual machines provide a very stable API. Such a compiler is thus easy to maintain. It is also convenient to use, and it can just be added to an existing… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
1
1
1
1

Citation Types

0
34
0
1

Year Published

2014
2014
2024
2024

Publication Types

Select...
5
2
2

Relationship

0
9

Authors

Journals

citations
Cited by 45 publications
(35 citation statements)
references
References 21 publications
0
34
0
1
Order By: Relevance
“…The tool can be run entirely in the browser, for convenience. For this, the operational model is compiled from Lem to OCaml and thence to JavaScript, using js _ of _ ocaml [Vouillon and Balat 2014], and renders the interactive graphs using Viz.js [Daines 2017], a packaging of Graphviz [Gansner and North 2000] compiled to JavaScript using Emscripten [Zakai 2011]. The tool can also be run from the command line, for best performance.…”
Section: The Rmem Toolmentioning
confidence: 99%
“…The tool can be run entirely in the browser, for convenience. For this, the operational model is compiled from Lem to OCaml and thence to JavaScript, using js _ of _ ocaml [Vouillon and Balat 2014], and renders the interactive graphs using Viz.js [Daines 2017], a packaging of Graphviz [Gansner and North 2000] compiled to JavaScript using Emscripten [Zakai 2011]. The tool can also be run from the command line, for best performance.…”
Section: The Rmem Toolmentioning
confidence: 99%
“…Thus, WebCL targets performance in the web browser. Js_of_ocaml has shown it provided very good performance compared to hand written JavaScript [13]. To verify the performance achieved with WebSPOC we translated some simple SPOC applications to web applications and compared their performance with sequential OCaml implementation, using the OCaml byte-code interpreter, js_of_ocaml, or native binaries.…”
Section: Resultsmentioning
confidence: 99%
“…Section 3 briefly presents SPOC, that is the OCaml library that targets GPGPU programming (in classical system environments). Section 4 shows how we combined multiple tools, WebCL, SPOC [5], the js_of_ocaml compiler [13] and IOCamlJS notepad to provide a new tool that allows to Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored.…”
Section: Introductionmentioning
confidence: 99%
“…To make the development of compute intensive applications such as multimedia applications possible, it becomes mandatory to have access to high performance tools. Thus, we intend to adapt ours to web environments, with the use of the WebCL [28] framework for JavaScript, associated with the existing js of ocaml [29] compiler that compiles OCaml byte-code to JavaScript.…”
Section: Discussionmentioning
confidence: 99%