[messaging] Key Poems
michael at briarproject.org
Sat Apr 5 07:32:51 PDT 2014
-----BEGIN PGP SIGNED MESSAGE-----
On 01/03/14 09:09, Trevor Perrin wrote:
> I like those poems - the short sentences seem to fit in the mind
> It often encodes a bunch of extra data to complete the last
> sentence, could you could shorten or truncate that?
Sorry, I've just realised I never replied to this. When the encoder
runs out of input bits partway through a sentence, we have a few options:
1. Stop immediately, cutting short the sentence.
2. Generate some more input bits (e.g. by looping back to the start of
the input) until the encoder finishes the current sentence. This is
the current approach, and it can lead to longer poems than necessary.
3. Extend the input with fixed bits - this can be used to end the
sentence as quickly as possible, but it also selects the same words
from the dictionary every time, so poems tend to end in the same way.
That might be alright if you choose some particularly poignant words
for those positions in the dictionary, but I don't like the effect.
4. Generate some more input bits for selecting words, but use fixed
bits when making grammar choices. This ends the sentence as quickly as
possible without using the same words every time. I've committed this
change just now.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the Messaging