3 ms·
Using Bash examples was a bad idea. Bash scripts are by-and-large hacky things written to solve a simple problem expediently. OpenAI's output code reflects this
by alexjurkiewicz 5y ago
Using Bash examples was a bad idea. Bash scripts are by-and-large hacky things written to solve a simple problem expediently. OpenAI's output code reflects this reality. Expecting OpenAI to write Bash code defensively is like expecting OpenAI to complete SMS messages with scientific english.
- skeaker 5y agoI was going to ask a similar thing. Does this AI not pull from a massive pool of countless examples of real human-written code? In the majority of cases, perfect code is far from necessary (put another way, solving Y will generally suffice even if you should be focusing on X), and that seems to be reflected in the sample data that the AI is most likely pulling from. Obviously it isn't perfect, but I never expected it to be perfect, so I'm left more impressed that the AI functions at all than I am upset that it doesn't function absolutely perfectly in every way.
- nullc 5y agoI think it's performance is quite impressive. Consider, the very last example is a better implementation than most here would write (at least without some research). The cheeky tone is not targeted towards the machine. > Does this AI not pull from a massive pool of countless examples of real human-written code Pull from wouldn't be the right way of looking at it-- it's trained on and has presumably memorized significant amounts. But thus far no one has equip this kind of model with something like 'database access', beyond its own quadratic-cost internal self-attention.
- saurik 5y agoAnd yet only if the prompt includes "using fancy math". I'm still cracking up, and expect to still be cracking up over it tomorrow ;P.