Paul Krill
Editor at Large

Samsung brings JavaScript to the internet of things

news
Sep 8, 20162 mins

Samsung is offering a stable 1.0 release of the lightweight engine for resource-constrained devices

iot
Credit: Thinkstock

Samsung has begun offering a stable 1.0 release of JerryScript, its lightweight JavaScript engine for the internet of things (IoT).

Requiring less than 64KB of system RAM, the open source engine is intended for resource-constrained devices like microcontrollers. JerryScript backs on-device compilation and can access peripherals from JavaScript. It uses a C API for embedding in applications, and Ubuntu 14.04 Linux is the only supported development environment.

JerryScript features optimization for low memory consumption and a 160K binary size when compiled for the ARM Thumb-2 processor. It’s compliant with the older ECMAScript 5.1 specification for JavaScript, which was approved in 2011, and is supported on platforms including ARMv7 Linux, Intel x86-32 and x86-64, NuttX on STM32F4, and Zephyr on Arduino 101 and FRDM-K64F. There is experimental support for the ESP8266 chip.

Analyst Danny Brian, vice president of research at Gartner, noted that Samsung’s efforts follow other ventures in embeddable JavaScript, such as Duktape, which can run on 256KB of flash memory or 64KB of RAM, and D7, with a static footprint of about 80KB. Brian sees JerryScript as part of Samsung’s lightweight Node.js ambitions, and in fact, the company has purchased Node pioneer Joyent and has positioned its IoT.js framework, a lightweight version of Node, as key to its IoT strategy.

JerryScript and other similar efforts are intended to make JavaScript capable of running anywhere, Brian said. “The proliferation of JavaScript engines — there’s probably almost of two dozen of them now — is just evidence of the rush to capitalize on [JavaScript’s] popularity.” It will be interesting to see the unexpected use cases for IoT, he said.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author