Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the state of C10K-like event-based server development in TCL?

TCL is a nice simple programming language, but does not seem to get the credit and/or respect it deserves. I learned it back in 1995 in college and promptly forgot about it only to stumble upon it again recently. I am mostly interested TCL for developing TCP-based network services as well as for web development.

It has been mentioned that TCL makes network programming simple. However, it seems that TCL uses select() under the covers which does not scale well with "web scale" in mind (see the C10K problem). I have searched for support for libevent, libev, raw epoll/kqueue but I don't see much.

Do you know of any "modern" (for lack of a better term) event-based network services written in TCL? Do you have any pointers, tips, or best practices for TCL-based server development?

Thanks!

like image 477
z8000 Avatar asked Nov 06 '22 17:11

z8000


1 Answers

There's discussion of this on comp.lang.tcl last year and it appears that the status is: "The core team is thinking about it":

http://groups.google.com/group/comp.lang.tcl/browse_frm/thread/ce3a82f8a13d35fa/f57cea952ab69ecd

For web servers there is AOLserver which implements poll() under the covers. Of course, you can also run mod_tcl/rivet/websh under Apache.

like image 129
slebetman Avatar answered Nov 26 '22 06:11

slebetman