5 ms·
> Lua in the browser means you can use coroutines to write beautiful asynchronous code Is it beautiful, but also performant?
by richardfey 5y ago
> Lua in the browser means you can use coroutines to write beautiful asynchronous code
Is it beautiful, but also performant?
- deleted 5y ago[deleted]
- dummy_variable 5y agoI wonder the same thing. Writing a scripting language on top of another scripting language makes me wonder, why add another layer? A common complaint I have seen with frontend JS apps is that people tend to unnecessarily bloat them. But I do appreciate the efforts and idea. Most probably the developers must have thought this through and have definitely kept the performance aspect in mind.
- richardfey 5y agoI was thinking: do Lua coroutines map well to Javascript's event loop?
- babagabooj 5y agoyes if they are using generators... that's the only viable way.