News for hackers. Stuff that matters.
Re:Show HN: Hyperapp – 1 KB JavaScript library for building ... by Katy8 on Tuesday September 05, 2017 @05:04PM (#15179113)
One thing I'm never sure about with these functional frameworks is memory allocation. They seem to create new objects willy-nilly, rather than reusing. Measuring performance of the counter application showed 11Mb garbage collection after about 30 clicks, and that's with one of the smallest state objects possible.

I can see this being of use for apps where this kind of performance is not critical, but when you're animating things this will cause jank. Would love to see an example with a much larger state, and fast updates during animations.

Re:Show HN: Hyperapp – 1 KB JavaScript library for building ... by highmastdon on Tuesday September 05, 2017 @05:44PM (#15179368)
Hi, How did you see that GC? I'd like to know how you do this, to see what happens with my own small tryout with Hyperapp.
Re:Show HN: Hyperapp – 1 KB JavaScript library for building ... by fiatjaf on Tuesday September 05, 2017 @08:56PM (#15180340)
What? How come this is so small? How does the rendering happen without a virtual DOM diff and patch? Where are the functional structures defined?
Re:Show HN: Hyperapp – 1 KB JavaScript library for building ... by jbucaran on Wednesday September 06, 2017 @12:25AM (#15181218)
Diff and patch does happen via a virtual DOM, which is included in the source code. State management is also built-in.
Re:Show HN: Hyperapp – 1 KB JavaScript library for building ... by Beverly898 on Wednesday September 06, 2017 @12:14AM (#15181171)
I like little frameworks like this for tiny apps or sites. Speaking of which does anyone know any other libraries like this?
Re:Show HN: Hyperapp – 1 KB JavaScript library for building ... by jbucaran on Wednesday September 06, 2017 @12:17AM (#15181189)
Re:Show HN: Hyperapp – 1 KB JavaScript library for building ... by Georgia786 on Wednesday September 06, 2017 @12:05AM (#15181132)
Great post - thanks for the reply. Definitely will be looking into this more.