Reference implementation

Short description: Implementation of a specification which serves as an example

In the software development process, a reference implementation (or, less frequently, sample implementation or model implementation) is a program that implements all requirements from a corresponding specification. The reference implementation often accompanies a technical standard, and demonstrates what should be considered the "correct" or what must^ the behavior of any other implementation of it.

## Contents

* 1 Characteristics and examples
* 2 Testing
* 3 Notes
* 4 References

## Characteristics and examples

Reference implementations of algorithms, for instance cryptographic algorithms, are often the result or the input of standardization processes. In this function they are often dedicated to the public domain with their source code as public domain software. Examples are the first CERN's httpd,[1] Serpent cipher, base64 variants,[2] and SHA-3.[3] The Openwall Project maintains a list of several algorithms with their reference source code in the public domain.[4]

A reference implementation may or may not be production quality. For example, the Fraunhofer reference implementation of the MP3 standard usually does not compare favorably to other common implementations, such as LAME, in listening tests that determine sound quality.[5] In contrast, CPython, the reference implementation of the Python programming language,[6] is also the implementation most widely used in production.

## Testing

Testing the implementation-vs-specification relationship further enhances the production's inter-process efficiencies:

> A reference implementation is, in general, an implementation of a specification to be used as a definitive interpretation for that specification. During the development of the ... conformance test suite, at least one relatively trusted implementation of each interface is necessary to (1) discover errors or ambiguities in the specification, and (2) validate the correct functioning of the test suite.[7]

> Characteristics of a Reference Implementation:

>   1. Developed concurrently with the specification and test suite;
>   2. Verifies that specification is implementable;
>   3. Enables the test suite to be tested;
>   4. Serves as a Gold Standard against which other implementations can be measured;
>   5. Helps to clarify the intent of the specification in situations where conformance tests are inadequate[8]

## Notes

1.^ MUST according to the RFC 2119

## References

1. ↑ Smith, Tim; Flückiger, François. "Licensing the Web: For everyone". https://home.web.cern.ch/science/computing/birth-web/licensing-web.
2. ↑ Devolve, Chris (2005-11-20). "libb64: Base64 Encoding/Decoding Routines". https://libb64.sourceforge.net/.
3. ↑ Bertoni, Guido; Daemen, Joan; Peeters, Michaël; Van Assche, Gilles (2013-02-27). "KeccakReferenceAndOptimized-3.2.zip" (ZIP). /KeccakReferenceAndOptimized/Sources/mainReference.c. http://keccak.noekeon.org/KeccakReferenceAndOptimized-3.2.zip. "The Keccak sponge function, designed by: Bertoni, Guido; Daemen, Joan; Peeters, Michaël; Van Assche, Gilles. For more information, feedback or questions, please refer to our website: keccak.noekeon.org/ / Implementation by the designers, hereby denoted as "the implementer". / To the extent possible under law, the implementer has waived all copyright and related or neighboring rights to the source code in this file. creativecommons.org/publicdomain/zero/1.0/"
4. ↑ "Source code snippets and frameworks placed in the public domain". 2009-11-05. https://openwall.info/wiki/people/solar/software/public-domain-source-code.
5. ↑ Daulton, Steve (2019-06-11). "Media Info doesn't match Format Options selected for Exported MP3's - #6 by steve - Windows". https://forum.audacityteam.org/t/media-info-doesnt-match-format-options-selected-for-exported-mp3s/53082.
6. ↑ Snow, Eric (2012-04-26). "PEP 421 – Adding sys.implementation". Python Software Foundation (which owns "python.org"). Motivation. https://peps.python.org/pep-0421/#motivation. "For a number of years now, the distinction between Python-the-language and CPython (the reference implementation) has been growing. Most of this change is due to the emergence of Jython, IronPython, and PyPy as viable alternate implementations of Python."
7. ↑ Dalci, Eric; Fong, Elizabeth; Goldfine, Alan (2003-03-26). "Requirements for GSC-IS Reference Implementations". http://xw2k.sdct.itl.nist.gov/smartcard/document/ref-imp51.pdf.
8. ↑ Curran, Patrick (2003-12-10). "Conformance Testing: An Industry Perspective". Sun Microsystems. http://vote.nist.gov/speeches/1 - Specification Panel/6 - Curran.pdf.

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Reference implementation. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Reference_implementation&oldid=4226373"