lowjs
ts2c
lowjs | ts2c | |
---|---|---|
4 | 5 | |
1,271 | 1,220 | |
0.0% | - | |
0.0 | 0.0 | |
about 1 year ago | about 1 year ago | |
C++ | C | |
GNU General Public License v3.0 or later | ISC License |
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.
lowjs
-
Microsoft DeviceScript – TypeScript for Tiny IoT Devices
Agree 100%
That was my point - the ESP32 is so versatile and cheap, it's my go-to these days for pretty much everything.
Being about to have an easy and reasonably powerful js runtime for that sounds great.
Apparently node-red also has something for esp32?
And I haven't tried it, but low.js looks cool too [1]
[1] https://github.com/neonious/lowjs
-
I fell in love with low-JS
Oh, I thought this was going to talk about low.js (https://github.com/neonious/lowjs), the "node.js" runtime for micro-controllers and tiny embedded systems.
-
Kaluma - A tiny JavaScript runtime for RP2040 (Raspberry Pi Pico)
My two favorite Linux JS runtimes: QuickJS, low.js
-
[AskJS] Do you use JavaScript on Microcontrollers? Which engine / interpreter?
- lowjs (1.2k stars)
ts2c
-
Microsoft DeviceScript – TypeScript for Tiny IoT Devices
These are far from perfect, but still something:
https://github.com/andrei-markeev/ts2c/
https://github.com/evanw/thinscript
If you aim for 32 bit microcontrollers then you can go with assemblyscript to wasm and then with wasm to C transpiller
-
TurboFan is an amazing piece of work
just wait bro, when silicon reaches the limits the electron team gonna take this over https://github.com/andrei-markeev/ts2c and pray they can use less ram somehow
-
Transpiling Typescript into Rust
Since you're going to need to manually adjust the output anyway, you could see if chaining ts2c and c2rust does something useful to you.
-
An amazing error message if you put more than 2^24-1 items in a JS Map object
TypeScript doesn't need a code generator with a special syntax in order to compile it into C. You can in fact compile TypeScript into C if you want: https://github.com/andrei-markeev/ts2c
-
Maintainers [...] are moving *AWAY* from [...] TypeScript, just at the same time when the wider dev world is falling in love with TS
lol no ts2c https://github.com/andrei-markeev/ts2c
What are some alternatives?
MicroPython - MicroPython - a lean and efficient Python implementation for microcontrollers and constrained systems
wax - A tiny programming language that transpiles to C, C++, Java, TypeScript, Python, C#, Swift, Lua and WebAssembly 🚀
Espruino - The Espruino JavaScript interpreter - Official Repo
mjs - Embedded JavaScript engine for C/C++
jerryscript - Ultra-lightweight JavaScript engine for the Internet of Things.
devicescript - TypeScript for Tiny IoT Devices (ESP32, RP2040, ...)
Duktape - Duktape - embeddable Javascript engine with a focus on portability and compact footprint
bun - A fast all-in-one JavaScript runtime [Moved to: https://github.com/oven-sh/bun]
examples
nano-ycmd - Modded GNU Nano using ycmd code completion and IntelliSense. The ycmd code completion support for nano is found in the ymcd-code-completion branch.
inertia - Inertia.js lets you quickly build modern single-page React, Vue and Svelte apps using classic server-side routing and controllers.
ts-json-schema-generator - Generate JSON schema from your Typescript sources