In a recent porting attempt, I found myself importing several math functions from musl libc to /sys/src/ape/lib/ap/math. They were pretty pain-free and very enjoyable code. If possible I would prefer those implementations to gnulib whenever possible. The gnulib idea is great, but the headers and code are definitely not intended to be read or edited by a human.
The idea is thus to add as much as possible of musl libc to the APE libs. The more functions that are already in libc, the less of gnulib is needed to build various applications.
In a recent porting attempt, I found myself importing several math functions from musl libc to /sys/src/ape/lib/ap/math. They were pretty pain-free and very enjoyable code. If possible I would prefer those implementations to gnulib whenever possible. The gnulib idea is great, but the headers and code are definitely not intended to be read or edited by a human.
The idea is thus to add as much as possible of musl libc to the APE libs. The more functions that are already in libc, the less of gnulib is needed to build various applications.