Duff's device

unusual C programming idiom that manually implements loop unrolling using interleaved control structures
Thing programming_idiom Q1264012
Press Enter · cited answer in seconds

Duff's device

Summary

Duff's device is a programming idiom[1]. It draws 416 Wikipedia views per month (programming_idiom category, ranking #2 of 8).[2]

Key Facts

  • Duff's device is credited with the discovery of Tom Duff[3].
  • Duff's device's instance of is recorded as programming idiom[4].
  • Tom Duff is named after Duff's device[5].
  • Duff's device's subclass of is recorded as loop unrolling[6].
  • Duff's device's time of discovery or invention is recorded as +1983-11-00T00:00:00Z[7].
  • Duff's device's Freebase ID is recorded as /m/02brdg[8].
  • Duff's device's facet of is recorded as C syntax[9].
  • Duff's device's uses is recorded as Q15777[10].
  • Duff's device's uses is recorded as do–while loop[11].
  • Duff's device's uses is recorded as switch statement[12].
  • Duff's device's significant person is recorded as Q93011[13].
  • Duff's device's Microsoft Academic ID is recorded as 2778908936[14].
  • Duff's device's FOLDOC ID is recorded as Duff's+device[15].

Body

Works and Contributions

Duff's device is credited with the discovery of Tom Duff[3].

Why It Matters

Duff's device draws 416 Wikipedia views per month (programming_idiom category, ranking #2 of 8).[2] It has Wikipedia articles in 9 language editions, a strong signal of global cultural recognition.[16] It is known by 6 alternative names across languages and contexts.[17]

References

Programmatic citations — every numbered marker resolves to a verifiable graph row below.

Direct Wikidata claims

  1. [4] . wikidata.org.
  2. [3] . wikidata.org.
  3. [5] . wikidata.org.
  4. [6] . wikidata.org.
  5. [7] . wikidata.org.
  6. [8] . Freebase Data Dumps. wikidata.org.
  7. [9] . wikidata.org.
  8. [10] . wikidata.org.
  9. [11] . wikidata.org.
  10. [12] . wikidata.org.
  11. [13] . Retrieved . wikidata.org.
  12. [14] . wikidata.org.
  13. [15] . wikidata.org.

Class ancestry

  1. [1] . Wikidata. wikidata.org.

Aggregate / graph-position facts

  1. [2] . Wikimedia Foundation. dumps.wikimedia.org.
  2. [16] . Wikidata sitelinks. wikidata.org.
  3. [17] . Wikidata aliases. wikidata.org.

📑 Cite this page

Use these citations when quoting this entity in research, articles, AI prompts, or wherever provenance matters. We aggregate Wikidata + Wikipedia + authoritative open-data sources; the stitched, scored, cross-referenced view is what 4ort.xyz contributes.

APA 4ort.xyz Knowledge Graph. (2026). Duff's device. Retrieved May 3, 2026, from https://4ort.xyz/entity/duff-s-device
MLA “Duff's device.” 4ort.xyz Knowledge Graph, 4ort.xyz, 3 May. 2026, https://4ort.xyz/entity/duff-s-device.
BibTeX @misc{4ortxyz_duff-s-device_2026, author = {{4ort.xyz Knowledge Graph}}, title = {{Duff's device}}, year = {2026}, url = {https://4ort.xyz/entity/duff-s-device}, note = {Accessed: 2026-05-03}}
LLM prompt According to 4ort.xyz Knowledge Graph (aggregator of Wikidata, Wikipedia, and authoritative open-data sources): Duff's device — https://4ort.xyz/entity/duff-s-device (retrieved 2026-05-03)

Canonical URL: https://4ort.xyz/entity/duff-s-device · Last refreshed: