News for hackers. Stuff that matters.
Re:Joe Hewitt : I'm an indie developer now. by wallflower on Friday May 06, 2011 @10:10PM (#2523063)
"I want desperately to be a web developer again, but if I have to wait until 2020 for browsers to do what Cocoa can do in 2010, I won’t wait." -Joe Hewitt [1]

I wonder if Joe Hewitt is not going to wait, and he will channel his energies into helping HTML5 catch the native app rocket ships. Go beyond Firebug.

[1] http://techcrunch.com/2010/04/30/joe-hewitt-web-development/

Re:Joe Hewitt : I'm an indie developer now. by nupark2 on Friday May 06, 2011 @10:30PM (#2523089)
... helping HTML5 catch the native app rocket ships.

Can it? It feels like the browsers are slaves to their own success; what the web desperately needs to compete with native applications is the antithesis of what the web has become. To compete, the web would need:

- A runtime environment that can run complex applications -- including games -- with high performance on low-end mobile devices.

- Support for languages other than JavaScript, without having to compile to JavaScript (for why javascript is not an adequate compilation target, see above).

- A common, consistent, high-level application UI toolkit, with support for re-usable UI components. The seperation between HTML, CSS, and JavaScript is the wrong one. We need 'native' widgets rendered in canvas, using a coherent hierarchical view-based design -- not the DOM. You can build this on top of HTML/JS/CSS (see Obj-J/Cappuccino), but that's like saying that all turing complete languages are equal because they can emulate each other.

Any progress that a particular vendor might make (such as WebSockets, NaCL) will be held back by the other vendors (looking at you, Mozilla).

If you help the web catch up to modern native apps, you'll have just re-created native apps -- sandboxed, native code execution speed, coherent application libraries, etc...

Re:Joe Hewitt : I'm an indie developer now. by nekoZonbi on Saturday May 07, 2011 @05:25AM (#2523478)
There is one huge company, whose name start with g, highly interested in all of the above (they want to make a web apps based os). but seems like they have lacked the inspiration, or... mm.... maybe they are quietly doing it right now, with NaCl
Re:Joe Hewitt : I'm an indie developer now. by kayoone on Saturday May 07, 2011 @05:34AM (#2523495)
That doesnt change the fact that mozilla isnt interested in NaCl, which is sad because it could enable alot of cool stuff, especially in regards to games and realtime apps.
Re:Joe Hewitt : I'm an indie developer now. by Joeri on Saturday May 07, 2011 @11:06AM (#2523834)
There are already a few consistent ui toolkits, even with visual designers. Ext js for example. I've developed desktop apps, and building ext js apps isn't far off from that experience anymore. Maybe it would help if we could get the various javascript frameworks to agree on a component spec.

Also, performance on the mobile space is a matter of waiting 2 or 3 years. Mobile perf is moving up fast, partly by browser revs and partly by better hardware. People used to say we needed something better than javascript and the dom on the desktop as well, and a few years of moore's law made that discussion irrelevant. Browser tech isn't bad enough to need replacing, so i don't see it getting replaced.

Re:Joe Hewitt : I'm an indie developer now. by nupark2 on Saturday May 07, 2011 @11:14AM (#2523850)
This is why the modern native application environments are winning, and the web isn't: "There are already _a few_ consistent ui toolkits" "isn't far off", "maybe it would help," "matter of waiting 2 or 3 years" ...

To compete, the web environment has to change drastically, but those that have invested in the web as it exists today don't want to change.

> Browser tech isn't bad enough to need replacing, so i don't see it getting replaced.

That's just the thing, though -- for applications, it is being replaced.

Re:Joe Hewitt : I'm an indie developer now. by ootachi on Saturday May 07, 2011 @02:25PM (#2524245)
PNaCl is more than two years away from mainstream adoption though. The system is huge and complex due to the fact that it stretches LLVM far beyond what it was meant to handle. For example, LLVM was never designed to have platform-independent bitcode; to make it work they basically had to find ways to make the x86 data layout sorta work for all platforms. Additionally, LLVM bitcode is huge; it was designed to be an intermediate language for compilers, not a packaging mechanism for application distribution.

If we were to use PNaCl, even once Google sorts out all the technical issues, in order to compete with native mobile apps, a whole ecosystem of toolkits and libraries will have to be created. That will take time, and we will see growing pains just like the ones we're seeing with mobile app frameworks for JavaScript.

