JavaScript syntax tree visualization with Esprima

.

One little feature I added to Esprima parser demo was syntax tree visualization (using YUI TreeView). While it is already possible to see the JSON version of the parsed AST, often a much more visual representation improves the syntax analysis workflow. It is also more educational. An example code that follows: answer = 42 will… Read more »

Esprima and its scalable parsing

.

It’s lunch time. You enter your favorite cafe and place an order for your beloved sandwich. Nobody else is there so your tasty meal is ready in some minutes. The next day, the same situation. This time, there are few other customers in front of you. You wonder if your waiting time (for the sandwich… Read more »

Scalable web apps: the complexity issue

.

Have you encountered a case where you are suspicious about the performance issue in some part of the application and your concern was dismissed? Imagine a typical comment like: Don’t worry. That function runs really fast. While in many cases this is a valid assertion, in other cases being fast is not enough. Future web… Read more »

PhantomJS: minimalistic headless WebKit-based JavaScript-driven tool

.

PhantomJS is a headless WebKit packaged as a JavaScript-driven tool. It can be used in command-line utilities which requires web stack, or even as the basis for testing rich web application. It uses WebKit in a headless mode, so you get access to the real native and fast implementation (not a simulated environment) of various… Read more »

X2 from Ofi Labs: wrap-up 2010

.

It got started when I needed a new home for my examples. It has even a nice logo. sensor accelerometer viewer for Maemo 5 (Nokia N900). bouncing ball, where the gravity affects the movement of the ball. box of marbles, where the gravity affects a bunch of colored marbles. combining accelerometer and network to do… Read more »

Memory efficient DOM (Part 2)

.

This is the follow-up to the first part of my writing on memory efficient DOM implementation for KOffice. Now my intention is to find out whether real-time compression can help to further reduce the memory consumption. XML compression is a whole field of research. There are a bunch of compressor available, from XMill, XMLZip, XMLPPM,… Read more »