<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git, branch 1.6.2</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.6.2</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.6.2'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-12-21T14:58:25Z</updated>
<entry>
<title>meson/pkgbuild: bump version to 1.6.2</title>
<updated>2020-12-21T14:58:25Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-21T14:58:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c6a53d5e33eaa829b92c0c20c7c920f8e5510c01'/>
<id>urn:sha1:c6a53d5e33eaa829b92c0c20c7c920f8e5510c01</id>
<content type='text'>
</content>
</entry>
<entry>
<title>changelog: prepare for 1.6.1</title>
<updated>2020-12-21T12:50:27Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-21T12:50:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7c3cb008ec18896f674ed72a24efbb7b5be77784'/>
<id>urn:sha1:7c3cb008ec18896f674ed72a24efbb7b5be77784</id>
<content type='text'>
</content>
</entry>
<entry>
<title>changelog: mention -Wno-profile-instr-unprofiled</title>
<updated>2020-12-21T12:50:06Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-21T12:50:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b6b565cc9aa3e4b0d18a287219e09ac9a1b45271'/>
<id>urn:sha1:b6b565cc9aa3e4b0d18a287219e09ac9a1b45271</id>
<content type='text'>
</content>
</entry>
<entry>
<title>changelog: mention --seed in in generate-alt-random.pu</title>
<updated>2020-12-21T12:47:45Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-21T12:47:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=1ad63a5c584e67fc504c3e4c7c75a4425a74a510'/>
<id>urn:sha1:1ad63a5c584e67fc504c3e4c7c75a4425a74a510</id>
<content type='text'>
</content>
</entry>
<entry>
<title>generate-alt-random: ioctl(TIOCGWINSZ) may fail in run inside a container</title>
<updated>2020-12-21T12:42:59Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-21T12:40:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=68dd9c17d5d3aeaa8196d5e31256ccb95429ac2e'/>
<id>urn:sha1:68dd9c17d5d3aeaa8196d5e31256ccb95429ac2e</id>
<content type='text'>
This _should_ only happen when we’re doing a partial PGO build, since
then the script is run in the parent terminal. In this case, the user
is expected to use --rows/--cols anyway.
</content>
</entry>
<entry>
<title>install: remove -march=native</title>
<updated>2020-12-21T12:02:58Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-21T12:01:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6a03567490d90a28363e2093a416e350b1a3ce89'/>
<id>urn:sha1:6a03567490d90a28363e2093a416e350b1a3ce89</id>
<content type='text'>
This simplifies the instructions. People interested in performance are
likely to know how to use it.
</content>
</entry>
<entry>
<title>install.md: mention that packagers should not use -march=native</title>
<updated>2020-12-21T12:02:54Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-21T11:24:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=84fe48acbb712b177fc4f6de847a420319a971d5'/>
<id>urn:sha1:84fe48acbb712b177fc4f6de847a420319a971d5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>install.md: add -Wno-profile-instr-unprofiled to clang flags in PGO builds</title>
<updated>2020-12-21T12:02:51Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-21T11:24:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=69836ab7958c8bece9a7e30204f4bf6c2c2f62f7'/>
<id>urn:sha1:69836ab7958c8bece9a7e30204f4bf6c2c2f62f7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>changelog: use -std=c11 instead of -std=c18</title>
<updated>2020-12-21T11:28:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-21T11:20:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=505680087cb6a1d994c1ea8089bc2c44cd36187a'/>
<id>urn:sha1:505680087cb6a1d994c1ea8089bc2c44cd36187a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>meson: default to c11</title>
<updated>2020-12-21T11:27:25Z</updated>
<author>
<name>sterni</name>
<email>sternenseemann@systemli.org</email>
</author>
<published>2020-12-20T15:43:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5987b7c85f1b865d65613cb2b557498b0abce7f2'/>
<id>urn:sha1:5987b7c85f1b865d65613cb2b557498b0abce7f2</id>
<content type='text'>
We don't need any C18 specifics, so C11 is also fine and more widely
supported (i. e. in older clang versions).
</content>
</entry>
<entry>
<title>install: fix typo in ‘ninja’</title>
<updated>2020-12-21T11:27:22Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-21T11:15:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=82d9fd92194c72a9ec9df1ce2907caa2fca91e98'/>
<id>urn:sha1:82d9fd92194c72a9ec9df1ce2907caa2fca91e98</id>
<content type='text'>
</content>
</entry>
<entry>
<title>changelog: update ‘contributors’</title>
<updated>2020-12-20T14:49:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-20T14:42:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=fbe9f54db0d207ee56d926e676ea8584a424ecd4'/>
<id>urn:sha1:fbe9f54db0d207ee56d926e676ea8584a424ecd4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>changelog: remove trailing ‘5’</title>
<updated>2020-12-20T14:48:25Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-20T14:48:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=533db90a94292772002aa417de6e1b856f1ff6e0'/>
<id>urn:sha1:533db90a94292772002aa417de6e1b856f1ff6e0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>generate-alt-random: override detected width/height when --cols/--rows have been used</title>
<updated>2020-12-20T14:46:46Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-20T14:36:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e12a9347dd00ccf49e810667c7b0c0e268dbbfaf'/>
<id>urn:sha1:e12a9347dd00ccf49e810667c7b0c0e268dbbfaf</id>
<content type='text'>
This ensures we have a valid width and height, that matches what the
PGO helper binary expects.
</content>
</entry>
<entry>
<title>generate-alt-random: fix “new style” cube escape</title>
<updated>2020-12-20T14:46:43Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-20T14:27:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=983f474ec8c02e0f50dc84153748445982498411'/>
<id>urn:sha1:983f474ec8c02e0f50dc84153748445982498411</id>
<content type='text'>
It’s “38:5:&lt;idx&gt;”, not “38:2:5:&lt;idx&gt;”.
</content>
</entry>
<entry>
<title>generate-alt-random-writes: use python random, allow setting a seed</title>
<updated>2020-12-20T14:46:40Z</updated>
<author>
<name>sterni</name>
<email>sternenseemann@systemli.org</email>
</author>
<published>2020-12-20T13:45:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d1735ffb6da3b867ceda83fa89648a664a5dafd1'/>
<id>urn:sha1:d1735ffb6da3b867ceda83fa89648a664a5dafd1</id>
<content type='text'>
Using Python's own PRNG should make the code cleaner and allow for
reproducible stimulus files if that is desired via setting --seed (at
least for the same versions of the script, changing the kind and/or
order of the random calls will of course impact the output in the
future).

