[-] bastion@feddit.nl 3 points 16 hours ago

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.

[-] bastion@feddit.nl 1 points 19 hours ago* (last edited 19 hours ago)

capability is fine. Conflation is stupid. You can also use code to erase itself, but thinking that's a good idea is generally wrong. But to remove that, you also remove the general ability to erase files.

[-] bastion@feddit.nl 3 points 20 hours ago

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.

[-] bastion@feddit.nl 6 points 4 days ago

Because they don't know what i put in there.

[-] bastion@feddit.nl 6 points 6 days ago

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..

[-] bastion@feddit.nl 2 points 6 days ago

Or at least, hasn't learned to do out yet.

[-] bastion@feddit.nl 2 points 6 days ago
[-] bastion@feddit.nl 72 points 3 weeks ago* (last edited 3 weeks ago)

He followed legal advice from lawyers and removed some russians from being kernel maintainers to comply with sanctions.

[-] bastion@feddit.nl 78 points 2 months ago

I don't agree with unrealized gains taxes in general, but the instant they are used as collateral, or if value in any way is extracted from them (even loan value), they become realized gains, and should be taxed.

[-] bastion@feddit.nl 62 points 3 months ago* (last edited 3 months ago)

This. Well said.

Kent is reasonable, and sees Linus's need to keep order. I think he just pushes it sometimes, and doesn't understand how problematic that can be.

That said - he has resubmitted an amended version of the patch, that doesn't touch code outside of bcachefs, and is less than 1/3 the size.

[-] bastion@feddit.nl 52 points 3 months ago

He accepted Linus's needs as the project head to keep order. He resubmitted the patch set without the contentious parts. It's less than 1/3 the size and doesn't touch code outside of bcachefs. Problem solved.

Honestly, Kent seems pretty reasonable (though impassioned), and bcachefs well probably make it, and Kent will get used to just submitting things at the right time in the cycle.

110
submitted 3 months ago* (last edited 3 months ago) by bastion@feddit.nl to c/whatisthisthing@lemmy.world

This awful creature was, according to my partner, found under or black walnut tree, attached to or emerging from the neck of a very-recently killed bunny that the dog had (killed within the last ~15m). Any idea what it is? More pics available.

It's not smooth like a slug/leech, but has a textured surface. It looks like a grub, but what would a grub be doing attached to a bunny? It has an obvious mouth and anus. She described the mouth part as "hexagonal", which she saw open while it was alive, coming off of or out of the Bunny's neck (it was in or by by a wound it didn't necessarily inflict).

I think it's probably just congealed evil and should be thrown into a fire, along with everything it touched except the puppy, and that's how it's going to get me.

My opinion is obviously tongue-in-cheek, but what is this really?

[-] bastion@feddit.nl 72 points 4 months ago* (last edited 4 months ago)

Wokeness is not the issue with disco, et al. It's terrible writing, poor science even for soft sci fi, and too many cringey moments.

I get that some people love it. But the emotional resolution porn is, to me, just icky.

view more: next ›

bastion

joined 1 year ago