From: Glenn Parker Date: 2005-01-17T01:15:49+09:00 Subject: Re: Fwd: [suby-ruby] Your all time desired fundemental Ruby mod gabriele renzi wrote: > trans. (T. Onoma) ha scritto: > > Have a different threading approach, maybe Agent-like. I'm very comfortable using the POSIX multi-threading model, but one or more higher level MT models would also be nice, especially when it comes to getting less experienced people into threaded design. To me, Pthreads are like the assembly language level of MT programming. My personal favorite is "Linda" from David Gelernter. http://www.lindaspaces.com/book/index.html I think as long as you start with a solid POSIX API, any higher level threading model, e.g. agents, or Linda's tuple-space, can be provided. OS-based threads just make it work better. > Base the IO system on asynchronous event driven stuff such as libevent. > I also found funny that in ruby-land people often wants OS threads and > in python-land were they have them people often wants asynchronous stuff > (i.e. twisted) :) Yes, threads are asynchronous so they go well with an asynchronous i/o event model. -- Glenn Parker | glenn.parker-AT-comcast.net |