未加星标

Moddable IoT JavaScript Engine in Less Than 32KB

字体大小 | |
[前端(javascript) 所属分类 前端(javascript) | 发布者 店小二04 | 时间 2018 | 作者 红领巾 ] 0人收藏点击收藏

The Moddable SDK provides a javascript engine for IoT development supporting greater than 99% compliance with the ES2017 specification, starting at less than 32KB.

The Moddable XS7 release targets ES2017, and work is underway on XS8 to fully support the ES2018 specification .

Moddable's SDK combines the XS JavaScript engine with graphics , networking, and various tools including debugger and simulator. The SDK also includes the Piu user interface framework designed to run on microcontrollers.

To help developers get started, Moddable Zero provides reference hardware with a small touchscreen for $20 plus shipping and tax, aiming to keep the hardware affordable:

All the components in Moddable Zero have been selected to keep the cost low. The two main components are the NodeMCU board and the touch screen. The NodeMCU module carries the ESP8266, Wi-Fi antenna, Flash ROM, FTDI chip, and USB connector. The touch screen is an unbranded QVGA (240 x 320) display with 16-bit pixels driven by an ILI9341 display controller and an XPT2046 resistive touch controller. We’d like to use a capacitive touch display, but the prices are still considerably higher. That said, our touch driver delivers reliable touch input with the XPT2046.

Moddable is one of many JavaScript engines , though it compares favorably to other microcontroller focused engines with regards to support for newer JavaScript language features at a size suitable for microcontrollers:

Duktape 160KB flash RAM and 64KB system RAM, complete ES5.1 support, subset of ES2015 and newer features Espruino 128KB flash RAM and 8KB system RAM, partial ES2015 support JerryScript , 64KB flash RAM and 200KB ROM, complete ES5.1 support mJS , 50KB flash RAM, 1KB system RAM, subset of ES2015 support

The Moddable presentation at TC-39 provides a solid explanation of how Moddable gets built and how a modern JavaScript engine can fit into devices with minimal memory.

At the 2018 FullStack conference , JavaScript creator Brendan Eich mentioned Moddable when asked what excited him most today about JavaScript:

Moddable has ES6 without eval, without the parser, running in 48K of ROM and 48K of RAM. That's pretty impressive. They're using some of the object.freeze affordances in ES6 to put things in ROM. It's amazing.

Moddable is available under a combination of open source licenses including GPL 3.0, LGPL 3.0, Apache 2.0, and Creative Commons Attribution 4.0. Moddable is also available under a commercial license. Contributions are welcome via the Moddable GitHub project , in particular, modules extending Moddable .

本文前端(javascript)相关术语:javascript是什么意思 javascript下载 javascript权威指南 javascript基础教程 javascript 正则表达式 javascript设计模式 javascript高级程序设计 精通javascript javascript教程

代码区博客精选文章
分页:12
转载请注明
本文标题:Moddable IoT JavaScript Engine in Less Than 32KB
本站链接:https://www.codesec.net/view/611415.html


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 前端(javascript) | 评论(0) | 阅读(54)