Currently, two technologies stand out in the field of research, the Internet of Things (IoT) and Javascript (JS). On one hand, IoT enables everyday objects to connect to the network, analyze, capture, and interact with the environment. On the other hand, we have JS, a programming language that was initially inside browsers but now it is being used in several backgrounds. This paper correlates IoT and JS technologies, showing how Javascript can be applied in the context of the Internet of Things. The survey has considered the work of the last ten years and presents state of the art from Javascript applied to the IoT-side.
JavaScript language (JS) has been widely used in recent years applied to browsers-context. Yet JS is being applied to other backgrounds such as server-side programming, mobile applications, games, robotics, and the Internet of Things (IoT). JavaScript is suitable for programming IoT devices due to eventdriven oriented architecture. However, it is an interpreted language, so it has a lower performance than a compiled language. This paper assesses the use of WebAssembly as a strategy to improve the performance of JavaScript applications in the IoT environment. The experiments were performed on a Raspberry Pi using the Ostrich Benchmark Suite. We run the algorithms in JavaScript, WebAssembly, and C language while collecting data about device resource consumption. Our results showed that JavaScript performance could be improved by 39.81% in terms of execution time, a tiny gain in memory usage, and reduced battery consumption by 39.86% when using WebAssembly.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.