<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/meson.git/ghwt.py, branch thinlto</title>
<subtitle>github.com: mesonbuild/meson.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/meson.git/'/>
<entry>
<title>Add ability to specify project branch to install</title>
<updated>2020-01-29T00:00:39+00:00</updated>
<author>
<name>Kyle Stone</name>
<email>kyle.stone@is4s.com</email>
</author>
<published>2020-01-28T22:06:02+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/meson.git/commit/?id=c89dca8c70cfa9a5abe67ef80f51f152d971526c'/>
<id>c89dca8c70cfa9a5abe67ef80f51f152d971526c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Put subprojects into folder specified by upstream wrap.</title>
<updated>2020-01-29T00:00:39+00:00</updated>
<author>
<name>Kyle Stone</name>
<email>kyle.stone@is4s.com</email>
</author>
<published>2020-01-28T21:37:38+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/meson.git/commit/?id=f9a31a25db5a9a08a5b102c6289029beddc7b07a'/>
<id>f9a31a25db5a9a08a5b102c6289029beddc7b07a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix expected/obtained hashes</title>
<updated>2020-01-29T00:00:39+00:00</updated>
<author>
<name>Kyle Stone</name>
<email>kyle.stone@is4s.com</email>
</author>
<published>2020-01-28T19:03:02+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/meson.git/commit/?id=bec46cc141eaa139840a4ad3f15c47549b3ed432'/>
<id>bec46cc141eaa139840a4ad3f15c47549b3ed432</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Always disable interpolation for ini parsers.</title>
<updated>2020-01-27T20:22:12+00:00</updated>
<author>
<name>Jussi Pakkanen</name>
<email>jpakkane@gmail.com</email>
</author>
<published>2020-01-27T15:55:48+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/meson.git/commit/?id=7375eaa26393027e68a45a8c1fdcb0ec81b2200a'/>
<id>7375eaa26393027e68a45a8c1fdcb0ec81b2200a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update Python2 syntax to Python3 syntax in ghwt.py</title>
<updated>2019-12-06T12:43:21+00:00</updated>
<author>
<name>Michael Brockus</name>
<email>55331536+michaelbadcrumble@users.noreply.github.com</email>
</author>
<published>2019-12-06T12:43:21+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/meson.git/commit/?id=c0a9bca62761eb15de3c562922e3c02c5d2ff8e3'/>
<id>c0a9bca62761eb15de3c562922e3c02c5d2ff8e3</id>
<content type='text'>

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>

</pre>
</div>
</content>
</entry>
<entry>
<title>using urlopen() with explicit timeout</title>
<updated>2018-08-26T21:55:45+00:00</updated>
<author>
<name>Andrei Antonov</name>
<email>polymorphm@gmail.com</email>
</author>
<published>2018-08-26T17:37:49+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/meson.git/commit/?id=8f7781f1d6bf36c064b39e7d0794c686f1b78665'/>
<id>8f7781f1d6bf36c064b39e7d0794c686f1b78665</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use os.path.dirname() instead of os.path.split(...)[0]</title>
<updated>2018-03-12T21:03:10+00:00</updated>
<author>
<name>Aleksey Filippov</name>
<email>alekseyf@google.com</email>
</author>
<published>2018-03-12T18:06:38+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/meson.git/commit/?id=fe215bb82675c3c83d3367ab7cfc39f5c785f6f9'/>
<id>fe215bb82675c3c83d3367ab7cfc39f5c785f6f9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>ghwt: Add a comment at the top briefly explaining what it is</title>
<updated>2017-09-20T18:02:57+00:00</updated>
<author>
<name>Luke Shumaker</name>
<email>lukeshu@lukeshu.com</email>
</author>
<published>2017-09-19T03:43:05+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/meson.git/commit/?id=3f446a79eca0081394a635f1460fe2ce742106a9'/>
<id>3f446a79eca0081394a635f1460fe2ce742106a9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't use len() to test emptiness vs not emptiness</title>
<updated>2017-05-02T18:57:26+00:00</updated>
<author>
<name>Dylan Baker</name>
<email>dylan@pnwbakers.com</email>
</author>
<published>2017-05-01T22:11:01+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/meson.git/commit/?id=a8173630eac1f35914fdc2d918a636ac268b9033'/>
<id>a8173630eac1f35914fdc2d918a636ac268b9033</id>
<content type='text'>
Meson has a common pattern of using 'if len(foo) == 0:' or
'if len(foo) != 0:', however, this is a common anti-pattern in python.
Instead tests for emptiness/non-emptiness should be done with a simple
'if foo:' or 'if not foo:'

