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 是一个编程语言新项目,声称利用范畴论和 Leech 晶格来实现基于内容的堆内存架构。该项目的开发者用三周时间完成了此项目,并表示使用 Leech 晶格进行内存分配可以实现高效的数据去重,且无需垃圾回收机制。 然而,该项目在 Hacker News 社区遭到了强烈批评。技术评审者指出了以下几个问题: * **基础不准确:** 类型论和范畴论专家指出,该语言所谓的“依赖类型”和“同伦类型论”(HoTT)特性似乎被错误标记或从根本上是失效的。 * **实现缺陷:** 评审者注意到编译器使用了不安全的做法,例如使用字符串进行变量绑定,而非德布鲁因指标(De Bruijn indices)等标准方法,这可能导致严重的程序错误。 * **“AI 垃圾内容”指控:** 批评者认为,其文档和行文表现出了过度使用 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