TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

[pdf] If You’re Not Writing a Program, Don’t Use a Programming Language

2 点作者 scscsc将近 7 年前

1 comment

andreareina将近 7 年前
Since it&#x27;s not clear from the title, this is a paper by Leslie Lamport (of TLA+ and Lamport Clock fame) about using mathematical notation to describe algorithms.<p>Editor&#x27;s introduction: In this column, Leslie Lamport makes the case for using the language of mathematics for describing algorithms. He argues that students should learn to think mathematically when writing code and programs. The column is a special issue and collaboration of the distributed computing column and the education column. Enjoy!<p>Abstract: The need to handle large programs and to produce efficient compiled code adds complexity to programming languages and limits their expressiveness. Algorithms are not programs, and they can be expressed in a simpler and more expressive language. That language is the one used by almost every branch of science and engineering to precisely describe and reason about the objects they study: the language of mathematics. Math is useful for describing a more general class of algorithms than are studied in algorithm courses.