PyS60 与 Symbian C++
我正在计划在S60 3.1 平台上进行一些Symbian 相关的开发。似乎普遍可用的语言选项是 Python 和 C++。然而诺基亚的官方论坛似乎非常倾向于C++。
我想知道在 S60 上使用 Python 相对于 Symbian C++ 有哪些优点和缺点? S60 3.1平台是否可以进行Python编程?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
当您需要快速制作简单的原型时,PyS60 非常适合。如果您尝试用它开发一个完整的应用程序,您很可能迟早会发现自己想要使用 Symbian C++ 中可用但 PyS60 中不可用的功能,而不需要为其编写绑定(在 C++ 中)。此外,您还需要处理可用的 PyS60 运行时的正确版本,其中一些不向后兼容。
如果您选择 Symbian C++ 路线,您可以在也是如此。
PyS60 is good when you need to prototype something simple fast. If you try to develop a full application with it though, you'll most likely find yourself sooner or later wanting to use features that are available in Symbian C++ but not in PyS60 without writing bindings (in C++) for it. Also you'll need to deal with the right version of PyS60 runtime being available, and some of them aren't backwards compatible.
If you go for the Symbian C++ route, you can embed a python interpreter in it too.
C++ 非常非常快,Qt 库是针对 C++ 的。如果您在手机上编程,Python 将非常慢,您将不得不花费很长时间为其编写绑定。
C++ is very, very fast, and the Qt library is for C++. If you're programming on a mobile phone, Python will be very slow and you'll have to spend ages writing bindings for it.
我以用户的身份回答这个问题。
PyS60 速度很慢,而且没有太多应用程序和示例。
C++ 很好,原生,速度快,但如果你介意为大多数设备(当前的 N 系列)开发应用程序,你不会想使用 Qt,我有一个 N78,也在 N82 中测试了 Qt,它很慢(比 Python 还慢) ,可悲但事实如此)
I answer this as a user.
PyS60 is slow and not so much app and sample to start with.
C++ is good, native, fast, but if you mind deevelop app for most device (current N-series), you will not want to go with Qt, I have a N78 and tested Qt in N82 too, it's slow (more than Python, sadly but true)
PyS60 的 API 非常有限。使用它编写的应用程序速度很慢,难以部署(因为您必须先安装运行时)并且无法发布到 Ovi 商店。如果您正在寻找一种简单的方法来编写简单的 Symbian 应用程序,请查看诺基亚 WRT。
如果您不介意 C++,请尝试最近发布的 Qt SDK 1.0。它确实非常强大,面向未来,很快就会得到 Ovi 商店的支持。
PyS60 has a very limited API. Applications written using it are slow, hard to deploy (since you have to install the runtime first) and cannot be posted on the Ovi store. If you're looking for an easy way to write simple Symbian apps take a look at Nokia WRT.
If you don't mind C++ try the recently released Qt SDK 1.0. It's really powerful, future proof and will soon be supported by the Ovi store.
你编程的目的是什么?您计划通过 Ovi 商店分发您的应用程序吗?如果是这样,您应该使用可以通过 Symbian Signed 测试和签名的工具。
这是什么意思?据我所知,他们没有为Python提供这样的功能。所以你必须选择原生Symbian C++或Qt。
顺便说一句,Qt 签名过程目前还不太清楚。似乎 Ovi Store 和 Symbian Signed 只允许某些设备(诺基亚 X6、诺基亚 N97 mini,也许还有其他设备)使用 Qt 应用程序。我想这是一个需要改变的主题,而且改变得相当快,但你也应该考虑这一点。
What is the purpose of your programming? Are you planning distribute your app through Ovi Store? If so, you should use a tool that could be tested and signed by Symbian Signed.
What does it mean? As far as I know, they don't provide such functionality for Python. So you have to choose native Symbian C++ or Qt.
By the way, Qt signing procedure is not quite clear for now. It seems Ovi Store and Symbian Signed are only allow Qt apps for a certain devices (Nokia X6, Nokia N97 mini, maybe some other). I suppose it is a subject for a change, and quite fast change, but you should consider this too.
当第三版功能包 1 运行市场上最新的手机时,人们用来对其进行编程的主要运行时是 J2ME (http://www.forum.nokia.com/Develop/Java/)。我知道标题是 C++ 与 Python 的对立,但你考虑过 Java 吗?它比原生 Symbian C++ 容易得多。表现不错。
-jk
When 3rd edition Feature Pack 1 ran the latest phones on the market, the main runtime people were using to program them was J2ME (http://www.forum.nokia.com/Develop/Java/). I know the title pits C++ against Python, but have you considered Java? It was much easier than native Symbian C++. The performance is good.
-jk