Live data from Hacker News

Rust, RR, Neovim: A perfect debug combination

github.com

41–50 of 102 posts

Re: Rust, RR, Neovim: A perfect debug combination

#41
post #31

[flagged]

I started watching [3]. I have no stakes in this, but a lot of stuff I should be enraged about... I'm just not? Doesn't look fundamentally different to Debian or Firefox trademark policies. I guess it is an abrupt change in trademark enforcement for Rust.

The difference is that the R-word foundation goes above and beyond their (reasonable) interests of protecting their brand/identity. This is not about trying to fend off people impersonating as "Official Rust..." or "Rust Foundation ..." but tries to stop you from even having the _word_ "rust" or "cargo" in your domain name. Also there is some ideology-driven nonsense which is impossible to enforce but that does not stop them from the attempt to treat their community condescendingly like that.

Re: Rust, RR, Neovim: A perfect debug combination

#42

Anyone got other useful tools for debugging within (neo)vim? Just seamlessly putting down breakpoints, stepping through code execution, and getting a fully fledged debugging UI experience (a la Visual Studio or Remedy BG)? This is possibly the only thing I miss from developing on Windows, and it's a shame! EDIT: I specified 'within vim' but actually I'd be down for standalone Linux app recommendations too.

So over the weekend I just went through a vim reworking for myself after discovering astronvim. I replaced my config with that one and installed nvim-dap-python through the user template, was able to attach and debug like I was using pycharm in a few hours of tweaking. I really like it

I did have a couple of plugins I cant really live without (ZoomWinTab and A.vim) so Im working on porting them to lua with the help of chatgpt. Really like the experience so far. Def worth checking out astronvim / nvchad

Re: Rust, RR, Neovim: A perfect debug combination

#43

[flagged]

At least Ferris can be used freely according to that document. That's good news.

Even that point is ridiculous. Ferris was released from the original author as "public domain" property. It is not a "gift" or "compromise" of the foundation, they would not be able to restrict Ferris' usage, even if they wanted to (and after reviewing their document, I am 100% they would love to)

Re: Rust, RR, Neovim: A perfect debug combination

#45

Anyone got other useful tools for debugging within (neo)vim? Just seamlessly putting down breakpoints, stepping through code execution, and getting a fully fledged debugging UI experience (a la Visual Studio or Remedy BG)? This is possibly the only thing I miss from developing on Windows, and it's a shame! EDIT: I specified 'within vim' but actually I'd be down for standalone Linux app recommendations too.

VSCode with the CodeLLDB or MS C/C++ extensions both usually work out of the box for debugging most compiled languages (so far I tried C/C++, Rust and Zig), but compared to proper Visual Studio it's very bare bones (especially the variable view panel).

> compared to proper Visual Studio

Debugging in proper Visual Studio is by far the most pleasant experience I have ever had. Flame graphs, call graphs, memory and CPU utilisation graphs, straightforward call stacks and variable views... FOSS debugging utilities don't even come close to the debugging productivity on VS 2022.

Re: Rust, RR, Neovim: A perfect debug combination

#46
post #3

Investing in a good debugging tool and knowing your way around using it well, makes all the difference.

After recently doing some JavaScript work and not knowing how to debug it, any suggestions for a JavaScript debugger? Part of the problem is it's already difficult to get a modern JavaScript stack setup: TypeScript transpiles to JavaScript trasnpiles to different bundles that all get minified and backfilled and next thing you know your debugging a variable named i̷̪̱͆͛w̵̤̹̠͊̇̈x̷̨̻̽̍̄͆ on line 582956, and you ask your…

VSCode works well, both for command line stuff via node.js or Deno, and for (remote) browser debugging:

https://code.visualstudio.com/docs/typescript/typescript-deb...

https://code.visualstudio.com/docs/nodejs/browser-debugging

The JS-to-TS mapping is handled through source map (so you're 'debugging' the TS code, even though it's JS under the hood).

(also, in case you're not aware, browsers have a builtin debugger in their devtool panel, these also have source map support, but this may require some tinkering)

Re: Rust, RR, Neovim: A perfect debug combination

#47

[flagged]

Amazing, you get lawyers involved and they proceed to immediately alienate a large number of people in the very community the foundation is meant to nurture. It's a pretty good example of an own-goal by the rust foundation. Fire the idiot lawyers and draft a much toned down, much restricted version of this.

Re: Rust, RR, Neovim: A perfect debug combination

#48
post #31

Earlier quoted context omitted.

I started watching [3]. I have no stakes in this, but a lot of stuff I should be enraged about... I'm just not? Doesn't look fundamentally different to Debian or Firefox trademark policies. I guess it is an abrupt change in trademark enforcement for Rust.

Just ignoring that it is fundamentally gross and pointless, which some people don't understand somehow, consider the practical implications. I can't casually make a youtube video or blog article teaching about Rust without worrying about trademarks if I use the word. Hundreds of rust libraries have Rust in the name and would be in violation of this policy the second it changed, etc.

IANAL but it's important to understand what is and isn't enforceable regarding a trademark. I can write about Debian, Firefox and Rust without an explicit disclaimer that I'm not endorsed by their corresponding foundations if it's obvious in context. I can also write about Coca-Cola, Nintendo and Oracle in a similar manner. It doesn't matter what any of the trademark policies say.

I wouldn't worry about writing on rust, the language. It certainly sucks that the language, the compiler and the foundation share the same name. But it probably sucks for the foundation as well regarding enforcement.

I don't get why people like to put the name "rust" in crate names, unless they write tools that work with the language (linters, auto-formatters), it just feels redundant.

Re: Rust, RR, Neovim: A perfect debug combination

#49
post #29

[flagged]

who is behind this shit

Sanctioned by the foundation. According to the February 2023 Rust Foundation Board meeting notes (https://foundation.rust-lang.org/static/minutes/2023-02-14-m..., Paragraph 7.), the board reviewed and believes this is fine, this has been in discussions for months.

It is based on the results of a previous survey: https://old.reddit.com/r/rust/comments/wkv8gv/rust_foundatio.... Looking at where we are now it's safe to assume that not all community feedback was given the same level of care, the (vocal) community is against this, as am I.

Post reply on HN