3 ms·
And what if the device can't or won't run JavaScript?
by mattl 6y ago
And what if the device can't or won't run JavaScript?
- JoeAltmaier 6y agoI didn't make myself clear. The embedded device is the web server in this setup. The browsing device (phone, tablet etc) runs javascript. You're right, no way a tiny embedded device runs javascript.
- Twirrim 6y ago"And what if the device doesn't run javascript" You've still got javascript requirements there on the browsing device, eating up more CPU/Memory/Battery than a straight HTML page would.
- wayneftw 6y ago"Embedded javascript to make them responsive" That sounds optional and a bit of JS for making things responsive certainly doesn't automatically create a CPU/Memory/Battery drain.
- DHPersonal 6y agoThe PSP does, but it's pretty limited.
- kwdc 6y agoJavascript is available for microcontrollers within various ram footprints. Here's one mentioned recently on HN https://jerryscript.net/ https://jerryscript.net/ There's even benchmarks for them. https://bellard.org/quickjs/bench.html https://bellard.org/quickjs/bench.html
- JoeAltmaier 6y agoCool!
- tshaddox 6y agoWhat if a device doesn't have a web browser? Or a display? Or a network connection? At some point you have to make some basic assumptions about the platform you're targeting.
- mattl 6y agoThere are many web browsers that don't support JavaScript, and JavaScript is something that can be quite easily turned off in many browsers that support it. Harder than it used to be, if anything.
- godshatter 6y agoThen there are those like myself that run NoScript or something similar where the author of the website has to entice me into allowing them to run javascript code on my computer. If I can find the correct one to enable out of the dozen or so that most websites seem to use.
- forgotmypw17 6y agoAt some point it,s time to give up. But before I do, I will bend over backwards twice to try to accomodate the user. Maybe it,s because of all those times some arrogant asshole website told me my browser isn,t goos enough.
- forgotmypw17 6y agoMy several years iPad with iOS 9, an otherwise capable device, locks up regularly on many js sites. JS is a global toggle which takes 30 seconds to switch.