# WFDB-x: Conformance-Tested Implementations of the WFDB Software Package in Seven Programming Languages

DevFeed: [WFDB-x: Conformance-Tested Implementations of the WFDB Software Package in Seven Programming Languages](<https://devfeed.tech/articles/wfdb-x-conformance-tested-implementations-of-the-wfdb-software-package-in-seven-programming-languages-113506.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.01358>)

Author: Reza Sameni

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [Programming](<https://devfeed.tech/topics/programming.md>), [c/c++](<https://devfeed.tech/topics/c-c-plus-plus.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Fuzzing/Fuzz testing](<https://devfeed.tech/topics/fuzzing.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-assistance](<https://devfeed.tech/tags/ai-assistance.md>), [ai-assisted](<https://devfeed.tech/tags/ai-assisted.md>), [ai-assisted-development](<https://devfeed.tech/tags/ai-assisted-development.md>), [annotation](<https://devfeed.tech/tags/annotation.md>), [annotations](<https://devfeed.tech/tags/annotations.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [c](<https://devfeed.tech/tags/c.md>), [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [cross](<https://devfeed.tech/tags/cross.md>), [cs-dl](<https://devfeed.tech/tags/cs-dl.md>), [cs-pl](<https://devfeed.tech/tags/cs-pl.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [development-process](<https://devfeed.tech/tags/development-process.md>), [differential-fuzzing](<https://devfeed.tech/tags/differential-fuzzing.md>), [environment](<https://devfeed.tech/tags/environment.md>), [faster](<https://devfeed.tech/tags/faster.md>), [languages](<https://devfeed.tech/tags/languages.md>), [package](<https://devfeed.tech/tags/package.md>), [programming](<https://devfeed.tech/tags/programming.md>), [programming-languages](<https://devfeed.tech/tags/programming-languages.md>), [software](<https://devfeed.tech/tags/software.md>)

## AI overview

WFDB-x reimplements WFDB Software Package 10.7.0 in Python, C++, Rust, Julia, R, MATLAB/Octave, and Kotlin, with library functions, high-level interfaces, and command-line tools in each. To address inconsistent corner-case behavior and risky implicit waveform defaults, it removes implicit parameters, restricts file and network access, and prevents annotation loss; legacy mode preserves original behavior. On the tested Linux platform, all seven implementations matched the original C programs across 1,098 conformance cases and 877 legacy-mode cases, alongside 9,353 unit-test assertions and differential fuzzing. Reported benchmarks show C++, Rust, and Julia reading records 1.5-6.9 times faster than the original C library, and Python writing 9.2 times faster than wfdb-python. Results are limited to the reported tests and platform.

## Source excerpt

arXiv:2611.01358v1 Announce Type: new Abstract: The WFDB format is widely used to store and exchange physiological waveforms and annotations. However, existing software implementations are limited to C, Python, and MATLAB/Octave, can produce different results in corner cases and checksum calculations, and have defaults such as sampling frequency and gain, that can lead to silent misinterpretation of recordings. We developed WFDB-x, a cross-language, performance-optimized reimplementation of WFDB in seven programming languages, with extensive unit tests, to provide consistent WFDB processing across programming languages. We reimplemented the WFDB Software Package 10.7.0 natively in Python, C++, Rust, Julia, R, MATLAB/Octave, and Kotlin, using AI-assistance under human direction and review. Each implementation has library functions, a high-level interface, and command-line tools. We compared their outputs with those of the original C programs using 1098 conformance cases, 877 legacy-mode cases, unit tests, and differential fuzzing. Deliberate changes remove implicit waveform parameters, restrict file and network access, and prevent annotation loss. A legacy mode retains the original behavior. All seven implementations passed every conformance and legacy-mode case on the tested Linux platform, with matching outputs. The unit tests contain 9353 assertions. C++, Rust, and Julia read records 1.5-6.9 times faster than the original C library, while the Python implementation wrote records 9.2 times faster than the existing wfdb-python library in the benchmark. WFDB-x provides a tested, open-source basis for reading and writing physiological recordings consistently across seven languages, supporting reproducible research and software development without requiring a shared programming environment. We also share details of the AI-assisted development process and token utilization, which may be useful for other applications.