Understanding Data Ordering in Computer Programming: Why Truly Unordered Structures Don't Exist in Physical Systems
By
habedi0
Pulled from the oven a few minutes early. Edible, just barely.
Summary
The article discusses the concept of ordering in computer programming, arguing that truly unordered data structures like mathematical sets don't exist in physical computer systems. The author explains that all stored data has some form of ordering, whether through memory addresses, storage maps, or other mechanisms, even if that ordering isn't useful for the programmer's purposes. The context suggests this is related to a 'Show HN' post about 'Ordered', a sorted collection library for the Zig programming language.
Key quotes
· 4 pulledBeing truly unordered like a set is not something you can do in a physical computer program unlike a mathematical abstraction.
Anything stored is 'ordered' in some way, either explicitly by virtual (or physical) memory addresses or implicitly by some kind of storage map equation.
It just might not be a useful ordering. (I.e., you may have to loop and compare.)
One might qualify such as 'system-ordered', or in the Python insert-ordered dict, qualify with 'insertion-ordered', though hash tables in general are sort of a melange of hash-ordering.
You might also wanna read
DeiMOS: A Superoptimizer for the MOS 6502 Processor
The article introduces DeiMOS, a superoptimizer tool specifically designed for the MOS 6502 processor. A superoptimizer is a specialized too
Understanding the Complexity of Time Zones and the Value of the Time Zone Database
The article discusses the complexity of time zones and the importance of relying on existing solutions like the Time Zone Database rather th
Hidden Performance Costs in Programming Languages: Comparing C and Higher-Level Languages
The article examines the perception that systems programmers avoid higher-level languages due to hidden performance costs, while arguing tha
Inside Functional Programming Languages: Implementation Details and Compilation Phases
The article explores the internal workings and implementation details of functional programming languages, particularly Haskell-like languag
Chuck Moore's ColorForth: A Programming Language and Operating System Using Color as Syntax
ColorForth is a modern redesign of the classic Forth programming language that uses color as punctuation for syntax. Created by Chuck Moore,
D Programming Language: Combining Multiple Paradigms for Fast, Scalable Code
The article presents D as a programming language that combines multiple programming paradigms harmoniously, offering classic polymorphism, v
