News for hackers. Stuff that matters.
Re:What If OpenDocument Used SQLite? by cornstalks on Monday September 18, 2023 @12:25PM (#37558354)
That's what Opus did. The RFC[1] has a base-64 encoded libopus.tar.gz appendix (Appendix A), which is the "primary normative part of this [Opus] specification." If the prose and source code disagree, the source code takes priority and "wins" when it comes to which is normative.

I have a love-hate relationship with this approach.

[1]: https://datatracker.ietf.org/doc/html/rfc6716

Re:What If OpenDocument Used SQLite? by dfox on Monday September 18, 2023 @12:31PM (#37558435)
That is common for codec standards, the normative part of many MPEG specifications is the parser/decoder in C-like pseudo-code. What is somewhat unique for Xiph is that their normative reference decoders are actually usable.
Re:What If OpenDocument Used SQLite? by Eduard on Monday September 18, 2023 @03:15PM (#37560652)
funny, the RFC even includes a shell command pipeline to extract the base64 out of the awkward RFC formatting.

Using the C source code still leaves room for ambiguities / under-specification, no? After all, the semantics rely on the particular gcc release used for compiling the code.

Re:What If OpenDocument Used SQLite? by cornstalks on Monday September 18, 2023 @04:09PM (#37561328)
There is still the possibility of a bug or under-specification, but that's always the case in any spec. At least with Opus they document what implementation-defined behavior they require, so assuming there aren't any hidden bugs then you should get consistent output across compilers.
Re:What If OpenDocument Used SQLite? by Eduard on Tuesday September 19, 2023 @03:20PM (#37574988)
but the semantics change depending on the build tool version and other factors.