# Posit算术：如何完胜IEEE浮点数

Original title: Beating Floating Point at Its Own Game: Posit Arithmetic \[pdf\]

> Hacker News story 50685334 · language: zh · submitted 2026-11-29
> Web version: https://zeli.app/zh/story/50685334
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 85 · by [xenophonf](<https://news.ycombinator.com/user?id=xenophonf>) · 💬 28
[original](<http://www.johngustafson.net/pdfs/BeatingFloatingPoint.pdf>) · [HN discussion](<https://news.ycombinator.com/item?id=50685334>)

## Summary

John L. Gustafson 提出了一种名为 Posit 的新数据类型，旨在直接取代 IEEE Standard 754 浮点数。与传统的浮点运算相比，Posit 不仅拥有更大的动态范围和更高的精度，还能在相同硬件资源下提供更高的每秒运算次数（POPS）。它彻底解决了浮点数溢出为无穷大或下溢为零的问题，且硬件实现更简单、功耗更低。对于 GPU 加速器和深度学习处理器而言，Posit 能在每瓦特和每美元成本上提供卓越的性能，甚至在32位精度下就能达到64位浮点数的计算效果。这不仅是计算精度的提升，更是能效比的革命。

## Key quote

> 换句话说，Posit 在它自己的游戏规则下击败了浮点数。

## HN discussion (28 comments)

### [librasteve](<https://news.ycombinator.com/item?id=50685986>)

> 亲眼见证过 IEEE754 的加速与普及（80 年代的 Weitek），人们很容易低估围绕该标准内置及开发出的硬件调优技巧。
>
> 我开发了一个基于 Rust 的电子表格应用，核心是 Apache Arrow 和 Polars，提供精确且快速的算术运算。其中 Integer（i64）和 Float（f64）之外，还加入了 Decimal[n]（.parquet Decimal38）和 Fraction（num/dec）。
>
> 在考虑了 Fraction 的几种替代方案（包括 BigRat 和可能的区间算术）后，目前的方案是存储为 .parquet Strings 的 num/dec 符号化处理。为什么？因为其他三种类型速度很快，所以保留一个“慢但稳”的兜底方案似乎没问题。
>
> 它在 Googol 量级的算术运算中表现良好，并且知道 1/7+4/7 等于 5/7。这似乎非常适合教学用途，也能满足对精确性的追求。
>
> 总之，如果有 Rust crate（比如 fast-posit.rs?）以及将 Posit 塞进 parquet 的方法，我很乐意加入 Posit 支持。如果对此感兴趣，请在 https://omasheet.org 仓库提交 issue。

### [wmwragg](<https://news.ycombinator.com/item?id=50688086>)

> 还有 Takum 算术 https://arxiv.org/abs/2404.18603

### [augment_me](<https://news.ycombinator.com/item?id=50685541>)

> 论文中关于“Posit 处理单元所需电路更少，且 POPS/W 高于 IEEE 754 FPU”的核心硬件主张，已于本月早些时候被 ASIC 和 FPGA 实现所实证驳斥。
>
> 来源：
>
> (https://www.researchgate.net/publication/417276683_Hardware_...)
>
> TLDR：前导 0 加动态长度，以及 quires 所需的 512 位累加器，需要特定的硬件支持，例如每个 MAC 单元增加寄存器以及桶形移位器，这些占据了总单元面积的约 30%。
>
> 虽然并非不可能绕过，但绝非即插即用，目前也完全没有得到硬件的更好支持。
>
> \---
>
> 此外，非均匀相对误差对于大多数前沿实验室目前使用的数值形式验证器来说是个噩梦，因为它们用来避免训练过程中的数值发散。

---

## Cite

- Page: https://zeli.app/zh/story/50685334
- Date: 2026-11-29
- Source: johngustafson.net (http://www.johngustafson.net/pdfs/BeatingFloatingPoint.pdf)
- Hacker News: https://news.ycombinator.com/item?id=50685334

## Other languages

- en: https://zeli.app/story/50685334 · markdown: https://zeli.app/story/50685334.md
- ja: https://zeli.app/ja/story/50685334 · markdown: https://zeli.app/ja/story/50685334.md
- ko: https://zeli.app/ko/story/50685334 · markdown: https://zeli.app/ko/story/50685334.md
- de: https://zeli.app/de/story/50685334 · markdown: https://zeli.app/de/story/50685334.md
- es: https://zeli.app/es/story/50685334 · markdown: https://zeli.app/es/story/50685334.md
- ru: https://zeli.app/ru/story/50685334 · markdown: https://zeli.app/ru/story/50685334.md
