Supporting nlohmann/json through xeus-cpp-lite #4619
Replies: 2 comments
-
Basically what I am trying to convey is that as a part of running C++ completely in the browser, we also support running nlohmann/json (hopefully completely) please play around with it here on our static link. We have supported xeus-cpp-lite here (https://compiler-research.org/xeus-cpp/lab/index.html) ... we currently support c++20 Hopefully there shouldn't be any issues. But if you find some. Please report them here https://github.com/compiler-research/xeus-cpp/issues Maybe you can also add a link for anyone interested to try it out as a part of the readme, if you think stuff works as expected :) Thank you ! |
Beta Was this translation helpful? Give feedback.
-
gentle ping @nlohmann |
Beta Was this translation helpful? Give feedback.
-
Hey @nlohmann
Here's something you might like. Now users can run nlohmann/json code in the form of a REPL completely in the browser and can skip any setup required and also do quite some unique stuff with it.
Some context:
Xeus-cpp-lite is Xeus-cpp + JupyterLite
Xeus-cpp is a jupyter kernel for writing C++ code and uses the clang-repl interpreter by LLVM
JupyterLite is a JupyterLab distribution that runs entirely in the browser built from the ground-up using JupyterLab components and extensions.
I maintain both these repos and we also use nlohmann/json quite a bit for xeus-cpp.
That being said, Xeus-cpp-lite enables running C++ completely in the browser (no setup needed) and hence we also support running nlohmann/json along with it.
Rich mime type rendering options are also available. Check out our example notebook here (https://github.com/compiler-research/xeus-cpp/blob/main/notebooks/xeus-cpp-lite-demo.ipynb)
Also I tried executing the small pt rendering code today (https://www.kevinbeason.com/smallpt/)
Screen.Recording.2025-01-23.at.12.29.04.PM.mp4
Beta Was this translation helpful? Give feedback.
All reactions