News for hackers. Stuff that matters.
Re:Famo.us – JavaScript engine and framework (Livestream today) by Kenji on Wednesday April 09, 2014 @07:09AM (#7558639)
"40-60fps on phones, tablets, PCs..." >klicks a button >site doesn't react for 2 minutes >laggy background animation >on i7 2.7GHz Laptop (AC adapter plugged in)

Either I'm missing something, or this is absolutely ridiculous. The performance problem is because of the abstraction level, we're too far away from the metal with DOM/JavaScript. This can't be solved with JavaScript.

Re:Famo.us – JavaScript engine and framework (Livestream today) by notduncansmith on Wednesday April 09, 2014 @07:48AM (#7558737)
I would try a hard refresh, it's pretty snappy for me (stock Macbook Air and iPhone 5). It's always been really impressively performant, ever since I heard about it some months ago.
Re:Famo.us – JavaScript engine and framework (Livestream today) by wingerlang on Wednesday April 09, 2014 @08:29AM (#7558857)
Reading this comment made me think the demo would be laggy on my already slow-almost-burning old 2008 Macbook (not pro). But it was very smooth here.
Re:Famo.us – JavaScript engine and framework (Livestream today) by adam74 on Wednesday April 09, 2014 @07:10AM (#7558641)
I'm assuming it compiles to native code on mobile.

BTW, I have a shit computer and the site ran smoothly for me.

Re:Famo.us – JavaScript engine and framework (Livestream today) by Kenji on Wednesday April 09, 2014 @07:16AM (#7558655)
It displays a completely different site on chrome than on firefox for some reason...
Re:Famo.us – JavaScript engine and framework (Livestream today) by rvschuilenburg on Wednesday April 09, 2014 @07:50AM (#7558742)
It also doesn't render the 3D stuff in Internet Explorer. So i'm assuming their stuff is Webkit-only?
Re:Famo.us – JavaScript engine and framework (Livestream today) by tmikaeld on Wednesday April 09, 2014 @07:47AM (#7558732)
Maybe Firefox cant handle it?
Re:Famo.us – JavaScript engine and framework (Livestream today) by notduncansmith on Wednesday April 09, 2014 @07:49AM (#7558740)
I don't think anything compiles to native code, from what I understand it's pure CSS3 (which, in the way they're using it, is rendered via the GPU).

Edit: it appears they have a native iOS version, but it's still buttery smooth in a mobile browser.

Re:Famo.us – JavaScript engine and framework (Livestream today) by nawitus on Wednesday April 09, 2014 @10:37AM (#7559513)
JavaScript compiles to native code.
Re:Famo.us – JavaScript engine and framework (Livestream today) by Kenji on Wednesday April 09, 2014 @12:12PM (#7560231)
Yes, I'm aware of that, but at soon as you interact with the DOM, a canvas, etc, you reintroduce all the overhead that you wanted to circumvent with compilation. And JavaScript without DOM interaction is rarely useful in a browser. For node.js, on the other hand, it sure is awesome. I didn't want to imply that JavaScript itself is necessarily slow, it isn't.
Re:Famo.us – JavaScript engine and framework (Livestream today) by nawitus on Wednesday April 09, 2014 @02:12PM (#7561112)
Well, DOM and the canvas elements empirically are somewhat slow, but there's no inherent reason that makes them slow. Besides, if we're talking about something like a game, you can draw the final output to the canvas at a single step which is not the bottleneck.
Re:Famo.us – JavaScript engine and framework (Livestream today) by jbeja on Wednesday April 09, 2014 @09:02AM (#7558967)
2GB, ADM Dual-Core C60, 1.333GH, on Linux, Chrome browser, no lag and smooth.
Re:Famo.us – JavaScript engine and framework (Livestream today) by KhalPanda on Wednesday April 09, 2014 @08:11AM (#7558799)
Chrome, Ubuntu, crap laptop. Snappy load and smooth animations, here...
Re:Famo.us – JavaScript engine and framework (Livestream today) by chalgo on Wednesday April 09, 2014 @08:11AM (#7558798)
Unusable on Chrome under Ubuntu on an 8 core xeon with 32GB of ram.