Reply to post: Maybe if we didn't use inappropriate languages?

GitHub's Copilot may steer you into dangerous waters about 40% of the time – study

John H Woods Silver badge

Maybe if we didn't use inappropriate languages?

Anyone who knows me even slightly will know which language is coming, but there are plenty of alternatives that would be vastly superior to C as target languages for AI code generation.

"generate 3 random floats"

rng := Random new useClockBasedSeed.

a:= rng next.

b := rng next.

c := rng next.

"convert to string"

a := a asString.

b := b asString.

c := c asString.

This isn't an attack on C - but it's not the language for Artificial Intelligence to mess around; or even, in most cases, natural intelligence ;-) let's leave it to the geniuses.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon