Better HN
topnewbestaskshowjobs
Log inSign up

mbasso

144 karma · joined Jul 7, 2016 (10y ago) · 33 submissions

Submissions

1.

Script-wasm – Require WebAssembly modules using script tag(github.com ↗)

1 points · by mbasso · 7y ago · discuss

2.

React-Wasm – Declarative WebAssembly Instantiation for React(github.com ↗)

1 points · by mbasso · 7y ago · discuss

3.

Wasm-worker – Move a WebAssembly module into its own thread(github.com ↗)

1 points · by mbasso · 8y ago · discuss

4.

Fragments and ref – WebAssembly virtual dom asm-dom0.6.0(github.com ↗)

1 points · by mbasso · 8y ago · discuss

5.

Asm-dom-boilerplate: WebAssembly C++ apps without configuration(github.com ↗)

3 points · by mbasso · 8y ago · discuss

6.

WebAssembly Server side rendering with C++ – asm-dom0.4.0(github.com ↗)

3 points · by mbasso · 8y ago · discuss

7.

JSX to C++ Virtual DOM(github.com ↗)

2 points · by mbasso · 9y ago · discuss

8.

Full C++ Web Apps with virtual DOM asm-dom(github.com ↗)

2 points · by mbasso · 9y ago · discuss

9.

Styled-components-test-utils – Test utils for styled-components(github.com ↗)

3 points · by mbasso · 9y ago · discuss

10.

Styled-components-test-utils – Test utils for styled-components(github.com ↗)

1 points · by mbasso · 9y ago · discuss

comment 9y ago · link · parent

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!

comment 9y ago · link · parent

DOM interactions are a future feature, I'll update asm-dom to pure WASM without JS when they'll be supported!

comment 9y ago · link · parent

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

comment 9y ago · link · parent

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

comment 9y ago · link · parent

This is the license of the example project, the license of asm-dom is in the root dir

comment 9y ago · link · parent

Just committed a fix for that in license.md

17.

Asm-Dom – WebAssembly Virtual DOM(github.com ↗)

158 points · by mbasso · 9y ago · 51 comments

18.

Awesome-wasm – Collection of awesome things regarding WebAssembly(github.com ↗)

2 points · by mbasso · 9y ago · discuss

19.

Ienumerable js – immutability as parameter(github.com ↗)

2 points · by mbasso · 9y ago · discuss

20.

Create regex from natural language – natural-regex(github.com ↗)

2 points · by mbasso · 9y ago · discuss

21.

React-Cssom – Css Selector for React Components(github.com ↗)

1 points · by mbasso · 9y ago · discuss

22.

Show HN: React-Cssom – Css Selector for React Components(github.com ↗)

1 points · by mbasso · 9y ago · discuss

23.

React Performance measurement – react-decoration1.4.0(github.com ↗)

2 points · by mbasso · 10y ago · discuss

24.

JS Immutable Collections with LINQ(ienumerable.js.org ↗)

1 points · by mbasso · 10y ago · discuss

25.

Show HN: React-decoration – A collection of decorators for React Components(github.com ↗)

50 points · by mbasso · 10y ago · 13 comments

26.

Show HN: React-decoration – A collection of decorators for React Components(github.com ↗)

3 points · by mbasso · 10y ago · discuss

27.

Show HN: IEnumerable.js – Deep immutable collections with LINQ syntax(github.com ↗)

4 points · by mbasso · 10y ago · discuss

28.

JavaScript: Missing features

1 points · by mbasso · 10y ago · discuss

29.

IEnumerable.js – Deep immutable collections with LINQ syntax(github.com ↗)

2 points · by mbasso · 10y ago · discuss

12