The new await keyword in C# can be used to write coroutines libraries like this, but instead of you writing the continuations yourself, you can let the compiler slice up your function. You can then leverage the SynchronizationContext class to control which thread the continuations run on.
Looking at the use of libtask in mongrel2 inspired me to play around with the idea of coroutines in C#. The await keyword makes my latest iteration quite small and nice to use.
https://github.com/AustinWise/LibTaskNet
I suppose that main point in node.js is asynchronous execution, and in c# we already have all these features. I actually can’t see a point of this library in production app.
Not only that, but one of the main selling points of Node.js is using one language (JavaScript) for both client and server programming: the holy grail of Web application development.
A more serious attempt at this was Manos de Mono which has also since been abandoned. With Node getting a lot of love from MS there's little need for a clone.
While we're at it, I'll throw in my demo of node.js style closures triggered by events on I/O with PHP and libevent: https://github.com/hinathan/edges-php
Node.js is becoming a first class citizen on Windows, so I'm not entirely sure what the point of this is. IISNode even allows you to host your Node.js apps in IIS.
[+] [-] MarkSweep|14 years ago|reply
Looking at the use of libtask in mongrel2 inspired me to play around with the idea of coroutines in C#. The await keyword makes my latest iteration quite small and nice to use. https://github.com/AustinWise/LibTaskNet
[+] [-] aaronblohowiak|14 years ago|reply
[+] [-] omgtehlion|14 years ago|reply
[+] [-] zedr|14 years ago|reply
[+] [-] petercooper|14 years ago|reply
And a simple example of using it (for a hello world benchmark): http://www.devthought.com/2012/02/08/node-http-hello-world-s...
[+] [-] johnmmurray|14 years ago|reply
[+] [-] johns|14 years ago|reply
https://github.com/jacksonh/manos
[+] [-] hinathan|14 years ago|reply
[+] [-] equark|14 years ago|reply
[+] [-] dos1|14 years ago|reply
If you're desperate for some kind of evented web framework in C#, check out SignalR - https://github.com/SignalR/SignalR
[+] [-] barrydahlberg|14 years ago|reply
[+] [-] plasma|14 years ago|reply
The buzzwords are web sockets, comet, ajax push, etc.
[+] [-] mxweas|14 years ago|reply
[+] [-] adestefan|14 years ago|reply