logoalt Hacker News

Show HN: Godbolt-in-a-floating-window for Neovim (C, C++, Rust)

82 points • by 0xdeadf1sh • today at 1:34 PM • 15 comments • view on HN

No internet connection needed. Uses a locally-installed compiler for assembly generation.


Comments

waschl • today at 6:10 PM

+1 only because of the seemingly non-AI README. Such a joy to get the core info in one glimpse

evmar • today at 3:31 PM

https://github.com/pacak/cargo-show-asm is a nice helper for the Rust->asm part of this that has seen a decent amount of work for handling all the edge cases. (I've contributed a bit to it to handle some Windows issues.)

bajard • today at 3:52 PM

Maybe I should say Compiler Explorer instead of Godbolt.

This should be mandatory for any programming environment, along with a CPU emulator showing how data moves through the ALU, and all the ports, to which registers it goes to, and how everything works clock by clock.

I hope AI makes this possible, at least for VS Code and C++.

➕ show 2 replies
ivanjermakov • today at 4:07 PM

I usually want to see assembly during debugging, not development. For which rad debugger is a must (now on Linux!): https://github.com/EpicGames/raddebugger

shmerl • today at 2:44 PM

That's interesting. There is also https://codeberg.org/Jorenar/nvim-dap-disasm if you want to get it for actual compiled result + debugger.

FirstClassTree • today at 6:03 PM

genuinely asking, but isn't today the AI writing the code?

➕ show 4 replies