Consider the following:
&gt;&gt;&gt; import timeit
&gt;&gt;&gt; timeit.timeit('if len([]) == 0: pass')
0.10730923599840025
&gt;&gt;&gt; timeit.timeit('if not []: pass')
0.030033907998586074
&gt;&gt;&gt; timeit.timeit('if len(['a', 'b', 'c', 'd']) == 0: pass')
0.1154778649979562
&gt;&gt;&gt; timeit.timeit("if not ['a', 'b', 'c', 'd']: pass")
0.08259823200205574
&gt;&gt;&gt; timeit.timeit('if len("") == 0: pass')
0.089759664999292
&gt;&gt;&gt; timeit.timeit('if not "": pass')
0.02340641999762738
&gt;&gt;&gt; timeit.timeit('if len("foo") == 0: pass')
0.08848102600313723
&gt;&gt;&gt; timeit.timeit('if not "foo": pass')
0.04032287199879647

And for the one additional case of 'if len(foo.strip()) == 0', which can
be replaced with 'if not foo.isspace()'
&gt;&gt;&gt; timeit.timeit('if len("   ".strip()) == 0: pass')
0.15294511600222904
&gt;&gt;&gt; timeit.timeit('if "   ".isspace(): pass')
0.09413968399894657
&gt;&gt;&gt; timeit.timeit('if len("   abc".strip()) == 0: pass')
0.2023209120015963
&gt;&gt;&gt; timeit.timeit('if "   abc".isspace(): pass')
0.09571301700270851

In other words, it's always a win to not use len(), when you don't
actually want to check the length.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Meson has a common pattern of using 'if len(foo) == 0:' or
'if len(foo) != 0:', however, this is a common anti-pattern in python.
Instead tests for emptiness/non-emptiness should be done with a simple
'if foo:' or 'if not foo:'

Consider the following:
&gt;&gt;&gt; import timeit
&gt;&gt;&gt; timeit.timeit('if len([]) == 0: pass')
0.10730923599840025
&gt;&gt;&gt; timeit.timeit('if not []: pass')
0.030033907998586074
&gt;&gt;&gt; timeit.timeit('if len(['a', 'b', 'c', 'd']) == 0: pass')
0.1154778649979562
&gt;&gt;&gt; timeit.timeit("if not ['a', 'b', 'c', 'd']: pass")
0.08259823200205574
&gt;&gt;&gt; timeit.timeit('if len("") == 0: pass')
0.089759664999292
&gt;&gt;&gt; timeit.timeit('if not "": pass')
0.02340641999762738
&gt;&gt;&gt; timeit.timeit('if len("foo") == 0: pass')
0.08848102600313723
&gt;&gt;&gt; timeit.timeit('if not "foo": pass')
0.04032287199879647

And for the one additional case of 'if len(foo.strip()) == 0', which can
be replaced with 'if not foo.isspace()'
&gt;&gt;&gt; timeit.timeit('if len("   ".strip()) == 0: pass')
0.15294511600222904
&gt;&gt;&gt; timeit.timeit('if "   ".isspace(): pass')
0.09413968399894657
&gt;&gt;&gt; timeit.timeit('if len("   abc".strip()) == 0: pass')
0.2023209120015963
&gt;&gt;&gt; timeit.timeit('if "   abc".isspace(): pass')
0.09571301700270851

In other words, it's always a win to not use len(), when you don't
actually want to check the length.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use context manager in scripts.</title>
<updated>2016-08-30T08:17:47+00:00</updated>
<author>
<name>Elliott Sales de Andrade</name>
<email>quantum.analyst@gmail.com</email>
</author>
<published>2016-08-30T06:52:12+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/meson.git/commit/?id=859c5e28df90851838aacc4b9ad49d3630e4992a'/>
<id>859c5e28df90851838aacc4b9ad49d3630e4992a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
