-54
submitted 4 months ago* (last edited 3 months ago) by Aatube@kbin.melroy.org to c/rust@programming.dev

Not to throw shade, just wishing that somebody here can understand. Whenever an input is reasonably long, an analyzing function will crash, and this PR aims to fix that with a mechanism that contradicts the maintainer's understanding while a similar C implementation does not need this fix. ~~Clearly, the maintainer has not heard a certain programming mantra...~~

top 18 comments
sorted by: hot top controversial new old
[-] jwaters42@beehaw.org 47 points 4 months ago

After the xz debacle, I think we should resist the temptation to rush maintainers into accepting code that they don't fully understand.

[-] gedhrel@lemmy.world 45 points 3 months ago

Incidentally, this kind of passive-aggressive pressure is the kind of thing that might be considered a legitimate security threat, post xz. If you need to vent, vent in private. If "it works for you" but the maintainer is asking legitimate questions about the implementation, consider engaging with that in good faith and evaluating their questions with an open mind.

[-] lysdexic@programming.dev 10 points 3 months ago

Incidentally, this kind of passive-aggressive pressure is the kind of thing that might be considered a legitimate security threat, post xz.

Yes, OP's attempt to bully a maintainer into accepting his PR is a very shitty thing to do.

Throwing veiled personal attacks, such as insinuating a developer is incompetent or dumb, is also very bad form.

This says more about OP than anything. I hope I never have to work with anyone like that. What a shit show of a person.

[-] Solemarc@lemmy.world 26 points 3 months ago

What mantra? I think this maintainer is doing the right thing here by trying to understand why this fix works.

You should always attempt to address the root cause of an issue instead of slapping band aid patches onto everything.

To me it looks like the maintainer is trying to find out what exactly is wrong. "this doesn't happen in our C implementation" implies that there's something wrong with the rust code specifically.

[-] Ogeon@programming.dev 16 points 3 months ago

A "mantra" more programmers should have is to fix the cause of the issue, and not just the symptoms. You have to understand what the problem is to be able to fix it.

[-] Giooschi@lemmy.world 11 points 3 months ago

while a similar C implementation does not need this fix

No, that implementation also needs the fix. It's just that it was never properly tested, so they thought it was working correctly.

[-] Aatube@kbin.melroy.org -2 points 3 months ago* (last edited 3 months ago)

They tested the same strings on that implementation., though judging by the recent comments someone’s found something.

[-] Giooschi@lemmy.world 7 points 3 months ago

They tested the same strings on that implementation

The strings were the same, but not the implementation. They were testing the decoding of the strings, but the C function they were looking at was the one for encoding them. The decoding function was correct but what it read didn't match the encoding one.

though judging by the recent comments someone’s found something.

Yeah, that's me :)

[-] gedhrel@lemmy.world 7 points 3 months ago

Which mantra is that? The ellipsis doesn't offer a clue.

[-] tyler@programming.dev 4 points 3 months ago

Looks to me like a reasonable conversation is happening trying to find the underlying issue. Where is the PR being held up?

[-] Aatube@kbin.melroy.org -2 points 3 months ago* (last edited 3 months ago)

Since I posted it, the conversation has moved forward. Before that it was just two people being justifiably confused.

[-] Maddier1993@programming.dev 4 points 3 months ago

You must understand that maintainers need to worry about supply chain attacks ever since the xz debacle. So I suggest you wait.

[-] Aatube@kbin.melroy.org 1 points 3 months ago

Thanks. All I wanted was to have someone answer with what's actually going on, and thanks to Giooschi below that has happened, and there indeed isn't anything to do at this point. I've tried to edit the post but couldn't find a proper wording.

[-] Miaou@jlai.lu 2 points 3 months ago

OP is welcome to use a patched version in their repo and stop harassing maintainers

this post was submitted on 18 Apr 2024
-54 points (9.1% liked)

Rust

5590 readers
32 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS