Fushuan [he/him]

Huh?

  • 1 Post
  • 178 Comments
Joined 1 year ago
cake
Cake day: July 1st, 2023

help-circle
  • Fushuan [he/him]@lemm.eetoProgrammer Humor@lemmy.mlThe C++ learning process
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    2
    ·
    edit-2
    17 days ago

    I’ve not had those while working with concurrent programs with c++ for over a year. Pointers, QT programming, non-qt backend programming, coding an engine to work with computer vision runners (openvino mostly), image management (more pointers)… Idk, this is gonna sound rude but just code better? Most of my errors were segfaults, I have had to plug the debugger and/or tons of prints and I made it work.

    If you want to see giant error logs, check pyspark errors. But even those have the relevant line of info and then all the rest of the garbage info that no one really needs, like any other language.


  • Windows: exists

    Crowdstrike: exists

    Windows: open belly, right here!

    Crowdstrike: stabs

    Crowdstrike released bad code into prod without giving it some hours of testing in local machines or whatever. Incredible fuckup, inimaginable. But, let’s not take blame out of Microsoft, if a driver is faulty the system should be resilient enough no to crap the bed on login. At least enough for IT to be able to remotely access the system and fix it. The manual work the IT world has had to do because it’s lost remote access to workstations is insane.




  • Shared poibters are used while multithreading, imagine that you have a process controller that starts and manages several threads which then run their own processes.

    Some workflows might demand that an object is instantiated from the controller and then shared with one or several processes, or one of the processes might create the object and then send it back via callback, which then might get sent to several other processes.

    If you do this with a race pointer, you might end in in a race condition of when to free that pointer and you will end up creating some sort of controller or wrapper around the pointer to manage which process is us8ng the object and when is time to free it. That’s a shared pointer, they made the wrapper for you. It manages an internal counter for every instance of the pointer and when that instance goes out of scope the counter goes down, when it reaches zero it gets deleted.

    A unique pointer is for when, for whatever reason, you want processes to have exclusive access to the object. You might be interested in having the security that only a single process is interacting with the object because it doesn’t process well being manipulated from several processes at once. With a raw pointer you would need to code a wrapper that ensures ownership of the pointer and ways to transfer it so that you know which process has access to it at every moment.

    In the example project I mentioned we used both shared and unique pointers, and that was in the first year of the job where I worked with c++. How was your job for you not to see the point of smart pointers after 7 years? All single threaded programs? Maybe you use some framework that makes the abstractions for you like Qt?

    I hope these examples and explanations helped you see valid use cases.



  • I think that it’s about intolerance, some people are using a term in the intended non-slur manner, and others are intolerant about that rational desire. Even tolerant people shouldn’t torerate intolerance, so no, being pissed about people telling them to stop using the term in the intended non-slur way is not toxic.

    If that really hurts you, it’s a you thing. It’s not intentional, the meaning isn’t derived from the slur, it’s not a micro aggression. You won’t like the answer, but toughen up.


  • Because that’s like saying that “negro” is a slur when it’s being used in a Spanish textbook. No it’s a fucking color. Context is important and rewriting other languages because it seems hurtful in yours is super toxic.

    Master means supreme, master piece, the supreme piece, master ball, supreme ball, master key, the supreme key. It was used in slavery because the master was the supreme entity for the slaves, in a bad way. One specific use of a word doesn’t and shouldn’t cover the inherent meaning of it and as a consequence all of its uses.

    Tbh, I don’t care which name is used for the supreme branch, be it main or master because my team usually renames them to prod/uat/dev and branches as feature_etc, but saying that others are using racial slurs because they are using the old default that makes perfect sense is toxic.



  • Oh I just installed lightdm in arch, disabled whatever I had, enables that service and activated the autologin by writing my username in some files I don’t remember anymore. And that was it.

    Due to some hardware issues I had I even had no service enabled and used to start it manually from a non GUI environment every time I logged on, and it worked fine. Now it’s properly enabled though.











  • Yeah, 6.0.2, the version available in the arch repos.

    I’ll check the video bridge, thanks! – Update on this, apparently I was already using it since it ships by default with KDE, it seems to be a discord bug. Weirdly enough, going back to an older flatpak version (0.0.42) fixed the issue. I’ll have to check the updates to see if they fix it.

    Thanks on the window rules mention too. – Update on this, you are a saint. I added a rule for the telegram window in KDE so that it remembers its position, and it simply works. https://imgur.com/a/zrvbRPI

    Yeah, idk, when I try to use the GUI it takes way longer than the CLI command somehow, and sometimes it blocks itself. It must be something related to some programming hanging itself and the system trying to wait until it stops, but I can’t be bothered, it’s way faster to open a terminal and just typing the command or opening KDE connect and pressing the “shutdown now” shortcut. Not a Wayland issue though.

    I did use yakuake in the past but call it stupid brain, but once I read that alacritty was faster and I customized it to my liking, and then checking that foot was a little bit faster, I can’t go back. It’s stupid, I know that most of the use I give the terminal is actually spent on the commands themselves and that I can give transparency and remove window borders in yakuake, I’m just pissy that my fancy combo stopped working.