A thought experiment exploring the conceptual oddity of null pointers — specifically that null is a single non-address value embedded in a pointer type to carry semantic meaning. The author extends this idea: since many pointer values in 64-bit userspace are inherently invalid addresses, why not use multiple impossible pointer values to encode richer type information? Using Hare's tagged union return types as an example, the author sketches how sentinel pointer values (like 0x1 for EOF) could eliminate the need for a tag field, fitting more information into fewer registers. The concept is compared to NaN boxing but applied to pointers.
Nguồn: https://sebsite.pw/w/20260715-null.html. 8sync News chỉ tóm tắt và dẫn link; bản quyền nội dung thuộc tác giả và nguồn gốc.
Đọc tin ở đây, luyện code, học theo lộ trình và luyện IELTS trên các sản phẩm anh em — tất cả kết nối với nhau trong hệ sinh thái 8 Sync Dev.
Cổng chính của hệ sinh thái: giới thiệu sản phẩm, blog và bảng giá trọn bộ.
Khám pháHọc theo lộ trình với video, quiz chấm tự động, certificate và mentor đang làm nghề.
Xem khóa họcLuyện thuật toán chấm tự động 7 ngôn ngữ, chạy code ngay trên trình duyệt.
AI cho doanh nghiệp B2B: chat đa kênh AI phản hồi, gom lead tiềm năng, phân loại khách hàng.
Sắp ra mắt