JavaScript on tiny, wearable hardware
summary
Claims that full ECMAScript 5.1 runs on a Pebble by porting JerryScript into a 64 KB app environment and shipping the Tic Toc watch face as proof. Uses Emscripten to cross-compile the JerryScript compiler so bytecode is produced in JavaScript on the phone, stores only bytecode on-watch, and leverages canvas-like web APIs plus TypeScript definitions in the SDK. Adds a memory-pressure event that can drop resources and a phone-hosted REPL and cloud build pipeline — it actually deploys and works.
AI-written summary · about
chapters (10)
- 0:00Introduction to Pebble
- 1:09The Pebble platform
- 3:05Hardware limitations
- 6:33Choosing a JS engine
- 9:41Shipping JavaScript
- 10:45Developing Pebble APIs
- 16:57Memory management
- 21:09Tooling and emulator
- 26:10Debugging and REPL
- 28:40Live demo and future
related talks
45mJavaScript all the things
41mJerryScript: An Ultra-lightweight JavaScript Engine for the Internet of Things
36mHoney, I Shrunk the Scripts! — the secret life of JS on microcontrollers
41mJavaScript Meets Zephyr
33mJavaScript for Hardware
26mJavaScript for Microcontrollers with Espruino (ASL)
15mBangle.js - an Open Source Smartwatch
32mJS in Strange Places
