“There is the Wikibook on Ada programming:”
Ada Programming Wikibook
社区维基写成的 Ada 语言教程,覆盖类型、并发与 Ada 2012 特性
Ada Programming Wikibook 由 Wikibooks 社区志愿者共同编写,是免费的 Ada 语言综合教程,内容涉及类型系统、范围类型、泛型、异常、并发等语言特性。它是维基形式,既能当入门教程顺序读,也能当参考手册按主题查。和 AdaCore 的 learn.adacore.com 相比,它更像一份持续编辑的参考资料,各页质量和完整度不一,部分页面还不完整。
HN 上讨论 Ada 的人常把它作为免费的入门资源推荐,有人配合二手教科书使用,也有人把它与 learn.adacore.com 并列。有评论指出它比较全面但仍有不少缺页;它也常被引用来说明 Ada 的范围类型和子类型。
想学 Ada 的程序员,尤其对安全关键软件感兴趣的人
怎么读
由 Claude 根据这本书和 HN 上的说法整理,可能有错- 1先通读基础语法和类型部分,再按需查阅其他章节
- 2配合 learn.adacore.com 的交互式教程一起读
- 3遇到缺页或过时内容时,查 Ada 参考手册补充
- 4亲手装 GNAT 编译器,把例子都敲一遍
HN 书评
推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算“You might want to look into Ada and SPARK.”
“When I learned Ada, I used the wikibook [1] and bought an inexpensive used textbook from Amazon.”
“learn.adacore.com ((链接)) and the Ada Programming wikibook are pretty good tutorials that cover Ada including Ada 2012 features.”
“Wikibooks has a pretty comprehensive book on Ada Programming, but there are still a lot of missing pages.”
“Take a look at Ada Programming Wikibook”
看全部 20 条 →
“It has been a while, but you may want to look at:”
“In essence, an "enumerated type" is a collection of uninterpreted values.”
“Ada, here is a small list of validations”
“Ada uses its type system plus managed memory pools for manual memory management, it's very cool.”
“Ada attribute provide a lot more meta information about types and objects than just integer limits.”
“I googled this Ada Programming Wikibook and it seems that arrays in Ada can have only discrete indices.”
“Edit: Specifically I thought it was the same as what I've seen in Pascal for arrays[0] where you specify the range (in the case of characters) between x and y.”
“You have the same in Ada, where Animal denotes the exact type, and Animal'Class the class-wide type (type and any subtype).”
“Not sure why Ada is not taking off these days. It is mature and has all the safety and concurrency bells and whistles:”
“Yes, it does. [1][2] It's supported through the use of generic units.”
“Recently I drooled over Ada exception handling capabilities:”
“Ada has a rich set of language features to express preconditions, postconditions, and invariants directly in the code”
“That's correct, it's a run-time check. According to Ada Programming Wikibook”
“Ada's ranges: Ada Programming Wikibook”