Repository navigation
v1.0.0-rc2 #509
pantoniou
announced in
Announcements
v1.0.0-rc2
#509
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
libfyaml v1.0.0-rc2
v1.0.0-rc2is the second release candidate for libfyaml 1.0. It has thecontent of
v1.0.0-rc1and fixes its Python wheel build: the macos-arm64wheel is now built on
macos-15, asmacos-14is no longer supported, sothe rc1 wheels were never published. The API is complete; only fixes are
expected before 1.0.0.
Highlights:
cparse, a C declaration parser that is now the default reflection backend (libclang is opt in)!!binaryas base64, and a lossless round trip of bytes that are not UTF-8Generics and durable arenas
fy_generic_image_create()andfy_generic_image_load()write a genericvalue to a relocatable image and load it again at any address.
FY_GENERIC_IMAGE_CHECKEDmakes the load validate every word, so a damaged orhostile image is rejected instead of followed.
fy_generic_refs_publish()andfy_generic_refs_get()publish a generic root in a durable arena, andfy_allocator_ptr_to_handle()/fy_allocator_handle_to_ptr()give stablehandles to arena locations.
FIL-C and WebAssembly
libfyaml builds and passes its tests under FIL-C 0.687, including durable
arenas shared with native processes. Where the runtime has
zgc_reserve_at()a durable region is placed at its base, as natively; with any other runtime it
is placed at a runtime chosen address. Under FIL-C the mremap allocator uses
small arenas that are never grown, which cuts the counted memory of a builder
from 32 MiB to 2 MiB. See
doc/filc-support.md.The WebAssembly (Emscripten) build runs its tests under node. See
doc/wasm-support.md.Reflection
cparseis a C preprocessor, constant expression evaluator and declarationparser. It replaces libclang as the default reflection backend, and C
declarations can be generated from types and parsed back to the same types.
libclang is loaded on first use, and only when built with it.
Text and binary
!!binaryis emitted as base64 (FYOPEF_BINARY_BASE64) and parsed back.Bytes that are not valid UTF-8 round trip as
\uDC80-\uDCFF. Newfy-tooloptions:
--write-image,--read-image,--binary-base64and--no-yaml-1.2-binary.Correctness fixes
The fuzzing reports gh#411 to gh#503 found leaks, double frees, use after
free, unbounded recursion and size errors in the parser, document builder,
emitter, YPath, generic and reflection code. Each report has a test.
Build and ABI
The linker interface version moves to
9:0:7: interfaces were added and nonewere removed or changed. The libclang reflection backend is now opt in.
Resources
CHANGELOG.mdThis discussion was created from the release v1.0.0-rc2.
All reactions