Tag: JavaScript

  • Polyrhythm Visualizations and Auralizations Using HTML5

    The implementation depends on HTML5 canvas and HTML5 audio, is experimental, and works best in Google Chrome (version 10.0 as of this writing). The experiment, which uses HTML5 features. Before the HTML version, I wrote a polyrhythm visualizer some time ago as a Java applet, when I was learning a number of the Chopin nocturnes.…

  • The Great void of JavaScript

    In JavaScript, you often see code like this: // 1 (function() { a bunch of code; })(); The code in the function runs immediately and allows you to avoid namespace collisions with other code. If the code includes (inner) functions, those functions are essentially private. In fact, they will go away if there are no…

  • Memory Leaks in IE8 and IE9 (Fixed in IE10)

    In June 2007, Microsoft famously fixed a problem with memory leaks in Internet Explorer 6. IE8 leaks memory worse than IE6 ever did, yet I haven’t been able to find any mention of it. I say worse because: No closures or circular references are required. I cannot find a workaround. (Update: See comments from May…