by stunt on 6/9/23, 6:37 AM with 157 comments
by samwillis on 6/9/23, 10:58 AM
by iamflimflam1 on 6/9/23, 10:58 AM
Actually, looks like they've got quite a lot of stuff done already:
https://microsoft.github.io/devicescript/api/clients https://microsoft.github.io/devicescript/api/servers
by nicce on 6/9/23, 10:45 AM
by danielEM on 6/9/23, 4:41 PM
by andrewstuart on 6/9/23, 10:32 AM
It’s a nightmare trying to deal with bundling and compiling and targets and different import schemes ugh.
I wish I could compile my programs it compiles all the stuff in node modules and gives me some working code.
Desperate to get away from nodejs I tried deno and bun …. neither of them are anything close to a drop in replacement for nodejs.
by Benjamin_Dobell on 6/9/23, 9:48 AM
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.
by biosboiii on 6/9/23, 1:52 PM
Cost cutting in high volume electronics is crazy.
by geijoenr on 6/9/23, 10:53 AM
Why the constant obsession to apply a technology designed for a specific purpose everywhere else, even when it doesn't make sense?
by Etheryte on 6/9/23, 9:17 AM
by samtho on 6/9/23, 3:52 PM
First, most IoT device behavior can be described with a finite number of actions, and usually revolves around reading and writing bits to a bus (I2C/TWI, SPI, USART, CAN) or GPIO. Hardware is only really configured once and ran forever.
I think there is a place for a hardware system that self-describes to an entity and receives a bytecode procedure for each phase of its operation. This byte code can be made small because there are not many operations to really be done and the firmware would just directly execute it and handle updates, versions, and device abstractions.
by jillesvangurp on 6/9/23, 12:23 PM
by iamflimflam1 on 6/9/23, 10:53 AM
* TypeScript for IoT: The familiar syntax and tooling, all at your fingertips.
* Small Runtime: Bytecode interpreter for low power/flash/memory.
* Hardware as Services: Client/server architecture for sensors and actuators.
* Debugging: In Visual Studio Code, for embedded hardware or simulated devices.
* Simulation and Testing: Develop and test your firmware using hardware/mock sensors. CI friendly.
* Development Gateway: Prototype cloud service with device management, firmware deployment and message queues.
by eternityforest on 6/10/23, 5:12 AM
The big potential I see here is App-capable devices. That's really the missing factor with the IoT right now, the apps are separate from the device. We have to adapt everything around it to be able to talk to it, and usually you can't because it's all proprietary.
But if we had an OS and an App store, any device would work with anything.
We could actually get some good use out of Matter being IP based, if we could run apps on our smart plug.
It would be especially great for things that have a display.
I'm not sure why nobody has made an IoT OS with an app store yet, but it would/will be awesome.
by juancampa on 6/9/23, 4:06 PM
by tgv on 6/9/23, 9:23 AM
by paulddraper on 6/9/23, 8:15 PM
(26 May 2023) https://news.ycombinator.com/item?id=36079842
by rkagerer on 6/9/23, 10:02 AM
This looks great but needs a non-frictiony way to bolt together with some C or assembly code where needed. Not sure about JADAC, and wondering how hard it would be to write libraries / servers / whatever for sensors, DMA, ADC, etc.
Also note docs say "Serial, SPI, PWM are not supported yet at the DeviceScript level."
by ostenning on 6/10/23, 8:33 AM
by ranguna on 6/9/23, 8:23 AM
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.
by user_account on 6/9/23, 12:22 PM
by nimish on 6/9/23, 3:53 PM
by Already__Taken on 6/9/23, 8:45 AM
by TheLoafOfBread on 6/9/23, 8:55 AM
by NathanielBaking on 6/9/23, 11:03 AM