• 3 Posts
  • 445 Comments
Joined 3 年前
cake
Cake day: 2023年7月1日

help-circle
  • It’s funny cause I use AI in like the opposite way, I don’t dare let it change or add code unless it’s really simple and tedious, and even then I watch it like a hawk.

    How I use AI is to teach me about repos and libraries with obscure, hard to understand, or even no documentation. I do ask for help when I hit a roadblock but rather than taking the code it gives me, I dissect it. I ask what each little weird thing does and why it’s there and the AI’s explanations give me enough to look up the right things and verify it’s legit. Then I’ll write my own version with the confidence that I know what each piece means.



  • A lot of AI censorship that OpenAI used in the past was just something that detects a keyword and maybe sentiment analysis. Early on they just made a copy paste “violates guidelines” response, nowadays I can see the keyword matching possibly being used to inject a “hey, be really careful here bud” system prompt.

    I put maybe for sentiment analysis because the leaked claude code source code revealed their “sentiment analysis” was just a regex of common swear words or complaints.








  • I’ve moved away from Classes in general unless it truly makes code more streamlined. The main language I was taught in highschool was Java and it’s just so liberating not needing to turn everything into an object.

    But recently I’ve used a Class specifically for Inheritance. I’m making an extension to Pytorch and almost everything in Pytorch uses Tensors as a medium. I made a new kind of tensor that inherits the Tensor class to add specific restrictions on how it behaves. Because of this, this new tensor object can be used with any of the preexisting pytorch functions while also validating the results, reverting to a Tensor if it becomes invalid.

    Even in this situation though, all my programming logic rests in it’s own static functions, and the class contains functions that call the static version. The only actual logic the inherited object handles is validating the data.

    Because of this, I feel like inheritance is most useful when you’re inheriting someone else’s code to make it compatible with their library. I don’t think I’ll ever inherit my own objects because that’s how you end up with Java.


  • Wirlocke@lemmy.blahaj.zoneto196@lemmy.blahaj.zoneRule
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 个月前

    I’m not so worried about how tiny we are as much as I’m worried how small the max speed of mass is (speed of light). If space warping drives end up impossible then the vast majority of what you can see at any position in the universe is already unreachable for that observer. Viewing eternity through onesided glass.