TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Pushing Swift to the Server

144 点作者 bezalmighty大约 8 年前

15 条评论

Entangled大约 8 年前
For Swift on the server you only need an editor like Sublime, Atom, or whatever suits your fancy. That&#x27;s it, nothing else. Get one of the most popular frameworks like Kitura, Vapor, Perfect, Zewo or the dozens of smaller ones and be ready to deploy to Heroku, Bluemix, AWS, Google Cloud, Digital Ocean in no time.<p>It is that simple, tested, proven, it works, it simply works. In just a couple of weeks I developed a couple of apps in Swift and they&#x27;re up and running unattended:<p><a href="http:&#x2F;&#x2F;swiftforums.herokuapp.com" rel="nofollow">http:&#x2F;&#x2F;swiftforums.herokuapp.com</a><p><a href="http:&#x2F;&#x2F;pokerduel.herokuapp.com" rel="nofollow">http:&#x2F;&#x2F;pokerduel.herokuapp.com</a><p>Repos here:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;kuyawa" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;kuyawa</a><p>And the fact that you can also develop for the desktop, mobile, tablets, watch, TV and IoT in one language is a huge advantage.<p>Swift is here to stay.
评论 #13832223 未加载
评论 #13833684 未加载
评论 #13831469 未加载
评论 #13836026 未加载
评论 #13832643 未加载
评论 #13833540 未加载
regularfry大约 8 年前
Wow. That &quot;same language connected by an interface schema would have prevented Mars mission loss&quot; thing is a <i>really</i> thin stretch.
评论 #13830283 未加载
评论 #13829945 未加载
评论 #13830216 未加载
评论 #13830548 未加载
评论 #13829885 未加载
echelon大约 8 年前
Is Swift on the server a good idea? I don&#x27;t own (or plan to own) a Mac. Does Apple support cross-platform tooling? I honestly don&#x27;t know, but given their history, my default assumption is to be skeptical.<p>Why would you choose this over Go or Rust? (Rust is totally sweet for server dev, and I&#x27;ve spun up a few Rust servers for things.)
评论 #13833795 未加载
评论 #13830358 未加载
评论 #13830052 未加载
评论 #13830061 未加载
评论 #13830246 未加载
评论 #13830248 未加载
评论 #13830174 未加载
评论 #13830084 未加载
评论 #13830536 未加载
评论 #13830076 未加载
评论 #13831169 未加载
评论 #13830053 未加载
评论 #13836720 未加载
pier25大约 8 年前
Swift is fast and the language is nice and all, but this feels more like propaganda. Let&#x27;s not forget IBM and Apple have become friends recently.[1]<p>I really don&#x27;t see Swift becoming a popular full stack solution outside of environments invested in iOS and macOS.<p>Swift can indeed <i>run</i> on a multitude of systems but that doesn&#x27;t mean it&#x27;s a good option. For example it&#x27;s not even close to being ready for Android. It can run, but that&#x27;s it. Other than that you are on your own. No UI libs, nothing.<p>This leaves you with iOS if you need to run on mobile which is extremely restricted. Want to freely distribute an app among your colleagues on the lab? Fuck you. You have to do all sorts of acrobatics with testing devices, provisioning certificates, etc.<p>In Android you just compile an .apk and send the link to your colleagues to install it, like in any other platform on Earth except iOS. Even macOS.<p>[1] <a href="http:&#x2F;&#x2F;www.apple.com&#x2F;ipad&#x2F;business&#x2F;work-with-apple&#x2F;ibm&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.apple.com&#x2F;ipad&#x2F;business&#x2F;work-with-apple&#x2F;ibm&#x2F;</a>
评论 #13831698 未加载
评论 #13830443 未加载
评论 #13830625 未加载
评论 #13831743 未加载
评论 #13830487 未加载
geodel大约 8 年前
IBM, the purveyor of Rational&#x2F;Websphere suite of Java tools and appservers talking about Java memory usage is sign of changing times. I hope they do better job this time with Swift tools and frameworks.
评论 #13831151 未加载
maxpert大约 8 年前
I recently rewrote a server that I had in Kotlin and really happy with the results. With this I am pleasantly surprised! I already liked the syntax, and now it gives me another reason to try it out. I am not sure though how would it compare with Go.
rndmio大约 8 年前
I&#x27;d be interested to know if any developers are investing in swift outside of the Apple ecosystem. Given that the language still seems to be in flux (the v2 -&gt; v3 transition didn&#x27;t appear seamless), why would you pick it?
Perignon大约 8 年前
Why? Why choose Swift over a language with an established framework ala python, ruby, ASP.NET, Node.js ?
评论 #13830411 未加载
评论 #13830774 未加载
评论 #13830266 未加载
评论 #13837043 未加载
评论 #13830558 未加载
fetbaffe大约 8 年前
No, I don&#x27;t want to share models between the client and the server. I want an API dependency between them, a code dependency is actually worse.<p>Why should the frontend change when the backend changes it´s abstractions? I want to change them independently, because they have different constraints and dependencies.<p>If you are implementering your database schema in the frontend, you´re doing it wrong.<p>An API is a view against a domain, which in turn is an abstraction above the database. However the client is not aware of the entire domain and shouldn´t be.<p>Only thing that is a good idea to share is the domain language and the API interface, but can be solved easily by other means than share code base.<p>And as soon you throw in another client with an other programming platform, all the benefits is lost anyway.
评论 #13837861 未加载
评论 #13832598 未加载
aranajhonny大约 8 年前
This repo demonstrates deployment of the Kitura web framework using Node.js and Now.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;aranajhonny&#x2F;now-swift-example" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;aranajhonny&#x2F;now-swift-example</a>
stevehiehn大约 8 年前
How many projects really have just an ios client? If the argument is to have the client and server the same language then isn&#x27;t that also an argument for a Java android &amp; Java server?
TurboHaskal大约 8 年前
It looks like we&#x27;re getting Swift EE before Go EE.
ssscommunity大约 8 年前
Perfect team is writing an article for Native iOS and Android development using Swift. To be release soon.
always_good大约 8 年前
Ctrl-f for &quot;So,&quot;. 24 results.<p>You can sound much more professional and less juvenile by dropping the &quot;So,&quot; prefix when you speak or write.
评论 #13831408 未加载
omouse大约 8 年前
Why. Seriously. Why. Whatever happened to <i>domain-specific</i> languages.