daelvn / alfons

🚀 Task runner for Lua and MoonScript.
The Unlicense
21 stars 1 forks source link

Multitasking #11

Open daelvn opened 3 years ago

daelvn commented 3 years ago

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.

daelvn commented 3 weeks 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.

natnat-mc commented 1 week ago

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

daelvn commented 1 week ago

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.