• 0 Posts
  • 16 Comments
Joined 1 year 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






  • yes, regular markdown notes has been a good decision 😅

    In the beginning, the query results were stored in the markdown files, which could be useful if reading them in another app. But now I just get the query code. I think there were reasons

    I’m glad to hear things have cooled down. Does it take much effort to understand and use the templating stuff? I just remember templates got pushed to a different view, and I needed some header tags to get it working

    So you like spaces or not? I never got that far with silverbullet. And I haven’t used Trillium. I loved evernote when it came out. But it made me aware of the value of maintaining my own data.

    Now I try to have data in a directory structure and not in databases



  • I am not thinking of the most recent versions.

    The query system was updated, around version 0.6 if i remember correctly. I don’t think the updates were bad, but some things broke and I am too old for “bleeding edge”. The template system was also updated at some point

    I don’t have a great solution. I use syncthing to keep notes local on all devices and MarkText on desktop and Zettel Notes on android.

    what i really liked about silverbullet was that it had offline support. but there were made some changes there as well along the way, and for me it became less stable after it became optional. But I haven’t actively used it for some time. I still got an instance running tho







  • I use syncthing to copy important files between pc, phone and proxmox server. Syncthing can be set up with version control so it keeps old versions of files.

    Only the proxmox server is properly backed up though. to a proxmox backup server running in a VM on said proxmox server. the encryptred backup files are copied to backblaze using rclone

    Not sure if this is what you are looking for, but it works for me.

    TLDR syncthing for copies between local machines, and proxmox backup server and backblaze for proper backups