• 0 Posts
  • 100 Comments
Joined 2 years ago
cake
Cake day: August 6th, 2023

help-circle




  • bastion@feddit.nltoComic Strips@lemmy.worldCentrism
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    3 months ago

    the left doesn’t believe in the right of power.

    You cannot implement something that is morally sound if it cannot handle the environmental pressures it is faced with, including the pressures of other powers and ideologies.

    it’s survival of the fittest out there. the most powerful ways of being include cooperation, inspiration, and unity, but aren’t limited to them. likewise, the most powerful ways of being include sedition, deception, and coercion, but aren’t limited to them. “but we shouldn’t have to” is a losing mentality, and puts power in the hands of those you’re appealing to.

    There’s no moral high ground to be had. But morality is based on something that is objectively true - the power which meets both the practical and emotional needs it’s faced with wins.

    in the mean time, the pendulum will swing. for the left, it’s never left enough, for the right, it’s never right enough, and for the true centrists, it’s just the tide. it can fuck you up, it can be enjoyed, and it can be used for power. that’s all.










  • Yeah. ‘lib’ isn’t a standard Python library, it’s the name of the abomination that this person created. Since python has quite a bit of useful introspection, they can do something like:

    • get the stack
    • find the exact call to abomination.add()
    • reparse the text of that line, turn the text of the comment into actual numbers, and add them

    Now, I don’t know if python keeps the comments around, so it may involve getting the filename and line number, reading the file, and manually extracting the comment text from that line.



  • Sure, but let’s just clarify that this is someone going out of their way to create this problem, using Python’s ability to read it’s own code.

    Basically, you can load any text file, including a source code file, and do whatever you want with it.

    So, a function can be written that finds out whatever’s calling it, reads that file, parses the comments, and uses them as values. This can also be done with introspection, using the same mechanism that displays tracebacks.



  • Cursed ring of acrobatics.

    Gives the player great acrobatic skill, but sticks to their finger when they wear it. And they can’t stop getting around acrobatically. Any action attempted fails, unless it is done acrobatically. Player has normal or only slightly improved stamina.

    Player: i’ll get my rope and grappleing hook and scale the wall.

    DM: lifts eyebrow you think so, do you?

    Player: sigh I throw my pack into the air and leap after it. At the peak of its arc, I flip over it, grabbing my grappling hook and flinging it over the wall as I do.

    DM: ok, sounds like difficulty of 15…