swift-java

By swiftlang

Swift-java Alternatives

Similar projects and alternatives to swift-java

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better swift-java alternative or higher similarity.

swift-java discussion

Log in or Post with

swift-java reviews and mentions

Posts with mentions or reviews of swift-java. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-09-26.
  • Swift Java Interoperability Tools and Libraries
    1 project | news.ycombinator.com | 27 Sep 2024
    1 project | news.ycombinator.com | 26 Sep 2024
  • Swift/Java interoperability tools and libraries
    3 projects | news.ycombinator.com | 26 Sep 2024
    > It makes me wonder how they are dealing with memory management when Java objects are being used from Swift

    It uses Swift macros to add a `JavaObjectHolder` property to Swift types annotated with `@JavaClass`[0]. `JavaObjectHolder` is a Swift class that takes a global JNI reference to the Java object, and releases it when the holder is destroyed[1].

    The result is that a codegen utility emits Swift structs that wrap the JNI values, and the JNI glue code for method invocation is applied at compile-time when the macros are expanded.

    [0] https://github.com/swiftlang/swift-java/blob/e7d7a217e37d49b...

    [1] https://github.com/swiftlang/swift-java/blob/main/Sources/Ja...

    [2] https://github.com/swiftlang/swift-java/blob/main/Sources/Ja...

  • A note from our sponsor - SaaSHub
    www.saashub.com | 15 Oct 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic swift-java repo stats
4
659
4.6
5 days ago

swiftlang/swift-java is an open source project licensed under Apache License 2.0 which is an OSI approved license.

The primary programming language of swift-java is Swift.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you konow that Swift is
the 15th most popular programming language
based on number of metions?