Go to file
Gabriel Wicke d918fa18ac Big token transform framework overhaul part 2
* Tokens are now immutable. The progress of transformations is tracked on
  chunks instead of tokens. Tokenizer output is cached and can be directly
  returned without a need for cloning. Transforms are required to clone or
  newly create tokens they are modifying.

* Expansions per chunk are now shared between equivalent frames via a cache
  stored on the chunk itself. Equivalence of frames is not yet ideal though,
  as right now a hash tree of *unexpanded* arguments is used. This should be
  switched to a hash of the fully expanded local parameters instead.

* There is now a vastly improved maybeSyncReturn wrapper for async transforms
  that either forwards processing to the iterative transformTokens if the
  current transform is still ongoing, or manages a recursive transformation if
  needed.

* Parameters for parser functions are now wrapped in abstract Params and
  ParserValue objects, which support some handy on-demand *value* expansions.
  Keys are always expanded. Parser functions are converted to use these
  interfaces, and now properly expand their values in the correct frame.
  Making this expansion lazier is certainly possible, but would complicate
  transformTokens and other token-handling machinery. Need to investigate if
  it would really be worth it. Dead branch elimination is certainly a bigger
  win overall.

* Complex recursive asynchronous expansions should now be closer to correct
  for both the iterative (transformTokens) and recursive (maybeSyncReturn
  after transformTokens has returned) code paths.

* Performance degraded slightly. There are no micro-optimizations done yet
  and the shared expansion cache still has a low hit rate. The progress
  tracking on chunks is not yet perfect, so there are likely a lot of unneeded
  re-expansions that can be easily eliminated. There is also more debug
  tracing right now. Obama currently expands in 54 seconds on my laptop.

Change-Id: I4a603f3d3c70ca657ebda9fbb8570269f943d6b6
2012-05-15 17:05:47 +02:00
api should be in contents 2012-01-31 00:10:03 +00:00
contentEditable First implementation of IME for content editable 2012-02-09 00:51:59 +00:00
demos Build out ve.Surface constructor to support multiple editor instances 2012-04-26 11:56:47 -07:00
modules Big token transform framework overhaul part 2 2012-05-15 17:05:47 +02:00
tests List markup is created during the sync23 phase. 2012-05-08 11:39:36 +02:00
.gitreview Add .gitreview file 2012-03-22 13:54:55 -07:00
README update a couple notes in VE readme 2011-11-02 21:14:04 +00:00
SpecialVisualEditorSandbox.php unnecessary to define messages here, followup r105972 2011-12-13 09:34:05 +00:00
VisualEditor.alias.php Localisation updates for special pages and magic words for extensions from http://translatewiki.net. 2011-12-25 22:19:29 +00:00
VisualEditor.i18n.php Localisation updates from http://translatewiki.net. 2012-05-14 19:42:58 +00:00
VisualEditor.php Add links in sandbox and demo to ve.dm.DocumentSychronizer.js 2012-04-02 13:28:09 -07:00

We're starting to merge bits from Wikidom and ParserPlayground tests here.
Enjoy!

Short-term work highlights:
* convert parser to wikidom format & using the wikidom serializer
* port/update/write more tests
* Special: page to host the editor as a standalone demo
* Opt-in test mode to switch the editor in on EditPage (initially blank)
* Use serializer to save pages from editor
* Use parser to load pages into editor

Long-term work highlights:
* more thorough & bulk testing
* more extension support