tag:blogger.com,1999:blog-1267458971896358542.post386488475154145435..comments2008-05-20T18:59:49.240-07:00Comments on Twisted Matrix Laboratories: Twisted in the NewsDuncan McGreggorhttp://www.blogger.com/profile/17155270977759488515noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-1267458971896358542.post-84948614633952458262008-05-20T18:59:00.000-07:002008-05-20T18:59:00.000-07:00Duncan,please don't be sorry for the delay! It was...Duncan,<BR/><BR/>please don't be sorry for the delay! It was ten times faster than most support services.<BR/><BR/>Thanks for the answer. But from my point of view, it's sometimes more practical to do not use twistd and just start reactor.run() in the script. This way, for simple scripts (not necessarily a daemon), you only have one script that you call directly. To me, it seems more natural (and I first learn to do it that way in the Twisted tutorials!).<BR/><BR/>But I'm ready to switch to twistd if you can explain me what is "everything I need to run a twisted daemon".Etiennehttp://www.blogger.com/profile/06300810920974461506noreply@blogger.comtag:blogger.com,1999:blog-1267458971896358542.post-51549177873704842502008-05-20T12:20:00.000-07:002008-05-20T12:20:00.000-07:00Etienne,Apologies for the lateness of this reply! ...Etienne,<BR/><BR/>Apologies for the lateness of this reply! I didn't see your comment until just now.<BR/><BR/>Making direct use of the reactor is generally discouraged. twisted.application manages pretty much everything you need to run a twisted daemon with twistd, thus alleviating the developer of having to reinvent the wheel, discover that they have mismanaged something, etc. There is a great deal of work that has been put into this part of twisted that essentially encodes best practices for management of the application at the reactor level.Duncan McGreggorhttp://www.blogger.com/profile/17155270977759488515noreply@blogger.comtag:blogger.com,1999:blog-1267458971896358542.post-58458175090032607452008-05-19T08:05:00.000-07:002008-05-19T08:05:00.000-07:00I was wondering why you wish that Bruce use twiste...I was wondering why you wish that Bruce use twisted.application.service instead of reactor.run ? What's the advantage ?<BR/><BR/>Thanks<BR/><BR/>EtienneEtiennehttp://www.blogger.com/profile/06300810920974461506noreply@blogger.com