找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
查看: 1761|回复: 6

[新闻评论] Palm WebOS应用并不是常规的"网站程序"

[复制链接]
发表于 2009-1-16 22:52 | 显示全部楼层 |阅读模式
中文翻译见4楼

$ s8 i' v$ a7 Z7 _8 C3 y% W: [" q
Monday, January 12, 2009
9 J; r! r" z4 x- v
: F0 G3 L  b! t( ^, ]8 V
Palm webOS applications are not "web apps"4 F, p- _. Q1 @. k
I've been seeing a number of folks describing applications for the just-announced Palm webOS as "web apps." It's understandable given the name and some of the technologies mentioned at CES, but it's quite misleading. I posted an explanation of this on PalmInfocenter and figured I would post it here as well (with a few edits) since what Palm has really done is create an interesting new fusion between web and locally installed applications./ n  c2 p' ^2 p+ X, M

; W) X7 A8 S( \) OFirst of all, a web application runs in a browser, which is a piece of software that's optimized first and foremost for making requests to a server on the Internet and rendering the responses as a web page. Browsers have gradually been twisted or tortured with plugins to playback media, use cookies as local databases, and integrate with other apps on the machine, but to operate reliably and safely on the Internet they're necessarily somewhat crippled in using features of the system or hardware. Just because Palm said that webOS apps can be written with HTML, CSS and JavaScript doesn't mean they run in a browser or have the limitations of a web browser. Those are technologies for rendering a GUI that can--and have been--used outside the confines of the browser, and Palm is doing just that.4 T! Y7 C( u  a1 B( y( H( c
; F9 P0 u- ]" J$ X8 B: y8 ^, h; D: o
Secondly, people should understand that HTML 5 goes well beyond what we're accustomed to thinking of as HTML. It includes APIs for immediate-mode 2D drawing, video playback, offline databases, drag-and-drop--pretty cutting edge stuff. Palm is certainly the first company to release a mobile product based on HTML 5, and even modern desktop browsers only implement parts of the spec, often through optionally installed plugins like Google Gears.3 c$ W$ A+ t1 D% z4 G/ v) V: E, Y5 O6 v

5 W0 w; e; [& OAs for JavaScript, it's a general programming language that is separate from the HTML document object model that it's most commonly associated with. Palm has already stated that they have extended that model to enable access to local databases on the phone and handling of notifications of system events, and there's no reason they couldn't expose much of the system API that way if they chose to. Sure, you're not going to be able to write hardware drivers in JavaScript but while some developers have good reasons for wanting to do such things a little sandboxing can a good thing on a device connected to the wild, wild Internet. A developer who partnered with Palm told the press at CES that "everything he did before in Visual Studio he could do in Javascript on the Pre." If he was much of a Visual Studio developer at all that means there's a lot more than the HTML DOM being scripted there.0 u( l/ q' E5 R' f

: D+ ^+ a8 i8 h8 }, c# [6 SNext, there's the complaint that JavaScript and HTML are interpreted and therefore slow. But remember, webOS applications aren't running in a browser, so there's nothing that says any of this need be interpreted. Palm knows all about compiling HTML applications into native code: they developed tools and APIs for doing this on the Palm VII back in 1999 and presumably own patents on it. They called these "web clipping" applications, and they displayed in the launcher and ran as first-class native applications on Palm devices, not as interpreted scripts in an HTML browser. % q# \" }1 |  j0 V; L0 r3 g$ G
/ |  X: g! X8 M# N3 b5 J1 M! u+ Z
Now JavaScript may not be a lot of fun to code and debug, compared to a statically compiled language like Java or even C/C++. But let's remember that we don't have an SDK yet. Until we do we have no idea if JavaScript is the only API or if there are other ways to access more of the system APIs. Obviously there are other ways to access system APIs, which developers will discover on their own if Palm doesn't document them, but for now it's too early to say. I have a suspicion that a Java runtime is lurking in there somewhere and Palm didn't want to mention it yet for fear of comments about Palm being "late to the mobile Java party." J2ME, Danger, RIM, Android, JavaFX, Sprint Titan... the advance of mobile Java may be exciting for mobile Java developers but to everyone else a new Java SDK sounds warmed over, and Palm's had enough of that kind of talk.
" @0 A4 i. f. M& C; B3 C( ]  s/ S& O9 W: a8 @) z1 n5 `2 ~' _
If you watched any of the announcement you know that webOS is also intended for delivering a cutting edge web app experience, but that has to do with the browser they developed. It should also be clear that applications originally written for the web using JS/HTML/CSS (like GMail, BaseCamp, Facebook, etc.) should be easy to port to webOS and be enhanced to run in offline mode, due to webOS's HTML 5 support for offline databases.
9 V3 c" y& k" S8 ~: D! n) C+ Z% A, J4 D" g3 Q
All this starts to blur the distinction between "web apps" and "local apps," and that's where I think we're going with the mobile web. My friend Enrique Ortiz seems to agree. Nice to see good old Palm pushing out the frontier once again.
回复

