Thread with 19 posts

jump to expanded post

fwiw I don't feel good about touchHLE's code being on GitHub since it'll get fed into Copilot as training data, but I feel trapped by network effects. I don't know if I'd have gotten half as many contributions if it wasn't on GitHub :(

Open thread at this post

and it's like… I have considered hosting a second copy of the source on touchhle.org, that'd be easy for me to do, but it's kinda pointless, I can only avoid touchHLE being fed into Copilot if I can guarantee nobody ever uploads a copy of it to GitHub, which I definitely can't

Open thread at this post

maybe I shouldn't worry though. touchHLE's code is very strange and probably makes Copilot less effective. if you're writing normal Rust or Objective-C code and Copilot uses touchHLE's code as a reference to make suggestions, they're most likely nonsense :)

Open thread at this post
// totally normal Objective-C code, nothing to see here
+ (id)stringWithCString:(ConstPtr<u8>)s {
    let new: id = msg![env; this alloc];
    *env.objc.borrow_mut(new) = NSStringHostObject::Utf8(Cow::from(env.mem.cstr_at_utf8(s).unwrap().into_owned()));
    new
}
Open thread at this post

decided to try out ChatGPT just to have fun with it

when I pasted the first line of touchHLE's README into it, ChatGPT correctly described what touchHLE is useful for and explained what an HLE is, well done!

…so then I asked it to implement strcpy. I was kind to it: I gave it the code for strtok, which is more than enough context for this task.

the answer it gave was quite funny. the function signature was half-right for touchHLE, but the body was completely wrong because it was just normal Rust code. it then gave me two paragraphs explaining what it was doing in the Rust code, completely oblivious to the fact none of it is correct in the context, context I had made sure to give it.

I'm not too surprised but I am kind of disappointed anyway…

Open thread at this post

@Girgias I think I should probably get out of the habit of putting everything on GitHub. I have a number of small things that are basically art projects and I could just put them on my personal site, it's not like I expect anyone will fork or contribute to them

Open thread at this post