News for hackers. Stuff that matters.
Re:Famo.us – JavaScript engine and framework (Livestream today) by edwinvdgraaf on Wednesday April 09, 2014 @07:23AM (#7558676)
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.
Re:Famo.us – JavaScript engine and framework (Livestream today) by Ronsenshi on Wednesday April 09, 2014 @10:06AM (#7559336)
Would be nice if "About" page worked - just to clear some stuff about framework.

Also, something's not quite right with menu background on Android (Chrome) disappears after a bit. Although, if you click on "menu" button, it's visible, but only until you close it.

Re:Famo.us – JavaScript engine and framework (Livestream today) by madoublet on Wednesday April 09, 2014 @09:04AM (#7558980)
I really hope this is successful. But to me, animation performance is really a small problem in the larger problem of deploying HTML as an app. Sure, having something that performs on par with native apps is great. But, both Ionic and WinJS seem to be tackling that problem right now. And, both don't use some esoteric 3D rendering engine and are fully compliant with Angular or anything else you want to use.

The bigger problem, in my mind at least, is gaining full access to the same APIs that are available to native DEVs. Cordova does a pretty good job, but if you go off their core APIs then you are stuck trying to build or figure out plugins, which is less than ideal.

Re:Famo.us – JavaScript engine and framework (Livestream today) by beaker52 on Wednesday April 09, 2014 @07:55AM (#7558750)
Re:Famo.us – JavaScript engine and framework (Livestream today) by spyder on Wednesday April 09, 2014 @10:40AM (#7559543)
List of demos: http://demo.famo.us/
Re:Famo.us – JavaScript engine and framework (Livestream today) by dreen on Wednesday April 09, 2014 @08:37AM (#7558877)
I like how the example idea is ripped off three.js: http://threejs.org/examples/#css3d_periodictable ;p

But seriously, this doesn't look very release-ready.

Re:Famo.us – JavaScript engine and framework (Livestream today) by itp on Wednesday April 09, 2014 @08:42AM (#7558895)
If you visit your own link and then click on the "info" link at the top, you'll be taken to a G+ post explaining that the three.js periodic table demo was an attempt to recreate something the author had seen.

Written in famo.us.

Re:Famo.us – JavaScript engine and framework (Livestream today) by dreen on Wednesday April 09, 2014 @08:46AM (#7558906)
You're right, that's interesting.
Re:Famo.us – JavaScript engine and framework (Livestream today) by itp on Wednesday April 09, 2014 @08:53AM (#7558930)
If nothing else it's an indictment of the weird beta-but-not-really-beta that famo.us has spent so much time in, given that this isn't the first time I've seen people assume that it was a three.js demo that inspired the famo.us demo, rather than the other way around.
Re:Famo.us – JavaScript engine and framework (Livestream today) by dreen on Wednesday April 09, 2014 @09:29AM (#7559101)
Yeah, it seems the first post about it on HN was over a year ago. I suppose that's a good enough time for a controlled test release. Will be exciting to see this in the wild.