2.1K reads
4 comments
Here's a copy of a helpful comment by reddit user gladiatr72: Nothing to flame you for, really. (regarding the closing statement of the blog post for those that haven't looked at it). I think you might be looking at the whole 5.1 v 5.4 thing through the wrong lens vis openresty. If you search for the topic in the openresty (closed) issues on github, I believe Yichun Zhang has made a clear case why such a shift is not on their radar. Immediately, there are the current performance benefits to LuaJIT but there is also the element of 5.1 being 100% feature/structure stable. (also have a look at the FAQ on their website or through the mailing list archives for different iterations)
Even if Haoran Xu's efforts (which are cool af) towards creating a fully jit'able compiler that can match|outmatch LuaJIT, any performance benefit would need to be impressive enough to justify replacing a language/stable Lua with one that will inevitably drift. From what I've seen, where YZ addresses this sort of inquiry, he's much more interested in solving new problems than revisiting old ones.
If you're interested, you might have a look at the LuaJIT mailing list. Mike Pall has offered some detailed dives into the how's/why's of which code paths(?term) benefit from JIT compilation.
Anyway, thanks for the write-up. Too few posts regarding Lua at this level of the stack.
FYI: There are some relevant comments on this article on lobsters here .
Hello, I am still learning. I think it should be compiled from source for the webserver (nginx).
I also included all module requirements for proxy, multi-master replication, communication with the database, LuaJIT, and cache from FastCGI or Redis.
When custom built, there's no need to call the dynamic module. So, it could make it faster. It's my opinion, just for discussion. I apologize for any mistakes in this opinion. Thank you, I hope you are always well and successful.