Hacker News new | past | comments | ask | show | jobs | submit login

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_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.




It 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?


Cog can be run on demand, unlike build steps. Only some subset of developers that would touch those files need to have Python installed.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: