Skip to content

Instantly share code, notes, and snippets.

View Mrwaite's full-sized avatar

Mrwaite Mrwaite

View GitHub Profile
@fghpdf
fghpdf / .eslintrc
Created November 19, 2016 13:08
eslint 配置文件
{
"env": {
"node": true,
"es6": true
},
"globals": {
"_": true,
"Promise": true
},
"rules": {
@lawnsea
lawnsea / web-worker-vdom-challenges.md
Last active January 2, 2021 08:26
A discussion of the challenges I anticipate we will face creating a widely useful system based on a virtual DOM running in a web worker

I have been watching the current discussions about running a virtual DOM in a web worker with a great deal of interest. In 2011, I built a research project, [Treehouse][] ([USENIX Talk][] ([DOMTRIS][] demo at 20:25), [paper][]), which ran a hacked-up version of jsdom in a worker. My goal was fine-grained containment of untrusted scripts, while still providing access to browser APIs that existing code expected.

Treehouse achieved a small amount of influence in academic circles, but it had problems and was ultimately unsuccessful. Virtual DOMs were not a widespread or well-understood idea at the time, so the advantages of running one in a worker