DeviceScript – TypeScript for Tiny IoT Devices
1–10 of 160 posts
Re: DeviceScript – TypeScript for Tiny IoT Devices
#2Finally, I've been waiting for this for years now!
Now it's just a matter of continuing to expand the integrations. Will have to look at what the process looks like for creating custom integrations for existing libraries when non exist.
Re: DeviceScript – TypeScript for Tiny IoT Devices
#3so kind of espruino but es6 and typescript? that would be very cool.
Re: DeviceScript – TypeScript for Tiny IoT Devices
#4Why not just use LUA?
Re: DeviceScript – TypeScript for Tiny IoT Devices
#5[deleted]
Re: DeviceScript – TypeScript for Tiny IoT Devices
#6This looks really promising and that's coming from someone who used to hand roll assembly for my hardware projects in uni. Since my day to day focus is elsewhere these days I need a setup that will hold my hand and hide away as many footguns as possible. I'm already familiar with Typescript so using the same language in a different environment is a win. Having that system be backed by a large company is a great boon as well, as it means there's a somewhat smaller chance of it disappearing from underneath me (Google's projects notwithstanding).
Re: DeviceScript – TypeScript for Tiny IoT Devices
#7The language seems rather complete [L], which makes me wonder: would that byte interpreter be of any use in other environments? How fast is it compared to e.g. V8 and JavaScriptCore? And to µPython?
Re: DeviceScript – TypeScript for Tiny IoT Devices
#8Why not just use LUA?
Because: weird language?
Re: DeviceScript – TypeScript for Tiny IoT Devices
#9> == and != operators (other than == null/undefined); please use === and !===
That's a whole lot of equals signs.
Typos aside, this all looks really amazing!
Although by no means sound, the ergonomics of TypeScript's type system are phenomenal. Really glad to see additional use cases beyond traditional JS runtimes.
Re: DeviceScript – TypeScript for Tiny IoT Devices
#10Why not just use LUA?
Because of compile-time type safety / static analysis. And I say this as the author of an IDE that bolts those features onto Lua: https://github.com/Benjamin-Dobell/IntelliJ-Luanalysis