Simon Cruanes
03f8ccd030
CI
2025-09-26 15:44:21 -04:00
Simon Cruanes
d98dadeb84
Merge pull request #37 from c-cube/simon/lwt-main-runner-2025-07-09
...
change moonpool-lwt to make it a lwt-engine based runner
2025-09-26 15:04:48 -04:00
Simon Cruanes
d79200f555
Merge pull request #39 from c-cube/simon/reduce-scope-2025-07-09
...
reduce scope of the library a bit
2025-09-26 15:02:01 -04:00
Simon Cruanes
2dbbad4ef2
refactor moonpool_lwt
2025-09-26 14:55:26 -04:00
Simon Cruanes
677ae5c36a
perf: fast path for Moonpool_lwt.run_in_lwt_and_await
2025-09-26 14:55:26 -04:00
Simon Cruanes
4e19719c4f
modify signature for Moonpool_lwt.run_in_lwt_and_await
2025-09-26 14:55:26 -04:00
Simon Cruanes
4f685313de
detail
2025-09-26 14:55:26 -04:00
Simon Cruanes
8bd79c70b5
add Moonpool_lwt.on_lwt_thread
2025-09-26 14:55:26 -04:00
Simon Cruanes
f245f4913c
add Moonpool_lwt.spawn_lwt_ignore
2025-09-26 14:55:26 -04:00
Simon Cruanes
2aabc30b70
fix test
2025-09-26 14:55:26 -04:00
Simon Cruanes
a42737aa81
format
2025-09-26 14:55:25 -04:00
Simon Cruanes
bf649f5348
fix test
2025-09-26 14:55:25 -04:00
Simon Cruanes
44edf60836
fix tests
2025-09-26 14:55:25 -04:00
Simon Cruanes
86b64ae3d4
fix lwt: make sure to wakeup loop in main
...
there's a race condition where, by the time we schedule the
main fiber in `lwt_main`, the event loop is already asleep (maybe
from a previous run). We make sure to wake the loop up.
2025-09-26 14:55:25 -04:00
Simon Cruanes
01026fafaa
doc
2025-09-26 14:55:25 -04:00
Simon Cruanes
2afb5c1036
adapt some tests for the lwt runner
2025-09-26 14:55:25 -04:00
Simon Cruanes
9e814ecb48
lwt: handle fibers in moonpool_lwt
2025-09-26 14:55:25 -04:00
Simon Cruanes
00078d8b43
update test
2025-09-26 14:55:25 -04:00
Simon Cruanes
e3be2aceaa
feat lwt: make sure we can setup/cleanup multiple times
2025-09-26 14:55:25 -04:00
Simon Cruanes
1eef212a3e
more sanity checks
2025-09-26 14:55:25 -04:00
Simon Cruanes
63559f0f3b
detail
2025-09-26 14:55:25 -04:00
Simon Cruanes
6c8c06b391
update lwt test
2025-09-26 14:55:25 -04:00
Simon Cruanes
122b3a6b06
feat lwt: make most functions work on any thread, not just the main
2025-09-26 14:55:25 -04:00
Simon Cruanes
786d75d680
comments/license for the Lwt hash server
2025-09-26 14:55:25 -04:00
Simon Cruanes
50b9dd9b62
fix CI for lwt tests
2025-09-26 14:55:25 -04:00
Simon Cruanes
da551edbd3
fix lwt tests
2025-09-26 14:55:25 -04:00
Simon Cruanes
6ae82f130a
feat lwt: proper wakeup; add lwt_main_runner
2025-09-26 14:55:25 -04:00
Simon Cruanes
0fecde07fc
test: update Lwt tests to use the new Moonpool_lwt
2025-09-26 14:55:25 -04:00
Simon Cruanes
a24bd7472d
feat worker_loop: always use reschedule in await
...
it's better than continuing right now because it will potentially
reschedule on the correct runner.
2025-09-26 14:55:25 -04:00
Simon Cruanes
796c4f6f31
feat lwt: improvements
2025-09-26 14:55:25 -04:00
Simon Cruanes
f53dbe4dda
cleanup worker loop
2025-09-26 14:55:25 -04:00
Simon Cruanes
e09c809a45
deprecate moonpool.sync
2025-09-26 14:55:25 -04:00
Simon Cruanes
f5993408c0
wip: debug echo server
2025-09-26 14:55:24 -04:00
Simon Cruanes
6c4fb69d23
wip: lwt
2025-09-26 14:55:24 -04:00
Simon Cruanes
72d8c09898
wip
2025-09-26 14:55:24 -04:00
Simon Cruanes
543135a0b0
wip: echo server using lwt
2025-09-26 14:55:24 -04:00
Simon Cruanes
295f22e770
wip: lwt
2025-09-26 14:55:24 -04:00
Simon Cruanes
bf90c32c86
wip lwt: event loop for moonpool directly inside lwt
2025-09-26 14:55:24 -04:00
Simon Cruanes
55e3e77a66
core: cleanup, and add a fined grained API for worker loop
2025-09-26 14:55:24 -04:00
Simon Cruanes
1a64e7345e
Revert "deprecate fibers"
...
This reverts commit 83acc18d3d .
2025-09-26 14:54:50 -04:00
Simon Cruanes
2c1def188a
breaking: require OCaml 5
2025-07-09 16:44:12 -04:00
Simon Cruanes
b9bbcf82f7
test do not need preprocessor anymore
2025-07-09 16:43:51 -04:00
Simon Cruanes
0ab99517d5
benchs: no preprocessor anymore
2025-07-09 16:41:05 -04:00
Simon Cruanes
41561c3bff
deprecated moonpool_io
2025-07-09 16:25:10 -04:00
Simon Cruanes
50a44a76e1
forkjoin not longer optional
2025-07-09 16:25:03 -04:00
Simon Cruanes
f6ad345f31
fib: remove preprocessor
2025-07-09 16:24:49 -04:00
Simon Cruanes
f8d5c564de
remove version-dependent preprocessor
2025-07-09 15:42:23 -04:00
Simon Cruanes
2dcc858384
remove Atomic stubs, we're already depending on >4.12
2025-07-09 15:39:26 -04:00
Simon Cruanes
83acc18d3d
deprecate fibers
2025-07-09 15:28:33 -04:00
Simon Cruanes
5ea9a3f587
remove bounded_queue
2025-07-09 15:28:25 -04:00