对于多线程 http 下载应用程序,您选择什么编程语言?

发布于 2024-10-10 14:04:26 字数 256 浏览 0 评论 0原文

我渴望学习一门新的编程语言。

您会建议以下程序使用哪一个:

  • 以多线程方式下载数百万个 URL 与
  • 某种数据库交互以存储下载的数据

想想网络爬虫/搜索引擎风格的项目。并且知道我愿意学习任何东西。

请发布您最喜欢的语言,为什么选择它,以及您最喜欢的该语言的教程/参考手册(最好是免费的!)。

注意:我会偶尔更新这篇文章以包含每个人的最佳答案。

I'm eager to learn a new programming language.

Which one(s) would you suggest for a program that:

  • downloads millions of URLs, in a multi-threaded manner
  • interacts with a DB of some sort to store downloaded data

Think web crawler/search engine styled projects. And know that I'm up for learning literally anything.

Please post your favorite language, why you chose it, and your favorite tutorial/reference manual (preferably free!) for said language.

Note: I will update this post occasionally to include everyone's best answers.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

南烟 2024-10-17 14:04:26

F# 是不错的选择,因为异步操作(尤其是 IO)和并行化的惯用模式是该语言的关键优势。

您可以轻松做到这一点,.NET Framework 的 BCL 也可以为您服务。

F# is nice choice, cause the idiomatic patterns of async operations (esp IO) and parallelization is the key strengths of language.

You can do it easy and .NET Framework's BCL is at your service also.

惯饮孤独 2024-10-17 14:04:26

就我个人而言,我使用 Python 来做这样的事情。您可以使用 urllib2 模块通过 HTTP 下载内容,我发现 Python 的语法令人愉悦。

此外,您可以在 Python 中轻松实现线程。

祝你好运。

Personally, I use Python for stuff like this. You can use the urllib2 module to download content via HTTP and the I find the syntax of Python to be pleasing.

Furthermore, you can thread easily in Python.

Good Luck.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文