预览 Sencha Touch 2:原生包和性能改进
http://www.sencha.com/blog/sencha-touch-2-what-to-expect/ 作者:Aditya Bansod 译者:Sp42(zhangxin09) 今天,我们提前为大家介绍一下 Sencha Touch 2.0的新功能。我们十分雀跃地告诉大家将要到来的新发布,我们希望你们通过开发了一些给力的移动应用
http://www.sencha.com/blog/sencha-touch-2-what-to-expect/
作者:Aditya Bansod
译者:Sp42(zhangxin09)
今天,我们提前为大家介绍一下 Sencha Touch 2.0的新功能。我们十分雀跃地告诉大家将要到来的新发布,我们希望你们通过开发了一些给力的移动应用来实际参与分享我们这一份雀跃。
让我们先快速回顾一下。自去年发布 Sencha Touch 最初版本,这一期间,HTML5 和移动网络的发展也突飞猛进。许多开发人员作出的决定,以移动网络作为创建应用程序的一个平台,类似 Sencha Touch 这样的框架发挥了重要作用,尤其加速了基于 HTML5 浏览器的应用普及。对此,我们不胜欣喜,对于我们广大 Web 开发人员社区,我们说一句感谢你们!
凭借超过25万开发者的社区,我们对于未来 Web 移动开发的愿景仿佛已经就是一条“康庄大道”。来自您的反馈和建议促使你看到我们今天的这篇博文,有什么要交待的呢?就是趁此机会告诉诸位,Sencha Touch 2.0 的新颖之处。
首先,人同此心,心同此理,我们非常了解日益复杂的设备对于开发过程将是极度痛苦的。随着 Android 的崛起与未来 Windows Phone 的“半路杀出个程咬金”,开发人员希望面对的,是一视同仁的应用研发以及能够可预料的每一种情形。其次,尽管开发者一般都会将他们的应用部署在 Web 之上,这一数字也在上升,但仍旧希望他们的程序是透过应用(App)来发布、被使用的。对客户而言,无论什么地方,即使 AJAX 程序也应该就像应用那样直接在他面前的即玩即用。可是,要在原生 Store 发布,开发者又要这样、又要那样地修修补补他们的应用或者外壳才能在原生应用 Store 那里发布。
由此,言及 Sencha Touch 2,我们专注于如何榨干、榨取最后一句代码,以及如何帮助开发人员在本机顺利打包应用程序。我们很高兴今天与大家分享现在我们正在做的框架,是关于市场上最好的移动框架 SenchaTouch2 的里里外外。
- Sencha Touch 2 终于支持原生(Native)功能了。只需一个命令,你便可以打包 iOS 和 Android的应用程序。你将不再需要编写您自己的包装器或牵涉其他方案,这一切都尽在 Sencha Touch 2 中。最棒的是,你可以在 Mac 机和Windows 的机器中,为 iOS 的和 Android 的程序进行打包。
- HTML5 Device API 在移动浏览器中尚未完全可用,于是我们特意加入大量原生设备的 API,直接放置在 packager API,让你早日享用未来 Web 浏览器所拥有的优势。
- 布局快多了。我们不断重构内部的布局系统,使组件的布局从根本上更快。当你启动应用程序的同时,你会马上察觉得到 Touch 2 之快,以及感受到 Orientation 的切换,也是如此的灵敏。
- 重构事件处理,以便好地应对 Android 触摸事件。由于各种移动平台均以不同的响应速率触发触摸事件,所以对于我们而言,无不致力于跨浏览器的常规化,使得应用程序的整体流畅度提升和保证可预见的触摸行为操控。仿佛只要你吹一吹口气,Android 上的列表就会立刻流动起来。
- 框架采用基于图片的主题,而非缓慢的 CSS。使用 SASS 导出样式时,Touch 会生成基于 CSS的主题,如出 1.x 一徹。不过由于某些设备的浏览器在渲染 CSS3 的时候非常地慢,于是你可以选择生成基于图片的主题来代替 CSS。这也开辟了 Sencha Touch 2.x 将来工作在 Windows Phone 的道路。
- 合理化配置系统,使其更容易和更可预见的设定触摸应用程序。不会因为不同的组件,而学习起来导致感觉差别太大,新的配置系统即可简化设立您的组件。当然,它依然会有向后兼容旧的方式。
现在,Sencha Touch 带给你仅仅是令人难以置信的新功能的一方面,届时还有更多。我们一直在忙于编码的工作,我们期待着尽快分享的第一个测试版。快将在十月的 SenchaCon 发布出来——我们会对框架几乎每一部分都精益求精,所以千万不要错过!我们认为你会愉快地惊叹于这个 Touch 2 的应用无论构建还是部署都会多么的淋漓尽致、多么的快速敏捷!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Ollama is a super practical tool that allows you to easily run open source models such as Llama2, Mistral, and Gemma locally. In this article, I will introduce how to use Ollama to vectorize text. If you have not installed Ollama locally, you can read this article. In this article we will use the nomic-embed-text[2] model. It is a text encoder that outperforms OpenAI text-embedding-ada-002 and text-embedding-3-small on short context and long context tasks. Start the nomic-embed-text service when you have successfully installed o

Performance comparison of different Java frameworks: REST API request processing: Vert.x is the best, with a request rate of 2 times SpringBoot and 3 times Dropwizard. Database query: SpringBoot's HibernateORM is better than Vert.x and Dropwizard's ORM. Caching operations: Vert.x's Hazelcast client is superior to SpringBoot and Dropwizard's caching mechanisms. Suitable framework: Choose according to application requirements. Vert.x is suitable for high-performance web services, SpringBoot is suitable for data-intensive applications, and Dropwizard is suitable for microservice architecture.

The performance comparison of PHP array key value flipping methods shows that the array_flip() function performs better than the for loop in large arrays (more than 1 million elements) and takes less time. The for loop method of manually flipping key values takes a relatively long time.

Effective techniques for optimizing C++ multi-threaded performance include limiting the number of threads to avoid resource contention. Use lightweight mutex locks to reduce contention. Optimize the scope of the lock and minimize the waiting time. Use lock-free data structures to improve concurrency. Avoid busy waiting and notify threads of resource availability through events.

The impact of functions on C++ program performance includes function call overhead, local variable and object allocation overhead: Function call overhead: including stack frame allocation, parameter transfer and control transfer, which has a significant impact on small functions. Local variable and object allocation overhead: A large number of local variable or object creation and destruction can cause stack overflow and performance degradation.

How to implement HTTP streaming in C++? Create an SSL stream socket using Boost.Asio and the asiohttps client library. Connect to the server and send an HTTP request. Receive HTTP response headers and print them. Receives the HTTP response body and prints it.

The performance of different PHP functions is crucial to application efficiency. Functions with better performance include echo and print, while functions such as str_replace, array_merge, and file_get_contents have slower performance. For example, the str_replace function is used to replace strings and has moderate performance, while the sprintf function is used to format strings. Performance analysis shows that it only takes 0.05 milliseconds to execute one example, proving that the function performs well. Therefore, using functions wisely can lead to faster and more efficient applications.

Static function performance considerations are as follows: Code size: Static functions are usually smaller because they do not contain member variables. Memory occupation: does not belong to any specific object and does not occupy object memory. Calling overhead: lower, no need to call through object pointer or reference. Multi-thread-safe: Generally thread-safe because there is no dependence on class instances.
