[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: JavaScript (was Re: Whither XML ?)

  • From: David <dlee@calldei.com>
  • To: Julian Reschke <julian.reschke@gmx.de>
  • Date: Thu, 11 Nov 2010 11:28:53 -0500

Re:  JavaScript (was Re:  Whither XML ?)
Some devices do support gzip HTTP encoding of text data some don't.
Even the ones that do, doesn't solve the problem of wanting to send 
binary data which is not simply gzip'd text using JS.
Javascript doesnt have a binary type, the JS HTTP API's dont allow you 
to fetch (into a JS variable) a binary result from an HTTP request.  
(except that interesting hack with PNG images ... )

And even if you do get gzip'd text the in-memory footprint of such text 
is big, due to 16 bit chars
and processing said text byte by byte in JS is inefficient.

For us who've gotten fat & lazy with the good life of pretending 
everyone has 4G of ram and a 4Ghz  quad core processor, working on 
mobile devices is humbling.   Even when those devices are 100x more 
powerful of the PC's of yesteryear.
Add JavaScript to the mix and the dissertation that it is "The VM of the 
Browser", then add the architectural concept that every app should be a 
locally running "web app" (Web/OS style)  and life is a sad sad state of 
affairs.

I'm sorry but I just dont buy it.  Until JS improves *dramatically* (not 
just in speed but capibility) I predict we will NOT see the plethra of 
high quality 'web apps' that pendants predict.    You just need to look 
at your iPhone for proof.
You can run web apps on it, you can run native apps.   How many '100% 
pure web apps' on the iphone are worth using ?
Do you launch a browser and go to maps.google.com ? or do you launch the 
Google Maps native app.

Why ?



David A. Lee
dlee@calldei.com
http://www.xmlsh.org

>>
>>
>> We were completely unable to adopt this technique to the Palm Web/OS due
>> to the inability to do binary IO and efficient binary parsing.
>> ...
>
> Are you saying those do not support
>
>   Content-Encoding: gzip
>
> ?
>
> Best regards, Julian


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.