-
Notifications
You must be signed in to change notification settings - Fork 14
Description
Just an idea for a use-case for LOOM.
I am often wanting to discuss LuaJIT behavior with other developers, e.g. on LuaJIT/LuaJIT#293 (comment), and a common problem is sharing the relevant parts of the JIT dump in a convenient way. I have to decide whether to excerpt the instructions that I think are most relevant, or copy-paste the whole traces that I want people to look at, or save the whole dump as a Github gist, or some combination of these things. This creates work for me and frankly I don't know how convenient it is for other people. It would be nice to have a standard solution.
Just thinking that LOOM could fill this niche somehow? For example with a one-liner that would both generate the HTML output and also automatically host it somewhere as gist does? Then I could just run that and copy-paste the URL and rely on it being easy enough to navigate that people will find the relevant parts themselves.
Relatedly:
I am often looking into LuaJIT compiler behaviour using small one-page examples. On the one hand this is convenient because they are easy to share and it forces me to minimize my test cases. On the other hand I am much more interested in analyzing, discussing, and improving the behaviour of Snabb which is a much larger application. So although LOOM seems to make the simple examples easier to analyze I do more broadly want to move towards analyzing whole applications and e.g. being able to reference or excerpt the parts that I want to share. Could be that it makes sense to build my own tools for Snabb and also to use LOOM to simplify discussions of test cases e.g. by having the tool show the trace structure instead of me explaining it each time.
Great work you are doing @javierguerragiraldez :) Just trying to fit it into my world view and accommodate my own NIH tendencies.