| 1 |
libdex 1.2.beta |
| 2 |
=============== |
| 3 |
|
| 4 |
This is a beta release for the upcoming GNOME 51. |
| 5 |
|
| 6 |
* DexStateMachine transition callbacks now use |
| 7 |
DexStateTransitionContext, allowing callbacks to inspect transition edges, |
| 8 |
publish intermediate states, and continue directly through another edge |
| 9 |
* Add dex_state_machine_wait_for_state(), |
| 10 |
dex_state_machine_get_requested_state(), and cooperative transition |
| 11 |
interruption with dex_state_machine_interrupt() and |
| 12 |
dex_state_transition_context_wait_for_interrupt() |
| 13 |
* Rework thread-pool work stealing so idle workers can sleep instead of |
| 14 |
continuously scanning their peers, while improving work distribution and |
| 15 |
fixing queue sizing and worker-set lifetime issues |
| 16 |
* Fix using libdex as a Meson subproject with GDBus code generation enabled |
| 17 |
* Remove incorrect G_GNUC_CONST annotations for compatibility with newer GCC |
| 18 |
* Expand state-machine, scheduler, and thread-pool documentation and tests |
| 19 |
|
| 20 |
|
| 21 |
libdex 1.2.alpha |
| 22 |
================ |
| 23 |
|
| 24 |
This is an alpha release for the upcoming GNOME 51. |
| 25 |
|
| 26 |
* Dropped the gconstructor for `dex_init()` which means applications must |
| 27 |
call `dex_init()` at startup themselves from `main()`. |
| 28 |
* New DexLimiter API for bounded concurrency with explicit |
| 29 |
acquire/release, automatic permit management while running fibers, and |
| 30 |
close/reject behavior for queued work |
| 31 |
* New timeout wrappers for futures: dex_future_with_timeout(), |
| 32 |
dex_future_with_timeout_msec(), dex_future_with_timeout_seconds(), and |
| 33 |
dex_future_with_deadline() |
| 34 |
* Additional GFile async wrappers for temporary directories, copy with |
| 35 |
progress, trash, append, partial content loading, byte loading, |
| 36 |
filesystem info queries, default handler lookup, enclosing mount lookup, |
| 37 |
display-name changes, read/write open/create/replace variants, string |
| 38 |
content replacement, and symbolic link creation |
| 39 |
* Additional GIO async wrappers for GAppInfo, GDataInputStream, |
| 40 |
GOutputStream, GSocketClient, GSocketConnection, GTlsConnection, |
| 41 |
GDtlsConnection, GResolver, GNetworkMonitor, GProxy, GProxyResolver, |
| 42 |
GSubprocess, GTlsDatabase, GTlsInteraction, GPermission, and |
| 43 |
GUnixConnection |
| 44 |
* New DexCoroutine stackless future type with helpers for suspending on |
| 45 |
pending futures, plus dex_scheduler_spawn_coroutine() |
| 46 |
* New DexTaskGroup API for structured concurrency with close, cancel, and |
| 47 |
cancel-on-error behavior |
| 48 |
* New DexThreadPool API for bounded threaded work queues |
| 49 |
* New dex_limiter_run_on_pool(), dex_limiter_run_coroutine(), and |
| 50 |
dex_limiter_close_after_drain() |
| 51 |
* New dex_aio_open() and dex_aio_close() |
| 52 |
* New dex_fiber_yield() |
| 53 |
* New DEX_DEFINE_CLOSURE_TYPE() helper for closure-like state structs |
| 54 |
* New dex_set_object() helper and DexObject property support for DexFuture |
| 55 |
values |
| 56 |
* New dex_promise_resolve_enum() |
| 57 |
* New DexStateMachine API to simplify asynchronous state machines with fibers |
| 58 |
providing a simple API to track state machine transitions, including |
| 59 |
in-fiber transition continuations with DexStateTransitionContext and |
| 60 |
requested state tracking. |
| 61 |
* Future debug names are now enabled by default when compiling with GCC and |
| 62 |
fibers emit Sysprof marks for their duration |
| 63 |
* Fix DexObject weak-reference retargeting to avoid a possible lock |
| 64 |
inversion during finalization |
| 65 |
* Fix DexChannel receive_all() to unblock queued senders after draining |
| 66 |
bounded channel capacity |
| 67 |
* Fix DexDelayed chaining so release waits for the wrapped future in the |
| 68 |
correct direction |
| 69 |
* DexPosixAioBackend now delays threadpool startup until the first work item |
| 70 |
is enqueued. |
| 71 |
* Make DexSemaphore user-space only |
| 72 |
* Build system fixes for gio-unix dependency propagation |
| 73 |
* Fix clang testsuite compatibility around atomic addition |
| 74 |
* Documentation additions for limiters, timeout-gated futures, coroutines, |
| 75 |
task groups, thread pools, schedulers, debugging, and GIO wrappers |
| 76 |
* Testsuite additions for limiters, timeout passthrough behavior, delayed |
| 77 |
futures, channel receive_all(), weak-reference retargeting, GIO wrappers, |
| 78 |
AIO, coroutines, fibers, task groups, thread pools, DexObject, and |
| 79 |
DexTest helpers |
| 80 |
|
| 81 |
|
| 82 |
libdex 1.1.0 |
| 83 |
============ |
| 84 |
|
| 85 |
This is a stable release for GNOME 50. |
| 86 |
|
| 87 |
* No changes since 1.1.rc |
| 88 |
|
| 89 |
libdex 1.1.rc |
| 90 |
============= |
| 91 |
|
| 92 |
This is a release candidate for 1.1 |
| 93 |
|
| 94 |
* Require GLib 2.87.0 |
| 95 |
|
| 96 |
libdex 1.1.alpha |
| 97 |
================ |
| 98 |
|
| 99 |
This is an alpha release for the upcoming GNOME 50 |
| 100 |
|
| 101 |
* New D-Bus support with DexDBusInterfaceSkeleton for dispatching |
| 102 |
method invocations in fibers, allowing async/await in D-Bus handlers |
| 103 |
* New dex_bus_own_name_on_connection() for managing bus name ownership |
| 104 |
* New DexFutureListModel for integrating futures with GListModel |
| 105 |
* Python asyncio integration allowing Dex.Future to be used with |
| 106 |
async/await in Python code |
| 107 |
* New runtime version query API: dex_get_major_version(), |
| 108 |
dex_get_minor_version(), and dex_get_micro_version() |
| 109 |
* New GIO wrappers: dex_file_create(), dex_data_input_stream_read_line(), |
| 110 |
dex_find_program_in_path(), dex_mkdir_with_parents(), and g_unlink() |
| 111 |
* Improved Visual Studio and clang-cl build support with C11 atomic support |
| 112 |
* Thread pool scheduler now falls back to POSIX backend for AIO when necessary |
| 113 |
* io_uring context reuse improvements |
| 114 |
* Extensive documentation improvements with gi-docgen annotations |
| 115 |
* Various bug fixes and memory leak fixes |
| 116 |
|
| 117 |
|
| 118 |
libdex 1.0.0 |
| 119 |
============ |
| 120 |
|
| 121 |
Libdex has now reached our ceremonial 1.0 for GNOME 49. |
| 122 |
|
| 123 |
Thanks to everyone who has helped over the past couple of years |
| 124 |
to make that happen. |
| 125 |
|
| 126 |
|
| 127 |
libdex 0.11.1 |
| 128 |
============= |
| 129 |
|
| 130 |
This is a beta release for the upcoming GNOME 49 |
| 131 |
|
| 132 |
* Ensure a full-barrier before giving callers access to a newly |
| 133 |
created thread pool scheduler via `get_default()` |
| 134 |
* Various documentation additions and fixes |
| 135 |
* Add async variant of `g_file_query_file_type()` |
| 136 |
* Add async variant of `g_file_move()` |
| 137 |
* Depend on gio-unix when not on Windows |
| 138 |
|
| 139 |
libdex 0.11.0 |
| 140 |
============= |
| 141 |
|
| 142 |
This is an alpha release for the upcoming GNOME 49 |
| 143 |
|
| 144 |
* New dex_thread_spawn() and dex_thread_wait_for() APIs which make |
| 145 |
it easier to integrate with a non-dex scheduled thread. |
| 146 |
* Add dex_value_dup_object() |
| 147 |
* Add dex_async_initable_init() |
| 148 |
* Add dex_dbus_connection_close() |
| 149 |
* Add dex_file_set_attributes() |
| 150 |
* Various testsuite improvements |
| 151 |
|
| 152 |
libdex 0.10.0 |
| 153 |
============= |
| 154 |
|
| 155 |
* Discard dependent futures if fiber was cancelled during await. |
| 156 |
* Discard dependent futures when finalizing DexBlock. |
| 157 |
* Build fix for macOS |
| 158 |
|
| 159 |
libdex 0.9.1 |
| 160 |
============ |
| 161 |
|
| 162 |
* Improve build checks for libatommic |
| 163 |
* Add dex_promise_resolve_boxed() |
| 164 |
* Improve cancellation of fibers |
| 165 |
* Use libucontext when necessary |
| 166 |
|
| 167 |
libdex 0.9.0 |
| 168 |
============ |
| 169 |
|
| 170 |
This is an unstable release for GNOME 48.alpha |
| 171 |
|
| 172 |
* Support for OpenBSD |
| 173 |
* Raise default mmap stack size to 128kb for fibers |
| 174 |
* Add await/resolve API for file-descriptors |
| 175 |
* New dex_return_error_if_fail() precondition macro similar to |
| 176 |
g_return_val_if_fail() |
| 177 |
* Additional GIO wrapper functions including dex_file_delete() and |
| 178 |
dex_file_replace_contents_bytes() |
| 179 |
* Build system improvements |
| 180 |
|
| 181 |
libdex 0.8.1 |
| 182 |
============ |
| 183 |
|
| 184 |
This is a stable release for GNOME 47.0 |
| 185 |
|
| 186 |
* Fix disabling of assertions in production builds |
| 187 |
|
| 188 |
libdex 0.8.0 |
| 189 |
============ |
| 190 |
|
| 191 |
This is a stable release for GNOME 47.0 |
| 192 |
|
| 193 |
* Various build system improvements to help catch correctness issues. |
| 194 |
* Increased assertions in fibers to help Coverity discover usage patterns. |
| 195 |
* Avoid releasing discarded future until chained future is released. |
| 196 |
* Fix overflow in extremely large timeout calculation. |
| 197 |
* Various introspection fixes. |
| 198 |
* Fix inclusion from C++. |
| 199 |
|
| 200 |
libdex 0.7.1 |
| 201 |
============ |
| 202 |
|
| 203 |
This is an beta release for GNOME 47.beta |
| 204 |
|
| 205 |
* Allow disabling stack protector on systems that do not support it |
| 206 |
* Always use ucontext.h on macOS to simplify integration there |
| 207 |
|
| 208 |
libdex 0.7.0 |
| 209 |
============ |
| 210 |
|
| 211 |
This is an alpha release for GNOME 47.alpha |
| 212 |
|
| 213 |
* Various build fixes for macOS 14+ |
| 214 |
* dex_future_new_true() and dex_future_new_false() convenience macros |
| 215 |
* Avoid possible linking of asm.S on Linux so that we do not make the |
| 216 |
GCC annobin checker unhappy. |
| 217 |
* Allow a NULL GObject for dex_future_new_take_object(). |
| 218 |
|
| 219 |
libdex 0.6.0 |
| 220 |
============ |
| 221 |
|
| 222 |
This is a stable release for GNOME 46 |
| 223 |
|
| 224 |
* No changes since 0.5.1 |
| 225 |
|
| 226 |
libdex 0.5.1 |
| 227 |
============ |
| 228 |
|
| 229 |
* Add convenience API for checking exact future status without enum |
| 230 |
* Lots of documentation additions |
| 231 |
|
| 232 |
libdex 0.5.0 |
| 233 |
============ |
| 234 |
|
| 235 |
This is a beta release for GNOME 46. |
| 236 |
|
| 237 |
* Various API now warns about unused results to help avoid unintended |
| 238 |
leaks of futures. |
| 239 |
* dex_file_query_exists() is a new wrapper for g_file_query_exists() |
| 240 |
* Documentation fixes |
| 241 |
|
| 242 |
libdex 0.4.3 |
| 243 |
============ |
| 244 |
|
| 245 |
This release contains a few more followup fixes for fallback scheduling, |
| 246 |
particularly on Linux systems without io_uring. We've also enabled CI |
| 247 |
to test this situation more closely as we're most likely to run into it |
| 248 |
on distribution build systems running older Linux kernels. |
| 249 |
|
| 250 |
* New build options for disabling io_uring and eventfd support which |
| 251 |
enable testing more fallback paths in CI. |
| 252 |
* Worker threads will now use a GMainLoop instead iterating GMainContext |
| 253 |
manually. |
| 254 |
* An idle is used for scheduling work items directly onto a worker thread |
| 255 |
instead of going through the global work queue when not already running |
| 256 |
on a worker thread. Otherwise the lock-free work queue is used. |
| 257 |
* A fix for a potential deadlock when failing to create an additional |
| 258 |
worker thread. |
| 259 |
* Fix a release build warning. |
| 260 |
|
| 261 |
libdex 0.4.2 |
| 262 |
============ |
| 263 |
|
| 264 |
This release contains an important fix for running on systems with |
| 265 |
io_uring and recent Linux kernels. |
| 266 |
|
| 267 |
* io_uring AIO backend will now attempt to create the io_uring on the |
| 268 |
target worker thread so that IORING_SETUP_SINGLE_ISSUER may restrict |
| 269 |
submissions correctly. |
| 270 |
* Linux distributions may optionally disable liburing using the build |
| 271 |
time option -Dliburing=disabled. In that case, the fallback of POSIX |
| 272 |
IO with a thread-pool will be used. |
| 273 |
|
| 274 |
libdex 0.4.1 |
| 275 |
============ |
| 276 |
|
| 277 |
This release includes an important fix for how io_uring CQE are handled. |
| 278 |
|
| 279 |
libdex 0.4.0 |
| 280 |
============ |
| 281 |
|
| 282 |
This is the release for GNOME 45. |
| 283 |
|
| 284 |
Changes in this release: |
| 285 |
|
| 286 |
* Documentation fix |
| 287 |
|
| 288 |
libdex 0.3.1 |
| 289 |
============ |
| 290 |
|
| 291 |
This is the beta release for GNOME 45. |
| 292 |
|
| 293 |
Changes in this release: |
| 294 |
|
| 295 |
* A new "Infinite" future type which will never resolve or reject. |
| 296 |
* The gio wrappers will now set debuggable names for their futures. |
| 297 |
* A `dex_async_pair_set_cancel_on_discard()` function has been added which |
| 298 |
ensures that the `GCancellable` will not be cancelled when the future |
| 299 |
is discarded. This can help in situations where you might repeatedly |
| 300 |
await on a future and do not want intermediate cancellation between |
| 301 |
attempts to await. |
| 302 |
* A `dex_input_stream_skip_async()` function has been added to wrap the |
| 303 |
underlying GIO function. |
| 304 |
* A `dex_future_disown()` function has been added which simplifies the |
| 305 |
case where you want a future to run but are not interested in the result. |
| 306 |
|
| 307 |
libdex 0.3.0 |
| 308 |
============ |
| 309 |
|
| 310 |
This is the first alpha release for GNOME 45. |
| 311 |
|
| 312 |
Changes in this release: |
| 313 |
|
| 314 |
* Documentation updates |
| 315 |
* pkg-config improvements |
| 316 |
* Build system improvements for GIR |
| 317 |
* Support for GVariant-based futures |
| 318 |
* New Future-based wrappers for GDBusConnection |
| 319 |
* The FD-based AIO API is now public, allowing for use of io_uring |
| 320 |
on Linux kernels that support it. If unsupported, a threadpool |
| 321 |
approach is used similar to GIO. |
| 322 |
* Improvements to introspection for language bindings. |
| 323 |
* You can now return NULL for a DexPromise expecting a GObject as |
| 324 |
as a resolved value. |
| 325 |
* DexFiber will now get static names associated with them when |
| 326 |
used from C which points to the line of code. This is only enabled |
| 327 |
when debugging is enabled for libdex through the use of macros. |
| 328 |
|
| 329 |
libdex 0.2.0 |
| 330 |
============ |
| 331 |
|
| 332 |
This is the first release intended for end-users. |
| 333 |
|
| 334 |
Changes in this release: |
| 335 |
|
| 336 |
* Followup fixes for building on mips |
| 337 |
* Fixes for introspection gi-scanner |
| 338 |
* Remove abstract type flag from DexFuture to satisfy GObject Introspection |
| 339 |
rules about constructors. |
| 340 |
* Many documentation/gi-annotation fixes |
| 341 |
* Build system improvements |
| 342 |
* Default to `-Dintrospection=enabled` |
| 343 |
|
| 344 |
libdex 0.1.1 |
| 345 |
============ |
| 346 |
|
| 347 |
Changes in this release: |
| 348 |
|
| 349 |
* Fix soname versioning |
| 350 |
* Documentation improvements |
| 351 |
* Fix various GObject Introspection issues |
| 352 |
* More backports for older GLib use |
| 353 |
* Various ucontext fiber fixes for less-used architectures |
| 354 |
* Fixes for various incorrect cast-align warnings |
| 355 |
* Tweaks for better Forward portability |
| 356 |
* Add some missing g_autoptr() definitions |
| 357 |
* Add GCancellation integration to DexPromise |
| 358 |
|
| 359 |
libdex 0.1.0 |
| 360 |
============ |
| 361 |
|
| 362 |
This is an initial release of libdex meant for experimentation and testing. |