News for hackers. Stuff that matters.
Re:Redo: A recursive, general-purpose build system by woodruffw on Tuesday December 28, 2021 @06:14PM (#29719500)
Not just a functional language -- I found that my ability to write maintainable (and performance) Makefiles drastically improved when I began to think of Make as a Prolog/Datalog variant with particularly heinous syntax and very limited constraint resolution.
Re:Redo: A recursive, general-purpose build system by webstrand on Wednesday December 29, 2021 @12:17AM (#29722154)
I really like the declarative style of make, to the extent that I've been abusing it as an automation tool. Doing things like checking if a server is alive or setting up a serial port. But due to limitations like depending on mtime and issues with special characters in targets, I've switched some of my more intensive Makefiles to prolog using this: https://github.com/webstrand/robo.

When I find the time I hope to write bindings for netlink for prolog, so that I can declaratively create and configure network namespaces. Complete declarative system configuration using prolog would be a dream come true.

Re:Redo: A recursive, general-purpose build system by ljm on Wednesday December 29, 2021 @05:37AM (#29723631)
It's funny you mention that because I've wondered for a while what it would be like to have a Prolog-based build system (or even just as a CI config target instead of abusing yaml). I just lack the technical nous (and time) to try and pull it off.