swiftlang / swiftlang/swift-java

jextract-swift support for generic Swift methods

Open
#32 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature:jextract
Dominant language
Swift
Stars
1.2k
Forks
123
Avg merge
1d 7h
Merged PRs (30d)
16

Description

This may be tricky, but we should investigate how much is possible here.

This would likely require help from Swift emitted thunks, as the way that metadata is passed may be non-trivial.

Perhaps we can handle some simple cases at first though.

Generic signatures are non trivial in Swift, so this would require additional information from the Swift interfaces to somehow make it "managable", see: https://github.com/swiftlang/swift/blob/main/docs/ABI/GenericSignature.md

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading Swift's GenericSignature documentation linked in the issue, then investigate how Swift emitted thunks pass metadata and what information Swift interfaces expose. The issue's initial scope would be to determine whether simple generic Swift methods can be supported; no source files or tests are named.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.