Repository navigation
feat(c): C port, with a header-only C++17 wrapper - #37
Merged
Merged
Conversation
…, vectors, maps, stable sort, exact JS number parsing and formatting
…, and a C runner in compare-ports and fuzz-ports
…ers, tracklists, edits and JSON output, with the same output as the other ports
…source tarball, amalgamation, checksums and provenance on the GitHub Release
… CMake package, pkg-config and exported-symbol checks, and examples
…d install switch, and in the READMEs
…ential run, locales, allocation failure sweeps, benchmarks and libFuzzer targets
…C 9 with CMake 3.16, sanitizers, Valgrind, locales, compare against JS, weekly fuzzing
…nitizer link flags for consumers in the build tree
…e the C port, its commands, hazards, release and known gaps
…arena mark and release): 1 GB to 5 MB on a 10,000-code-point input
…tion, no leak in the C++ string copy, no view of a temporary track, lock-free reads of the built tables, mark/release keeps chunk growth; CI: CMake 3.16.8 and a Windows DLL job
…1 memset bound on 32-bit, GCC 13 -Wclobbered in test_num, Clang -Wstring-concatenation in test_oom
…es sanitizer symbols, test_num avoids -Wclobbered on 32-bit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A fifth port:
libtrackparse, a C11 library underc/, translated file by file from the Go port, plustrackparse.hpp, a header-only C++17 wrapper on top of it.Results
--only=c: 0 differences.--only=c --n=500000 --seed=7: 500,000 single-track cases and 290,000 tracklists with edits, 0 differences.Shape
c/include/trackparse.h):_freeeach.trackparse_parser._to_jsonwrites the exactJSON.stringifybytes.longjmps back to the public entry point, which returns NULL. Each result is a single allocation.Release
c. Merging the next release PR tagsc-v0.7.0.publish-cattaches the source tarball (built and tested alone, without Node), the amalgamation zip,SHA256SUMSand a provenance attestation.spec.ymlchecks six versions.cenvironment is created when the job first runs.CI (
c.yml)Docs
c/README.mdis new, the root and package READMEs are updated, and AGENTS.md now covers the C commands, the hazards the port ran into, the release flow and the known gaps.