Комментарии:
Does this guy realizethe the ts code is COMPILED into optimized bytecode? It's not like the microcontroller is running typescript 😂
Ответитьthis makes me sick
Ответить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-)
Ответить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?
ОтветитьI love TS and I love embedded programming, but what I absolutely would hate is combining both... madness!
ОтветитьOooh, I was thinking that JS for embedded is already dead, but not 🥲
Ответить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
ОтветитьI realized it was wiring problem Very Quickly: "Screaming the whole universe to shut the f(@!*&^ off during 2 hours"
ОтветитьNow we need RTOS_TS.....
ОтветитьGarbage collection on embedded devices, the end of days.
ОтветитьYou'll have to take C/C++ and micro python on embedded from my cold dead hands
ОтветитьLight bulb... server? Server? SERVER? 😢
Ответить🤮
ОтветитьI’m still not convinced this isn’t a satire project.
ОтветитьWhy... just why... Stop putting js where it doesnt belong. Why do you need a server to set an LED? This hurts.
ОтветитьThat solder job on the rp2040 kinda sucky
ОтветитьFinally I can make a Dashboard for my fridge
ОтветитьI always thought it was nuts that SIM cards have a JVM.
ОтветитьI'm a ts soydev but this is tooooo far
Ответить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.
The DX is just better... If C and other embedded languages grew up and created better DX then nobody would choose JS...
ОтветитьI've wrote an app for a Fitbit 2 years ago in pure JS
embedded JS is already here sadly
I suppose this kind of tooling (not in this case of course) is designed for kids to work with.
Ответитьkinda bs, saying as embedded developer
Ответить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
NO! Just NO! ?! World is going to crash.
ОтветитьC. Just use C.
Ответить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.
Ответить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
Ответить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😮
Ответить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.
Ответить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.
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
Ответить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.
ОтветитьHonestly wasnt this the same problem with everything being written with bad java in the early 2000s?
ОтветитьWTF
ОтветитьIf we can't "stop" JavaScript, maybe we can evolve it into being a better language.
ОтветитьI really hope this article is a joke
ОтветитьHandwarmer SDK
ОтветитьTS.OS
ОтветитьI came here for The Scriptogen and left with The Primeagen.
Ответить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.
ОтветитьI think this could be great for learning.
ОтветитьThe led and the resistance are in different circuits. ahahah
ОтветитьMicropython is already questionable, but this is really just awful
Ответить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.
Ответить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.
Ответить