News for hackers. Stuff that matters.
Re:Pairing with GPT-4 · Fly by bradgessler on Friday March 31, 2023 @11:28AM (#35388575)
This is a use case I could see GPT really excelling—porting libraries from one programming language to another. How awesome would that be? Newish ecosystems like Rust, Crystal, Elixir, etc. could have a larger set of libraries in a shorter amount of time.

There’s still a lot of need for a human to be involved, buts it’s not hard to see how this will make individual developers more productive, especially as LLMs mature, plug themselves into interpreters, and become more capable.

Re:Pairing with GPT-4 · Fly by weatherlite on Friday March 31, 2023 @12:10PM (#35389253)
I don't share the enthusaism since it probably means humans won't be looking at code much anymore, at least not as a paid job.
Re:Pairing with GPT-4 · Fly by reidjs on Friday March 31, 2023 @04:33PM (#35393227)
The goal shouldn’t be to code, but to create useful software.
Re:Pairing with GPT-4 · Fly by int_19h on Friday March 31, 2023 @04:48PM (#35393425)
The real concern is that code will become too incomprehensible to be debugged by most humans before we solve hallucinations etc (if they even are solvable) leading to bugs.
Re:Pairing with GPT-4 · Fly by chaxor on Sunday April 02, 2023 @01:29AM (#35407481)
I am starting to think of this more in the sense that 'not many people write in assembly anymore' or 'some people write C - sure - but writing in Nim can be a nicer experience and can take care of some of the details for me' and it has been helpful for me to come to terms with the direction things are moving. Granted, this is a big step to higher level "programming" (and those quotes are now bigger than ever) but, as pointed out, these LLMs are even better when you know how to use the linguistic interface like a senior dev rather than a person off the street. Effectively, now devs can now work to make decisions closer to the C-suite by framing the problem and constraints, and spend less time on the frustrating errors while developing.
Re:Pairing with GPT-4 · Fly by rmak on Friday March 31, 2023 @01:02PM (#35389973)
By 2025, the entire WordPress library, including popular plugins, will be written in Rust/C, and it's inevitable that we'll be converging towards assembly language for all software, including web applications.
Re:Pairing with GPT-4 · Fly by melvinmelih on Friday March 31, 2023 @01:16PM (#35390092)
Indeed - why stop at human-readable code? At some point in time we will be solely reliant on AI to understand our own codebase.
Re:Pairing with GPT-4 · Fly by akiselev on Friday March 31, 2023 @02:13PM (#35390977)
Anyone remember Dreamweaver or Microsoft Word HTML output? I imagine the AI generated code will be a lot like that - massively over-constrained and over-engineered to fit the impedance mismatch of a WYSIWYG (what you speak is what you get) editor.

You thought GUIs were bloated and slow before? Just you wait!

Re:Pairing with GPT-4 · Fly by akhosravian on Friday March 31, 2023 @02:41PM (#35391418)
Is there something in particular that leads you to that belief?
Re:Pairing with GPT-4 · Fly by elwell on Friday March 31, 2023 @03:15PM (#35391977)
Re:Pairing with GPT-4 · Fly by int_19h on Friday March 31, 2023 @04:25PM (#35393111)
I've been experimenting with GPT-4 to see how it could be integrated in video games for NPC decision making. After trying a few different approaches to give it access to the world state for reasoning, I found that it seems to do best when given a bunch of table definitions and told to write SQL queries against them; for some reason, it navigates object graphs much worse. Here's an example schema and session (the game here is Mount & Blade 2: Bannerlord, which is convenient because it's written in C# and it's easy to access and dump the entire game state in whatever format):

https://gist.github.com/int19h/4f5b98bcb9fab124d308efc19e530...

Take a close look at the SQL queries it generated to answer the question. On one hand, it's very impressive that it can write a complex query like this as part of its reasoning in response to a question like "pick a bride for your son":

   SELECT name, age, clan_name FROM (SELECT * FROM people WHERE name IN ("Mesui", "Abagai", "Yana", "Korte", "Bolat", "Chagun", "Alijin", "Unagen", "Sechen")) AS potential_brides INNER JOIN clans ON potential_brides.clan_name = clans.name WHERE clans.tier = (SELECT MAX(tier) FROM clans WHERE kingdom_name = (SELECT kingdom_name FROM clans WHERE name="Oburit"))
On the other hand, this is clearly far from the optimal way to write such a query. But thing is - it works, and if there's no way to get it to write more performant queries, the problem can be "solved" by throwing more hardware at it.

So, yes, I think you're right. The more code out there will be written by AI, the more it will look like this - working, but suboptimal and harder to debug.

Re:Pairing with GPT-4 · Fly by chaxor on Sunday April 02, 2023 @01:38AM (#35407527)
I'm always baffled that people complain that the code provided is not 'performant enough' or 'is too verbose', etc. It's usually providing a solution that is the most typical solution given by all programmers - but the beautiful thing about it is - you can ask it to adjust the code to match a given constraint. Just like your colleague. Only usually far, far better honestly - because you get a response in about 3 seconds, and iterate to the answer in about a total of t minutes, rather than receiving something (maybe it's good, maybe it's entirely missing the constraints) .. in 4 days.
Re:Pairing with GPT-4 · Fly by pmoriarty on Friday March 31, 2023 @03:34PM (#35392293)
And after that we'll just stop being able to understand any code whatsoever, since it'll be written by AIs in a way no human could ever understand.

Not to mention that humans will stop learning how to program, since they won't need to as the AIs will be doing all the coding for them.

There'll be a general de-skilling of humans, as they offload the doing of virtually everything to robots and AIs.

Then Idiocracy will have truly arrived, only it'll be even worse.

Re:Pairing with GPT-4 · Fly by TheHappyOddish on Friday March 31, 2023 @08:35PM (#35395734)
I for one love Brawndo!
Re:Pairing with GPT-4 · Fly by mgoetzke on Sunday April 02, 2023 @02:06PM (#35413360)
It's got electrolytes !
Re:Pairing with GPT-4 · Fly by resters on Friday March 31, 2023 @04:05PM (#35392782)
I thought that at first.

I think with LLMs we will start to see code with better and more descriptive comments, since there is significant advantage to be found when the code has as much information and context as possible.

Human programmers often hoard that for job security or out of laziness.