You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Steps 1 and 2 are almost complete. Step 0 (the coding guidelines) is partially unfinished. Step 3 has not been started yet. I will keep this issue open until we have a concrete work plan.
I thought the test code was difficult to commonize. However, as I'll add tests for arithmetic operations, I am not very satisfied with the current test code.
A practical problem is the long testing times. It's not fatal at the moment, but it should be an obstacle to supporting signed Normed in the future.
We spend the most part of the testing time compiling. Therefore, except the reduction of memory allocation, optimization techniques for "run-time" speed has almost no effect. So it's important to reduce the number of test cases, or target types.
Currently, 128-bit/64-bit types are tested, even though they are rarely used in practice. I believe that the reduction of the target type can be abstracted. For example, the following API can be considered:
We can use include to do things like mix-in, but the unit of common reusable test sets are per file. That is incompatible with ”partially" commonizable test sets. @includetests of TestSetExtensions.jl also have the same problem.
The pair of macros @common and @runcommon use the names of the test sets to map the caller to the callee. However, I think there is a more elegant way.
The support for checked basic four operations is almost complete. Now that I know that those 100% tests are common to Fixed and Normed, I would like to commonize their codes. However, I'm not going to introduce any tricky macros, but simply write functions.
Activity
kimikage commentedon Nov 21, 2019
Merge pull request #151 from kimikage/commonize1
kimikage commentedon Jan 22, 2020
Steps 1 and 2 are almost complete. Step 0 (the coding guidelines) is partially unfinished. Step 3 has not been started yet. I will keep this issue open until we have a concrete work plan.
kimikage commentedon Jul 26, 2020
I thought the test code was difficult to commonize. However, as I'll add tests for arithmetic operations, I am not very satisfied with the current test code.
A practical problem is the long testing times. It's not fatal at the moment, but it should be an obstacle to supporting signed
Normedin the future.We spend the most part of the testing time compiling. Therefore, except the reduction of memory allocation, optimization techniques for "run-time" speed has almost no effect. So it's important to reduce the number of test cases, or target types.
Currently, 128-bit/64-bit types are tested, even though they are rarely used in practice. I believe that the reduction of the target type can be abstracted. For example, the following API can be considered:
kimikage commentedon Jul 27, 2020
We can use
includeto do things like mix-in, but the unit of common reusable test sets are per file. That is incompatible with ”partially" commonizable test sets.@includetestsof TestSetExtensions.jl also have the same problem.I devised (ugly) small macros like this:
https://github.com/kimikage/CommonTests.jl
The pair of macros
@commonand@runcommonuse the names of the test sets to map the caller to the callee. However, I think there is a more elegant way.kimikage commentedon Aug 30, 2020
The support for checked basic four operations is almost complete. Now that I know that those 100% tests are common to
FixedandNormed, I would like to commonize their codes. However, I'm not going to introduce any tricky macros, but simply write functions.