TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Swift/Java interoperability tools and libraries

83 pointsby timsneath8 months ago

7 comments

microflash8 months ago
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 months ago
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 months ago
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 months ago
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 months ago
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 months ago
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 months ago
Oh, well that’s cool!