Joel Liu's Library tagged → View Popular, Search in Google
-
I think the first step is understanding that there is JavaScript (the language), then there is the browser's Document Object Model (DOM) and "HTML5" APIs. The JavaScript language is used in more places than just browsers (e.g. Rhino and Node.js) and doesn't change very rapidly. The DOM and APIs vary more across browsers and get new features with just about every browser release.
I'd recommend learning the language first, then the basics of the DOM and subscribing to the main browser's blogs to keep up with their changes.
If you just want a site to learn JavaScript, I'd highly recommend https://developer.mozilla.org/en/JavaScript (as other people have too). Mozilla's docs are top-notch. They're a wiki so sign up and help make them even better.
Use beforeload to block ads
-
Runs awful for me in Firefox, but looks and runs great in Chrome. Really impressive - I think this is the first 'pure HTML' demo I've seen that really sells me on what can be done with Canvas, <audio>, etc - it doesn't feel like a compromised or 'it's cool because it's in the browser' experience, it's a legitimate demo that stands on its own without even considering how it was made.
-
I especially liked the part where smoke came out of the fan vent on my laptop.
But seriously, if this is where things are headed, why not just run compiled binaries in the browser? There, I said it.
-
- It is a command line tool. You download a tarball, compile and install the source.
- It let's you run JavaScript programs by typing 'node my_app.js' in your terminal.
- The JS is executed by the V8 javascript engine (the thing that makes Google Chrome so fast).
- Node provides a JavaScript API to access the network and file system
Node.js has generally caused two reactions in people I've introduced it to. Basically people either "got it" right away, or they ended up being very confused.
If you have been in the second group so far, here is my attempt to explain node:
-
Alright, I will. Node is basically very good when you need to do several things at the same time. Have you ever written a piece of code and said "I wish this would run in parallel"? Well, in node everything runs in parallel, except your code.
- 1 more annotation(s)...
-
So, how about if we could compile JavaScript into native code? Of course, in general we can't, at least not very well. But if a JavaScript program - or part of a program - happens to be implicitly statically typed, and in other ways 'performance-friendly', then we should be able to compile at least such code and run it very quickly.
-
The final result is that the JavaScript => Python => PyPy pipeline runs the code only 26% slower than a C++ implementation of the same benchmark compiled at -O3. For comparison, V8 run on that same JavaScript is 3.76 times slower. So, it seems there is potential here to get (some) JavaScript running very fast, pretty much as fast as possible.
Selected Tags
Related Tags
Top Contributors
Groups interested in Javascript
Diigo is about better ways to research, share and collaborate on information. Learn more »
Join Diigo
