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.