TypeScript For Embedded Programming??

TypeScript For Embedded Programming??

ThePrimeTime

1 год назад

47,500 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Tyrone Ward
Tyrone Ward - 26.09.2023 05:58

Does this guy realizethe the ts code is COMPILED into optimized bytecode? It's not like the microcontroller is running typescript 😂

Ответить
Marco Munoz
Marco Munoz - 22.08.2023 07:39

this makes me sick

Ответить
Damian Zaręba
Damian Zaręba - 09.08.2023 00:07

If you want to know, 5G cell towers use JavaScript... :P Plus it's a extension of JS on embedded devices, quite old idea. Did you know that ARM have JS accelerator? Plus, Nim combines GC and embedded 8-)

Ответить
Abraham Schilling
Abraham Schilling - 06.08.2023 16:30

Counting bytes, managing memory, and lack of convenient tooling is not an asset, it's a liability. Not all developers are willing to accept those things as a given. Yes, JS will not use resources efficiently. Who said that was the goal?

Ответить
qbasic16
qbasic16 - 02.08.2023 19:40

I love TS and I love embedded programming, but what I absolutely would hate is combining both... madness!

Ответить
Aleks Zinevych
Aleks Zinevych - 02.08.2023 18:23

Oooh, I was thinking that JS for embedded is already dead, but not 🥲

Ответить
henrique matias
henrique matias - 01.08.2023 20:08

Javascript is a great tool it allows people without strong / complex programming background to do simple things and prototypes. Everyone who worked in creative environments have seen the benefits this can bring

Ответить
From Scratch CPP
From Scratch CPP - 01.08.2023 14:22

I realized it was wiring problem Very Quickly: "Screaming the whole universe to shut the f(@!*&^ off during 2 hours"

Ответить
edog0049a
edog0049a - 29.07.2023 07:15

Now we need RTOS_TS.....

Ответить
Diamonddrake
Diamonddrake - 29.07.2023 02:18

Garbage collection on embedded devices, the end of days.

Ответить
bentomo
bentomo - 28.07.2023 13:59

You'll have to take C/C++ and micro python on embedded from my cold dead hands

Ответить
Halfjera
Halfjera - 28.07.2023 09:56

Light bulb... server? Server? SERVER? 😢

Ответить
NODGD
NODGD - 28.07.2023 04:39

🤮

Ответить
Adam Brown
Adam Brown - 28.07.2023 00:19

I’m still not convinced this isn’t a satire project.

Ответить
Ryan Grogan
Ryan Grogan - 27.07.2023 10:21

Why... just why... Stop putting js where it doesnt belong. Why do you need a server to set an LED? This hurts.

Ответить
mattymerr701
mattymerr701 - 27.07.2023 09:53

That solder job on the rp2040 kinda sucky

Ответить
playhard878
playhard878 - 26.07.2023 23:22

Finally I can make a Dashboard for my fridge

Ответить
Michael Slattery
Michael Slattery - 26.07.2023 22:59

I always thought it was nuts that SIM cards have a JVM.

Ответить
bob
bob - 26.07.2023 09:01

I'm a ts soydev but this is tooooo far

Ответить
Zer0
Zer0 - 26.07.2023 05:59

Articles like these just really show how clueless many JS developers really are to how these thing actually work outside of their frameworks, or even how their frameworks work. I have literally written 2D hobbie games, and complete with images, fonts, etc. decoded and loaded into memory which do not use half of the resources a JS "hello world" does.

Anyways, time to go rewrite the Linux kernel using Excel macros.

Ответить
Philippe Fanaro
Philippe Fanaro - 25.07.2023 18:34

The DX is just better... If C and other embedded languages grew up and created better DX then nobody would choose JS...

Ответить
Billy
Billy - 25.07.2023 13:03

I've wrote an app for a Fitbit 2 years ago in pure JS

embedded JS is already here sadly

Ответить
Vivraan
Vivraan - 25.07.2023 10:49

I suppose this kind of tooling (not in this case of course) is designed for kids to work with.

Ответить
Bohdan Bobyr
Bohdan Bobyr - 25.07.2023 09:20

kinda bs, saying as embedded developer

Ответить
Fathin
Fathin - 25.07.2023 09:18

i will only agree if and only if the code is eval'd on the machine, and some magic box will spit the right binary to do the same thing.

btw espruino is a thing and it works well

Ответить
MrDejvidkit
MrDejvidkit - 25.07.2023 08:58

