A comparative analysis between Lua interpreter variants compiled to WASM, JavaScript and native

V. Klehm, Eduardo Drumond Sardinha, Vicente Ferreira de Lucena, Rayol Mendonca-Neto, Luiz Cordovil
{"title":"A comparative analysis between Lua interpreter variants compiled to WASM, JavaScript and native","authors":"V. Klehm, Eduardo Drumond Sardinha, Vicente Ferreira de Lucena, Rayol Mendonca-Neto, Luiz Cordovil","doi":"10.1109/ICCE59016.2024.10444429","DOIUrl":null,"url":null,"abstract":"Web technologies are essential players today. Being available in an almost ubiquitous way and well-standardized, they now can provide a reliable way to run different applications on different platforms without a significant discrepancy in their execution. In recent years, several developments now allow the execution of programs not initially designed for Web on standardized internet browsers. WebAssembly and JavaScript are well-known ways to achieve this result. C/C++ programs are known to be fast and light, but how well can WebAssembly and JavaScript perform with this kind of application compared to Native execution? This paper will answer this question for a specific Lua interpreter implementation commonly used on digital television platforms. And thus, it should be available on many different platforms, from Set-Top-Boxes to Smartphones from many manufacturers. We expect to provide valuable insights to anyone considering migrating a C/C++ code to WebAssembly or JavaScript and the pros and cons of this approach over developing natively for the platform.","PeriodicalId":518694,"journal":{"name":"2024 IEEE International Conference on Consumer Electronics (ICCE)","volume":"99 1","pages":"1-5"},"PeriodicalIF":0.0000,"publicationDate":"2024-01-06","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2024 IEEE International Conference on Consumer Electronics (ICCE)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICCE59016.2024.10444429","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Web technologies are essential players today. Being available in an almost ubiquitous way and well-standardized, they now can provide a reliable way to run different applications on different platforms without a significant discrepancy in their execution. In recent years, several developments now allow the execution of programs not initially designed for Web on standardized internet browsers. WebAssembly and JavaScript are well-known ways to achieve this result. C/C++ programs are known to be fast and light, but how well can WebAssembly and JavaScript perform with this kind of application compared to Native execution? This paper will answer this question for a specific Lua interpreter implementation commonly used on digital television platforms. And thus, it should be available on many different platforms, from Set-Top-Boxes to Smartphones from many manufacturers. We expect to provide valuable insights to anyone considering migrating a C/C++ code to WebAssembly or JavaScript and the pros and cons of this approach over developing natively for the platform.
编译为 WASM、JavaScript 和本地语言的 Lua 解释器变体之间的比较分析
网络技术是当今必不可少的技术。网络技术几乎无处不在,而且标准化程度很高,因此现在可以提供一种可靠的方式,在不同平台上运行不同的应用程序,而不会在执行过程中出现明显的差异。近年来,一些新技术的发展允许在标准化互联网浏览器上执行最初并非为网络设计的程序。众所周知,WebAssembly 和 JavaScript 就是实现这一结果的方法。众所周知,C/C++ 程序既快又轻,但与本地执行相比,WebAssembly 和 JavaScript 在此类应用程序中的表现如何?本文将针对数字电视平台常用的特定 Lua 解释器实现回答这个问题。因此,从机顶盒到许多制造商生产的智能手机,它应该可以在许多不同的平台上使用。我们希望能为那些考虑将 C/C++ 代码移植到 WebAssembly 或 JavaScript 的人提供有价值的见解,以及这种方法与为平台进行本地开发相比的利弊。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信