I did the following substitutions:

* rand.read(1)[0] % n and struct.unpack('@H', rand.read(2))[0] % n →
  random.randrange(n)
* rand.read(1)[0] → random.randrange(256)
* rand.read(n) → [random.randrange(256) for _ in range(n)]
  (better alternative would have been random.randbytes(n), but is only
  available for Python &gt;= 3.9, switching to this in the future will
  impact output)
* list[rand.read(1) % len(list)] → random.choice(list)
</content>
</entry>
<entry>
<title>render: fix rounding error when calculating background color with alpha</title>
<updated>2020-12-20T14:46:32Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-20T11:25:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a2ce0622c5396774c64245bb6cbd6b7dbd0d339d'/>
<id>urn:sha1:a2ce0622c5396774c64245bb6cbd6b7dbd0d339d</id>
<content type='text'>
We use pre-multiplied alpha color channels, but were having bad
rounding errors due to the alpha divider being truncated to an
integer.

The algorithm for pre-multiplying a color channel is:

  alpha_divider = 0xffff / alpha
  pre_mult_color = color / alpha_divider

In order to fix the rounding errors, we could turn ‘alpha_divider’
into a double.

That however would introduce a performance penalty since now we’d need
to do floating point math for each cell.

The algorithm can be trivially converted to:

  pre_mult_color = color * alpha / 0xffff

Since both color and alpa values are &lt; 65536, the multiplication is
“safe”; it will not overflow an uint32_t.

Closes #249
</content>
</entry>
<entry>
<title>meson: add wl_proto_headers to pgo executable</title>
<updated>2020-12-20T14:46:28Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-20T11:15:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=06f84b9aafc14d2e787956c16f6ce32f95e62dd6'/>
<id>urn:sha1:06f84b9aafc14d2e787956c16f6ce32f95e62dd6</id>
<content type='text'>
This fixes a build failure of pgo.o
</content>
</entry>
<entry>
<title>changelog: mention meson dependency fix</title>
<updated>2020-12-20T14:46:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-20T10:56:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3fd60d4975c589242a8083b2323040bb788a5d16'/>
<id>urn:sha1:3fd60d4975c589242a8083b2323040bb788a5d16</id>
<content type='text'>
</content>
</entry>
<entry>
<title>changelog: add 1.6.1 section</title>
<updated>2020-12-20T14:46:05Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-20T14:46:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b976d10f7dd3bb24a355eee58363376f0a29a9f8'/>
<id>urn:sha1:b976d10f7dd3bb24a355eee58363376f0a29a9f8</id>
<content type='text'>
</content>
</entry>
</feed>
