3 ms·
I gave your prompt to o1-preview and with one correction it did something that seems good to me (I am not a rust programmer, so please double check). :) first
by zurfer 2y ago
I gave your prompt to o1-preview and with one correction it did something that seems good to me (I am not a rust programmer, so please double check). :)
first attempt: https://onecompiler.com/rust/42w2duuqh https://onecompiler.com/rust/42w2duuqh
final result: https://onecompiler.com/rust/42w2e3jr4 https://onecompiler.com/rust/42w2e3jr4
PS: it "thought" about it for 2 x 60 seconds
- jcgrillo 2y agoThis is looking better! L49 is giving me a little anxiety though, I'd really love to see some kind of justification for that decision. Compare e.g. to Lemire's[1]. EDIT: To be clear, I do understand that I'm making an unreasonable demand. I know the process that came up with this program has no ability to justify this or that "decision" (deliberately scare quoted because it doesn't actually have agency and can't decide at all). And that's the problem. That's why I find it very difficult to trust it. [1] https://github.com/lemire/FastPFor/blob/52e45deeab9c3a481daa9d2bb00d10e1ba6db9fd/headers/simple8b_rle.h#L123 https://github.com/lemire/FastPFor/blob/52e45deeab9c3a481daa...