Donald Knuth 选择过程式编程而不是函数式编程有什么原因吗?
Donald Knuth 的计算机编程艺术系列使用他自己的程序汇编语言,称为 MIX。现在的问题是:Knuth 是否应该使用函数式语言来描述他的算法? TeX 应该用函数式语言编写吗?
计算机具有程序架构。计算的根源是否暗示了有关最佳分支的任何信息?
最初的 AoCP 是用 MIX 编写的。更新后的 AoCP 使用基于更现代架构的 MMIX。
然而,基本点仍然成立。 Knuth 从一种程序架构转向另一种程序架构……显然不需要函数式编程。
Donald Knuth's Art of Computer Programming Series uses his own procedural assembly languaged called MIX. Now, the question becomes: should Knuth have used a functional language to describe his algorihtms? Should TeX have been written in a functional language?
Computers have a procedural architecture. Do the roots of computation imply anything about the best branches?
The original AoCP was written in MIX. The updated AoCP used MMIX which was based on more modern architectures.
However, the fundamental point still holds. Knuth went from one procedural architecture to another... with apparently no need for functional programming.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论