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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Swift/Java interoperability tools and libraries

83 点作者 timsneath8 个月前

7 条评论

microflash8 个月前
This sounds useful. Here are links that actually load on my phone.<p>- <a href="https:&#x2F;&#x2F;github.com&#x2F;swiftlang&#x2F;swift-java">https:&#x2F;&#x2F;github.com&#x2F;swiftlang&#x2F;swift-java</a><p>- <a href="https:&#x2F;&#x2F;forums.swift.org&#x2F;t&#x2F;improving-swift-support-and-interoperability-experience-for-android&#x2F;71470" rel="nofollow">https:&#x2F;&#x2F;forums.swift.org&#x2F;t&#x2F;improving-swift-support-and-inter...</a>
glhaynes8 个月前
Cool! One thing Swift is really (maybe uniquely?) strong at is C&#x2F;C++&#x2F;Objective-C interop, including mixing &quot;legacy&quot; code with Swift and even replacing it file-by-file with minimal ceremony. Looks like this is aiming to bring a similar level of interop to Swift&lt;-&gt;Java.
aaronbrethorst8 个月前
Plus ça change: <a href="https:&#x2F;&#x2F;developer.apple.com&#x2F;library&#x2F;archive&#x2F;documentation&#x2F;Cocoa&#x2F;Conceptual&#x2F;Legacy&#x2F;JavaBridge&#x2F;JavaBridge.pdf" rel="nofollow">https:&#x2F;&#x2F;developer.apple.com&#x2F;library&#x2F;archive&#x2F;documentation&#x2F;Co...</a>
评论 #41667162 未加载
liuliu8 个月前
PythonKit (from Swift) is underrated but immensely useful in certain scenarios (i.e.: <a href="https:&#x2F;&#x2F;engineering.drawthings.ai&#x2F;from-iphone-ipad-to-mac-enabling-rapid-local-deployment-of-sd3-medium-with-s4nnc-324bd5e81cd5" rel="nofollow">https:&#x2F;&#x2F;engineering.drawthings.ai&#x2F;from-iphone-ipad-to-mac-en...</a>).<p>Hopefully JavaKit can find their usefulness too!
koito178 个月前
This gives me flashbacks to the Objective-C &#x2F; Java bridge [1] from over a decade ago. It makes me wonder how they are dealing with memory management when Java objects are being used from Swift (or Swift objects from Java). This was one (of various) issues that made using the Cocoa Java bridge a bit unpleasant.<p>I guess Swift has a lot less run-time dynamism going on, so it may not be too hard to translate Swift semantics to Java. Definitely interested to see how this unfolds over the next year.<p>[1] <a href="https:&#x2F;&#x2F;developer.apple.com&#x2F;library&#x2F;archive&#x2F;documentation&#x2F;Cocoa&#x2F;Conceptual&#x2F;Legacy&#x2F;JavaBridge&#x2F;JavaBridge.pdf" rel="nofollow">https:&#x2F;&#x2F;developer.apple.com&#x2F;library&#x2F;archive&#x2F;documentation&#x2F;Co...</a>
评论 #41663425 未加载
评论 #41663825 未加载
wiseowise8 个月前
Will be wildly ironic if Apple pulls uno reverse card and eats Kotlin on Android instead of the other way around.
评论 #41662788 未加载
评论 #41662633 未加载
评论 #41662256 未加载
评论 #41662434 未加载
评论 #41662562 未加载
评论 #41662219 未加载
评论 #41663832 未加载
renewedrebecca8 个月前
Oh, well that’s cool!