From the title I expected the CPU to actually run JavaScript, like a certain decades old computer (of which name I can't recall).
ARM tried this with Java, it was called Jazelle and was (is?) a complete disaster.
JavaScript right on the hardware
41–50 of 320 posts
Re: JavaScript right on the hardware
#42http://arduino.cc/en/Main/ArduinoYUN
The CPU in particular seems quite underpowered assuming that they're clockspeed comparable, but I'm not familiar enough with the M-series ARM cores to give a proper opinion.
Re: JavaScript right on the hardware
#43First off, this is cool. It is tremendously exciting to see the bar for hardware hacking getting lower and lower. To the people complaining "Why JS? C is fine!", remember that once the complaint was "Why C? ASM is fine!". At the same time, I can't help but grin that we on the CS side find a way to erase all the gains in performance and efficiency as soon as the EE guys make them. There has to be come kind of universa…
http://www.codinghorror.com/blog/2007/07/the-principle-of-le...
Re: JavaScript right on the hardware
#44Nifty! I presume this is running on a Linux kernel? How much memory does node use? I would think that kernel + JS VM would chew up quite a bit of your 32 MB of RAM.
> I presume this is running on a Linux kernel? I doubt that. It has M-series ARM microcontroller, Linux is usually used with A-series ARM CPUs.
Re: JavaScript right on the hardware
#45I feel sorry for the people who need this.
Re: JavaScript right on the hardware
#46Earlier quoted context omitted.
JavaScript is my favorite programming language. It's not perfect, but still. (Other languages I know: Ruby, Python, Java, Go, Scheme, C, Erlang).
Why? I really would like to understand, because I see JS as a necessary evil, and would rather use something else if given the option.
With Python, you don't have to worry about the conventions part, since there is one "Pythonic" way to do everything. But at least with JS there are only a few different standard ways to implement, for example, OOP. So once you've gotten used to it, when you read someone's code, you can quickly notice what style they use and contribute your code to match it.
My biggest remaining gripe with Javascript is the lack of a good base set of libraries for container and string manipulation. Sure there are packages (like Underscore) you can use, but it would be nice to have them as a standard part of JS.
Re: JavaScript right on the hardware
#47Re: JavaScript right on the hardware
#48Re: JavaScript right on the hardware
#49First off, this is cool. It is tremendously exciting to see the bar for hardware hacking getting lower and lower. To the people complaining "Why JS? C is fine!", remember that once the complaint was "Why C? ASM is fine!". At the same time, I can't help but grin that we on the CS side find a way to erase all the gains in performance and efficiency as soon as the EE guys make them. There has to be come kind of universa…
For me, the main challenges always were getting the program onto a chip and wiring everthing so that is does not break or shortcut.
Re: JavaScript right on the hardware
#50Earlier quoted context omitted.
JavaScript is my favorite programming language. It's not perfect, but still. (Other languages I know: Ruby, Python, Java, Go, Scheme, C, Erlang).
Why? I really would like to understand, because I see JS as a necessary evil, and would rather use something else if given the option.
It usually doesn't require a lot of boilerplate code.
What is not to like?
The one thing I worry about is the limited range of integers.