922 Commits

Author SHA1 Message Date
ffa64d691b Use direct calls for constant constructors 2026-04-21 13:30:09 +03:00
30c9a5a565 Propagate exact lambda refs across bytecode slots 2026-04-21 13:20:27 +03:00
db3a780645 Generalize bytecode fast-call dispatch 2026-04-21 13:09:50 +03:00
fc7d26ee4b Fast-path bytecode statement execution 2026-04-21 11:39:47 +03:00
a61b5a31be Add non-suspending fast calls for bytecode callables 2026-04-21 11:35:20 +03:00
33d170f525 Optimize fast-path bytecode lambda invocation 2026-04-21 11:29:14 +03:00
f72cdfdf83 Inline simple lambdas in bytecode fast paths 2026-04-21 09:05:18 +03:00
10fa4de4fa regression fix 2026-04-20 18:48:28 +03:00
4acee56de8 small optimization of List.fill 2026-04-20 14:09:09 +03:00
87060c7eb7 +inference bugs
+List.ensureCapacity
optimized List.fill
2026-04-20 13:56:47 +03:00
6ba128f7ba fixed some more inference bugs 2026-04-20 12:23:17 +03:00
a8f73dc8bd added LaunchPool 2026-04-18 23:37:21 +03:00
145c3ae34a Add completeExceptionally, cancelAndJoin, and refine LaunchPool spec
- CompletableDeferred.completeExceptionally(exception): fails the deferred
  with a Lyng exception; the original exception object is preserved as
  errorObject so assertThrows/catch see the correct class (works for both
  built-in ObjException and user-declared class instances)
- LaunchPool: add maxQueueSize parameter (suspends launch when full),
  add cancelAndJoin() for graceful shutdown that waits for running tasks,
  clarify all semantics in the extern declaration comments
- Two tests for completeExceptionally (built-in and user-defined exception)
- Fix parallelism.md channel doc-test to be illustration-only (avoid
  flakiness from coroutine scheduling in the doc-test runner)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-18 03:00:40 +03:00
f9a07f176a Add Channel primitive for coroutine inter-task communication
Exposes Kotlin's Channel<Obj> to Lyng scripts as a first-class type
with rendezvous, buffered, and unlimited capacity modes. Supports
suspending send/receive, non-suspending tryReceive, close/drain
semantics, and isClosedForSend/isClosedForReceive properties.

Also fixes a pre-existing typo in BookTest.kt that blocked JVM test
compilation, and adds Channel reference docs and a parallelism.md section.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-18 02:28:55 +03:00
30e56946a0 improved JDBC provider for lyng.io.db 2026-04-18 02:06:29 +03:00
49fc700233 Detach materialized SQL rows from transaction lifetime 2026-04-17 20:38:40 +03:00
07cb5a519c Add JDBC and websocket/native follow-up changes 2026-04-16 23:35:15 +03:00
8f66cd7680 Fix lynglib binding regressions and green test suite 2026-04-16 23:34:45 +03:00
bb2119b1d1 ignores 2026-04-16 22:12:19 +03:00
64273ac60a Add JDBC database provider for JVM 2026-04-16 22:10:36 +03:00
ee392daa13 another sample 2026-04-16 13:35:12 +03:00
0affa92674 better SQL example 2026-04-16 01:08:31 +03:00
a2e3f80ab6 better sql exaple, some inference bugs fixed 2026-04-16 00:54:00 +03:00
f8d2533b48 Make SQLite native linker lookup portable 2026-04-15 23:47:38 +03:00
bb9af2258b Fix SQLite release deployment 2026-04-15 23:35:59 +03:00
b3be908242 Add Date type and database release docs 2026-04-15 23:20:23 +03:00
14dc73db3e Harden SQLite provider release behavior 2026-04-15 23:11:50 +03:00
f9bbdd56bf Test DB rollback precedence in SQLite 2026-04-15 22:38:11 +03:00
04e80c384e Stabilize DB provider registration test 2026-04-15 22:35:19 +03:00
6d340824e4 Tighten SQLite transaction failures and tests 2026-04-15 22:20:29 +03:00
5f6f6b9ae4 Align SQLite value conversion across JVM and native 2026-04-15 22:03:42 +03:00
55ba6113e7 Add Lyng DB contract and SQLite provider skeleton 2026-04-15 20:39:38 +03:00
b42ceec686 Preserve VM throw sites in stack traces 2026-04-14 01:17:04 +03:00
fada848907 Add backtick string literals and formatter support 2026-04-13 23:08:18 +03:00
e925195495 yet another import fix 2026-04-13 22:49:02 +03:00
3b6bdda0a4 another import fix 2026-04-13 20:43:11 +03:00
ab39110834 Add repeated local import regression coverage 2026-04-12 11:11:32 +03:00
47eb2d7d61 Fix transitive import re-exports and stabilize captures 2026-04-12 09:16:58 +03:00
eefa4c8f1a Fix stdlib import aliasing and launch captures 2026-04-11 20:24:44 +03:00
6171b0d95f Fix duplicate stdlib import redefinition 2026-04-11 19:24:08 +03:00
a1ea09440d Optimize native CLI release binary 2026-04-09 22:30:43 +03:00
88ce04102a Add CLI atExit shutdown handlers 2026-04-09 22:17:45 +03:00
0e73d80707 plugin fix 2026-04-09 19:37:23 +03:00
121d860043 Document native networking limits 2026-04-09 19:17:32 +03:00
717758149b cleaned up tcpserver.lyng, again ;) 2026-04-09 19:01:26 +03:00
73ec8f9be6 cleaned up tcpserver.lyng/2 2026-04-09 18:28:59 +03:00
805c54a408 cleaned up tcpserver.lyng 2026-04-09 18:26:25 +03:00
9b90fe370b improved tcpserver.lyng sample 2026-04-09 17:11:30 +03:00
840cd32574 Fix captured range bounds in launched for-loops 2026-04-09 17:05:00 +03:00
fbb1683ba3 Fix concurrent TCP CLI scope and add regressions 2026-04-09 11:55:01 +03:00