5 ms·
I'm thinking about the fact that neither JavaScript on V8, nor Cocoa are equipped with HTTP networking. So the framework supplies that part. A big part of node,
by SeoxyS 15y ago
I'm thinking about the fact that neither JavaScript on V8, nor Cocoa are equipped with HTTP networking. So the framework supplies that part. A big part of node, when used for a web app, is that it supplies an HTTP server. Same with this.
- btrask 15y agoCocoa (and CoreFoundation) actually make it pretty trivial to write HTTP servers already. I was completely surprised by how painless it was when I did it recently. Not quite as easy as Node.js, but on the same order of magnitude, IMHO. (Edit) Here's an article that describes the basics: http://macdevcenter.com/pub/a/mac/2006/11/14/how-to-write-a-cocoa-web-server.html http://macdevcenter.com/pub/a/mac/2006/11/14/how-to-write-a-...
- SeoxyS 15y agoYeah, I've done that before. It's not too bad, but there's still a lot of boilerplate that could be made away with.