Show HN: Godbolt-in-a-floating-window for Neovim (C, C++, Rust)
AssemblyForNeovim is a new Neovim plugin that displays compiled assembly for C, C++, and Rust code in a floating window using local toolchains.
summary is enough Neovim users writing C, C++, or Rust can grasp the usage instantly from the concise README.
summary
AssemblyForNeovim is a Neovim plugin that renders assembly output for C, C++ and Rust directly inside a floating window. Triggered via normal or visual mode keymaps, it interacts with local toolchains and automatically leverages compile_commands.json. The author built the tool to assist with manual, low-level hobby projects like graphics renderers. Commenters noted alternative debugging and assembly tools like cargo-show-asm.
key points
- Renders C, C++, and Rust assembly in a Neovim floating window using local compilers.
- Supports interactive controls like changing optimization levels and rerunning builds.
- Integrates with compile_commands.json to automatically pick up project build flags.
who should read it
Neovim developers writing performance-sensitive C, C++, or Rust code.
discussion positive
consensus
Commenters generally praised the clean README and discussed alternative assembly and debugging tools for systems languages.
pushback
A few questioned the relevance of manual tooling in the era of AI coding agents, leading the author to clarify its purpose for hobby projects.
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.)
It highlights an established alternative tool, cargo-show-asm, for handling Rust assembly edge cases.
Generated by an LLM from the article and thread. Check the sources before relying on it.