devicescript
ts2c
Our great sponsors
devicescript | ts2c | |
---|---|---|
13 | 5 | |
3,195 | 1,220 | |
2.0% | - | |
9.6 | 0.0 | |
9 days ago | about 1 year ago | |
TypeScript | C | |
MIT License | 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.
devicescript
-
Introduction to hardware programming with DeviceScript
Hardware programming used to require you to learn C/C++. If you’re already familiar with JavaScript or TypeScript, you will be delighted to learn about DeviceScript, a TypeScript programming environment for microcontrollers. In this blogpost you’ll learn the basics of electronics and DeviceScript. We will create the “hello world” of programming: making an LED blink!
-
DeviceScript and LCD screens
This article shows how to use DeviceScript to program a microcontroller (ESP32-C3), a temperature/humidity sensor (BME680) and a LCD character screen to build a tiny weather dashboard. This project does not require soldering or embedded skills.
-
DeviceScript - Temperature + MQTT
DeviceScript brings JavaScript/TypeScript to tiny IoT devices such as the ESP32. DeviceScript provides a user friendly editing/debugging experience in Visual Studio Code.
- DeviceScript | TypeScript for Tiny IoT Devices
- Why Dynamic Memory Allocation Bad (for Embedded)
- Microsoft DeviceScript – TypeScript for Tiny IoT Devices
- DeviceScript: TypeScript for Tiny IoT Devices
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?
Sming - Sming - powerful open source framework simplifying the creation of embedded C++ applications.
wax - A tiny programming language that transpiles to C, C++, Java, TypeScript, Python, C#, Swift, Lua and WebAssembly 🚀
tinybasic - A BASIC interpreter for Arduino, ESP, RP2040, STM32, Infineon XMC and POSIX with IoT and microcontroller features.
mjs - Embedded JavaScript engine for C/C++
angular-web-bluetooth - The missing Web Bluetooth module for Angular
bun - A fast all-in-one JavaScript runtime [Moved to: https://github.com/oven-sh/bun]
esp8266-react - A framework for ESP8266 & ESP32 microcontrollers with a React UI
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.
nesper - Program the ESP32 with Nim! Wrappers around ESP-IDF API's.
ts-json-schema-generator - Generate JSON schema from your Typescript sources
rp2040js - A Raspberry Pi Pico Emulator in JavaScript
lowjs - A port of Node.JS with far lower system requirements. Community version for POSIX systems such as Linux, uClinux or Mac OS X.