News for hackers. Stuff that matters.
Re:Intel Publishes Fast AVX-512 Sorting Library, 10~17x Fast... by sagarm on Thursday February 16, 2023 @01:46AM (#34815801)
I made that comment because the Intel library is header only. While header only libraries can be convenient, for non-trivial projects I prefer a well engineered CMake-based build for better compile times.
Re:Intel Publishes Fast AVX-512 Sorting Library, 10~17x Fast... by janwas on Thursday February 16, 2023 @02:10AM (#34815924)
Got it. Highway is mostly header-only and we can move towards fully if anyone is interested.

We also have a CMake build, not sure about well-engineered but patches welcome from anyone with more CMake expertise :)

Re:Intel Publishes Fast AVX-512 Sorting Library, 10~17x Fast... by fwsgonzo on Thursday February 16, 2023 @03:37AM (#34816431)
I think as long as FetchContent works it's super easy to try out your library and see if its something that should be pulled in as a real dependency.

I have heard that FetchContent can make something unreliable, as in dependent on having a connection, but I think it opens up the door for a lot of people to be willing to try it :) (That, and you can turn off mandatory updates, making it work offline too).

I think the basic rule for making FetchContent work is to just put the CMakeLists.txt in the root directory and then make sure that you can use the project as a CMake sub-project.

Re:Intel Publishes Fast AVX-512 Sorting Library, 10~17x Fast... by janwas on Thursday February 16, 2023 @04:18AM (#34816647)
OK, I think we meet those criteria. JPEG XL can use Highway via add_subdirectory, assuming that is what you mean by sub-project.
Re:Intel Publishes Fast AVX-512 Sorting Library, 10~17x Fast... by fwsgonzo on Friday February 17, 2023 @03:43AM (#34832344)
Yes, exactly!