3 ms·
As a concrete example, I would definitely use Cog for generating this kind of code: https://github.com/libjxl/libjxl/blob/main/lib/jxl/dct_scales.h https://gith
by lifthrasiir 3y ago
As a concrete example, I would definitely use Cog for generating this kind of code: https://github.com/libjxl/libjxl/blob/main/lib/jxl/dct_scales.h https://github.com/libjxl/libjxl/blob/main/lib/jxl/dct_scale...
Note that the current source code already contains a Python code used to generate them. The code is there for future uses, but it would be too much to have an additional build step and Python dependency just for that particular file, considering that this file will rarely change. Cog would be very useful in such situations.
- tjoff 3y agoIt would be to much to have an additional build step and Python dependency for a file that never changes, but not too much to add cog and python as dependencies and then slow down the build for all users?
- lifthrasiir 3y agoCog can be run on demand, unlike build steps. Only some subset of developers that would touch those files need to have Python installed.