Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)A
Posts
1
Comments
208
Joined
3 yr. ago

  • Pro tip: when copying a link to a Lemmy/Piefed/Kbin/etc post, please make sure you use your instance's option to copy the link to the post on its original instance (the instance the post was made on), rather than simply copying the link to the post on your instance out of your URL bar. On your instance's web interface, that option is in the More drop down next to the Boost button, just below the post title. (On a Lemmy instance, the link to the original post is the Fediverse icon right next to the upvote and downvote buttons, and you can right click and Copy Link from there).

    Obviously, when you open a post in the browser on an instance that isn't yours by clicking a link (for example, this link to this same post on my instance, which is a vanilla Lemmy instance), you can't interact with it, because you aren't logged in, because you don't have an account on that instance. To interact with it, you need to open the same post through your own instance.

    If you have a link to a post on the instance it was created on, you can simply paste that URL (the whole thing) into your instance's search bar to open it on there, so you can vote/comment/etc. Some mobile apps can even do this automatically. However, this doesn't work if you paste a link to a post through an instance other than the instance it was created on. In order to interact with the post you just linked to, people have to click the link to open the post on your instance, then click the button on there to copy the original link, before pasting it into their own instance. It's polite not to make them go through that extra work.

    Judging by your account age, it seems you're new to Lemmy, so you probably didn't know that. Just something to keep in mind for future. :)

  • rkyv is not like serde. There is no process of deserialization. The function rkyv::access(...) takes a &[u8], performs a consistency check, then casts the pointer it was passed to the desired type and returns Result<&T, Err>. I will say this again: "deserialization" in rkyv is a reference-to-reference conversion.

    As you can imagine, it's very fast, but the tradeoffs are massive. The serialized bytes must exactly match the memory layout of a struct (usually distinct from the type being serialized) called the "archived type" (which must be #[repr(C)] or #[repr(transparent)], and which is most commonly generated from the fields of the struct being serialized using a derive macro). More importantly, there is nowhere to stick deserialization code which could convert a Unix timestamp to a jiff::Timestamp.

    You can't really implement custom serialization schemes for third party types with it, at least not unless you want to define that #[repr(C)] struct yourself, and/or you're okay with actually deserializing (in rkyv, the Deserialize trait accepts a reference to the archived type and returns an owned value of the serialized type, usually by effectively cloning it) and the performance cost that entails, and with how my codebase is currently architected, I'd have to redo it every time I used the value. rkyv support kind of has to be baked into a library from the get-go for it to be worthwhile.

  • What country do you live in?

    If it's anywhere near the west, odds on their leader is either already fascist or facing serious competition in the polls from one.

    What's stopping YOU?

  • sigh

    I used chrono because it allowed storing a statically known timezone with 0 additional runtime bytes and had rkyv support. Both very important features for my application (rkyv database containing millions of timestamps).

    I have yet to find a replacement library that supports either of these features.

  • There are two kinds of Fediverse users: Americans, and people who never miss an opportunity to tell you how much better they are because they were born somewhere else

  • PCManFM (rare LXDE W)

  • They saw curl | bash and were like you know what the problem with this is? It's deterministic

  • Very like Google, in that regard.

  • Don't disrespect people with a cuckolding kink by comparing them to vibe coders

  •  python
        
    try:
        your_entire_program()
    except:
        import pdb
        pdb.pm()
    
      
  • ipv6 is strictly superior and i will die on this hill

  • i'm choosing to believe the man on the right is mean to be jeff bezos

  • This tastes oddly salty. Did --

    -- no, I shan't ask

  • I can't do much except hope your government gets better. Best of luck fighting off all those """protecting the children""" laws, but if you can't (and let's face it, who can control their government?), I'll have a big stack of VPNs and torrent sites waiting for you if you need them.

    (In victory I am merciful. Remember this, dear Briton, the next time you feel inclined to point and laugh at America for having a fascist government.)

  • That URL should be glad I didn't send it to OneTab

  • eh, switch them

  • No, seriously, what is it?

    If it's supposed to be his dick, huh? Who gets hard when they get angry?

  • Pro tip: if you install the browser extension LibRedirect, if you click a link to Reddit/Xhitter/Instagram/TikTok/etc, it will automatically redirect it to a privacy respecting frontend! Fully customizable which sites get redirected and which services/hosts they redirect to. Also has a "one-time disable" button for when you just can't resist the urge to sign in and leave a comment.

    If you use Firefox on mobile (or a fork thereof), you can get this extension there too! If you don't use Firefox on mobile, consider doing that!