我们可以使用Swift(开源)在Linux中创建什么类型的应用程序

时间:2021-12-14 15:05:53

With the announcement release of Swift as open source a question came to my mind. Apparently the language/compiler supports Linux besides the obvious Apple different operating systems, but what kind of apps can really be created in Linux?

随着消息的发布,我想到了一个问题。显然,语言/编译器除了支持明显不同的苹果操作系统之外,还支持Linux,但是在Linux中真正能创建什么样的应用程序呢?

What type of apps can we create within Linux using Swift, iOS, OSX, etc. apps or only Linux apps?

我们可以在Linux中使用Swift、iOS、OSX等应用程序或Linux应用程序来创建什么类型的应用程序?

Or better yet, since this may be to early the question could be... what kind of apps are we going to be able to build in Linux in the future?

或者更好的是,由于这可能是早期的问题可能是……我们将来能在Linux中构建什么样的应用程序?

1 个解决方案

#1


3  

Swift is a programming language, not to be confused with a software library, such as UIKit, or an Integrated Development Environment (IDE), such as Xcode or Microsoft Visual Studio.

Swift是一种编程语言,不要与软件库(如UIKit)或集成开发环境(IDE)(如Xcode或Microsoft Visual Studio)混淆。

To put it succinctly, I think in the near future we can only expect to write in Swift the kind of applications we are able to write in C and C++ on Linux. The downside of Swift: it's tricky to integrate with C and C++ code. See, e.g., http://www.swiftprogrammer.info/swift_call_cpp.html and http://www.swiftprogrammer.info/callback_void.html. The advantage: it's simpler to use than C and C++.

简单地说,我认为在不久的将来,我们只能指望用Swift编写我们能够在Linux上用C和c++编写的那种应用程序。Swift的缺点是:与C和c++代码集成非常棘手。参见http://www.swiftprogrammer.info/swift_call_cpp.html和http://www.swiftprogrammer.info/callback_void.html。优点:它比C和c++更容易使用。

#1


3  

Swift is a programming language, not to be confused with a software library, such as UIKit, or an Integrated Development Environment (IDE), such as Xcode or Microsoft Visual Studio.

Swift是一种编程语言,不要与软件库(如UIKit)或集成开发环境(IDE)(如Xcode或Microsoft Visual Studio)混淆。

To put it succinctly, I think in the near future we can only expect to write in Swift the kind of applications we are able to write in C and C++ on Linux. The downside of Swift: it's tricky to integrate with C and C++ code. See, e.g., http://www.swiftprogrammer.info/swift_call_cpp.html and http://www.swiftprogrammer.info/callback_void.html. The advantage: it's simpler to use than C and C++.

简单地说,我认为在不久的将来,我们只能指望用Swift编写我们能够在Linux上用C和c++编写的那种应用程序。Swift的缺点是:与C和c++代码集成非常棘手。参见http://www.swiftprogrammer.info/swift_call_cpp.html和http://www.swiftprogrammer.info/callback_void.html。优点:它比C和c++更容易使用。