ObjC/Swift Swift 要开源了,大家有什么想说的....

karma · 2015年06月09日 · 最后由 mrchoi 回复于 2016年09月10日 · 8895 次阅读

Swift 2.0 宣布开源:

Swift source code will be released under an OSI-approved permissive license. Contributions from the community will be accepted — and encouraged. At launch we intend to contribute ports for OS X, iOS, and Linux. Source code will include the Swift compiler and standard library. We think it would be amazing for Swift to be on all your favorite platforms.

附上 Hacker News 讨论

据说 还可以 支持 Linux 平台,又是一大杀招。

I long dreamed of using Objective C to build server apps. The compiler support has been there for years (GCC, later Clang), but there's no standard library. All the stuff you would want from Foundation is missing; strings, sockets, file I/O, encoding support, threads, etc., it turns out you'd have to reimplement a lot from scratch. There's GNUstep, but last I looked it, it was stagnant, and also very much geared towards GUI apps. Swift on the backend would be even better, I think. Between all the languages that have evolved lately (including Go and Rust), Swift has struck me as the one that feels the most like my ideal language.

我与 HN 上这位兄台的观点一致

Go:我真是日了狗了 Rust:一起日 Julia:同日 ObjC 尸骨已寒,无话可说 C、C++、C# 和 JavaScript 表示淡定

转自知乎 Belleve

Ruby 用户表示 我们都开源这么些年了,又能咋?

转一个推文

bitinn: 昨晚没看WWDC,今天追了下,个人的判断,先来点冷水——
1. iPad的确到尽头了,连苹果自己都没啥想法,分屏工作更像是发挥余热。顺便一提,你上次用电视的画中画功能是啥时候?
2. Swift的利用率与发展速度可能远比预期低,你上次听苹果说“你喜欢的东西应该能跨平台”是啥时候?

#4 楼 @huobazi 我是觉得 apple 开放编译器和标准库...还支持 linux, 是想在和 go 在服务器开发上竞争...甚至要和 rust 在系统级编程上竞争... 至于 ruby 把...继续被 node go 以及之后的 swift 抢走份额...

匿名 #7 2015年06月09日

:plus1: 👏 跨平台即将来临

可以在安卓上用 swift 么?

哎,可怜 ruby 没有互联网巨头支持,前景不容乐观

ruby 语言不大改是不会有的,只会有爱好者。它并不是一门工程化的语言,例如 go,python #9 楼 @jasonliu

我清早起来看见说 swift 支持 Linux,我还在纳闷难道要在 linux 上开发 app 么。看了评论,似乎明白了项庄舞剑志在沛公,原来是想入侵服务端,而不是在 linux 上写 app。

没觉得 swift 有多好,还不如 oc 呢。至于编译器.. Xcode 6.3.2 有这么一句“fixes that chould result in slow compile times for complex Swift projects” 这个问题我碰到过,所谓的 complex 只不过是是一个略大的二维数组字面值 编译 10 分钟还过不去...

已经有 swift 开源的了,哈哈

#10 楼 @flowerwrong ruby 为何不是工程语言?

#14 楼 @lips 可能是因为写起来容易 hi 吧。工程语言么,应该具备严谨、低调、木讷的特点,而不是 ruby 这种写着写着会产生摇滚明星感觉的。

#14 楼 @lips 越不容易自由发挥越工程

java 就是标准的工程语言,写着写着就想撞墙

#16 楼 @swachian 我觉得是语法糖太多,每个人 ruby 写法都不一样,阅读有障碍

#20 楼 @hayate 我的经验是 java 代码没人会看,太长了,人都不看代码直接上来问你是干什么的

#21 楼 @luikore 我,写代码的,有错吗

#23 楼 @chaucerling 对还会要求写注释和文档,因为没人看代码,都恨不得把代码折叠掉只看注释,后来时间长了,注释和文档和代码不同步了还是跑过来问代码作者...

#18 楼 @yakczh 深有同感,特别 JEE, 看到几十层神的 stacktrace, 其是 80% 是 proxy 时。只能用 WTF 来表达此时的心情。

需要 登录 后方可回复, 如果你还没有账号请 注册新账号