使用道具 举报

 楼主| 发表于 2009-1-16 22:52 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2009-1-18 21:38 | 显示全部楼层
说实话一直搞不清web OS是啥意思,web只是一个名字和网络无关?
回复 支持 反对

使用道具 举报

发表于 2009-1-19 18:10 | 显示全部楼层
I've been seeing a number of folks describing applications for the just-announced Palm webOS as "web apps." It's understandable given the name and some of the technologies mentioned at CES, but it's quite misleading. I posted an explanation of this on PalmInfocenter and figured I would post it here as well (with a few edits) since what Palm has really done is create an interesting new fusion between web and locally installed applications.: _2 I+ x3 h" N; S' y

8 [9 u/ t' l5 h  x( L9 H# a有很多兄弟把刚刚发布的用于webOS平台上的程序当作了“web apps(网络程序?)”。考虑到在CES大会上提到的那些技术和名称,把webOS程序误当作 web apps是难免的,但却会带来一些误解。我在palminfocenter上发了这个帖子,在这儿也发了一份儿(有修改)。实际上palm所作的,是在web和本地程序之间创造出了一个全新的、并且很有趣的中间件(不知道这个fusion这么翻译对不对,请指正)
: D% W9 p) L! ~) ~+ q3 W0 w( l3 K, R
First of all, a web application runs in a browser, which is a piece of software that's optimized first and foremost for making requests to a server on the Internet and rendering the responses as a web page. Browsers have gradually been twisted or tortured with plugins to playback media, use cookies as local databases, and integrate with other apps on the machine, but to operate reliably and safely on the Internet they're necessarily somewhat crippled in using features of the system or hardware. Just because Palm said that webOS apps can be written with HTML, CSS and JavaScript doesn't mean they run in a browser or have the limitations of a web browser. Those are technologies for rendering a GUI that can--and have been--used outside the confines of the browser, and Palm is doing just that.
* n/ Q7 ^/ w( q/ r3 N" c' l' @/ z4 f+ l
第一,web app是运行在浏览器里的。web app主要是用来向internet网上的服务器发出请求,然后把回应转换成页面形式呈现出来。如此一来,因为乱七八糟的插件(比如播放音乐的、用cookies追踪信息的、还有其他一些和机器上应用程序关联的插件),浏览器变得越来越慢。但是为了能安全快速浏览,这些插件的功能往往都不完整,不能完全发挥硬件或者是系统的能力。尽管palm说用html、CSS和Jscript就能写webOS程序,但是这并不意味着这些程序是在浏览器里面运行的,也不会有任何浏览器的限制。这些技术(html、CSS和Jscript)是用来渲染用户界面(GUI)的,它们不受浏览器的限制。palm做的就是这件事儿而已。' M1 Z% X& C7 g1 `& G3 ?
7 R6 Z- {6 _! v* [
Secondly, people should understand that HTML 5 goes well beyond what we're accustomed to thinking of as HTML. It includes APIs for immediate-mode 2D drawing, video playback, offline databases, drag-and-drop--pretty cutting edge stuff. Palm is certainly the first company to release a mobile product based on HTML 5, and even modern desktop browsers only implement parts of the spec, often through optionally installed plugins like Google Gears.
( g4 {5 t( s, N9 r5 ~* a1 [7 s  |+ r% V/ p0 n6 k4 d$ a: ]- x
第二,大家应该明白,html 5已经不是我们日常见到的html那么简单了。html 5内含了一些API,支持快速2D渲染、视频播放、离线数据库、拖放等等功能,这些都是很前沿的技术。palm肯定是头一个在移动设备里用到html 5的公司。就算是桌面浏览器,也仅仅支持部分html 5标准,而且还要安装插件(比如google gears)才能实现。; m% G3 G# Z9 Q- U% I* ~) B( [" b

- u6 O& O1 p/ j# \9 {4 z8 I& eAs for JavaScript, it's a general programming language that is separate from the HTML document object model that it's most commonly associated with. Palm has already stated that they have extended that model to enable access to local databases on the phone and handling of notifications of system events, and there's no reason they couldn't expose much of the system API that way if they chose to. Sure, you're not going to be able to write hardware drivers in JavaScript but while some developers have good reasons for wanting to do such things a little sandboxing can a good thing on a device connected to the wild, wild Internet. A developer who partnered with Palm told the press at CES that "everything he did before in Visual Studio he could do in Javascript on the Pre." If he was much of a Visual Studio developer at all that means there's a lot more than the HTML DOM being scripted there./ z; d2 O7 p- \2 b" Y% s

& f1 M% l$ ^% _, H8 t, H至于JScript,它仅仅是个普通的编程语言,是从html对象模型里分离出来的,它和html对象模型联系比较紧密。palm已经表明,他们已经将这个模型进行了扩展,以便于访问电话上的本地数据库,而且能够处理系统事件。而且,没理由认为他们会隐藏太多系统api。当然了,用Jscript写驱动不大可能。但是开发人员要是想这么做的话,试试也未尝不可,尤其是在这个能够和无所不能的互联网连接的机器上。一位和palm合作的开发人员在CES上说,他以前在Visual Studio上做的东西现在都能用JScript移植到“胖皮儿”上。如果他真的是个VS开发人员,那就证明,HTML DOM能做的事情就不止编脚本那么简单。$ Z8 A; a; G2 x+ x% q

3 y- G1 m7 r. R1 _6 HNext, there's the complaint that JavaScript and HTML are interpreted and therefore slow. But remember, webOS applications aren't running in a browser, so there's nothing that says any of this need be interpreted. Palm knows all about compiling HTML applications into native code: they developed tools and APIs for doing this on the Palm VII back in 1999 and presumably own patents on it. They called these "web clipping" applications, and they displayed in the launcher and ran as first-class native applications on Palm devices, not as interpreted scripts in an HTML browser. 6 V9 B9 v; G0 V

6 }' @, ]! \/ u6 ]# c* A* q% O9 N有人抱怨说JScript和html需要经过解释,因此运行起来很慢。但是请记住,webOS的程序不是在浏览器里运行的。所以就没有“解释”这个过程了,那么,运行缓慢这个问题也就不存在了。palm很明白如何把html程序编译成本地代码:早在1999年,palm VII上就出现了能够完成这项功能的工具和api了(而且palm应该还有这方面的专利)。palm把这些工具和api称作“web clipping”程序。在palm VII上,这些东西显示在launcher里,而且是作为一级本地代码运行的,不需要在任何html浏览器里进行“解释”。/ c9 V: S  J2 t  T5 v

3 u- f  Y8 E0 q* \; eNow JavaScript may not be a lot of fun to code and debug, compared to a statically compiled language like Java or even C/C++. But let's remember that we don't have an SDK yet. Until we do we have no idea if JavaScript is the only API or if there are other ways to access more of the system APIs. Obviously there are other ways to access system APIs, which developers will discover on their own if Palm doesn't document them, but for now it's too early to say. I have a suspicion that a Java runtime is lurking in there somewhere and Palm didn't want to mention it yet for fear of comments about Palm being "late to the mobile Java party." J2ME, Danger, RIM, Android, JavaFX, Sprint Titan... the advance of mobile Java may be exciting for mobile Java developers but to everyone else a new Java SDK sounds warmed over, and Palm's had enough of that kind of talk.
1 X8 O7 Q8 E1 Z( _' x
* q8 ~$ g  |% l" R8 U+ c. Q不得不承认,和java或者c/c++比起来,编写和调试JScript没那么多挑战和乐趣。但是,要知道我们现在还没看到相应的sdk呢。除非拿到sdk,否则我们没法知道JScript是否是唯一的API,或者还有没有其他能够访问系统api的方法。就算palm不愿意公开,有理由相信开发人员仍然能够自己找到其他访问系统api的方式。但是目前这么说,有点早了。我推测,肯定在系统里面有个java的run time。只不过palm不愿意公开罢了,因为如果palm承认这点,也许会有人批评说“palm在移动java领域里姗姗来迟”。J2ME, Danger, RIM, Android, JavaFX, Sprint Titan... 这些技术对移动java开发人员来说也许很有趣。一个新的sdk听起来的确有些炒冷饭的意思。palm老是这么做。* w  M" o* k( K% o: `

( v4 m8 j# Q% n  ~% r# ~If you watched any of the announcement you know that webOS is also intended for delivering a cutting edge web app experience, but that has to do with the browser they developed. It should also be clear that applications originally written for the web using JS/HTML/CSS (like GMail, BaseCamp, Facebook, etc.) should be easy to port to webOS and be enhanced to run in offline mode, due to webOS's HTML 5 support for offline databases. - H4 e) o  f9 e0 c% j. G! Y& T

/ [2 f! T" f: @- l4 S( q8 n4 v如果你观看了发布会,你就会知道,webOS也打算给用户带来一些很前沿的web app体验。但是,这需要palm开发的浏览器才行。而且,那些最初用JS/HTML/CSS 写的web应用(比如like GMail, BaseCamp, Facebook等)应该能够很容易地移植到webOS上,而且能够被改写为,以便于离线使用,因为webOS使用的html 5支持离线数据库。
: C3 X2 i  H, N" k1 n+ U) i' a# A
. c$ c" _% A  xAll this starts to blur the distinction between "web apps" and "local apps," and that's where I think we're going with the mobile web. My friend Enrique Ortiz seems to agree. Nice to see good old Palm pushing out the frontier once again.
1 N7 H! k% T" [8 d
% L5 L2 H$ A. U0 R" j8 m所有我说的这些都让web app和本地程序之间的区别变得模糊。但正是从这一点考虑,我觉得我们就要迎来移动web时代了。我的朋友E.O.和我意见一致。/ `( A& C. l: C4 j
4 V1 F$ j: Q! D
真的很高兴,老palm又能和以前一样带来全新的变革。1 v" W  K& R5 w  T

8 M$ [0 |( ?2 ?- s: K  K, `[ 本帖最后由 lila55 于 2009-1-19 18:12 编辑 ]

评分

参与人数 1威望 +20 收起 理由
寂夜清风 + 20 谢谢

查看全部评分

回复 支持 反对

使用道具 举报

发表于 2009-1-19 18:16 | 显示全部楼层
原帖由 lila55 于 2009-1-19 18:10 发表. v% Y: s$ o$ _" Y& e# R
I've been seeing a number of folks describing applications f

7 B: H" x4 X3 }# y" A非常感谢lila55的翻译。
$ l/ p, b- m( p2 {5 w这个文章对于大家正确理解webos上的应用很有帮助
回复 支持 反对

使用道具 举报

发表于 2009-1-20 07:56 | 显示全部楼层
顶啊顶,期待更多的软件出现
回复 支持 反对

使用道具 举报

发表于 2009-1-20 09:12 | 显示全部楼层
最终用户对中间的技术,其实没兴趣。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

QQ|Archiver|手机版|小黑屋|吹友吧 ( 京ICP备05078561号 )

GMT+8, 2024-11-19 23:37 , Processed in 0.235326 second(s), 16 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表