Better HN
topnewbestaskshowjobs
Log inSign up

hyperapp

217 karma · joined Jan 30, 2017 (9y ago) · 120 submissions

Submissions

comment 6y ago · link · parent

Reagent is amazing, thank you for sharing it.

comment 6y ago · link · parent

Stimulus is not so much concerned with rendering HTML. Hyperapp is almost exclusively focused on rendering HTML and client side application architecture (state management, controlled side effects, subscriptions).

It's more comparable to Elm than React, Vue, Angular, Svelte, etc., since it's based on functional principles and you can only write pure, immutable code.

comment 6y ago · link · parent

They're similar, but Hyperapp is purely functional and more comparable to Elm.

comment 6y ago · link · parent

This deserves a much better answer, but I'll just say this for now. Svelte is declarative/imperative (but mostly imperative) and also not based on functional principles. React is definitely more on the declarative side. And Hyperapp is essentially Elm in JavaScript, so it's as declarative/functional/immutable as the definition allows for.

Maybe the person that said Svelte was more declarative was only familiar with an older incarnation of Hyperapp that wasn't completely based on functional principles, or maybe they're using a more loose but inaccurate definition of declarative (kind of like how people often say "theory" when they actually mean "hypothesis").

comment 6y ago · link · parent

I put it there, so I apologize for it. We were in the middle of a rewrite while working towards the official V2 release and weren't expecting to be on HN right now haha. Thanks for chipping in!

comment 6y ago · link · parent

Do you happen to own hyper.app?

comment 6y ago · link · parent

If you like htm, check https://github.com/zaceno/hyperlit too

comment 6y ago · link · parent

100% agree, that's exactly what @hyperapp/html package attempts:

- https://www.npmjs.com/package/@hyperapp/html

comment 6y ago · link · parent

Thank you for the feedback. I'll keep this in mind too. I'm definitely not advocating JSX usage. I favor hyperscript myself, but I understand it's an acquired taste.

Idiomatic JavaScript alternatives that don't involve compilation include:

- https://github.com/zaceno/hyperlit, and the aforementioned - https://www.npmjs.com/package/@hyperapp/html

comment 6y ago · link · parent

That's what it is, thank you for clarifying.

comment 6y ago · link · parent

We're so close to the official V2 release, but there are still issues. I'll make sure to fix most by then. You totally have a point about the lack of an ecosystem, but building one is where the fun is. I am sure we'll get there! Thank you for your feedback.

comment 6y ago · link · parent

Thank you! This is exactly the kind of feedback that we need to improve our presentation. I might just update the tutorial to use @hyperapp/html [1] instead.

[1]: https://www.npmjs.com/package/@hyperapp/html

comment 6y ago · link · parent

Ah, gotcha gotcha. Thank you for reporting it! :)

comment 6y ago · link · parent

Exactly! And the latest version (which is not officially out yet) is even closer to Elm that the first version ever was.

comment 6y ago · link · parent

It's all client-side. When I click that link, it opens the site as usual.

comment 6y ago · link · parent

Any idea why? Any info you can share would help us debug whatever the issue is.

comment 6y ago · link · parent

Do you know why?

comment 6y ago · link · parent

There's a a JSX-like ttl for Hyperapp too, check it out:

https://github.com/zaceno/hyperlit

comment 6y ago · link · parent

Curious to hear what boilerplate you think Vue or Preact already handles for you.

comment 6y ago · link · parent

Yeah, the site is a WIP, but that should be fixed soon when V2 is officially out.

comment 6y ago · link · parent

I haven't done a great job at explaining why the current Hyperapp is superior than its previous incarnation, but V2 isn't officially out yet, so I encourage you circle back to it when it is.

comment 6y ago · link · parent

That's an issue with the site that'll be fixed when Hyperapp is officially released.

comment 6y ago · link · parent

We are very close to the official V2 release, but right now that page is still a WIP.

The link works fine, though.

comment 8y ago · link · parent

I am almost sure "in fact" is always two words.

comment 8y ago · link · parent

Yeah, but I think it's because they have the same name, only the number on the right is different and people tend to assume that Perl 6 is the one after 5.
1234