News for hackers. Stuff that matters.
Re:Bringing asm.js to the Chakra JavaScript engine in Window... by bzbarsky on Wednesday February 18, 2015 @09:25PM (#9072117)
Yes, they already are. That framework is called the DOM. People keep complaining about it and trying to come up with replacement frameworks that end up slower and less capable...

The DOM definitely has its problems, mind you. Investing some time in designing a proper replacement for it is worth it, as long as people understand going in that the project might well fail.

Re:Bringing asm.js to the Chakra JavaScript engine in Window... by coldtea on Thursday February 19, 2015 @05:08AM (#9073292)
>Yes, they already are. That framework is called the DOM. People keep complaining about it and trying to come up with replacement frameworks that end up slower and less capable...

The ones I've seen are actually faster -- Flipboard for one gets to 60fps scrolling on mobile, IIRC. And of course all WebGL based interfaces on native mobile apps that re-implement parts of Cocoa Touch et al, are not that shabby either.

Sure, it doesn't have as much accesibility, but that's something that can be fixed in the future (and of course people needing more accessibility can always use more conservative alternatives).

Re:Bringing asm.js to the Chakra JavaScript engine in Window... by adamnemecek on Wednesday February 18, 2015 @09:39PM (#9072143)
Which framework has tried to replace the DOM?
Re:Bringing asm.js to the Chakra JavaScript engine in Window... by bzbarsky on Wednesday February 18, 2015 @09:50PM (#9072169)
None have tried to replace all of it that I know of.

People have tried to replace things like text editing (with canvas-based editors), CSS layout of the DOM (with various JS solutions involving absolute positioning), native MathML support (MathJax; this one has of necessity done better than most, because of so many browsers not having native MathML support). There are a bunch of things out there that attempt to replace or augment the built-in form controls, with varying degrees of success.

Re:Bringing asm.js to the Chakra JavaScript engine in Window... by xxgreg on Saturday February 21, 2015 @04:34AM (#9085155)
Re:Bringing asm.js to the Chakra JavaScript engine in Window... by adamnemecek on Wednesday February 18, 2015 @10:22PM (#9072252)
That's my point. Currently, you cannot really replace the DOM since that's kind of the extent of the exposed APIs.

None of the projects that you mention are really relevant to the discussion. I agree that they didn't change shit but it's precisely because they are still built on the DOM and cannot really go below that in the abstraction layer.

Re:Bringing asm.js to the Chakra JavaScript engine in Window... by coldtea on Thursday February 19, 2015 @05:12AM (#9073302)
>I agree that they didn't change shit but it's precisely because they are still built on the DOM and cannot really go below that in the abstraction layer.

There exist UIs done in Canvas and WebGL that are arguably below the DOM in the "abstraction layer" and don't need to use much more DOM nodes besides opening a canvas/gl panel...

(Most full screen 2G/3G web games fall into this, for starters, and those are in the tens of thousands. But there are also lotsa apps).

Re:Bringing asm.js to the Chakra JavaScript engine in Window... by comex on Thursday February 19, 2015 @02:45AM (#9072918)
Flipboard's from the recent story? The resulting site breaks accessibility and the layout obviously has less capability, but it's certainly not slower.
Re:Bringing asm.js to the Chakra JavaScript engine in Window... by adamnemecek on Thursday February 19, 2015 @03:51AM (#9073070)
Huh, that's actually seeming not that dissimilar from what I had in mind.