News for hackers. Stuff that matters.
Re:Show HN: Moon – fast 7k Vue alternative by smegel on Saturday August 26, 2017 @02:38PM (#15106740)
Can all the JS framework people lock themselves in a building for a year and figure our the right way to do this -- and only then share it with the world?

Getting ridiculous.

Re:Show HN: Moon – fast 7k Vue alternative by kbr on Saturday August 26, 2017 @02:43PM (#15106760)
I'd love to know why you think Moon is ridiculous, so I can try to improve it. I honestly think what you're doing here is really ridiculous, try and give some feedback instead.

Edit: Sorry, I misunderstood your comment. I interpreted your comment as saying all of these new frameworks are making things ridiculous. This implies that Moon is contributing to that, and I'd rather have feedback.

Re:Show HN: Moon – fast 7k Vue alternative by nkkollaw on Saturday August 26, 2017 @03:22PM (#15106921)
He never said Moon is ridiculous.
Re:Show HN: Moon – fast 7k Vue alternative by smegel on Saturday August 26, 2017 @03:01PM (#15106847)
Your English comprehension is really bad. How's that for some feedback?
Re:Show HN: Moon – fast 7k Vue alternative by dang on Sunday August 27, 2017 @12:32AM (#15109127)
Incivility and acerbic swipes will get you banned here. You've done this many times on HN, unfortunately. Would you please fix this? Among other things, it sets the wrong example for the less laconic.
Re:Show HN: Moon – fast 7k Vue alternative by brlewis on Saturday August 26, 2017 @06:05PM (#15107739)
Yes, we're going to lock ourselves in that building any day now, just as soon as the Operating System people come out.
Re:Show HN: Moon – fast 7k Vue alternative by leeoniya on Saturday August 26, 2017 @02:41PM (#15106752)
browser vendors need to do this.

we need a standardized declarative dom patching mechanism with data-binding that has optimal perf so we dont need to keep reimplementing virtual-dom.

Re:Show HN: Moon – fast 7k Vue alternative by spankalee on Saturday August 26, 2017 @05:14PM (#15107486)
Over in Polymer, we're exploring ways to do exactly that: https://github.com/PolymerLabs/lit-html

Template literals in JS give us a way to always tell the static from dynamic parts of a template. HTML <template> elements let us stamp out pre-defined trees of DOM quickly. Combined we can then only update the dynamic parts without a virtual DOM.

Re:Show HN: Moon – fast 7k Vue alternative by allover on Saturday August 26, 2017 @06:38PM (#15107857)
Also see hyperHTML [1] which is same idea, but predates lit by some months. Comparison here [2].

[1] https://github.com/WebReflection/hyperHTML [2] https://gist.github.com/WebReflection/fadcc419f5ccaae92bc167...

Re:Show HN: Moon – fast 7k Vue alternative by leeoniya on Saturday August 26, 2017 @05:17PM (#15107510)
were you aware of https://github.com/trueadm/t7 when you started?

are there advantages over t7, other than NIH?

Re:Show HN: Moon – fast 7k Vue alternative by spankalee on Saturday August 26, 2017 @05:46PM (#15107664)
T7 is quite a bit larger than lit-html, and requires a vdom reconciler still. lit-html is self-contained and < 2k minified and gzipped.

I also didn't want to use vdom because it doesn't encode whether nodes are static or dynamic, and even static sections are diffed. That's extremely important feature for performance and memory overhead, which is why I'm happy to see that emphasized in Moon.

Also, coming from the Polymer team, where we've had a lot of success using <template> elements to stamp out large pre-defined DOM trees, I wanted a system backed by those.

Re:Show HN: Moon – fast 7k Vue alternative by leeoniya on Saturday August 26, 2017 @05:51PM (#15107683)
thanks for the details.
Re:Show HN: Moon – fast 7k Vue alternative by litzer on Saturday August 26, 2017 @02:42PM (#15106759)
This is a common thought: https://xkcd.com/927/

You could point to frameworks which have had majority usage at any given point and say those were the "right" ways at the time. But ideas evolve, which isn't so ridiculous.

Re:Show HN: Moon – fast 7k Vue alternative by leeoniya on Saturday August 26, 2017 @02:45PM (#15106774)
probably the most over-used xkcd reference of all time.
Re:Show HN: Moon – fast 7k Vue alternative by smegel on Saturday August 26, 2017 @03:07PM (#15106872)
The correct analogy would be "There are 14 competing standards with a new one released each week that creates doubt about the ongoing use of existing established standards and know one knows what the fuck is going on".
Re:Show HN: Moon – fast 7k Vue alternative by cwbrandsma on Saturday August 26, 2017 @04:13PM (#15107183)
Do you want an open ecosystem or a controlled one? There is no in between, and you will hate it no matter what you choose. On the Open ecosystem side of things you have things like Linux with 10,000 independent distributions doing slightly different things. On the controlled you have Microsoft, Apple, and Oracle telling developers the "right" way to do things.