News for hackers. Stuff that matters.
Re:Microsoft DeviceScript – TypeScript for Tiny IoT Devices by geijoenr on Friday June 09, 2023 @07:07AM (#36256092)
The github project indicates "DeviceScript brings a professional TypeScript developer experience to low-resource microcontroller-based devices."

If you tell me is a toy, and somebody's pet project: fine. Is all about having fun.

But then don't mention "professional" in the project description.

Re:Microsoft DeviceScript – TypeScript for Tiny IoT Devices by hardware2win on Friday June 09, 2023 @08:10AM (#36256599)
Hmm?

Instead of ctrl+f for "professional" I suggest re-reading it

>professional TypeScript developer experience

It is about experience of sane programming environment, right?

Re:Microsoft DeviceScript – TypeScript for Tiny IoT Devices by schwartzworld on Friday June 09, 2023 @10:29AM (#36258341)
It's not an experience for professional typescript development, but the experience that professional typescript developers are used to.

This isn't in competition with C or C++, it's in competition with micropython. Python isn't a great language except in its ubiquity. I'd rather work in what I know, which is TS. This opens up microcontroller development to JavaScript devs of whom there are a lot of us.

Types are really helpful when dealing with unfamiliar APIs. When doing embedded projects, you deal with a lot of APIs. There are the language built ins, any libraries you are using to interface with peripherals. This project opens up microcontroller development in a big way to a LOT of developers.

Is it what you want to use for a commercial embedded device? I can't say. Is that the only standard? Then you should just be using C for everything, I guess. But something like a Raspberry Pi Pico or ESP32 has plenty of resources to run JavaScript while still being able to manage a weather station or automated garden or security camera or pen plotter. There are lots of applications that don't use the full power of the board.