3 ms·
In short: yes. BUT maybe it does not matter that much for some projects and a lot of people can write some logic in js a lot faster than in C (or C++ or Rust o
by mhaberl 6y ago
In short: yes.
BUT maybe it does not matter that much for some projects and a lot of people can write some logic in js a lot faster than in C (or C++ or Rust or..).
Also, there are a lot of people who know only js and would like to "play" with some LED, fetching room temperatures, opening closing doors etc - this is a nice way to start.
There are a lot more info about performance here: https://www.espruino.com/Performance https://www.espruino.com/Performance
- rhabarba 6y agoIn my opinion, life would - in the long term - be easier for these people if they were forced to learn C, C++ or Rust for their projects. But it’s been a while since I was a beginner myself, so there might be some bias here.
- qayxc 6y agoC, C++ and Rust are big barrier to most hobby programmers. Python, JavaScript, and other high-level languages are way more accessible and are an order of magnitude faster to get started with. Why waste weeks on learning C when that time could just as well be spent actually getting things done? I also don't see how C - and especially Rust - would make embedded development any easier than using a scripting language. Tooling is often worse, skills cannot be transferred from and to other common areas (mobile, web) and development times are provably longer. Unless your goal is to become a professional and create commercial products in the IoT/embedded space, I doubt learning and using C or C++ would be easier in any way.
- rhabarba 6y agoI wish I could insert the hint here that I actually use C for web development without it looking like a flame bait ... :-) I agree that Rust was not a good example, sorry.