this post was submitted on 13 Nov 2023
93 points (92.7% liked)

Programming

17313 readers
726 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 year ago (2 children)

In 20 years we'll be able to run Javascript on microcontrollers, that will be an interesting day.

[–] TCB13 4 points 1 year ago (1 children)

20 years? Ahahah

https://github.com/espruino/Espruino

Espruino is a JavaScript interpreter for microcontrollers. It is designed for devices with as little as 128kB Flash and 8kB RAM.

Before anyone says that an ESP32 isn't actually a microcontroller let me just point out that it doesn't really matter. A few years ago a board with an ATmega 2560, lets say an Arduino, would cost around 30€, today you can get ESP32 boards with WiFi and way better performance for 3€ making the Arduino 2560 mostly useless / not cost effective.

In just 5 years with all those new RISC and ARM chips will most like triple their performance and take over what is now done by high end AVR and PIC microcontrollers. Costs will go even further into cents and microcontrollers as we know them will become irrelevant. With the extra performance JS will become the most popular language simply because developer time is more expensive than hardware.

[–] [email protected] 0 points 1 year ago (1 children)

Lol, I have a MEGA 2560 clone

[–] TCB13 1 points 1 year ago

Well, me too. Still costs more than an ESP32 nowadays.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

15 years ago I was running multi-tasking BASIC programs on a controller that had 2MB of storage. We should have been there by now.

Holy shit, they're still kicking around:

https://wilke.de/en/embedded-computer/details/zurueck/computer-module/products/tiny-tiger-multitasking-computer.html

I used a few for high speed logging of a quadrature rotary encoder to measure the speed of a hydraulic sampling arm. Battery powered , had a 4 line LCD and keypad with a simple menu interface to take samples, as well as a serial export function to get .CSV files via hyperterminal.