• 0 Posts
  • 16 Comments
Joined 2 years ago
cake
Cake day: June 10th, 2023

help-circle

  • Yes it is correct. TLDR; threads run one code at the time, but can access same data. processes is like running python many times, and can run code simultaneously, but sharing data is cumbersome.

    If you use multiple threads, they all run on the same python instance, and they can share memory (i.e. objects/variables can be shared). Because of GIL (explained by other comment), the threads cannot run at the same time. This is OK if you are IO bound, but not CPU bound

    If you use multiprocessing, it is like running python (from terminal) multiple times. There is no shared memory, and you have a large overhead since you have to start up python many times. But if you have large calculations you can do in parallell that takes long time, it will be much faster than threads as it can use all cpu cores.

    If these processes need to share data, it is more complicated. You need to use special functions to share data, like queues and pipes. If you need to share many MB of data, this takes a lot of time in my experience (10s of milliseconds).

    If you need to do large calculations, using numpy functions or numba may be faster than multiple processes, due to good optimizations. But if you need to crunch a lot of data, multiprocessing is usually the way to go






  • My thoughts too, what makes this alloy so amazing? It seems to me that sapphire is harder, and otherwise similar use cases

    No mention/comparison to Sapphire in the article that I could see, disappointing.

    Maybe it is the sintering process that makes it interesting, could be easier to shape maybe 🤔



  • I would recommend using one of the distros backed by a big company or have very long track records. They are less likely to break on updates, and have a higher chance of supporting any uncommon hardware you may have.

    • Fedora
    • Ubuntu
    • Mint
    • Pop OS

    If you have new hardware (e.g. GPU newer than 6 months) you will probably have issues. Follow the recommendations from the hardware supplier, or use something arch based. I used Manjaro a while when I got new hardware.

    Besides those tips, you should decide which desktop environment you like best. I prefer gnome, as I enjoy to spend time in apps and not on in settings. Others prefer customization. Have a look at https://youtu.be/09cYQJBgKEs?si=KX8FZeMRcMlPTzG2



  • I use Debian + Gnome without custom extensions and like it.

    I don’t use too many programs, so in the overview I have Firefox in position 1, signal in position 2 and steam in 3. Then I use Win+1,2,3 to launch them.

    For other programs, I hit Win and then start typing the name and hit enter.

    For switching between windows, i use alt-tab or alt-(key above tab). If I have many windows or playing game in full screen, I hit Win-key once and choose the window i want.

    I don’t use workspaces, never found a good flow. And I rarely miss a taskbar.