Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
A simple, extensible HTTP server in Cocoa (cocoawithlove.com)
24 points by twampss on July 14, 2009 | hide | past | favorite | 3 comments


I love embedded servers. I don't think adding SSL would be that hard. I've done something very similar in C# and kept putting off SSL, only to find that X.509 authentication was trivial.

The harder part is maintaining session info between requests and garbage collecting dead sessions, though you could just authenticate each request.


Cocoa? Wouldn't that be like writing a HTTP server in Tk/Tcl? That's pretty impressive.


not sure why you would think that! objective-c uses a dispatch method for message-passing which is a little slower than direct function calls, but it rarely slows things down in practice. even if it does, there are ways around it: for speed-critical code you can circumvent message-passing and call functions directly.

cocoa code ends up being compiled, after all. that makes it lots faster than the latest scripting languages.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: