哪种语言/资源是最好的开始异步编程? [英] Which language/resource is best to start Asynchronous programming?

查看:206
本文介绍了哪种语言/资源是最好的开始异步编程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想学习异步编程相当一段时间。我听说过的几个例子中的文件与选择系统调用句柄。有一天,我在看视频PYCON,看到通过使用Meebo的GEVENT开发商presentation。我还听说过的node.js等我试着学了几次,但从来没有得到它搁置。有人建议我一个良好的语言和资源来启动异步编程?

I am looking to learn asynchronous programming for quite sometime. I have heard of few examples in file handles with select system call. The other day I was looking at pycon videos and saw a presentation by meebo developer using gevent. I also heard about node.js etc. I tried learning a few times, but never got hold of it. Can someone suggest me a good language and resource to start asynchronous programming?

感谢您

推荐答案

我觉得 的NodeJS真的是做异步编程的好方法。

I think that NodeJS is really a good way to do asynchronous programming.

Node.js的是在类Unix平台上的V8 JavaScript引擎的事件驱动I / O框架。它是用来编写可伸缩的网络程序,如Web服务器。

Node.js is an event-driven I/O framework for the V8 JavaScript engine on Unix-like platforms. It is intended for writing scalable network programs such as web servers.

是的NodeJS一个年轻的框架。但社会正以惊人的速度增长。

NodeJS is a young framework. But the community is growing at an incredible speed.

在小的NodeJS例如:

Small example in NodeJS :

var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello World\n');
}).listen(8124, "127.0.0.1");
console.log('Server running at http://127.0.0.1:8124/');

不过,如果你想有一个框架,比较有名的,你可以使用双绞线。 扭曲是用Python写的一个事件驱动的网络编程框架。

However, if you want a framework more famous, you can use Twisted. Twisted is a event-driven network programming framework written in Python.

这篇关于哪种语言/资源是最好的开始异步编程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