(_____(_____________(#)~~~~~~

  • 0 Posts
  • 10 Comments
Joined 3 years ago
cake
Cake day: April 11th, 2022

help-circle
  • I’ve given up on Element a long time ago. I’ve been bouncing between Nheko and NeoChat since those are the most mature Matrix clients that aren’t bloated webapps.

    What bugs me more is encryption still is kind of a mess across devices and clients. Also I hate how there still isn’t any alternative Matrix Server that’s not Synapse or Dendrite and isn’t abandoned, doesn’t suck, is relatively fast and supports at least most of the Protocol. Can’t even really blame people because I’ve tried writing my own Matrix Server and Client before but I eventually gave up because the protocol is what I call “A JSON clusterfuck”. Why can’t the protocol be as simple as IRC? Why does it always have to be JSON over HTTP?



  • COW filesystems like BTRFS/ZFS with btrbk/sanoid are great for this. Only the initial copy may take a while, but after that it only takes the delta between the source and the destination to synchronize. On my main Server I have the OS on a single drive with BTRFS and all the actual data lives on a 4 disk zpool in raidz2. I have cron jobs set up to do hourly snapshots on both and I keep about a week worth of history. The BTRFS one gets synced to an external drive every 24 hours, while the zpool gets synced to another external 4 disk zpool on a weekly basis.





  • Interesting feature, I had no idea. I just verified this with gcc and indeed the return register is always set to 0 before returning unless otherwise specified.

    spoiler
    int main(void)
    {
        int foo = 10;
    }
    

    produces:

    push   %rbp
    mov    %rsp,%rbp
    movl   $0xa,-0x4(%rbp) # Move 10 to stack variable
    mov    $0x0,%eax       # Return 0
    pop    %rbp
    ret
    
    int main(void)
    {
        int foo = 10;
        return foo;
    }
    

    produces:

    push   %rbp
    mov    %rsp,%rbp
    movl   $0xa,-0x4(%rbp) # Move 10 to stack variable
    mov    -0x4(%rbp),%eax # Return foo
    pop    %rbp
    ret