Yon —— 一种面向拓扑的语言,具有内容寻址的格堆。
Yon – a topos-oriented language with a content-addressed lattice heap

原始链接: https://yon-lang.org/

该范式 在拓扑导向编程(Topos-Oriented Programming)中,世界即范畴,场所即其中的对象,而值则是截面(section):它是不可变的,由其内容标识。所有行为皆存在于态射(arrows)之中。同一性是个例外,仅在你需要时才被要求。逻辑是内禀的:真值是子对象分类器 Ω,而未知数是海廷(Heyting)核心的一员,而非一种错误。根据米田引理(Yoneda lemma),事物由其关系决定;类型检查器、优化器和分配器均基于此运作。阅读《拓扑导向编程》。

Yon 是一门全新的实验性编程语言,由开发者在三周内创建,旨在探索拓扑斯理论(topos theory)、范畴论和系统编程的交叉领域。该语言受米田引理(Yoneda Lemma)和利奇格点(Leech lattice)启发,通过基于 OCaml 的前端和 MLIR“topos”方言编译为原生代码。 其主要技术特点包括一个映射到利奇格点的内容寻址堆,实现了自动去重、常数时间相等性比较以及对垃圾回收的需求消除。并发通过进程隔离的“空间”(Spaces)进行处理,并经由共享内存通信。该项目包含一本 21 章的配套书籍和一个经过回归测试的编译器,采用 AGPLv3 协议开源。 此次发布在 Hacker News 上引发了激烈讨论。尽管开发者将 Yon 描述为一次推动编程中符号推理边界的尝试,但一位知名评论者指出,其文档过度依赖模糊的 AI 生成文案且缺乏明确动机,建议作者在寻求社区采纳前先厘清核心概念。
相关文章

原文
The paradigm

In Topos-Oriented Programming a world is a category, a place is an object in it, and a value is a section: immutable, identified by its content. All behaviour lives in arrows. Identity is the exception, requested only where you need it. Logic is internal: truth is the subobject classifier Ω, and unknown is a citizen of the Heyting core, not an error. From the Yoneda lemma, a thing is determined by its relations; the type checker, optimizer, and allocator act on that.

Read “Topos-Oriented Programming”
联系我们 contact @ memedata.com