Show HN: Moon – fast 7k Vue alternative
github.com
Show HN: Moon – fast 7k Vue alternative
1–10 of 200 posts
Re: Show HN: Moon – fast 7k Vue alternative
#2Re: Show HN: Moon – fast 7k Vue alternative
#3Re: Show HN: Moon – fast 7k Vue alternative
#4Re: Show HN: Moon – fast 7k Vue alternative
#5How does Moon automatically detect static virtual nodes? What makes Moon faster than the alternatives? Finally, how does Moon avoid GC pressure with large trees?
Super easy.
Re: Show HN: Moon – fast 7k Vue alternative
#6How does Moon automatically detect static virtual nodes? What makes Moon faster than the alternatives? Finally, how does Moon avoid GC pressure with large trees?
These propagate up the tree so Moon eventually has a render function that is extremely optimized and can skip everything static, and the diff will only hit the nodes that can change.
Moon also has a stricter syntax for virtual DOM, allowing for less checks to be made at runtime compared to alternatives like HyperScript. This is made possible because Moon's compiler itself is in charge of creating the render functions, allowing it to give certain hints to the virtual DOM diffing engine.
There is really no way to avoid GC when you have a virtual DOM. The virtual DOM trees are pretty light and have memory usage similar to that of React and Inferno.
Re: Show HN: Moon – fast 7k Vue alternative
#7Re: Show HN: Moon – fast 7k Vue alternative
#8Nice work! What did you use for building the documentation ?