Thread with 9 posts
jump to expanded postfwiw 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 :(
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
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 :)
// 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
}
shit i forgot to autorelease,
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β¦
lmao when I asked ChatGPT about how to use 16-bit floats in GLSL ES, it hallucinated an extension by ARM (who make Mali GPUs) that, I can promise you, does not exist
ok that's enough toying with ChatGPT, it confirmed my suspicions well enough and I'm sure your feeds are already filled with this crap, I'll go and write real software instead now.
@hikari You took one for the team.