Thread with 6 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