Hacker News new | ask | show | jobs
by glitchc 248 days ago
But what's the prompt that led to this output? Is it just a simple "Write code to divide a by b?" or are there instructions added for code safety or specific behaviours?

I know it's Karpathy, which is why the entire prompt is all the more important to see.

1 comments

"Write me a code that divides a by b and make sure it is safe and handles all edge cases"[1] or something and some languages have more than others.

[1] Probably with some "make you sure handle ALL cases in existence", or emphasis, along those lines.