<div class="gmail_quote">On Wed, Apr 6, 2011 at 1:27 PM, Tim Allen <span dir="ltr">&lt;<a href="mailto:screwtape@froup.com">screwtape@froup.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On Wed, Apr 06, 2011 at 12:41:08PM +0200, Laurens Van Houtven wrote:<br>
&gt; Whoa hang on. Without trying to hijack the thread, this is the entire<br>
&gt; premise of infobarb, the IRC bot I&#39;m building for #python-*, except<br>
&gt; s/pickle/sqlite/, so if this is a horrible idea I&#39;d like to know before I<br>
&gt; build it.<br>
<br>
</div>I&#39;m not familiar with the reasons Twistd moved from .tap to .tac (it&#39;s<br>
rather before my time), but as a user I&#39;d be worried about things like<br>
&quot;what happens if, due to a bug, the server winds up choking on some<br>
unexpected input, or deadlocked, or just mis-files some piece of state?&quot;<br>
Restarting the process in question is a sledgehammer approach, but<br>
that&#39;s often what you want if the alternative is unscheduled downtime. </blockquote><div><br>Right -- I don&#39;t think this applies to my bot since if it does the argument can also be extended to &quot;don&#39;t have any persistence at all, state is bad&quot; ;-) (It is, but that&#39;s not the most pragmatic of answers.)<br>

<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
The difference between Pickle and SQLite is that a SQLite database has<br>
probably had some thought put into its schema, and is much less likely<br>
to accidentally scoop up random other objects by reference. Also, if<br>
your database *does* pick up some unwanted state, you have the option of<br>
tinkering with the database manually; something that&#39;s much more<br>
difficult to do with pickles.<br></blockquote><div><br>Right -- I&#39;m giving plugins to the bot a SQLite database, it&#39;s up to them if they use it. All state serialization is explicit. I&#39;m hoping it&#39;s going to be more sensible as a result.<br>

<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I&#39;d be interested in hearing from Twisted greybeards why .tap was<br>
deprecated, but I don&#39;t think your IRC bot has a fatal design flaw.<br></blockquote><div><br>Whew :) Thanks for confirming anyway :)<br></div></div><br>-- <br>cheers<div>lvh</div><br>