In the past few months folks in the MLIR China community has been working on a project to make experiencing and sharing MLIR developments easier. Instead of going through the CMake flow locally, the aim is to put everything in a web browser page and let developers only focus on patterns and their inputs/outputs far fast iterations. This is expected to lower barriers for folks new to MLIR and also make sharing runnable code snippets during discussions easier.
Now the first version is fully functional and oneline at playground.mlir-china.org! Please feel free to give it a try and feedback welcome! You can also run it via Docker as
docker run -d -p 3000:3000 mlirchina/mlir-playground.
The project draws idea from Compiler Explorer and OpenAI playgrounds, following the trend of leveraging web technology to boost collaboration efficiency and lower entrance barriers. In this first version (for testing the possibility), the whole stack is compiled to WebAssembly and run locally with the browser. For more technical details, see the source code repo.
Code snippet sharing is a planned feature. There are also other cool features we can add there, like supporting writing patterns using transform dialects. Feel free to create feature requests in the source repo and so stay tuned!