NO! Just NO! ?! World is going to crash.

Ответить
Billy Bob Thornton
Billy Bob Thornton - 25.07.2023 08:36

C. Just use C.

Ответить
Janusz Krysztofiak
Janusz Krysztofiak - 25.07.2023 07:09

My 8-bit AVR I programmed in C++ had just 2kB RAM, so even dynamic memory allocation was out of the picture = no new, delete; no exceptions, or RTTI as well... if I really wanted I could implement those operators with malloc/free, but it had little sense. In such a contrained environment C++ is a better C (with templates, better type handling, syntactic sugar etc. - one does not use features that impose run-time costs). And they want to plug a GCed language where "objects" are effectively dynamic dictionaries, there is one "number" type (that can be, at best, hacked do differentiate between ints and floats) into MCUs... Even cramming .NET into MCUs (there was such an effort) was a more sane idea (or less insane). I wonder how does setting interrupt handlers look like - I guess it doesn't and you are bascially limited to the library.

Ответить
Jeremy Nicoll
Jeremy Nicoll - 25.07.2023 06:02

I've started using Svelte Native (Nativescript) and for some reason suddenly feel very embarrassed about it. Oh well. It's still better than Xamarin

Ответить
Koushik Shetty
Koushik Shetty - 25.07.2023 04:24

I remember doing placement new in C++ to manage the memory alloc in msp430 device to get something to work and now we got this😮

Ответить
k98killer
k98killer - 25.07.2023 04:15

The runtime is configurable but uses 32kb of memory by default. This is very much not simply JavaScript on an embedded device -- this is more akin to compiling TypeScript to a small form of embedded Java.

Ответить
k98killer
k98killer - 25.07.2023 03:54

What we really need is Lua for embedded devices. We could call it "Lua", and it would be identical to normal Lua because it's just Lua running on a microcontroller/SoC. Maybe add some funky syntax for RAII memory management if you have to.

Edit: Lua for ESP32 exists.

Ответить
k98killer
k98killer - 25.07.2023 03:36

Skipped right over the part about the custom VM they made specifically for constrained execution environments. They spent one whole sentence explaining it in that introduction. How could you. /s

Ответить
Pedro de Sá
Pedro de Sá - 25.07.2023 03:07

Javascript ios the very definition of the Sunken Cost Fallacy, its amazing how blatant and how obvious it is and yet how inescapable it has become.

Ответить
digioi
digioi - 25.07.2023 03:04

Honestly wasnt this the same problem with everything being written with bad java in the early 2000s?

Ответить
Dirk Bester
Dirk Bester - 25.07.2023 02:55

WTF

Ответить
Brian McBride
Brian McBride - 25.07.2023 01:35

If we can't "stop" JavaScript, maybe we can evolve it into being a better language.

Ответить
atiedebee
atiedebee - 25.07.2023 01:24

I really hope this article is a joke

Ответить
Bucccket
Bucccket - 24.07.2023 23:40

Handwarmer SDK

Ответить
Hello There
Hello There - 24.07.2023 23:26

TS.OS

Ответить
Mihai
Mihai - 24.07.2023 23:21

I came here for The Scriptogen and left with The Primeagen.

Ответить
Bogdan Ionescu
Bogdan Ionescu - 24.07.2023 23:00

JavaScript, I love it. Of course you need an async service to toggle a bit in memory. I feel like this has to be a very elaborate practical joke and I'm all for it.

Ответить
adlex1212
adlex1212 - 24.07.2023 21:58

I think this could be great for learning.

Ответить
Álvaro Castro Leite
Álvaro Castro Leite - 24.07.2023 21:12

The led and the resistance are in different circuits. ahahah

Ответить
Asto
Asto - 24.07.2023 21:11

Micropython is already questionable, but this is really just awful

Ответить
Doug H
Doug H - 24.07.2023 21:06

The reality is most of the embedded device industries out there are terrible (probably minus automotive) and locked down by proprietary and limited training, licensing, and tools. It's a big subject and I won't go on, but take HVAC, look at BACnet, NiagaraAX/N4, big brand controllers. It's wild how much better supported and disciplined the outer tech world is from these industries. And hopefully open source solutions to start up and manage embedded controllers for yourself takes off.

Ответить
Dr Plasma
Dr Plasma - 24.07.2023 21:05

Exactly what I needed to cure my anxiety of flying: Now I have to think that maybe, MAYBE, some of the embedded systems of the plane are written in JavaScript with lipstick.

Ответить