User loginNavigation |
Javascript in Javascript in a WikiI'd been playing around with interpreting Javascript in Javascript, building off the Narcissus interpreter. Then I implemented some sucky pseudo code and that got me thinking about algorithm visualisation and how to improve pseudo-code on the web. In an interactive medium there really is little reason why algorithms should still be presented as static text. So I rewrote the Javascript interpreter in continuation-passing style, so that it's execution could be paused. And the result is Javascript code that runs in the browser but can be controlled and visualised. Code that a user can pause and step through to see the control flow. The interpreter is currently passing 95% of the ECMAScript Language test262 test suite. On top of the Javascript interpreter I built an experimental wiki to explore making algorithms interactive on the web. There are still lots of things to do and to figure out (eg. security), but I think it is very promising. I also mangled it with the WebKit inspector to produce a Javascript IDE, although it's a bit rough and buggy. More info: http://will.thimbleby.net/removing-the-pseudo-from-pseudo-code/ By Will Thimbleby at 2012-11-16 08:05 | LtU Forum | previous forum topic | next forum topic | other blogs | 1320 reads
|
Browse archivesActive forum topics |
Recent comments
8 hours 43 min ago
10 hours 26 min ago
10 hours 55 min ago
13 hours 50 sec ago
13 hours 39 min ago
16 hours 50 min ago
17 hours 34 min ago
19 hours 10 min ago
23 hours 23 min ago
1 day 4 hours ago