Live data from Hacker News

Show HN: HyperApp – 1k JavaScript framework for building web applications

github.com

111–120 of 169 posts

Re: Show HN: HyperApp – 1k JavaScript framework for building web applications

#111

Earlier quoted context omitted.

Yeah nah, I'm not watching a 30mn video on something I'm not interested in to get what amounts to a 2-paragraphs answer.

30m sends you home? Watch it on 2x and skip parts you aren't interested in.

I really want a way to get a generated voice recognition transcript for all that content people really think needs to be in video form. 2x playback is still 14:45 too long in this instance.

Re: Show HN: HyperApp – 1k JavaScript framework for building web applications

#112
post #81
post #69

Earlier quoted context omitted.

We use Hyperapp to power our most complex UIs (decision trees, onboarding sequences, etc.). We didn't need any of the existing React ecosystem for that, and by removing React, we saw several benefits: 1. Smaller library for faster page loads 2. Simpler API, docs and library made it easy to get started and understand what's happening behind the scenes as well as debug any issues we faced 3. We aren't supporting a proj…

Why not Preact?

Because Preact and Hyperapp are solving slightly different problems.

Hyperapp is Elm-like state management (and soon effects and subscriptions in 2.0) on top of an ultra-lightweight virtual DOM diff engine.

Preact is a React 15 clone at best. Check out also https://github.com/NervJS/nerv for another React clone that is closer to React 16 (but still no fiber).

Re: Show HN: HyperApp – 1k JavaScript framework for building web applications

#113
post #19

This is an exceptionally simple library to use in place of React. Both its performance and the development experience have been great. My company's been using it in production for more than a year now without any issues. Highly recommend giving it a look.

people should really give it a book

I guess look? :)

There's a book though: https://booth.pm/ja/items/825889 (Japanese)

Re: Show HN: HyperApp – 1k JavaScript framework for building web applications

#114

If you're interesting in a reactive template library that doesn't require a compiler for non-standard JavaScript syntax, check out a library I've been working on for a little while now, lit-html: https://github.com/Polymer/lit-html Where JSX would look like this: const view = (state, actions) => ( {state.count} actions.down(1)}>- actions.up(1)}>+ ) The lit-html would be: const view = (state, actions) => html` {state.…

But then you miss out on html syntax highlighting and jsx eslint. Or is there tooling that works for the tagged template approach?

Yes: https://github.com/Polymer/lit-html/issues/191

Re: Show HN: HyperApp – 1k JavaScript framework for building web applications

#115

This makes me almost want to write web code again - compared to things like React and Angular 1-2-3-4-5-6.

Just curious what intrigues you about this framework in ways that React does not?

Hyperapp is Elm for the rest of us. I wouldn't compare it to React as they are solving slightly different problems. Hyperapp's state management is built-into the framework. In this way, Hyperapp is a tad more "high-level" (abstract) than React.

Re: Show HN: HyperApp – 1k JavaScript framework for building web applications

#116
post #82

Earlier quoted context omitted.

Not sure what your problem with React is, is it the configuration?

React is a ghetto, basicly + vdom has its own size. IMO thing like hyperhtml or lit-html are the way forward - especially with new templating proposals. Not to mention react is not interoperable really with other solutions - I'd expect webcomponents win long term, since they are built into clients.

Hyperapp and Web Components are a great pair.

Re: Show HN: HyperApp – 1k JavaScript framework for building web applications

#117

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 attach…

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.

Re: Show HN: HyperApp – 1k JavaScript framework for building web applications

#118

I've seen "Show HN: HyperApp" type of submissions at least 5 times earlier. Congrats, you made a 1Kb JS library. Please stop spamming HN though. https://hn.algolia.com/?query=hyperapp&sort=byPopularity&pre...

Some of those results refer to HyperTerminal, the Electron-based terminal app. Other results refer to Hyperapp-like libraries (not Hyperapp). The most recent submission related to Hyperapp was 8 months ago and Hyperapp has come a long way since then.

Here is another angle to this: go into React type of submissions and ask them to stop spamming HN with that?

https://hn.algolia.com/?query=react&sort=byPopularity&prefix...

Re: Show HN: HyperApp – 1k JavaScript framework for building web applications

#119

I've seen "Show HN: HyperApp" type of submissions at least 5 times earlier. Congrats, you made a 1Kb JS library. Please stop spamming HN though. https://hn.algolia.com/?query=hyperapp&sort=byPopularity&pre...

I don't even get why it is important that it's 1kb. Give me a library with great API and easy to use. Nobody cares if library is 1kb or 100kb (minified).

Hyperapp has a great API, it's easy to use and it's 1 kB.

Re: Show HN: HyperApp – 1k JavaScript framework for building web applications

#120
post #37

It's not very performant compared to other v-doms https://rawgit.com/krausest/js-framework-benchmark/master/we...

This is an old benchmark, we're in the same ballpark as React now. Hyperapp is also not just a virtual DOM, but also a state management "all-in-one" kind of thing.
Post reply on HN