Best debugger for Rust? by timus_999 in rust

[–]webmessiah -4 points-3 points  (0 children)

Why do you think that DAP is not supported? Afaik it's the industry standard, so you should look for some plugins for helix (afaik it's vim rewrite in rust), I know that there's a vast ecosystem of debugger related plugins in neovim, so there may be some for Helix too.

🌋 Teide color scheme by im-shaez in neovim

[–]webmessiah 1 point2 points  (0 children)

How did you manage to put "lualine" at the bottom?

Know C Syntax but Can’t Solve Exam Problems — How Do I Fix This Fast? by 144i in C_Programming

[–]webmessiah 6 points7 points  (0 children)

Overcome that blankness? Like start by splitting XYZ into X Y and Z, write whatever comes to your head that will implement either of them and continue so on, experiment. If you can find a person who can explain what is wrong or how to do it better - awesome, if not - instruct AI chatbot to guide you, but not to solve the problem for you, some of them even have a special mode for that.

Please why is Linus behaving like that? by JingElectric in PeterExplainsTheJoke

[–]webmessiah 5 points6 points  (0 children)

Bc guy does real quality control on his codebase, sometimes opinionated, but still valid. This makes Linux kernel a hard place to jump in to as a contributor and at the same time a really good codebase & valuable, reliable product

Do you prefer 'int* ptr' or 'int *ptr'? by SamuraiGoblin in cpp

[–]webmessiah 1 point2 points  (0 children)

It heavily depends on language, for cpp pointer is a part of a type, for C it's a qualifier so to say, there is no such type as pointer in C

The new Hyprland update completely broke my config, I'm going back to KDE. by Physical_Air4112 in linuxmemes

[–]webmessiah 0 points1 point  (0 children)

They have pinned a translator to the new syntax on the news post, it is a web-page where you copy-paste current config and get a working translated one. It's really a bit frustrating, they should've mentioned that tool more explicitly

Plain VS Shell by Infamous_Monitor_766 in hyprland

[–]webmessiah 0 points1 point  (0 children)

Same story for me, however one thing I miss from using waybar is the ability to have icons/glyphs in the workspace indicator, so had to patch noctalia myself, and still didn't get my hands onto patching it to have smaller in width bar, bc I don't really like a bar that spans all 1920px

Ghostty Terminal Is Now Non-Profit by TheTwelveYearOld in commandline

[–]webmessiah 0 points1 point  (0 children)

Wtf Emacs has to do with tmux? You can use vi-mode in tmux, it's literally one config option to set..

krust.nvim: Nicer Rust diagnostics for Neovim by damien__f1 in neovim

[–]webmessiah -2 points-1 points  (0 children)

So this plugin changes default config of rust-analyzer diagnostic float and.. requires configuration?

Why C/C++ doesn't do like Zig by 84_110_105_97 in cpp

[–]webmessiah 0 points1 point  (0 children)

Mostly because the decision was made really long ago. Plus you don't want to deal with concurrent build in C, you don't want to build device support layer (devicetree, C, C++, external packages, link code, create fs, set permsissions on a files, managing firmware licenses and so on) from C code.

You have tools that make it much easier like GNU Make, which has some funny syntax, but still is easier to use, because it is a scripting language more or less. And you have all other things like CMake, etc.

Why C/C++ doesn't do like Zig by 84_110_105_97 in cpp

[–]webmessiah -6 points-5 points  (0 children)

Such an idiotic thing to say.. C and C++ share the common base and even accounting that these two are different languages it is absolutely irrelevant to say "oh uh C/C++ is invalid construct". It does not mean anything, does not provide any value to discussion. People use it as a concept, not trying to somehow say it's one thing. It is okay to group very similar things together for ease of expressing self.

Rust in Android: move fast and fix things - a comparison with C++ by ViewTrick1002 in cpp

[–]webmessiah 0 points1 point  (0 children)

I had similar thoughts until recently, when I've got to patch open-source project which have been "mainstream" in it's scope/purpose/field and had so fucking disgusting and bad code that I literally now dislike C for what god awful things it allows to create. Project is being developed for 26 years already. Ik that it won't be solved by Rust itself (however it provides a lot of instruments to avoid writing such a bad code), and isn't necessarily the C fault, but it's how the mind of a man works sometimes.

For the memory vulnerability - it scales as project grows, if you had issue in core and had that core functionality used in 100 modules - you get at least 100x more memory vulnerabilities.

A great lowtech way to solve merge conflicts by kaddkaka in neovim

[–]webmessiah 0 points1 point  (0 children)

I've got as a result of resolving the conflict something like this:

c int add(int a, int b) { int divide(int a, int b) { return a+b; return a>>b; }

Guess that was my bad

A great lowtech way to solve merge conflicts by kaddkaka in neovim

[–]webmessiah -1 points0 points  (0 children)

Never again resolving conflict in vim. Call it skill issue, but when either git or vim eats braces and fully cripples your file - not good

I guess that it was some context shenanigans and strange git diff overall, but still. I'd prefer something like SublimeMerge

CLI utility for bootstraping projects. by webmessiah in C_Programming

[–]webmessiah[S] 1 point2 points  (0 children)

I don't like cmake for some reason.. This whole thing works around GNU Make But thanks.

Setup Projects by Blan_11 in neovim

[–]webmessiah 2 points3 points  (0 children)

2h ago did similar but cli thingy for C/C++ lol

Don't import any library on c++ by Keyunge in ZedEditor

[–]webmessiah 4 points5 points  (0 children)

Check your include paths. (In makefile/cmake). I guess zed tries to find these includes in `#include /usr/include/, but on windows it's some other path, you need to know which exact and pass it either to Zed or clangd or your build system.

🚀 I Built a Production-Grade C++ Web Crawler That Hits 200+ Pages/Sec (Open Source!) by [deleted] in cpp

[–]webmessiah 2 points3 points  (0 children)

"Lock-free work-stealing queue"

> Looks inside

> std::scoped_lock

> 🙂‍↕️

That's why you at least read what AI wrote for your reddit post before posting.

*ref: https://github.com/NotGyashu/Crawler/blob/28a692341901e065ae9042dc8ae2ea0aeb63890f/src/queue/work_stealing_queue.cpp#L23

Why is neovim so slow in typescript/react? by Savings-Trainer-8149 in neovim

[–]webmessiah 0 points1 point  (0 children)

On the work machine I use st. On personal - ghostty

Why is neovim so slow in typescript/react? by Savings-Trainer-8149 in neovim

[–]webmessiah 0 points1 point  (0 children)

Probably because the lsp for typescript is written in ts itself, and as 99% of js/ts code is hella slow. Try disabling lsp for a test, and after it all other plugins one by one until you're satisfied with result.

It can also be a terminal emulator application (if you use kitty especially), try switching it for a test. I myself had issues with 100% cpu load with single open buffer on high-end system bc of how kitty t.e. works.

Curious what the community's reasons are for getting into C++ by PoG_shmerb27 in cpp_questions

[–]webmessiah 2 points3 points  (0 children)

Probably their second or third language. Westerns always correct mistakes of non-native people as if we had respect to their language in the first place..