| Newsgroups |
gmane.comp.sysutils.pcp |
| Message-ID |
<[email protected]> |
--yabbadabbadoo
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
[pcp:master] New Comment on Issue #270 boolean / quantified operations for =
derived-metrics ( https://github.com/performancecopilot/pcp/issues/270 )
By wcohen ( https://github.com/wcohen ) :
@kmcdonell I was able to recode some of my examples predicate tests using =
the conditionals added to the derived metric support. thanks.
Still thinking what would be best as the results of the binary || && etc. =
Wondering if maybe returning something other than C style 0 and 1 might be =
useful. Have short-circuiting for the logical || and &&. For || return left=
value if non-zero otherwise return right side value. For && return right h=
and value if left-hand side non-zero.
bounded_divide(num, denom, max) I think could be turned into the following=
:
((denom!=3D0) && ( num/denom )< max && (num/denom) ) || max
--yabbadabbadoo
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
[pcp:master] New Comment on Issue <a href=3D"https://github.com/performanc=
ecopilot/pcp/issues/270">#270 boolean / quantified operations for derived-m=
etrics</a><br>
By <a href=3D"https://github.com/wcohen">wcohen</a>:<p>
<p>@kmcdonell I was able to recode some of my examples predicate tests usi=
ng the conditionals added to the derived metric support. thanks.</p>
<p>Still thinking what would be best as the results of the binary || &=
& etc. Wondering if maybe returning something other than C style 0 and =
1 might be useful. Have short-circuiting for the logical || and &&=
. For || return left value if non-zero otherwise return right side value. =
For && return right hand value if left-hand side non-zero.</p>
<p>bounded_divide(num, denom, max) I think could be turned into the follo=
wing:</p>
<p>((denom!=3D0) && ( num/denom )< max && (num/denom) )=
|| max</p>
<p>
<div width=3D"1" style=3D"color:white;clear:both">_._,_._,_</div>
<hr>
Groups.io Links:<p>
You receive all messages sent to this group.
<p>
<a target=3D"_blank" href=3D"https://groups.io/g/pcp/message/15290">View/R=
eply Online (#15290)</a> |
<a target=3D"_blank" href=3D"mailto:[email protected]?subject=3DRe:%20%5Bpcp=
%5D%20%5Bpcp%3Amaster%5D%20reported%3A%20boolean%20%2F%20quantified%20opera=
tions%20for%20derived-metrics%20%23github">Reply To Group</a>
| <a target=3D"_blank" href=3D"mailto:?subject=3DRe:%20%5Bpcp%5D%20%5B=
pcp%3Amaster%5D%20reported%3A%20boolean%20%2F%20quantified%20operations%20f=
or%20derived-metrics%20%23github">Reply To Sender</a>
|
<a target=3D"_blank" href=3D"https://groups.io/mt/4433687?uid=3D174580">=
Mute This Topic</a>
=20
| <a href=3D"https://groups.io/g/pcp/post">New Topic</a><br>
<a href=3D"https://groups.io/mk?hashtag=3Dgithub&subid=3D354243">Mute #git=
hub</a>
<p>
<p>pcp mailing list<br />[email protected]<br /><a href=3D"https://groups.io/g=
/pcp/messages" target=3D"_blank">https://groups.io/g/pcp/messages</a></p>
<a href=3D"https://groups.io/g/pcp/editsub?uid=3D174580">Change Your Subsc=
ription</a><br>
<a href=3D"https://groups.io/g/pcp">Group Home</a><br>
<a href=3D"mailto:[email protected]">Contact Group Owner</a><br>
<a href=3D"https://groups.io/static/tos">Terms Of Service</a><br>
<a href=3D"https://groups.io/g/pcp/leave/354243/563757577/xyzzy">Unsubscri=
be From This Group</a><br>
<div width=3D"1" style=3D"color:white;clear:both">_._,_._,_</div>
--yabbadabbadoo--