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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Swift Container Plugin

86 点作者 frizlab大约 1 个月前

8 条评论

antfarm大约 1 个月前
I love Swift, but it has the only compiler that ever told me to rewrite my code because it cannot analyze it in a reasonable length of time.
评论 #43790832 未加载
评论 #43791426 未加载
评论 #43791626 未加载
评论 #43791460 未加载
jchw大约 1 个月前
This... is actually pretty great to have. Very cool.<p>That said... It really just makes me bummed about the lack of good support for container and sandboxing technology on macOS. I know, totally different thing. But still, we&#x27;ll probably never have a &quot;native&quot; Docker&#x2F;Podman&#x2F;etc. on macOS, and things like the Bazel or Nix sandbox are significantly less effective on macOS due to there just being less kernel APIs for isolating resources. e.g. There are no network namespaces. I get why, but it&#x27;s surprising how limiting not having network namespaces is once you have used a platform that has an equivalent to this. For Nix it&#x27;s really tricky since a lot of things need at least a working localhost inside the sandbox. I am sure increasing the surface area of XNU is not a serious consideration, for good reasons, but it&#x27;s a bit of a shame.
评论 #43790183 未加载
评论 #43791075 未加载
finnjohnsen2大约 1 个月前
I dont love the idea of Apple eco system for server side development. I trust them to try make a great eco system for their own OSes based on their self interrest. I do not trust them to drive and maintain a server side eco system, because I don’t see how the effort is directly linked to making money.<p>That said, Swift and SwiftUI is super nice, so I know they know how to make great software for their OS-es. Almost. Once they fix XCode.
评论 #43791283 未加载
评论 #43791813 未加载
评论 #43791594 未加载
tiffanyh大约 1 个月前
What’s the general sentiment on Swift?<p>It’s 11-years old and I don’t see it talked about much on HN (except for discussion on Apple libraries &amp; bugs).<p>Do people like it as a language, and why?
评论 #43789873 未加载
评论 #43790069 未加载
评论 #43790189 未加载
评论 #43790600 未加载
评论 #43789886 未加载
评论 #43791515 未加载
评论 #43790031 未加载
评论 #43790123 未加载
评论 #43790638 未加载
deze333大约 1 个月前
<i>What is Swift? Why Swift?</i> A lot of discussion here touched this topic. My experience here after 10 years with Swift, starting from version 1. This is how I understood the language through the process of creating several apps (and web services) of non-trivial complexity.<p><pre><code> Swift helps those who want to build end-user products. </code></pre> Swift is the language for those who need to deliver end-user products, deliver fast and iterate often with minimal friction. You got to be a practical creator who needs to create and deploy to market fast. It&#x27;s all about achievability of end result within modern world&#x27;s time constraints. This is where it shines.<p><pre><code> Swift may not fit more pure paradigms. </code></pre> If you&#x27;re after the pure art of programming then other languages may speak to you better.<p>In other words, Swift is extremely PRACTICAL – meaning create, deploy and earn living – and is squarely focused on people who need that. Naturally, not everybody will resonate with its core mission statement.
评论 #43792042 未加载
fnord77大约 1 个月前
&gt; Container images are the standard way to package cloud software today.<p>Shame there&#x27;s no macos native container system or way to make one (my understanding is the kernel isolation primitives are not there)
评论 #43792114 未加载
评论 #43790584 未加载
singularity2001大约 1 个月前
registry.example.com&#x2F;myservice ?<p>You lost me there.<p>swift package --swift-sdk x86_64-swift-linux-musl build-container-image --repository registry.example.com&#x2F;myservice<p>No idea how to use it.
评论 #43794680 未加载
评论 #43793798 未加载
zombot大约 1 个月前
Interesting! Does it run on macOS hosts only, or does it install any macOS inside the container?
评论 #43791160 未加载