• 3 Posts
  • 189 Comments
Joined 3 years ago
cake
Cake day: July 6th, 2023

help-circle

  • I’m not really an OS guy, so forgive me if this question has an obvious answer. When a thread migrates, it keeps its stack and register, thus any data contained within this can be used in the destination process (correct me if I’m wrong). Thus sending a message could be as simple as migrating a thread and having that thread copy data from its registers or stack memory to the current process’s memory space. However, how does the thread find process-specific addresses and handles (e.g. a mutex)? For example, I’m picturing a scenario where you are implementing an MPI library and want to use thread migration to send (small) messages from one local process to another. The thread orchestrating the send simply loads the data from memory and migrates, but how will it know where to store the data to? Would there need to be a data structure stored in a fix offset in memory that contains the destination address of the receiving process?









  • Biggest con of KDE + Krohnkite (to me) is no text-based config. I really have no desire to pour through the GUI to set up all my keybinds. I’ve tried this setup before, and honestly I mostly like it. However anytime I want to change something I just hate having to click through a menu with my mouse. The search bar helps, but often you’ll spend a lot of time guessing what the devs decided to name a setting. I went back to Sway and have no regrets. Though I’ll admit I wish there was something that was basically Sway with the benefits you mentioned here.







  • The amount of CPU time compiling code is usually negligible compared to CPU time at runtime. Your comparison only really works if you are comparing against something like Rust, where less bugs are introduced due to certain guarantees by the language.

    Regarding “language constructs” it really depends on what you mean. For example using numpy in python is kind of cheating because numpy is implemented in C. However using something like the algorithm libraries in Rust woulf be considered fair game since they are likely written in Rust itself.


  • KRAW@linux.communitytoLinux@lemmy.mlThe Terminal Question
    link
    fedilink
    English
    arrow-up
    9
    ·
    9 months ago

    kitty. The ssh kitten is enough reason to use it. I work ob a lot of different systems that require OTP. Using the ssh kitten I can type the OTP once and can spawn new terminals that ssh and cd to the remote direvtory without logging in again. Obviosly the tabs and window panes are are a must too. There’s tons of other useful features that I like, like using hints to select nunbers, filenames, urls, etc in the terminal output.