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: README.md
+4-16Lines changed: 4 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,9 +121,9 @@ No JNI. No annotations. No boilerplate. Just write Kotlin/Native and use it from
121
121
122
122
## What's supported
123
123
124
-
### Types — test coverage (930+ end-to-end FFM tests)
124
+
### Types — test coverage (960+ end-to-end FFM tests)
125
125
126
-
Every test compiles Kotlin/Native → `libcalculator.so` (200+ exported symbols) → loads via FFM `MethodHandle` → verifies on JVM. Zero mocks — all 930+ tests cross the real native boundary. Includes 25 load tests (500K+ FFM calls), concurrent stress tests (10 threads), 110+ suspend function tests with cancellation (incl. ByteArray, DataClass, List, Set, Map), and 50+ Flow tests (including `Flow<DataClass>`).
126
+
Every test compiles Kotlin/Native → `libcalculator.so` (200+ exported symbols) → loads via FFM `MethodHandle` → verifies on JVM. Zero mocks — all 960+ tests cross the real native boundary. Includes 25 load tests (500K+ FFM calls), concurrent stress tests (10 threads), 110+ suspend function tests with cancellation (incl. ByteArray, DataClass, List, Set, Map), and 50+ Flow tests (including `Flow<DataClass>`).
127
127
128
128
| Feature | As param | As return | As property | CB param | CB return | Notes |
| Lambda as return type | Callback supported as param only | Return a class with methods instead |
404
-
|`ByteArray` as callback param | Buffer lifecycle across callback boundary | Pass as `String` (Base64) or use non-callback API |
405
404
406
-
### Collection limitations
407
-
408
-
| Unsupported | Reason | Alternative |
409
-
|-------------|--------|-------------|
410
-
|`ByteArray` in `List` / `Set` / `Map`| Nested buffer management | Use `List<String>` with encoding |
411
-
412
-
### Data class field limitations
413
-
414
-
| Unsupported | Reason | Alternative |
415
-
|-------------|--------|-------------|
416
-
|`ByteArray` field | Buffer out-param not wired for DC fields | Use `String` (Base64) or separate method |
417
405
418
406
## Configuration reference
419
407
@@ -577,7 +565,7 @@ The repository includes two complete examples in [`examples/`](examples/):
577
565
578
566
| Example | Description |
579
567
|---------|-------------|
580
-
|[`calculator/`](examples/calculator/)| Stateful Calculator class with 930+ end-to-end tests: all types, callbacks, collections (incl. `List<DataClass>` params), collection properties, data class collection fields, suspend (incl. DataClass, List, Set, Map), Flow (incl. DataClass), nested classes, concurrency |
568
+
|[`calculator/`](examples/calculator/)| Stateful Calculator class with 960+ end-to-end tests: all types, callbacks, collections (incl. `List<DataClass>` params), collection properties, data class collection fields, suspend (incl. DataClass, List, Set, Map), Flow (incl. DataClass), nested classes, concurrency |
581
569
|[`systeminfo/`](examples/systeminfo/)| Linux system info (`/proc`, POSIX, `gethostname`) + native notifications via `libnotify` cinterop, with Compose Desktop UI |
0 commit comments