by dkjaudyeqooe · 3y ago · 0 comments
Human creation -> ChatGPT -> Human query -> Human interpretation
The last bit, the interpretation, is particularly important. Just like we're predisposed to seeing faces everywhere, we're predisposed to seeing meaning, and perhaps "intelligence", everywhere. In this case the meaning is very convincing since it comes from other humans, diced and sliced, but is merely presenting ourselves to ourselves in an interactive way, using our style of discourse.
Is it literally as good as a human software engineer? No, but it's also better too. I doubt ChatGPT could debug as effectively as a veteran software engineer (... In fairness, most humans can't either.) It can debug pretty decently, but there's still work there. That said, the breadth of knowledge encoded in a language model is stunning. I'm pretty sure you can't just regurgitate an implementation of the discrete cosine transform in Rust without at least pulling up Wikipedia, but ChatGPT can, because well. It doesn't have to pull it up.
I still don't think ChatGPT is ready to replace human programmers. It may be a long time before we have general enough intelligence to replace knowledge work meaningfully with AI. However, if you think it's not happening ever, because machines are not "intelligent" based on some set of goal posts, I've got bad news: that's not part of the job listing.
It's easy to laugh at MSN publishing articles written by GPT; that's just stupid. However, at some level you have to admit that the input to ChatGPT is almost as high level as directives from project managers, and the output is almost low level enough to simply input directly into source control. That leaves very little to the imagination for how this could quickly spiral out of control.
"Write a function that sorts the elements of a c string backwards, in C." "Add a flag to the sort function which makes it sort the string forward." "Could you write a endian swap function for double argument in PIC assembler?" "Could you write a binary sort in PIC 8-bit assembler" "Write a Javascript function that prints the day of the week together with some Chinese words of wisdom."
It had no problem doing any one those. I ran them all, except the assembler ones.
The question is how good it is to process larger chunks of code and makes changes to it.
People thinking about becoming programmers might need to rethink their plans if this one improves ...
EDIT: Oh dear. I introduced bugs in its sort code and it found them and explained what they did.
It's nothing short of a phenomenal milestone.
[1] https://twitter.com/GuiAmbros/status/1599282083838296064
Can you see if it solves an advent of code problem whose solution hasn't been posted yet? If it did I will consider this an almost publishable breakthrough.
9 compile errors, some due to cargo.toml issues (it only generated main.rs). But mostly worked.
The post we’re discussing is also pretty impressive, a working lexer/parser
> People thinking about becoming programmers might need to rethink their plans if this one improves ...
Very true, and this thought definitely crossed my mind as well. In the short term I imagine this is going to be like any other tool, it will increase your leverage, and make it possible for you to write code faster.
For example, I fed it 100 lines of a Django model and asked it to write some query code for me. Produced something that was possible faster than I could have. The few slight deficiencies it did have (optimizations) basically felt like me doing a code review.
These models are amazing at regurgitation. They have no skill at reasoning and any solution outside their training set. They have a distinct disability for precision in anything remotely novel or large. And they will bullshit subtle bugs all over the place at scale.
Even a junior programmer would produce more value than the next generations of this, simply because they can take vague English instructions and actually make iterative progress across a huge codebase, test those changes for all sorts of vague constraints, and be precise. There’s no ability for that here.
I have a feeling though that tools like this will lower the skill threshold for programming by a lot.
I gave it this code I just made and asked it what it does and it figured it out:
public class mean_sink {
double sum;
long n;
public mean_sink(){
}
public void add(double d){
sum += d;
n++;
}
public double getMean(){
if(n == 0)
return Double.NaN;
return sum/n;
}
}
I asked it to improve the numerical accuracy and it did it with BigDecimal instead. I asked it to only use doubles and it did some strange reciprocal summation when I was "hoping" for Kahan summation algorithm. Its "reciprocal summation" did not work. But it made a correct Kahan when I asked for it.I dunno. This is insane anyway. It is really hard to grasp the consequences.
At the rate this is evolving that wont be a limitation for long.
My 14 yr old son thats taught himself to code in c# over the last few years is going to be put of a potential job before he cab be taught to code professionally.
This is quite frightening, the rate of evolution.
Do you write code close to the machine at $job?
I wanna try with more feature and UI heavy request.
I actually comment because of your edit in your response : you manually introduced bugs, reran the process, and it seen you broke it ( fine ) but was able to explain it to you in English ?
Where is that comming from ? Adjacent comments and git comments?
I fed it it's own sorting function but I added bugs to it and asked it to spot the bugs.
This is the part that is going to change the way people work in fundamental ways very quickly. It will turn good software developers into non-shitty project managers, project managers into ?, and mediocre developers into ?.
void sort_string(char *str, int backwards) {
// Get the length of the string
int len = strlen(str);
// Use a bubble sort algorithm to sort the string
for (int i = 0; i < len; i++) {
for (int j = 0; j < len - i; j++) {
// If the current character is greater than the next character (or less than, if sorting backwards), swap them
if ((backwards && str[j] < str[i + 1]) || (!backwards && str[j] > str[i + 1])) {
char temp = str[j];
str[j] = str[j + 1];
str[j + 1] = temp;
}
}
}
}
Will yield:
"The sort_string() function contains two bugs. The first bug is in the inner loop conditional statement [...] The second bug is in the termination condition of the inner loop."and a detailed explanation of the fix and what the problems are.
The problem is that the working market might be flooded by this since way more people will be able to code ... Github Co-pilot is nowhere near this.
Source : https://youtu.be/h0962biiZa4?t=2486
When an AI is able to train itself (like a human) is when developer jobs will be in trouble. Fortunately, every other profession will also be out of a job as well.
Until then, rote work will continue to be automated more effectively but no more.
But replacing computer operators is scalable. So I definitely expect most office people including low skilled developers to be replaced by AI in a 20 years. High-skilled developers might survive (and I'm not sure if I'd qualify) but obviously for most workers that's not very encouraging.
Rewrite the following in Rust:
size_t strlenNEON(const char *p)
{
const char *const top = p;
uint8x16_t c16 = vdupq_n_u8(0);
/* 16 byte alignment */
size_t n = reinterpret_cast<size_t>(p) & 15;
if (n > 0) {
uint8x16_t x = *(const uint8x16_t*)&p[-n];
uint8x16_t a = vceqq_u8(x, c16);
unsigned long mask = GetByteMask(a) << (16 + n);
if (mask) {
return __builtin_clz(mask);
}
p += 16 - n;
}
assert((reinterpret_cast<size_t>(p) & 15) == 0);
for (;;) {
uint8x16_t x = *(const uint8x16_t*)&p[0];
uint8x16_t a = vceqq_u8(x, c16);
if (isFound(a)) {
unsigned int mask = GetByteMask(a);
return p + __builtin_clz(mask) - top;
}
p += 16;
}
}
It even correctly produces the implementation of the unimplemented functions being called from the C++ impl.And not only that, what's most amazing is that it can exceed humans at abilities that many years ago, most people thought only humans could accomplish (tasks including creativity, including creating art, writing poems/literature, interpreting ambiguous human questions and text, doing analogy-based reasoning and problem solving, grasping and explaining puns, making new jokes, etc). And these models can only improve in the future!
To wit: I asked ChatGPT to write me a function to generate Hanukkah dates. It spewed a couple of facts about Hanukkah, and the generated function just returned the 8 days following Christmas. I said it was wrong, and it said "you're right!" and then gave me another wrong function (always returning March 25th, since it's actually in the 3rd month of the Jewish calendar, duh). I told it that it was wrong again and asked specifically for a Jewish to Gregorian calendar conversion function, and it gave me some more code that I have no idea is correct or not. So I asked for a table of 10 test cases of Jewish dates and their corresponding Gregorian dates, and not a single one was valid.
I actually have worked with some remote contractors who pull this kind of crap, just throwing garbage over the wall repeatedly until I give up because I just don't want to deal with them anymore. And no, they never get any better. They are not junior devs you can mentor or train or whatever. Their whole model of work is to generate something complicated enough to seem plausible and then bullshit you into accepting it so they can get paid. I have to inspect every line of code they write and do all the diligence myself anyway, and this is more time-consuming and less fun than just doing it myself in the first place. At best it's a nerd-snipe motivation in a "wrong answer on the internet" kind of way.
Strong No Hire. And if you hire them and stick me on code-review duty, I quit.
Are you saying that for current AI, or also for future AI?
I'm not an expert, but I think reinforcement learning is a pretty well-established AI technique at this point, which does give an AI incentive to be correct and become more correct.
I've heard rumors OpenAI is even doing that with ChatGPT, based on human feedback (with the thumbs up/down button).
> Strong No Hire. And if you hire them and stick me on code-review duty, I quit.
I mean, I agree. I wouldn't hire ChatGPT to replace a programmer currently, just like I wouldn't hire many humans, even many who claim they are programmers/engineers.
But at this rate, I might just hire a future version of it :)
And I'm already using it as a pair programmer, code reviewer, glorified Google search engine, email/letter redactor... and it also gave me truly amazing insights on how to prove difficult mathematical theorems that I was struggling to prove (on a theorem prover).
It's nothing short of a miracle, in my view.
If I have a robot that talks like a human, including answering questions like a human, behaves like a human in any way that is important... wouldn't this "tool" be intelligent, just like a human?
How are robots different from ChatGPT except having a physical presence and being able to manipulate the world physically?
Or are humans so special to you (or intelligence so subjective) that you can't possibly answer "yes" to the above statement about a robot being intelligent?
The danger is that the content generated by ChatGPT is very coherent, but technical details are frequently wrong. It's going to become increasingly difficult to separate the signal from the noise on the internet.
I think AI is going to force us on some level to reclaim some of our communication to the physical world, if for no other reason than it's going to be one of the only ways we can truly verify that we're talking to another person.
Yikes. Now I imagine a totally unqualified candidate for literally anything feeding interview questions to the chat bot and I don't like it at all.
My single worst interview experience was an on-site five hour marathon of whiteboard coding, with a grumpy senior insisting that the code on the whiteboard be syntactically correct. Nothing screams "we want unthinking ticket crunching machines" like optimizing for candidates willing to focus on writing code by hand for hours on end.
Naturally, I rejected the follow-up interview, but I fear that more companies now are going to demand this nonsense.
Side note: in my personal example, the whiteboard session wasn't the reason I turned them down; I asked every person on the team roughly how many hours a week they worked and not one of them answered the question (instead redirected the conversation towards "you can work from home sometimes!" type answers).
Since then, however, I have rejected other companies trying to ape this style flat out. A short half hour, fine. Five hours? Pound sand, I say.
Maybe eventually there will be a public understanding that only a foolish child would read a reddit frontpage and expect human content. It will all be auto generated to trap people, like a gatcha game.
I just don't see how AI won't be used to manipulate these kinds of barriers. Once AI reaches a point where it can truly equal or surpass humans in terms of operating online, how are we going to prevent it from circumventing those barriers? If AI can generate code from a chat prompt, who's to say it can't solve a captcha in the future? And once that happens (because we all know it will at some point), how are we going to be able to differentiate?
I've been thinking along these lines a lot recently - it seems as though in every field which AI enters, it causes us to return to some extent to the physical world.
More and more content that gets created by machine that is of low quality will get in the way of its own future training.
There will eventually be less and less human made content to train from.
For example, editors and reviewers for academic journals / conferences will likely see a deluge of AI-generated "scientific" papers. Their time is limited, and odds are that more papers with incorrect information will slip through the peer review process.
To be clear, peer review today certainly isn't perfect at catching bad papers. But AI generation has the potential to exaggerate the problem.
The better that computers get at generating content and behaving in ways that only humans used to be able to is going to make it harder to determine if a source is human or not.
But yes, will be "interesting" to observe, how such a new wave will make theinternet worse.
Then why does it seem to have some kind of theory of computation?
I gave it code to compute a Fibonacci sequence with nonsense names for functions and it immediately recognized the code (explainable by pattern matching).
I gave it a function and told it to modify the function so that it passes a test, and it did it without a problem.
I’ve had it build a function up by feeding it different test cases.
I had it explain kmeans to me, give me a first-pass solution, asked it how to optimize the first solution, had it do that for me …
I don’t know - it feels different. It also feels like it’s 1-2 years away from being the most useful co-worker on any given team and 5-10 years away from putting a number of us out of a job (or at least changing that job so much as to be something unrecognizable to us today)
It is synthesizing.
You can ask it to update its answers. You can ask it to evaluate possible solutions, then write the code for one of the solutions. Then write the code to test the code. And so on.
It turns the coder into a curator, editor, and code reviewer.
Cool?
Doesn't sound half bad to me. I've enjoyed learning to code more than actual coding. I'd be happy in a paradigm where only code to learn, to practice, to express ourselves and leave the boring bits to the machines.
1) is the end result useful/valuable?
2) did the GPT-based 'coding' process provide any of the following benefits: [reduce cost | reduce time to market | increase quality]?
More of the same.
From one perspective, that’s what humans have always been doing. We create new things by welding other things together.
From another perspective, that’s not even a bad thing. Every word exists in the dictionary so what value are books? Unless the value is the structuring of all those things that already exist.
I’m guilty of this with my dog. I can’t help it with her head tilts and deep stares! Her inner monologue is probably less sophisticated than I like to think it is.
This. I think we’re already seeing superhuman performance here, in the sense that many / most people can’t e.g. read a specification for a programming language and write simple programs in that language.