top | item 3691033

Node.cs - a C# version of Node.js

86 points| jitbit | 14 years ago |github.com | reply

26 comments

order
[+] MarkSweep|14 years ago|reply
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

[+] omgtehlion|14 years ago|reply
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.
[+] zedr|14 years ago|reply
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.
[+] johnmmurray|14 years ago|reply
Is this still in active development? Looks like it hasn't gotten much attention in about a year or so. Wonder if the project has moved somewhere.
[+] johns|14 years ago|reply
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.

https://github.com/jacksonh/manos

[+] equark|14 years ago|reply
Adopting Node's callback style seems like a very strange choice for C# where you have native async/await support.
[+] dos1|14 years ago|reply
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.

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
Being able to write C# instead of JS is a pretty big point IMHO.
[+] plasma|14 years ago|reply
I recently came across SignalR, it's a very well written and simple framework to use.

The buzzwords are web sockets, comet, ajax push, etc.

[+] mxweas|14 years ago|reply
holy god no...
[+] adestefan|14 years ago|reply
I say the same thing about writing backend code in JavaScript.