59 points · by krakensden · 10y ago · 20 comments
Obviously one idea is to use threads. It’s common to have a separate thread
for dealing with signals and combining threads with semaphores, etc. would
allow GNU make to wait on two different types of asynchronous events
simultaneously. This was rejected because so far GNU make was single-threaded,
and requiring multi-threading was deemed too much of a price to pay.
I'm confused as to why adding multi-threading would be quite so onerous. As I understand it, one could restrict the use of threads to that specific feature and thus avoid large architectural changes.Do I not understand how Make is designed, or is "the price to pay" in reference to performance or some other metric?
I've always thought one of the weak points of POSIX was that the event sources were not unified. Imho, is a pity the relevant committee didn't work towards a clean solution in the mean time.
Even more annoying is that Windows API allows to wait on any combination of file/socket descriptor and/or message[1].
[1] MsgWaitForMultipleObjects https://msdn.microsoft.com/en-us/library/windows/desktop/ms6...
But there are a few major problems with it:
Newies often complain a lot about the esoteric syntax.
It's written in C.
It doesn't gets updated as fast as it should.
These points make it not very suitable for our current time.
I belive we all just need to pick something like gulp and port the "good parts" into it.
There is no point in having 20 tools that do the same!