Compare this to the status quo with JS. In two years, JavaScript will be as fast as NaCl for 90% of applications out there. Look at the speed of LuaJIT, which is the closest cousin to the modern JS engines, compared to C [1]. And this is on scientific number-crunching microbenchmarks! We don't have to throw away the lingua franca of the web in order to achieve good performance.

[1]: http://lua-users.org/lists/lua-l/2009-06/msg00071.html

Re:Joe Hewitt : I'm an indie developer now. by nupark2 on Saturday May 07, 2011 @02:48PM (#2524288)
If PNaCL or similar can't be leveraged, then the web won't keep up as an app platform.

Let's look at the modern platforms:

- Microsoft is innovating heavily on the language front with C#, F#, and the CLR. I'm not a big fan of Microsoft's platforms, but there is no denying that they're doing very interesting work in language and runtime design.

- Google is innovating with Android, the Dalvik VM, and an application development framework not too much worse than Apple's. You have the NDK at your disposal, and many GL-based games can be ported without too much complexity from iOS. Numerous languages are being ported to the JVM, and are supported on Android.

- Apple is innovating with UIKit and high-level high-quality application development frameworks. Even if ObjC isn't particularly cutting edge, it's a reasonable solution for building large applications, it's fast enough, and you've got C at hand.

The browser makers, however, are fighting over whether or not WebSockets can actually be included in the browser; meanwhile, Apple rolled out GameKit support for automatic peer-to-peer session negotiation over bluetooth, wifi, and the internet to support multiplayer games.

The web as an application platform is broken, and will continue to be so as long as browser makers attempt to force everyone to stick to one language, lacking a standardized platform API, using a poor view model (DOM/HTML/CSS), stuck in the browser's limited sandbox.

Re:Joe Hewitt : I'm an indie developer now. by takapa on Wednesday May 11, 2011 @09:15AM (#2536278)
Totally agree with you.

I wrote this a few years ago on the exact same subject and advocated that a real VM plus application stack is required for the browser if it is to compete with native applications.

http://preview.tinyurl.com/webappsrslow

Re:Joe Hewitt : I'm an indie developer now. by Joeri on Saturday May 07, 2011 @12:48PM (#2524027)
My "in three years" remark was meant to indicate when the web model's downsides will become irrelevant. But i think the web is winning right now. The desktop is going webbased faster and faster. It doesn't seem so if you look at games and media software, yet, but in the enterprise market you're laughed out of the room if you don't have a web app. Native apps lost that fight a while ago. They lost for a simple reason: the deployment model is superior, and the app quality of web apps was good enough.

Back to mobile, the app stores make it way easier to ship native apps, and the browsers make it harder to deploy web apps. The consequence is that on mobile native still wins. The app stores may turn out to be better than the web for shipping apps. The web won't win that fight by making it easier to build better apps, it will only do so by making it easier to ship.

Re:Joe Hewitt : I'm an indie developer now. by nupark2 on Saturday May 07, 2011 @01:35PM (#2524152)
We're talking about the modern landscape of native applications -- iOS, Android -- in which apps certainly have not "lost". The legacy desktop application distribution model you're referencing -- one in which a toolbar can spy on you -- is fading away.

The web has the distribution problem solved, but as an application technology platform, it's horrible. Now that we've got a route forward with distribution of native apps, the native app market is growing by leaps and bounds, and it's the web that needs to catch up.

What I'd like to see is a common application platform, PNaCL based, with consistent high-level APIs .. but that would NOT be the web as we know it. It would be another native application platform.

Re:Joe Hewitt : I'm an indie developer now. by wslh on Friday May 06, 2011 @11:31PM (#2523147)
... and a good IDE to build the stuff with drag & drop.
Re:Joe Hewitt : I'm an indie developer now. by joehewitt on Saturday May 07, 2011 @02:20AM (#2523303)
There is definitely an opportunity to create an amazing HTML5 IDE, but I also think that smaller and more focused tools have value. I intend to avoid the temptation to try and boil the ocean so that I can actually ship something useful this year.
Re:Joe Hewitt : I'm an indie developer now. by wallflower on Monday May 09, 2011 @01:44PM (#2529518)
Admire your focus to cut scope and ship! Don't forget to soft launch on HN!