制作跨平台应用程序的最佳方法是什么? [英] What is the best way to make cross platform apps?

查看:121
本文介绍了制作跨平台应用程序的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个高性能应用程序并继续运行:



- Windows桌面

- Linux

- Mac OS

- iOS

- Android



我不想改变每个代码单独的平台。

我想写一次并在所有平台上运行。

它可以是基于框架的,也可以分别编译为平台的本机代码。

表现很重要。



有可能吗?

如果不可能,请告诉我并终止我的搜索。



我写的问题非常简单易懂,易于理解,我的上一个问题已经关闭,因为不能回答,所以让我知道什么是错的我改进了这个问题。



我知道C#而且我知道Xamarin,但是Xamarin共享代码,它不是一个代码运行,所以它不是什么我想要。

I wanna create a high performance app once and run on:

- Windows desktop
- Linux
- Mac OS
- iOS
- Android

I don't wanna change code for each of the platforms separately.
I wanna write once and run on all of them.
It may be framework based or compiled into native machine code for platforms separately.
Performance is important.

Is it possible?
If it is not possible, let me know and i terminate my search.

I write questions very brief and simple to make it easy to understand and my last question was closed as not plain to answer, so let me know what is wrong and i improve the question.

I know C# and i know about Xamarin, but Xamarin shares code across, it is not one code running across, so it is not what i want.

推荐答案

错误的问题。没有最好的这样的东西。你如何定义谓词更好?如果可以,请与我们分享。而且,问题太模糊了;根据很多因素,有太多不同的方法有一定的好处。



所以,我刚才提到两个最广泛使用的选项,1)不是脚本,但基于编译,2)不需要在不同平台上重新编译。它们是:Java(JVM)和CLR(.NET和其他实现)。请参阅:



http://en.wikipedia。 org / wiki / Java_(programming_language) [ ^ ],

http://en.wikipedia.org/wiki/Java_virtual_machine [ ^ ]。





http://en.wikipedia.org/wiki/Common_Language_Runtime [ ^ ],

http://en.wikipedia.org/wiki/.NET_Framework [ ^ ],

http://en.wikipedia.org/wiki/Mono_%28software%29 [ ^ ]。



常见主题然后: http://en.wikipedia.org/wiki/Just-in-time_compilation [ ^ ]。







关于其他方法(其中一些已被其他成员提及,请参阅我过去的回答:

编写IDE和编译器的c / c ++可视化程序(跨平台)? [ ^ ],

http://www.codeproject.com/Answers/258139/Visual-Studio -Application-for-Target-OS-Windows-an#answer1 [ ^ ],

如何将Visual Studio C ++编译为linux和os-mac [ ^ ],

这个绘图程序win32的问题是什么 [ ^ ]。



我认为Adobe不会认真对待任何事情,但这取决于你决定。



-SA
Wrong question. There is no such thing as "best". How would you define the predicate "better"? If you can, please share with us. Also, the question is too vague; there are too many different approaches having certain benefits depending on a big number of factors.

So, I'll just mentioned two most widely used options which are 1) not scripting, but based on compilation, 2) won't require recompilation on different platforms. They are: Java (JVM) and CLR (.NET and other implementations). Please see:

http://en.wikipedia.org/wiki/Java_(programming_language)[^],
http://en.wikipedia.org/wiki/Java_virtual_machine[^].

And
http://en.wikipedia.org/wiki/Common_Language_Runtime[^],
http://en.wikipedia.org/wiki/.NET_Framework[^],
http://en.wikipedia.org/wiki/Mono_%28software%29[^].

Common topic for then: http://en.wikipedia.org/wiki/Just-in-time_compilation[^].



On other approaches (some of them have been mentioned by other members, please see my past answer:
writing c/c++ visual programs (cross-platform) with which IDE and compiler?[^],
http://www.codeproject.com/Answers/258139/Visual-Studio-Application-for-Target-OS-Windows-an#answer1[^],
How to Compile Visual studio C++ to linux and os-mac[^],
What`s the Problem with this Plot Program win32[^].

I would not consider anything by Adobe as anything serious, but this is up to you to decide.

—SA


这篇关于制作跨平台应用程序的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