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
+6-13Lines changed: 6 additions & 13 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 (780+ end-to-end FFM tests)
124
+
### Types — test coverage (830+ 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 780+ tests cross the real native boundary. Includes 25 load tests (500K+ FFM calls), concurrent stress tests (10 threads), 60 suspend function tests with cancellation (incl. ByteArray), 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 830+ 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 |
|`suspend fun(): DataClass`| DC field extraction from StableRef not yet implemented | Return individual fields or use non-suspend |
404
-
|`suspend fun(): List<T>` / `Set<T>` / `Map<K,V>`| Collection serialization via continuation callback | Return collections from non-suspend functions |
405
-
406
399
### Flow element limitations
407
400
408
401
| Unsupported | Reason | Alternative |
@@ -601,7 +594,7 @@ The repository includes two complete examples in [`examples/`](examples/):
601
594
602
595
| Example | Description |
603
596
|---------|-------------|
604
-
|[`calculator/`](examples/calculator/)| Stateful Calculator class with 780+ end-to-end tests: all types, callbacks, collections, suspend, Flow (incl. DataClass), nested classes, concurrency |
597
+
|[`calculator/`](examples/calculator/)| Stateful Calculator class with 830+ end-to-end tests: all types, callbacks, collections, suspend (incl. DataClass, List, Set, Map), Flow (incl. DataClass), nested classes, concurrency |
605
598
|[`systeminfo/`](examples/systeminfo/)| Linux system info (`/proc`, POSIX, `gethostname`) + native notifications via `libnotify` cinterop, with Compose Desktop UI |
0 commit comments