Live data from Hacker News

Are mobile web apps really slow?

danbricklin.com

21–30 of 58 posts

Re: Are mobile web apps really slow?

#21
Dan is too humble when giving his credentials in this article. Reading the comments already, it seems some may be unaware that his first claim to fame was VisiCalc: the software from which all modern day spreadsheets are direct descendants.

He's got years of accumulated wisdom that make his comments about programming natively vs. in the browser worth some careful thought. As you read his post, remember he developed a functional, useful, modern spreadsheet package on 1979 hardware.

Re: Are mobile web apps really slow?

#22
post #14

The CTO of a company which makes a web platform for mobile development ( http://www.alphasoftware.com/products.asp ), thinks mobile web apps are good enough? What a surprise...

I'm not sure the cynicism is warranted. Dan does a bunch of native iOS development. He's got more experience than the vast majority of people who read this site. This isn't some random brogrammer writing a post about JavaScript. Dan Bricklin's resume rightfully could include the line "1979: Invented the spreadsheet".

Re: Are mobile web apps really slow?

#24
post #8

> For most of what we are talking about, JavaScript does not execute in a vacuum. It runs in a browser. That browser environment brings a lot to the table. The applications you are coding are often ones that lend themselves to what a browser is good for: Presenting information. We already covered this too. Apps that are just about "presenting information" (your typical CRUD stuff, or glorified CRUD, from Gmail to twi…

At heart, arbitrary distinctions like that end up just being "apps that run well" vs "apps that run badly". And no matter how good the system, there will always be some apps in both camps.

Re: Are mobile web apps really slow?

#25
post #9

The problem again is not really javascript, it is DOM manipulation. You can have the fastest javascript engine ever,if the bottelneck is the DOM , there is little you can do about it. And everybody doesnt own a quad-core mobile. I like Titanium approach where the ui is native and the code is javascript,so you are basically using javascript with a specific API,not the DOM. I'd like to see more frameworks like this , o…

Ubuntu QML. http://www.ubuntu.com/phone/app-ecosystem

Re: Are mobile web apps really slow?

#26
post #9

The problem again is not really javascript, it is DOM manipulation. You can have the fastest javascript engine ever,if the bottelneck is the DOM , there is little you can do about it. And everybody doesnt own a quad-core mobile. I like Titanium approach where the ui is native and the code is javascript,so you are basically using javascript with a specific API,not the DOM. I'd like to see more frameworks like this , o…

Do you have any proof that DOM manipulation is slow? This is a common refrain that I've never seen proof of (other then anecdotally). There are folks saying that the DOM is fast, and how the JS we use to manipulate it is slow. http://blog.korynunn.com/javascript/the-dom-isnt-slow-you-ar...

Re: Are mobile web apps really slow?

#28
It is a little disappointing that this doesn't directly address the issues with the original article's claims. Instead it continues focusing on CPU execution timings. Like many responses to the original article, the elephant in the room is javascript performance on DOM manipulation/UI. To take an example on the desktop, if I gave you two options a) language a which is about 2 times slower than C in doing some math operations b) language b which is about 15 times slower than C in doing some math operations. Both are GC languages with large memory footprint (3-8x) that of C. Which language would you choose to write your UI? If you chose a. you chose WRONG!. a) is java with its horrible AWT/Swing libraries and b) is Visual Basic.

Nothing specific to Java though, the .NET guys have spent about 15 years optimizing their GC. Yet every UI framework on that platform seems like a turd compared to Visual Basic (WinForms, WPF, Silverlight). Looks like they are throwing the towel and asking everyone to move to HTML and javascript. I wish javascript guys spent more time benchmarking UI performance than making it look like C++ (asm.js and other things). Take a paper draw circle on it. Push it on a smooth desk. That's your use case and how things should perform. No jitter, no flashes. Don't care about some fancy assembler optimization for matrix multiplications.

Of course that is only one part of the problem with javascript. The other big problem is lack of tools for putting UI's and writing large programs. On top of that you have to add in all the libraries (jQuery, Angular etc.) now you are totally hosed. You don't know where your performance issues are. In any case, mobile apps today have really two platforms - iOS and Android. They have quite different use cases (paid vs advertising). Most UIs are thin wrappers on services. Porting to the next platform is not some huge rewrite.

Re: Are mobile web apps really slow?

#29
A lot of your article goes on to talk about development time speed up. The original article discussed performance where it is critical, like a game. You can't have compensate on performance even if it comes at the price of higher development time.

Re: Are mobile web apps really slow?

#30
For me, it is not just that web apps feel slow. It is that they feel clunky. I can often see the UI elements being drawn one by one, the animations are rarely smooth, and the gestures (if I'm on mobile) never register as well as they do in native apps. The seams are showing.

Even when native apps are slow, they can have a feeling of cohesiveness and polish that web apps lack.

Post reply on HN