News for hackers. Stuff that matters.
Re:Windows 11 calls a zip file a 'postcode file' in UK English by LordShredda on Wednesday June 07, 2023 @05:19PM (#36233738)
Why the hell does it have to be AI? A regex would be faster to run, test, and diff check. Even better,instead of paying a programmer to waste your time just pay an actual editor to proof read it
Re:Windows 11 calls a zip file a 'postcode file' in UK English by TeMPOraL on Wednesday June 07, 2023 @05:40PM (#36233976)
It doesn't. It perhaps shouldn't.

That said, I found myself doing little text mangling tasks with GPT-4 instead of appropriate command line tools, because fuck if I remember the flags to sort and unique, and it's much faster to just describe what I want and have the LLM take a crack at it.

This is why, I think, you'll see a lot of simple(ish) tasks being done by LLMs, at couple orders of magnitude more compute cost - it's just that much more convenient.

Re:Windows 11 calls a zip file a 'postcode file' in UK English by lalopalota on Wednesday June 07, 2023 @05:56PM (#36234174)
Typing out the instructions, copying and pasting the data, then analyzing the output for correctness is faster than running `sort -h` ?
Re:Windows 11 calls a zip file a 'postcode file' in UK English by messe on Thursday June 08, 2023 @02:02AM (#36237816)
It can be less mental effort, not necessarily faster.
Re:Windows 11 calls a zip file a 'postcode file' in UK English by TeMPOraL on Thursday June 08, 2023 @04:27AM (#36238838)
Faster than recalling or finding out again that it's `sort -h`, and not `sort -n` or `xargs -wtf -- sort -xkcd {}` or whatever.
Re:Windows 11 calls a zip file a 'postcode file' in UK English by RheingoldRiver on Wednesday June 07, 2023 @06:20PM (#36234448)
But the LLM already "understands" the changes that need to be made. A regex to figure out if "flat" means "apartment" or not? Consider the text (which I just made up & I'm really not a fiction writer so I apologize for it being terrible):

"Oh, I live near there too! House or flat?"

Stanley hesitated. These questions were getting more and more personal. Was this her idea of casual conversation? Or was she trying to get to know him personally? Well, he thought, what could go wrong if I treat this like a conversation. "Flat," he said. And then asked a question of his own. "What kind of pop do you like?"

How are you going to decide if "flat" is talking about non-fizzy pop/soda, or a dwelling space with a regex? It's a lot closer to the word "pop."

Of course, GPT handles this perfectly https://chat.openai.com/share/fb6a56a2-749c-4e71-9506-541bb8...

Re:Windows 11 calls a zip file a 'postcode file' in UK English by hunter2_ on Wednesday June 07, 2023 @11:22PM (#36236767)
Some places in America do say "pop" instead of "soda," so I'm hesitant to call it perfect...

But I'll admit I agree that this is well beyond the scope of regex.

Re:Windows 11 calls a zip file a 'postcode file' in UK English by numpad0 on Wednesday June 07, 2023 @10:43PM (#36236517)
Because replacing all appearances of apartment with apartment just apartment out isn’t going to work?