You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: WIP.md
-47Lines changed: 0 additions & 47 deletions
Original file line number
Diff line number
Diff line change
@@ -32,50 +32,3 @@ improve:
32
32
-[ ] Investigate "unbridged" variants of String, Array, etc.
33
33
-[ ] Investigate the new [Foreign Function & Memory API](https://bugs.openjdk.org/browse/JDK-8312523) (aka Project Panama) for exposing Swift APIs to Java.
34
34
35
-
36
-
### jextract-swift
37
-
38
-
Separate todo list for the jextract / panama side of the project:
39
-
40
-
Calling convention:
41
-
-[x] Call swift methods, take parameters, return values
42
-
-[ ] How to call a **throwing** Swift function from Java
43
-
-[ ] How to call a **generic** Swift function from Java
44
-
-[ ] How to pass "call me back" (Callable, Runnable) to Swift, and make an **up-call**
45
-
-[ ] How to support passing a struct **inout**`SwiftValue` to Swift so that Java side sees change
46
-
47
-
Bridges:
48
-
-[ ] Java **Optional** / Swift Optional - depends on generics (!)
49
-
-[ ] Efficient **String** / SwiftString wrappers and converters
50
-
-[ ] Handle byte buffers and pointers properly
51
-
-[ ] Converters for **Array**
52
-
-[ ] Converters for **List** and common collections?
53
-
-[ ] expose Swift collections as some bridged type implementing java.util.Collection?
54
-
-[ ] Import Swift **enums**
55
-
56
-
Importer:
57
-
-[x] import global functions into the `Module.theFunction` on Java side
58
-
-[x] import functions with parameters
59
-
-[x] import functions return values
60
-
-[ ] import instance member functions using "wrapper" pattern
61
-
-[ ] handle types like `[any Thing]?`, we can't parse them right now even
62
-
-[ ] support nested types in Swift
63
-
-[ ] handle types like `any Thing`, importer does not understand `any` or `some`
64
-
65
-
Programming model:
66
-
-[ ] Which style of ownership for Java class wrapping a Swift Class
67
-
-[x]__allocating_init, how to release/destroy from Java
0 commit comments