vibe.d-lite is an experimental alternative to the classic vibe.d, that reimplements vibe-core package on top of Photon fiber scheduler and event loop.
https://github.com/DmitryOlshansky/photon
Since it was suggested that Windows support won't be easy, I found it very compelling to just try and make it work. I kind of like the end result which is based on Windows IOCP and integrates overlapped I/O for files with IOCP and passes them through for regular threads.
https://code.dlang.org/packages/vibe-d-light
https://code.dlang.org/packages/vibe-http-light
Pick latest v0.2.x for Windows support.
Among other changes runTask now spawns task on the same thread to match what vibe.d ecosystem expects. To run your server in mulithreaded mode some incantation like the following is required:
runWorkerTaskDist(() nothrow { // runWorkerTaskDist spawns a fiber per core
try {
auto settings = new HTTPServerSettings;
settings.port = 8080;
settings.bindAddresses = ["127.0.0.1"];
settings.options = HTTPServerOption.reusePort; // this is important
auto routes = new URLRouter;
routes.get("/", staticTemplate!"home.dt");
//...
routes.rebuild();
auto httpListener = listenHTTP(settings, routes);
} catch (Exception e) assert(false, e.msg);
});
The whole thing is not that well tested but unittests pass and basic HTTP server works.
At the moment it's for the brave souls that seek faster vibe.d and are willing to help me out (by filing bugs for instance) to make it production ready.
--
Dmitry Olshansky