From bf399c03703072e711781305d30f4e89387ef520 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Tue, 8 Jun 2021 12:00:20 -0400 Subject: [PATCH] core/aggregate: Remove package This package is not used today. See RELEASES.md for more information; This is a dangerous package that never should have existed. This also fixes the test suite. --- RELEASES.md | 9 ++ core/aggregate.xml | 154 -------------------- core/test/core/aggregate.xml | 264 ----------------------------------- core/test/core/suite.xml | 1 - 4 files changed, 9 insertions(+), 419 deletions(-) delete mode 100644 core/aggregate.xml delete mode 100644 core/test/core/aggregate.xml diff --git a/RELEASES.md b/RELEASES.md index 77b6e706..2a8a5130 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -27,6 +27,15 @@ Compiler - Changes that have not yet been merged will remove debug values for the classification system. +Core +---- +- Remove `core/aggregate`. + - This package is not currently utilized and is dangerous---it could + easily aggregate unintended values if used carelessly. Those who know + what they are doing can use `sym-set` if such a thing is a good thing + within the given context, and proper precautions are taken (as many + templates already do today). + v17.9.0 (2021-05-27) ==================== diff --git a/core/aggregate.xml b/core/aggregate.xml deleted file mode 100644 index f59db3e4..00000000 --- a/core/aggregate.xml +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - - - - Aggregate templates simplify aggregating values through various means. - Unless otherwise specified, - the default means of aggregation is summation. - - -
- For large numbers of values, - the most convenient way to aggregate is by matching on symbol names. - Note that symbols must be available for a match to occur. - All imported symbols are immediately available, - but \tt{expand-sequence} may need to be used for symbols produced by - the same package. - - - \ref{_aggregate-rate-each_} aggregates values of generators (usually - referred to by \tt{rate-each}) through summation. - A \tt{rate-each} block is generated to perform the summation. - - Since \tt{rate-each} multiplies its body by \tt{_CMATCH_}, - zero symbols would normally result in the summation of \tt{_CMATCH_} - itself, which is not desirable; - this template always includes \ref{ZERO} in the body to defend - against this, - causing a yield of~$0.00$ if there are no symbol matches. - - - - - \ref{_aggregate-rate_} is analgous to \ref{_aggregate-rate-each_}, - handling only scalar~\tt{@yields@}. - A \tt{rate} block is generated to aggregate by summation. - - To prevent an empty rate block from being generated if there are no - symbol matches, - \ref{ZERO} is always included as part of the summation. - - - - - \ref{_aggregate-classify_} aggregates classifications. - Keep in mind that classifications act as universal quantifiers by default, - meaning zero symbol matches will produce a match and a scalar~$1$; - existential quantifiers (\tt{@any@} set to \tt{true}) will \emph{not} - match and will produce the scalar~$0$. - - -
-
diff --git a/core/test/core/aggregate.xml b/core/test/core/aggregate.xml deleted file mode 100644 index 4d0e32c4..00000000 --- a/core/test/core/aggregate.xml +++ /dev/null @@ -1,264 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/core/test/core/suite.xml b/core/test/core/suite.xml index 32aee5bf..2bc26b75 100644 --- a/core/test/core/suite.xml +++ b/core/test/core/suite.xml @@ -38,7 +38,6 @@ -