3 ms·
I just used Dear ImGui in a VSCode tab in the last couple of weeks [1] :) ...indirectly by embedding a home computer emulator with a Dear ImGui debugger UI, co
by flohofwoe 3y ago
I just used Dear ImGui in a VSCode tab in the last couple of weeks [1] :)
...indirectly by embedding a home computer emulator with a Dear ImGui debugger UI, compiled to WASM+WebGL running in a webview panel, but the idea to use Dear ImGui for tooling UIs in VSCode extensions where HTML+CSS might be too awkward is certainly interesting (think not just "traditional UIs", but also things like noodle-graphs, flame-graphs, diagrams... the vector renderer coming with Dear ImGui is great for that type of stuff).
[1] https://marketplace.visualstudio.com/items?itemName=floooh.vscode-kcide https://marketplace.visualstudio.com/items?itemName=floooh.v...
- mortallywounded 3y ago> ..by embedding a home computer emulator with a Dear ImGui debugger UI, compiled to WASM+WebGL running in a webview panel... People wonder why their Electron apps use 16GB of memory.
- flohofwoe 3y ago...and yet there's no realistic way to implement such an extension for any other IDE without resorting to per-platform-compiled and potentially unsafe native code :) The embedded emulator including the Dear ImGui debugging UI compiled to WASM is just around 700 KBytes, runs on all platforms (even in the VSCode browser version) and is safely sandboxed, that same code compiled to a native executable on macOS is 847 KBytes, doesn't run on any other OS without compiling another version, and would be blocked to run anyway because it is potentially unsafe.
- WhereIsTheTruth 3y agoTurns out VScode is indeed a web browser in disguise, who would have thought!
- WhereIsTheTruth 3y agoDownvoters, educate yourself a little bit: https://en.wikipedia.org/wiki/Electron_(software_framework) https://en.wikipedia.org/wiki/Electron_(software_framework)
- deleted 3y ago[deleted]