On 2013-12-03 4:08 AM, Dejan Lekic wrote:
On Sat, 30 Nov 2013 22:14:12 -0500, Etienne wrote:
I'm writing a Lua D adaptation for Vibe.d to add scripting support. When
requesting data from HDD using loadFrom(path), would there be a function
that yields during a HDD request?Using LuaD with VibeD is a very good idea! Where can I get the code from and give it a try? :D
I have a fork on github right here:
https://github.com/etcimon/LuaD
Just copy the folder locally and add this to your package.json
"dependencies": {
"luad": {"version": "~master", "path": "../../include/LuaD/"},
...
}
and then import lua.all in your vibe.d project
Having a scripting language on a compiled application is always a good
idea, especially if you're going to avoid rebuilding a live server every
time something changes ;) And you can always move CPU heavy operations
in D once in a while on every version iteration of your webserver.