Thursday, February 5th, 2009

Chrome Extension Process Model Design Doc

Category: Chrome, 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…

Posted by Dion Almaer at 7:32 am

3.8 rating from 17 votes

Speeding up your JavaScript: Part 3 and 4

Category: JavaScript, Performance

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…

Posted by Dion Almaer at 5:15 am

4.1 rating from 18 votes

Opera comes out with new JavaScript engine in Carakan, new hardware API in Vega

Category: JavaScript, Opera, Performance

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…

Posted by Dion Almaer at 12:01 am

4.5 rating from 35 votes

Tuesday, February 3rd, 2009

Joose 2.0 released

Category: JavaScript, Library

< View plain text > javascript Class("Point", {     has: {         x: {is: "ro"},         y: {is: "rw"},     },     methods: {         clear: function () {             this.x = 0;           Read the rest…

Posted by Dion Almaer at 8:56 am

3.8 rating from 29 votes

Monday, February 2nd, 2009

Writing a JavaScript Tetris; Lessons learned from a Ruby chap

Category: Examples, Games, JavaScript, Tutorial

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…

Posted by Dion Almaer at 8:18 am
Comment here

3.8 rating from 34 votes

JSINQ: LINQ style access for JavaScript objects

Category: JavaScript

< 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…

Posted by Dion Almaer at 7:09 am

3.8 rating from 18 votes

Friday, January 30th, 2009

w00t! Feeling Chatty

Category: Aptana, JavaScript, jQuery, Showcase

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…

Posted by Dion Almaer at 5:16 am

3.3 rating from 31 votes

Thursday, January 29th, 2009

What Server Side JavaScript needs; Join in!

Category: JavaScript, Server

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…

Posted by Dion Almaer at 11:10 am

2.9 rating from 115 votes

Wednesday, January 28th, 2009

Jack: A port of Rack to JavaScript

Category: JavaScript, Server

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…

Posted by Dion Almaer at 7:33 am
1 Comment

3.6 rating from 17 votes

Sitepoint relaunches reference site

Category: CSS, Examples, HTML, JavaScript

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…

Posted by Dion Almaer at 5:26 am

4.1 rating from 32 votes

Xccessors: Cross browser JavaScript get/setters

Category: JavaScript

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…

Posted by Dion Almaer at 4:03 am

3.7 rating from 13 votes

Sunday, January 25th, 2009

jData: pseudo-globalStorage for browsers

Category: JavaScript

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…

Posted by Dion Almaer at 9:04 pm

2.7 rating from 11 votes

Friday, January 23rd, 2009

Dependency Management with the with YUI Loader

Category: JavaScript, Yahoo!

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…

Posted by Dion Almaer at 7:28 am

3.5 rating from 25 votes

Spatial Query: handling spatial maths with flair

Category: JavaScript, Library

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…

Posted by Dion Almaer at 6:23 am
1 Comment

3.1 rating from 20 votes

Speed up your JavaScript with memoization and queueing

Category: JavaScript, Performance

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…

Posted by Dion Almaer at 6:03 am

3.3 rating from 18 votes

JSLint Multi: Continously monitor multiple JavaScript files

Category: JavaScript, Utility, Widgets, Yahoo!

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…

Posted by Dion Almaer at 5:19 am

4.1 rating from 19 votes