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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Unix system programming in OCaml

132 点作者 raphaelss大约 10 年前

2 条评论

murbard2大约 10 年前
I took this course ten years ago with Didier Remy, I was very disappointed.<p>First of, the course was called &quot;Operating Systems&quot;, and I was expecting subsetting like the Tannenbaum, explaining the theory and practice behind kernels. The course actually was about Unix system programming, and solely about that. At least the page is properly named.<p>Second, I think OCaml is an amazing language, but frankly it&#x27;s a terrible choice for this course. One needs the right tool for the right job. No particular &quot; insight &quot; is gained as the page alleges, beyond the insight that, gee, C would probably be a better lanhuage to interface with the system it was designed for!<p>Our project consisted in implementing the &quot;ls&quot; command in OCaml, which meant mostly covering all the corner cases brought by different flags. It wasn&#x27;t interesting, it didn&#x27;t teach valuable skills.<p>Functional programming languages shine when they deal with complex, recursive data structures, not for simple tasks which are primarily IO and need to handle many cases.
评论 #9090719 未加载
评论 #9091155 未加载
评论 #9092014 未加载
评论 #9091167 未加载
评论 #9090989 未加载
jlukecarlson大约 10 年前
This sounds really cool. I currently TA a CS course that deals primarily with OCaml so it is great to have real world applications&#x2F;uses I can show to students in the class.