Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Talk:LuaRocks

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 2 years ago by 109.26.41.115 in topic LuaOnTheRocks

LuaOnTheRocks

[edit]

It's often handy to be able to dump Lua tables to a human-readable format and paste them e.g into Excel for ad hoc analysis. There are lots of snippets on the Web, and for years I had a short one that worked fine - but I couldn't find it this time of asking. So I Googled and unfortunately found what looked like a good idea, convert to JSON, complete with an example using luarocks.

This may work on UNIX systems, but it's a total mess on on Windows despite what is claimed. At first glance the install instructions look quite detailed (not simple, but that's not to be expected in a conversion like this). So a key step will be to run their INSTALL.BAT. A quick search to see what nasties might be hidden there. A longer, more careful search - there ain't no INSTALL.BAT!!!

After a few hours of applying chewing gum, I rerun my working Lua program MYPROG -f afile.lua > myfile.out "Error while executing script from MYPROG": afile.lua:26: module 'luarocks.loader' not found: 109.26.41.115 (talk) 22:50, 3 December 2023 (UTC)Reply