15 karma · joined Jan 5, 2015 (11y ago) · 17 submissions
comment 1y ago · link · parent
WASM approach: start very low-level so C is definitely supported. Thus everything is supported, although every language has to roll its own high-level constructs. But over time more patterns can be standardised so languages can be interoperable within a polyglot WASM app.
comment 5y ago · link · parent
fetch("https://heydonworks.com").then(x => x.text()).then(x => {
var f = document.createElement("iframe");
document.body.append(f);
f.style.left = "0px";
f.style.top = "0px";
f.style.width = "100%";
f.style.height = "100%";
f.style.position = "absolute";
f.style.border = 0;
x = x.replace(/\<\/?noscript\>/gi, "");
x = x.replace(/\<script\>.*\<\/script\>/gi, "");
f.contentDocument.write(x);
});comment 7y ago · link · parent
comment 9y ago · link · parent
Also I use my json-mobx library to get serialisation and undo/redo. Example: https://github.com/danielearwicker/baltar
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 11y ago · link · parent
Caveat: Carota does not solve Right-To-Left text or complex scripts, and I'd really appreciate help with that. It's the only blocking issue against me using it in my main work project.
(By a strange coincidence I use the codename Primrose in an unrelated project...)