mjs
ts2c

mjs | ts2c | |
---|---|---|
4 | 5 | |
1,940 | 1,264 | |
0.8% | - | |
2.4 | 0.0 | |
13 days ago | almost 2 years 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.
mjs
-
A list of JavaScript engines, runtimes, interpreters
mjs
-
TypeScript is the Only Programming Language you Need: TypeScript Everywhere
I hear you loud and clear.
-
Elk: A low footprint JavaScript engine for embedded systems
This implementation is nuts. A decent chunk (but still very small subset) of ES5 in under 1400 lines of very readable C code. It includes a mark-and-sweep GC and an FFI.
It doesn't have an AST or a bytecode VM. It just interprets directly off of source code.
Take a look: https://github.com/cesanta/elk/blob/master/elk.c.
This implementation really sets a new bar for me in terms of compact-but-readable language implementations.
Separately, this isn't even Cesanta's only embedded JavaScript implementation. They also have: https://github.com/cesanta/mjs. This implementation is a bit more complete and is much bigger.
-
What is your programming stack, as well encryption with ESP32?
In the past I've programmed with ESP8266 with Mongoose OS using mJS - https://github.com/cesanta/mjs but it has on 1.5K GitHub stars and I assume there are other alternative as well for Python language
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?
quickjs - Public repository of the QuickJS Javascript Engine.
devicescript - TypeScript for Tiny IoT Devices (ESP32, RP2040, ...)
elk - A nimble Mastodon web client
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.
jerryscript - Ultra-lightweight JavaScript engine for the Internet of Things.
lowjs - A port of Node.JS with far lower system requirements. Community version for POSIX systems such as Linux, uClinux or Mac OS X.
elk - A low footprint JavaScript engine for embedded systems
bun - A fast all-in-one JavaScript runtime [Moved to: https://github.com/oven-sh/bun]
Home - :house: The landing page for .NET nanoFramework repositories.
thinscript - A low-level programming language inspired by TypeScript
VEEPort-Espressif-ESP-WROVER-KIT-V4.1 - VEE Port for Espressif ESP-WROVER-KIT V4.1 development board.
wax - A tiny programming language that transpiles to C, C++, Java, TypeScript, Python, C#, Swift, Lua and WebAssembly 🚀
