[messaging] Key Poems
Michael Rogers
michael at briarproject.org
Sat Apr 5 07:32:51 PDT 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 01/03/14 09:09, Trevor Perrin wrote:
> I like those poems - the short sentences seem to fit in the mind
> easily.
>
> It often encodes a bunch of extra data to complete the last
> sentence, could you could shorten or truncate that?
Hi Trevor,
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.
Cheers,
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iQEcBAEBCAAGBQJTQBQTAAoJEBEET9GfxSfMhi8H/1ukRwnq5ssX3NkyTSKotJUg
EJttprBkSghi3Cl9Z0Y/w5G3j+UpfgwZy1sQ+lJUCmqcmqSE+dTF9iwbBu7c9QYK
Ln3AfpcGwV9ov09sRJm8OVmaEs2kL/iJXCA0o7agSTKMFy+T98q6YlGKqT6wO09B
MiV/gLeRi+tz1iSzUUIJqURAEXBG7DGVvLFZyLkIIlpNcPDbYQLgimAZ6KoAwszH
Ql4F5lg17J0wSgQypiRV2ETMQV2y07ussQnF2Q89/sU7yJC9LmVdXKtPFuCaoRxe
Y6P8LP0buaOgu9cpER1J+/nuFLHHEG6frYmjNcdlVy+8vDAHAyuBLc0uiUK4+cE=
=hQbS
-----END PGP SIGNATURE-----
More information about the Messaging
mailing list