Aron Nyborg Allen
Aron Nyborg Allen
I found a simple solution passing Array as the factory function works admirably.
For those interested, my solution is below: ```typescript export const JSX = { createElement (tagName: string, options = {}, ...children): vDOMSON { return [tagName, options, children]; }, __spread: (a) =>...
We are using sharp to deliver dynamically resized and retina optimized movie posters for the streaming services youseeplay.dk and blockbuster.dk.
@jbucaran by I/O i mean the overhead in the communication between the web worker thread and the main thread.
@jbucaran basically I want a flat list of mutations. something like ``` [ ['remove', [0,2,1,2,5,1]], ['add', [0,2,1,2,5,1], node], ['update', [0,2,1,2,5,1], node] ] ``` The coordinates must be defined so that...
@staltz thanks for the hint. If the DOM API only received virtual DOM nodes, and expected virtual DOM nodes it would be quite easy to port. I guess I could...
@jbucaran yes, it is pretty neat. I think I can put something together.
@mightyiam I don't know, my idea of using web workers is more about security by providing an encapsulated execution context. Since everything needs to be patched in the main thread...
I am using WebWorkers, but the patching is done in the main thread. I am transmitting vTrees, through postMessage. I am defining them in something i call vDOMSON. I can...
if vDOMSON is ```typescript ['div', {style : {color : 'red'}}, [['span', null, 'hello']]] ``` then we can map it to snabbdom like this. ```typescript function vDOMSONtoSnabbdom(node) { const [tag, options,...