User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
interpreter [2012/10/16 21:16]
will
interpreter [2014/07/21 00:13]
will
Line 1: Line 1:
-====== Interpreter ====== +====== ​Tailspin Javascript ​Interpreter ====== 
-The Javascript interpreter used to run the algorithms on this wiki is a highly modified versions of the [[https://​github.com/​mozilla/​narcissus|Narcissus]] Javascript interpreter.+The Tailspin ​Javascript interpreter used to run the algorithms on this wiki is a fully reversible, standards-compliant,​ meta-circular Javascript interpreter. As well as running in the browser and allowing algorithms to be visualised, it can run code both forwards and backwards in time. It is written in [[continuation passing style]], so that the interpretation can be paused and controlled by the user.
  
-It currently passes 93% of the [[http://test262.ecmascript.org|ECMAScript Language test262]] test suite.+See [[http://wthimbleby.github.io/​tailspin/​|Tailspin]] on GitHub.
  
-^                                             ^ Passes ^ Total ^   % ^ +===== ES5.Compliance ===== 
-| Ch06 Notational Conventions ​                ​| ​   ​|    1 |  100.00% | +Tailspin currently passes 99of the [[http://​test262.ecmascript.org|ECMAScript ​Language test262]] test suite.
-| Ch07 Lexical Conventions ​                   |  594 |  715 |  83.08+
-| Ch08 Types                                  |  175 |  182 |  96.15% | +
-| Ch09 Type Conversion and Testing ​           |  128 |  128 |  100.00% | +
-| Ch10 Executable Code and Execution Contexts |  232 |  377 |  61.54% | +
-| Ch11 Expressions ​                           |  1177 |  1320 |  89.17% | +
-| Ch12 Statements ​                            ​| ​ 470 |  521 |  90.21% | +
-| Ch13 Function Definition ​                   |  152 |  230 |  66.09% | +
-| Ch14 Program ​                               |   12 |   24 |  50.00% | +
-| Ch15 Standard Built-in ​ECMAScript ​Objects ​  ​| ​ 7892 |  8074 |  97.75% | +
-+
-| Totals ​                                     |  10833 |  11572 |  93.61% ​ |+
  
-A lot of the failures currently ​are due to not handling "​strict"​ code.+===== Reversibility ===== 
 +Tailspin can optionally be run in a reversible mode, where state changes are recorded so that they can be undone. This allows much more informative visualisations and interaction,​ at the cost of running slightly slower and a bit more memory. 
 + 
 +In reversible mode almost all state changes can be undone. Some state changes such as ''​Object.freeze()''​ and ''​Object.seal()'' ​are not reversible at the moment as Tailspin uses the browser'​s Javascript objects and the effects of these functions are permanent.
interpreter.txt · Last modified: 2015/06/01 16:08 (external edit)