mbasso
React-Wasm – Declarative WebAssembly Instantiation for React
Wasm-worker – Move a WebAssembly module into its own thread
Fragments and ref – WebAssembly virtual dom asm-dom0.6.0
Asm-dom-boilerplate: WebAssembly C++ apps without configuration
WebAssembly Server side rendering with C++ – asm-dom0.4.0
JSX to C++ Virtual DOM
Full C++ Web Apps with virtual DOM asm-dom
Styled-components-test-utils – Test utils for styled-components
Styled-components-test-utils – Test utils for styled-components
Re:Asm-Dom – WebAssembly Virtual DOM
on Sunday May 21, 2017 @06:37AM (#14386631)
Yes! h always returns a memory address to a VNode. In C++ this address is reinterpreted in a VNode, that contains others VNode as children. If you decide to manually manage the memory, you can implement some interesting mechanism to diff vnodes and create vdom trees.
To do this, I have to develop some APIs that allows you, for example, to replace a children with another and so on. This is certainly on the roadmap!
Re:Asm-Dom – WebAssembly Virtual DOM
on Sunday May 21, 2017 @06:19AM (#14386590)
DOM interactions are a future feature, I'll update asm-dom to pure WASM without JS when they'll be supported!
Re:Asm-Dom – WebAssembly Virtual DOM
on Sunday May 21, 2017 @06:06AM (#14386555)
Thank you for your answer. I just want to add a little thing to the first point.
> Why the single quotes around function names?
In this case I use quotes to prevent name mangling. I have to be sure that the uglify plugin in webpack does not mangle the names of that object because I'll call it from C++ in this way:
window['asmDomHelpers']['domApi']['createComment'](...)
Also, for the same reason, here I'm using this notation instead of this one:
window.asmDomHelpers.domApi.createComment(...)
to let know the closure compiler that I don't want name mangling.
Without quotes these two different compile processes might cause some problems
Re:Asm-Dom – WebAssembly Virtual DOM
on Sunday May 21, 2017 @05:08AM (#14386410)
In the "How to apply this license" section it is not mentioned https://choosealicense.com/licenses/mit/
If someone has more information or links about that, please let me know
Re:Asm-Dom – WebAssembly Virtual DOM
on Sunday May 21, 2017 @04:21AM (#14386306)
This is the license of the example project, the license of asm-dom is in the root dir
Re:Asm-Dom – WebAssembly Virtual DOM
on Saturday May 20, 2017 @06:04PM (#14384599)
Just committed a fix for that in license.md
Asm-Dom – WebAssembly Virtual DOM
Awesome-wasm – Collection of awesome things regarding WebAssembly
Ienumerable js – immutability as parameter
Create regex from natural language – natural-regex
React-Cssom – Css Selector for React Components
Show HN: React-Cssom – Css Selector for React Components
React Performance measurement – react-decoration1.4.0
JS Immutable Collections with LINQ
Show HN: React-decoration – A collection of decorators for React Components
Show HN: React-decoration – A collection of decorators for React Components
Show HN: IEnumerable.js – Deep immutable collections with LINQ syntax
JavaScript: Missing features
Do you think that there are some missing features in javascript? Language features, syntax... but also libraries etc.