4 ms·
Famo.us – JavaScript engine and framework (Livestream today)
- Kenji 13y ago"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.
- adam74 13y agoI'm assuming it compiles to native code on mobile. BTW, I have a shit computer and the site ran smoothly for me.
- Kenji 13y agoIt displays a completely different site on chrome than on firefox for some reason...
- tmikaeld 13y agoMaybe Firefox cant handle it?
- deleted 13y ago[deleted]
- rvschuilenburg 13y agoIt also doesn't render the 3D stuff in Internet Explorer. So i'm assuming their stuff is Webkit-only?
- notduncansmith 13y agoI 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.
- notduncansmith 13y agoI 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.
- chalgo 13y agoUnusable on Chrome under Ubuntu on an 8 core xeon with 32GB of ram.
- KhalPanda 13y agoChrome, Ubuntu, crap laptop. Snappy load and smooth animations, here...
- wingerlang 13y agoReading 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.
- jbeja 13y ago2GB, ADM Dual-Core C60, 1.333GH, on Linux, Chrome browser, no lag and smooth.
- nawitus 13y agoJavaScript compiles to native code.
- Kenji 13y agoYes, 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.
- nawitus 13y agoWell, 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.
- edwinvdgraaf 13y agoSome more information: https://docs.google.com/a/famo.us/document/d/1aC461kM855a66SzFT_TG8sHpQxqDWy-4yH2XfLBxtTk/edit?pli=1 https://docs.google.com/a/famo.us/document/d/1aC461kM855a66S... and https://docs.google.com/a/famo.us/document/d/1DE_26fh9nYbU2xYcrxPWFLjC5Lc1M-0vf2L-qTmuoqw/edit?pli=1#heading=h.6ncv3vx0scj6 https://docs.google.com/a/famo.us/document/d/1DE_26fh9nYbU2x... Source: https://twitter.com/befamous https://twitter.com/befamous
- beaker52 13y agoLivestream: https://www.youtube.com/watch?v=YmQMVjCVZBo https://www.youtube.com/watch?v=YmQMVjCVZBo
- deleted 13y ago[deleted]
- dreen 13y agoI like how the example idea is ripped off three.js: http://threejs.org/examples/#css3d_periodictable http://threejs.org/examples/#css3d_periodictable ;p But seriously, this doesn't look very release-ready.
- itp 13y agoIf 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.
- dreen 13y agoYou're right, that's interesting.
- itp 13y agoIf 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.
- dreen 13y agoYeah, 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.
- madoublet 13y agoI 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.
- Ronsenshi 13y agoWould 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.
- spyder 13y agoList of demos: http://demo.famo.us/ http://demo.famo.us/