News tagged ‘JavaScript’
WinterBoard - HTML as a background
Winterboard is amazing. Saurik, the developer of Winterboard, has just added dynamic backgrounds. Your background can now be an HTML web page using webkit. The possibilities are endless. He threw together a small theme called “Saurik” that fades in and out between two images as an example. But so much more can be done with this.
Comments from Saurik:
So, while staring at the desktop, I realized “wait, why don’t I make that a website? then you could do all kinds of neat things with it!”. This dream has been made a reality with the latest version of WinterBoard. There is a new file you can add called Wallpaper.html which puts a UIWebDocumentView behind SpringBoard.
IPhone web-based voice control from AT&T
AT&T has developed a software trick that will recognize voice commands without the need for specialized voice recognition software. It is based on a new version of AT&T's WATSON speech recognition engine.
As long as the software used to access Speech Mashups obeys certain web standards, particularly an AJAX framework and JavaScript, the technology can capture voice commands, interpret them at a remote server, and send them back to the device in a language a website or program can understand -- all without installing a dedicated app or plugin.
In a prototype mobile version of the YellowPages website, AT&T in a research video shows an iPhone user entering the business name and location into text fields on the page just by speaking them at the appropriate times. While typing would work in such a case, the company claims that voicing the information is faster and more convenient.
via appleinsider
Safari benchmark - 2.0 is faster than 1.1.4
There is not much defference between Safari 1.1.4 and 2.0. But Under the hood, MobileSafari 2.0's performance is hugely improved over 1.1.4. Everything related to web surfing feels faster, web pages consistently load faster on 2.0, both via Wi-Fi and EDGE. This has nothing to do with the new iPhone 3G hardware — this is about dramatic performance improvements on original iPhones upgraded to the 2.0 OS.
Using MobileSafari simply feels faster, especially with web applications. Feel is by nature subjective, but JavaScript benchmarks back this up.
In August last year,
Test | 1.0.1 | 1.1.4 | 2.0 | Vs. 1.0.1 / 1.1.4 |
---|---|---|---|---|
100,000 iterations | 3.209 | 1.096 | 0.145 | 22× / 8× |
10,000 divisions | 0.413 | 0.181 | 0.029 | 14× / 6× |
10,000 sin(x) calls | 0.709 | 0.373 | 0.140 | 5× / 3× |
10,000 string allocations | 0.777 | 0.434 | 0.133 | 6× / 3× |
10,000 function calls | 0.904 | 0.595 | 0.115 | 8× / 5× |
The last column shows how many times faster the 2.0 version of MobileSafari was versus 1.0.1 and 1.1.4. The same results, charted (smaller bars are faster) can be viewed above.
The results are obvious. WebKit JavaScript performance has improved steadily and significantly in just one year, with a huge jump between 1.1.4 and the new 2.0.0. In side-by-side page loading tests between two original iPhones running 1.1.4 and 2.0.0, the new version consistently finished at least a few seconds faster.
For all the hubbub regarding the new App Store, most “iPhone software” runs in the web browser. But improvements in WebKit performance often help native iPhone app performance, too — a slew of my favorite native iPhone apps have built-in WebKit browsers (e.g., NetNewsWire, Twitterrific, Instapaper, and Cocktails). When WebKit performance improves, any app that uses WebKit improves, and WebKit improved a lot between iPhone 1.1.4 and 2.0.0.
via daringfireball.net