News for hackers. Stuff that matters.
Re:Show HN: HyperApp – 1k JavaScript framework for building ... by no_wizard on Tuesday May 22, 2018 @12:03PM (#17126939)
This looks pretty awesome! Inspired by hyperscript I assume?

https://github.com/hyperhype/hyperscript

Question: I was looking over the source and noted that you weren’t building your virtual dom with the document fragment API https://developer.mozilla.org/en-US/docs/Web/API/DocumentFra...

Is there any particular reason why? I’m curious because it’s my general understanding that creating a document fragment and attaching your vnodes to that and then pushing to the dom is more efficient especially for diffing

Re:Show HN: HyperApp – 1k JavaScript framework for building ... by dlbucci on Tuesday May 22, 2018 @12:30PM (#17127184)
I have heard that as long as elements aren't actually in the DOM, they are as fast as fragments, so you can use document.createElement instead of fragments. No idea if that's true or not.
Re:Show HN: HyperApp – 1k JavaScript framework for building ... by starbuzz on Tuesday May 22, 2018 @07:26PM (#17130314)
Hyperapp is based on virtual DOM and yes, I guess you could say it's inspired by Hyperscript in the same way as all virtual DOM based libraries or frameworks.