Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Makefile Assignments are Turing-Complete (2016) (nullprogram.com)
2 points by tannhaeuser on May 2, 2018 | hide | past | favorite | 3 comments


However, since there’s no way to “slice” a value, subtraction isn’t possible.

That's incorrect. It's trivial to implement subtraction in GNU Make. I did it as part of my GMSL project: http://gmsl.sf.net/ In fact, you can implement a whole load of functions natively using GNU Make's macro language.


Sure you can do all kinds of things using gmake but this is about POSIX make. See also [1] from the same author.

[1]: http://nullprogram.com/blog/2017/08/20/


Very good point.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: