Thread with 19 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.
@hikari objective rust
@leftpaddotpy yes π
@hikari I feel this, but then I still just dump it on GitLab. But that's mainly because GitLab to this day still has features that GitHub doesn't have...
But then my projects are not at all on the same scale as touchHLE, so not very comparable :-/
@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
@hikari you might be able to disable* this: https://github.com/settings/copilot
*y'know, to the extent one trusts this to actually do what it says it will; presumably there's already damage done, but..
@charlotte oh, thanks, I couldn't find the setting when I looked for it earlier. I didn't realise it was account-wide rather than repo-specific
@charlotte wait i don't see this option at all, just ads for copilot. uhhhhhhh
@hikari >:C this is why i hedged with "might". i guses this implies you have to be a copilot user to opt out!? rrrrrrrrrrrrrrrrrrrrrrrrrrrrr
@hikari ... oh. ok. it turns out what they mean by "my code snippets" means something entirely different. https://docs.github.com/en/copilot/configuring-github-copilot/configuring-github-copilot-settings-on-githubcom#enabling-or-disabling-telemetry
@hikari https://github.com/features/copilot/#faq-privacy-copilot-for-individuals (tl;dr they save the copilot request/response unless that's unchecked; doesn't relate to which repos are mined at all)