News for hackers. Stuff that matters.
Re:Why Native Apps Really Are Doomed: Native Apps Are Doomed... by CyberDildonics on Wednesday November 23, 2016 @07:50AM (#13022237)
I'm surprised this ends up being as controversial as it is. Either the capabilities of web technologies that are here or coming (webasm) what can be done with a web page is increasing. How many native apps are even compiled natively? Webasm actually has the potential to be faster than many native apps at the same time.
Re:Why Native Apps Really Are Doomed: Native Apps Are Doomed... by lj3 on Wednesday November 23, 2016 @07:54AM (#13022261)
> Webasm actually has the potential to be faster than many native apps at the same time.

How do you figure?

Re:Why Native Apps Really Are Doomed: Native Apps Are Doomed... by candiodari on Wednesday November 23, 2016 @09:42AM (#13022943)
This is the constant claim from the web community. You can easily find references that there is no reason javascript has to be slower than compiled code from long ago. They all boil down to the sufficiently smart compiler argument.

Of course that became well known to be ridiculous.

But rhino would change that. asm.js would change that ! V8 will change that ! Native client will change it ! P-nacl will change it !

Of course, for all of these you can find some skewed edge case where someone was able to make a benchmark say the javascript/web version was faster. . It never was faster in practice for any of these. Browsers, after 22 years of optimizations are still far slower than even pretty bad native apps ... And let's just not mention games (not to worry the latest javascript 3d abstraction will change that. Of course)

And now webasm will change it - I guess. Well, no, truth be told, I guess not !

Re:Why Native Apps Really Are Doomed: Native Apps Are Doomed... by lj3 on Wednesday November 23, 2016 @04:40PM (#13026006)
As far as I can tell, pnacl came pretty darn close. It executes LLVM bitcode and supports hardware features like SIMD and threads. For some reason I'm not aware of[0], they made pnacl dependent on the pepper plugin api, which only chrome uses. That pretty much killed it dead on arrival. None of the other browser manufacturers were interested in implementing chrome's pepper api so they can run chrome plugins, especailly since the pepper api isn't open and isn't documented anywhere.

[0]: I'm sure there's a good reason for this decision, I just don't know what it is.

Re:Why Native Apps Really Are Doomed: Native Apps Are Doomed... by candiodari on Wednesday November 23, 2016 @10:27PM (#13027783)
I would agree. PNacl is one of those technologies that failed because it died, not because it was bad. People felt it needed to be killed and it was killed, or abandoned.

There is criticism, such as that it only solved one part of the puzzle of getting real apps running on the web browser, but it's not like anything else came closer.

Re:Why Native Apps Really Are Doomed: Native Apps Are Doomed... by CyberDildonics on Thursday November 24, 2016 @10:22AM (#13030741)
> And now webasm will change it - I guess. Well, no, truth be told, I guess not !

You didn't give anything to back up your claim except for 'nope, nuh uh'. V8 did speed up the state of the art in javascript and asm.js went further than that, but both of those are tangential.

Webasm is made for statically typed programs with explicit memory allocation. Combine that with the fact that most apps are not compiled natively and those that are still don't have explicit memory allocation unless made with swift for IOS. What is the limitation other than you not understanding webasm and not wanting to believe it could be JITed efficiently.

Re:Why Native Apps Really Are Doomed: Native Apps Are Doomed... by mcphage on Wednesday November 23, 2016 @09:09AM (#13022703)
> How many native apps are even compiled natively? Webasm actually has the potential to be faster than many native apps at the same time.

If non-compiled native apps end up slower than web pages, they'll start using webasm as well.

Re:Why Native Apps Really Are Doomed: Native Apps Are Doomed... by akerro on Wednesday November 23, 2016 @08:10AM (#13022351)
Yea, Java/C# with AOT can be faster than C. Only under some circumstances, on some hardware, if VM supports it.
Re:Why Native Apps Really Are Doomed: Native Apps Are Doomed... by CyberDildonics on Thursday November 24, 2016 @10:29AM (#13030776)
Java and C# both use garbage collection and typical Java and C# make heavy use of pointers, indirection and many tiny heap allocations.