JavaScript

The chaps in Chrome land that know a thing or two about writing extensions are getting their design docs on and we see a new draft of how extensions mesh with the process model of Chrome: Chromium extensions will follow a multi-process architecture to share the same kind of stability and security that regular web Read the rest…

Nicholas C. Zakas wraps up his series on speeding up JavaScript with two more posts on the subject. First up, he delves deeper into a generic memoizer: In part 2 of this series, I wrote briefly about handling too much recursion in a function through memoization. Memoization is a technique for caching previously calculated values Read the rest…

Opera isn’t sitting on their heels as the other browser vendors get snappy (even if other claim so!) Today they announced Carakan a new register based JavaScript VM that is currently 2.5 times faster than their existing one (based on SunSpider). It does native code generation including at specializing for Regex (interestingly since irregex for Read the rest…

We often get games sent our way, and try to keep those posts for Fridays. This one is different though. Thomas Kjeldahl Nilsson didn’t just write another Tetris clone in JavaScript, he documented his experience. He posted a series of articles on the various steps, and not only do you learn how to build a Read the rest…

< View plain text > javascript from customer in $0 group customer by customer.lastname into g select {lastname: g.getKey(), count: g.count()} into r orderby r.count descending select r The code above should look similar to LINQ in .NET and runs with JSINQ a framework created by Kai Jäger. With JSINQ, you can write SQL-like queries Read the rest…

Live Ajax chat is one of those Comet 101 kind of examples (as RSS readers were to Ajax back in the day!). We saw a couple of items from this meme recently. First, jChat, a showcase chat application using Jaxer: Jaxer ships with a number of basic samples, but I’ve seen quite a few people Read the rest…

Kevin Dangoor, colleague of ours in the Mozilla Developer Tools group, has created a Server JavaScript group to discuss what server side JavaScript needs. It feels a little like the Java world pre-Servlets, with many similar but different APIs in implementations. Let’s listen to Kevin’s thoughts, and let us know your thoughts! Server side JavaScript Read the rest…

Tom Robinson (Cappuccino, Objective J, 280* fame) is someone you should follow on Github as he comes up with cool stuff such as cappruby “a Ruby implementation on top of JavaScript / Objective-J runtime. Proof of concept stage.” But that isn’t why we are here today. Tom has a new project called Jack which is Read the rest…

The Sitepoint reference guide has been relaunched. It looks very clean indeed. Here is an example of docs for the getElementById method. You will see that it has basic info, compatibility charts (although they are minimal… saying things like “buggy” instead of why), and hints. For example: The behavior of this method when more than Read the rest…

Elijah Grey has created a shim called Xccessors that “is a script that implements the legacy methods for defining and looking up object accessors (getters and setters) of objects in JavaScript using ECMAScript 3.1’s accessors standard. This is aimed at adding support for the legacy method in IE8 RC1.” You can check out a demo Read the rest…

Elijah Grey has created an open source implementation of a psuedo-globalStorage[”] called jData that works in Firefox 3+, WebKit Nightlies, and IE8 beta 2. We asked him to tell us more: globalStorage[”] was supposed to be a globally shared storage interface but was too insecure due to every host having write access. Read access is Read the rest…

Simon Tiffert told us of a co-workers post on loading your JavaScript modules with the YUI Loader. The post discusses how you can use the loader for your own libraries, giving you full dependency management, similar to that of the Dojo loader and others: As YUI comes with a special module for loading dependencies, the Read the rest…

Chris Zelenak has created Spacial Query a very nice library for spatial math. He told us: I recently wrote up a library to help me with operations on polygons, and ended up adding some stuff for dealing with matrix, vector and latitude longitude primitives as well. The name is taken from the JQuery style chaining Read the rest…

Nicholas C. Zakas is back at it with part two of his Speed up your JavaScript series. This time he again discusses the problem with loops, and in this case nested loops: < View plain text > javascript function bubbleSort(items){ for (var i=items.length-1; i >= 0; i–){ for (var Read the rest…

Michael Schøler and Jakob Kruse have created JSLint Multi a widget that acts as a continous linter for the Yahoo! Widgets platform: JSLint Multi uses Douglas Crockford’s excellent JSLint tool to check your Javascript files for potential problems. Drag a folder unto JSLint Multi, and it will give you an overview of the JSLint status Read the rest…