Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
20 lines (14 loc) · 683 Bytes

File metadata and controls

20 lines (14 loc) · 683 Bytes
Copy raw file
Download raw file
Outline
Edit and raw actions
sidebar_position 1
hide_table_of_contents true

DeviceScript

DeviceScript is a programming language for scripting Jacdac services.

It has JavaScript-like syntax and is compiled to a custom VM bytecode, which can run in very constrained environments (VM itself compiles to 10kB of code, with the floating point library and Jacdac SDK adding further 30kB).

Design goals for DeviceScript VM

  • secure - can predictably execute untrusted code (random bytes)
  • easy to analyze - should be possible to statically determine the set of APIs used
  • small memory (RAM) footprint
  • small code (flash) footprint
  • leave space for extensions in future
Morty Proxy This is a proxified and sanitized view of the page, visit original site.