w2c2
jerryscript
Our great sponsors
w2c2 | jerryscript | |
---|---|---|
9 | 14 | |
668 | 6,827 | |
- | 0.6% | |
8.6 | 5.6 | |
16 days ago | 9 days ago | |
C | C | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
w2c2
-
Build your own WebAssembly Compiler
For AOT, the simplest approach, that actually produces the fastest native code, is to naively translate WASM opcodes to C.
This is for example what W2C2 does: https://github.com/turbolent/w2c2
-
Show HN: RustPython for FreeDOS with W2c2
This uses [w2c2](https://github.com/turbolent/w2c2) to convert RustPython,
- DeviceScript: TypeScript for Tiny IoT Devices
-
Running Rust code on Plan 9 using webassembly
Using a modified version of the w2c2 wasm->C89 translator, I was able to run Rust code on 9front!
-
Rust on macOS 9
There's not much data in the performance section of the front-page readme of the repo, but the one bullet point there seems promising:
> Coremark 1.0: ~7% slower than native [0]
[0] https://github.com/turbolent/w2c2#performance
- W2c2: Translates WebAssembly Modules to C
- W2c2: Translate WebAssembly Modules to C
- I'm not sure what this is, but I'm sure I want to find out. WASM2C.. Is it for me...
jerryscript
-
A list of JavaScript engines, runtimes, interpreters
JerryScript
-
JavaScript Runtime and Code Lifecycle
Some IoT platforms use Duktape and JerryScript as their engines.
-
DeviceScript: TypeScript for Tiny IoT Devices
I've been having a lot of fun with https://kalumajs.org/ recently for silly JS embedded things. It's been great so far, and has a cool little community!
It's a runtime built on top of JerryScript, which has been pretty neat to look into as well: https://jerryscript.net/
-
Good example open source C++ embedded projects
Jerryscript came to mind : https://github.com/jerryscript-project/jerryscript
- Arduino Announces MicroPython Support
-
JavaScript embedded inside Elixir
I personally quite like JerryScript
-
Kaluma - tiny JavaScript runtime for microcontrollers - includes a browser-based IDE that can communicate with a Raspberry Pi Pico and other RP2040 boards via Web Serial API. Write code in the browser (in JavaScript), then copy and run it on the board with a click of a button.
Based on JerryScript, the creators also provide an IDE and serial communication tool on their website. There's also ample documentation and guides. Looking forward to getting more into this.
-
TypeScript is the Only Programming Language you Need: TypeScript Everywhere
I hear you loud and clear.
-
Can the PineTime Watch stream music without a phone? (Onboard music storage)
There are subsets of JS for embedded device e.g. Espruino https://github.com/espruino/Espruino for BangleJS https://shop.espruino.com/banglejs also with 4MB or JerryScript https://jerryscript.net
-
Txiki.js: Tiny JavaScript runtime built with QuickJS and libuv
Fitbit uses Jerryscript in some of their watch OSes. Well, at least they were last time I was tinkering with making my own watch face
https://jerryscript.net/
What are some alternatives?
raw-wasm - Raw WebAssembly demos
quickjs - Public repository of the QuickJS Javascript Engine.
react-native-webassembly - ⚛️ 🏎 WebAssembly for React Native powered by JSI.
Duktape - Duktape - embeddable Javascript engine with a focus on portability and compact footprint
assemblyscript - A TypeScript-like language for WebAssembly.
MicroPython - MicroPython - a lean and efficient Python implementation for microcontrollers and constrained systems
RustPython - A Python Interpreter written in Rust
Espruino - The Espruino JavaScript interpreter - Official Repo
hermit - Actually Portable WebAssembly compiler toolchain for self-contained cross-platform binaries
quickjspp - Port of QuickJS Javascript Engine.
esphome - ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
just - the only javascript runtime to hit no.1 on techempower :fire: