This paper presents the implementation of an efficient interpreter for a Scheme-like language using manually written asmjs code. The *** specification defines an optimizable subset of JavaScript that has already serve...
详细信息
This paper presents the implementation of an efficient interpreter for a Scheme-like language using manually written asmjs code. The *** specification defines an optimizable subset of JavaScript that has already served well as a compilation target for web applications where performance is critical. However, its usage as a human-writable language that can be integrated into existing projects to improve performance has remained largely unexplored. We therefore apply this strategy to optimize the implementation of an interpreter. We also discuss the feasibility of this approach, as writing asmjs by hand is generally not its recommended use-case. We therefore present a macro system to solve the challenges we encounter. The resulting interpreter is compared to the original C implementation and its compiled equivalent in asmjs. This way, we evaluate whether manual integration with *** provides the necessary performance to bring larger applications and runtimes to the web. We also refactor our implementation to assess how more JavaScript code can cohabit with asmjs code, improving maintainability of the implementation while preserving near-native performance. In the case of our interpreter, this improved maintainability enables adding more complex optimizations. We investigate the addition of function inlining, for which we validate the performance gain. (C) 2017 Elsevier Ltd. All rights reserved.
This paper presents the implementation of an efficient interpreter for a Scheme-like language using manually written *** code. The *** specification defines an optimizable subset of JavaScript which has already served...
详细信息
Computer Vision-based natural feature tracking is at the core of modern Augmented Reality applications. Still, Web-based Augmented Reality typically relies on location-based sensing (using GPS and orientation sensors)...
详细信息
ISBN:
(纸本)9781450358002
Computer Vision-based natural feature tracking is at the core of modern Augmented Reality applications. Still, Web-based Augmented Reality typically relies on location-based sensing (using GPS and orientation sensors) or marker-based approaches to solve the pose estimation problem. We present an implementation and evaluation of an efficient natural feature tracking pipeline for standard Web browsers using HTML5 and WebAssembly. Our system can track image targets at real-time frame rates tablet PCs (up to 60 Hz) and smartphones (up to 25 Hz).
In 2017, WebAssembly, a portable low-level bytecode, was released by the four major web browser makers to address the challenges presented by the maturation of the web and the rise of sophisticated and interactive app...
详细信息
ISBN:
(纸本)9781665495035
In 2017, WebAssembly, a portable low-level bytecode, was released by the four major web browser makers to address the challenges presented by the maturation of the web and the rise of sophisticated and interactive applications such as 3D visualization, audio, and video streaming, and online games. JavaScript heretofore was the only built-in language of the web, and unfortunately, it is not well outfitted for the rich applications that have come to dominate the web today. Since its initial release, WebAssembly has made great strides on the web. With the WebAssembly System Interface release in March 2018, which allows WebAssembly to communicate with the operating system, it has become possible to run WebAssembly applications outside web browsers. This paper reviews the current state ofWebAssembly and its system interface, describes the costs and benefits of these technologies for applications in different environments, and evaluates performance and portability. Our performance measurements demonstrate that WebAssembly is generally faster than JavaScript and, in some cases, can approach native code performance. Despite its limitations which make WebAssembly useless for specific applications domains, it nevertheless, has the potential to be beneficial in many environments and is likely to grow further even outside its original web environment.
Diplomová práce se zaměřuje na rychlé vykreslení 3D scény ve webovém prohlížeči s použitím moderních technologií, jako je WebGL a WebAssembly. V textu je popsán ...
详细信息
Diplomová práce se zaměřuje na rychlé vykreslení 3D scény ve webovém prohlížeči s použitím moderních technologií, jako je WebGL a WebAssembly. V textu je popsán proces překladu aplikace psané v jazyce C++ do WebAssembly pomocí překladače Emscripten a její začlenění do webové stránky. Dále je rozebrán obousměrný způsob komunikace mezi jazykem C++ a JavaScriptem, jako je volání funkcí, vytváření tříd či sdílení paměti. Během návrhu vykreslovacího jádra jsou vzpomenuty některé způsoby a metody optimalizace vykreslování. Na závěr jsou jednotlivé technologie porovnány z hlediska jejich výkonu.
Cílem práce je navrhnout a realizovat unikátní službu kombinující nejnovější technologie na poli webových aplikací. Služba umožní záznam pracovní plochy s n...
详细信息
Cílem práce je navrhnout a realizovat unikátní službu kombinující nejnovější technologie na poli webových aplikací. Služba umožní záznam pracovní plochy s následnou P2P distribucí mezi sledujícími uživateli a to jen za pomocí webového prohlížeče. Základem práce je analýza dostupných moderních a připravovaných technologií, které dovolují prakticky realizovat takovou službu. To zahrnuje získání přístupu k pracovní ploše, její záznam, zpracování získaných dat a jejich přenos sítí s následným přehráním pozorovateli. Videa jsou upravena pro přehrávání po částech s možností posuvu. Pro zajištění škálovatelnosti řešení je implementována distribuovaná architektura výměny částí záznamu mezi uzly formou hybridní P2P VoD sítě. Přehrávač tak umožňuje získání potřebných částí od aktuálně sledujících uživatelů a to včetně plynulého přehrávání videa během probíhajících přenosů s možností libovolného přesunu ve videu. Vzhledem k velmi rané či experimentální podpoře některých použitých API je vždy zpracován patřičný rozbor dostupné podpory prohlížečů.
暂无评论