Open daelvn opened 3 years ago
I think this could be achieved for next minor version. Maybe looking into luaposix to use fork
or whatever. Let's look at how Concurrently does it. Actually, I wouldn't mind at all replicating that tool.
For what it's worth, moonbuild uses luaposix's fork for its own parallel execution here It's decently fast, and works on all unixes, but doesnt work on windows and luaposix is yet another C dependency
Concurrently claims to be able to run on all systems, or at least on Windows, which is part of why i wanted to look into it. And well, what we talked about C dependencies. A pure-lua/cross-platform way would be ideal.
Hehe.
But yes, multitasking. It would allow you to start a task in parallel somehow (not sure if I want to use coroutines, since it is still single-threaded and all) to maximize efficiency. I figure this could be helpful when compiling big projects or handling big amounts of data. Maybe even used with the
fetch
task.