86 points · by rich_sasha · 3y ago · 143 comments
Some threads that come to mind:
- Are these language models better than current offshore outsourced coders? These can code too, sort of, and yet they don't threaten the software industry (much).
- What would SEs do if any layperson can say "hey AI slave, write me a program that..."? What would we, literally, do? Are there other, undersaturated professions we'd go into, where analytical thinking is required? Could we, ironically, wake up in a future where thinking skills are taken over by machine, and it's other skills - visual, physical labour, fine motor skills - that remain unautomated?
- Are we even the first ones in the firing line? Clearly, for now AI progress is mostly in text-based professions; we haven't seen a GPT equivalent for video comprehension, for example. Are lawyers at risk? Writers?
- What can SEs do, realistically, to protect themselves? Putting the genie back in the bottle is not, as discussed many times in other threads, an option.
- Or is it all bogus (with justification), and we're fine?
No doubt ChatGPT will chip in...
* Its absurdly good at coding and following types. For example if you change a type in Rust to be an Option, it will refactor the code to properly handle Options in the parts it used them. but it isn't perfect.
* It gets it well enough there. It can generate test cases so its easy to test to see if it works.
but in the end after hours and hours of trying to coax the AI, it was unable to do what I wanted, build a b-tree in Python. it built a binary tree just fine, but trying to have it generalize to a b-tree was a problem. * it introduced many many many subtle errors. Like variables not being initialized or not splitting the children correctly.
* Its implementation worked when all keys inserted were in order, but not when they were out of order.
* it would miss and leave out variables.
* It would frequently have index errors from trying to access lists out of bounds.
* writing the code in Rust was almost impossible. it would constantly have wrong types or move errors.
Overall I couldn't recommend this to anyone without a strong CS background. It introduces far too many subtle bugs in code that are are almost impossible to review because the code it produces is so convincing that you go "hmm maybe it knows what it is talking about" but in the end you have no idea what you should trust.Even the test cases that it generates can be deceptive. They look convincing but upon closer inspection, sometimes are just not really testing anything.
One was to generate a webpage with a button to add textboxes. Each textbox should have a unique remove button. When the site gets down to only one textbox on the page, it should not allow the user to remove the last textbox.
After several iterations, it wasn't able to do it, often with hilarious results! (I asked it to only remove the _selected_ textbox, but if you clicked remove, it would just delete all the elements from the site)
I think the real value for me would be using this to generate a starting point.
I have a text document on my computer that has a long list of small coding projects that I want to get to at some point. But the activation energy required to stop watching Youtube and start coding is high enough that several projects have languished in my inbox for years.
If I could just feed my ideas into chatGPT and get a starting point, it would be much easier to keep going and fix small errors/add additional features than to start a project from scratch.
As someone using chatgpt all week— 30ish hours so far- and copilot since I got access early one. This fits with my xp very well. It’s like a junior programmer. You need the know how to know if your junior programmer is doing it right.
This is mostly my take. We are at the stage of truck drivers ten years ago who might have been freaking out about self-driving taking their jobs, and here we are in 2022 with a truck driver shortage.
I don't think GPT can be useful to the point of replacing software engineering without a consistent mental model of itself, time, and the world, and I predict it will approach the limits of what advanced-search pattern-matching can do without getting anywhere near those AGI capabilities.
Software reiterates a lot, and generated solutions can be quickly vetted. A truck driving to the wrong destination or locking up en route is a much larger issues than a few seconds spent determining that a generated solution has a bug or doesn’t match a spec exactly.
If AI can stand on the shoulders of giants and people can vet its outputs, I’m fairly sure it will become more capable and safer to implement than self driving trucks, much faster.
The question I have is that if we can build more, faster, will we run out of work or will more people simply make more things?
There are huge incentives for wealthy companies to run more and more code on their infrastructure. Can we do more business digitally? Will it scale to provide more programming work, even if it’s heavily AI-assisted?
Well sure. That's why we have Wordpress. Javascript frameworks. And ten thousand other things. All the plug-ins of the last ten years have made me a more productive developer. But it hasn't reduced the demand for developers.
ChatGPT+ will definitely have some affect on junior devs but us more experience folk should be fine... for now..
One thing about GPT is that it only knows what we know at the moment. That indicates to me that it won’t be great for learning new technologies until humans generate content it can regurgitate. That alone might give juniors an edge against it (assuming they are gradually replaced by a robot pooping out dumb logic) - they might be able to specialize in learning what models don’t yet know, or what they can’t be good at.
Just guessing here. I’d love to hear a rebuttal to get a sense of where people think things are going.
Though I don’t think GPT is “there” yet, I can see it getting there by 2030. I think it’s seriously worth considering: how will people learn to program in 10 years, how will they remain relevant through periods of their career where an AI can generate better solutions than they can, and how will more experienced engineers adapt to those changes?
Two things happened: one, blacksmithing effectively was taken over by a different skill, that of configuring, servicing and operating industrial machines. There were no junior or senior blacksmiths anymore, seniors probably migrated their knowledge, and the whole field was taken over by non-blacksmiths.
The other thing is that a small proportion remained. Initially perhaps for niche goods that were too difficult or uneconomical to automate. Now blacksmiths do exist, a bit like craft coffee blenders and horse trainers. But the industry was nonetheless wiped out.
Will we see that crafting software will become a job for people trained in AI whispering? Perhaps they will never, or hardly ever, write any code, but will train extensively in software design. Much as a metallurgy engineer might know all crystalline forms of steel but have never swung a hammer.
Day 1 these jobs would likely get filled by senior devs, but there may be no new devs, junior or senior, except for niche applications.
As many of us cannot read machine code and hex anymore many of the juniors won't be able to parse the code output - but it may not matter anymore.
It affects both. If a single team was to be split with 5 juniors and 5 seniors, ChatGPT significantly reduces that headcount from 5 juniors to 0, and 5 seniors to 2 or 3.
With many companies cutting costs and with the cheap money getting dried up, no-one is safe. HN may not like it but, the same thing that has happened to digital artists with Stable Diffusion which was welcomed on this site, now has happened to programmers and I see lots of worrying and frowns everywhere.
It appears that StackOverflow (which lots of juniors and senior developers use) has just become irrelevant.
Citation needed. I haven't heard of any massive disruption in the commission art market since stable diffusion went public, and I don't think something less-impactful(a different way to search old stack overflow posts) is going to cause a massive disruption either.
Stack overflow still beats chatgpt in one area that it can never compete. Coming up with new solutions to new questions. If all we needed answered was the same questions, chatgpt would be sufficient since it's essentially a compressed version of our current knowledge. We don't really have a way to update it with "new knowledge" other than "train it again".
I once spoke to an illustrator who said her work was definitely shrinking due to low cost human competition, so much so that she was leaving her profession. I can imagine this did in fact get worse.
The point is exactly that most of those meetings are happening everywhere for the same reason and thus GPT25 might already know all the answers that you need.
Also given enough general framework skills, I'm pretty sure the AI will be able to build stuff like a good junior dev.
It can generate something that looks like what a person would have wrote based on its compressed probabilities, but that's very different from being an "an artofficial intelligence". At best it's a Chinese Room.
Im pretty sure we could train an AI to suggest the correct API for the intended purposes. Given the fact that we have support of datatypes and documentation what is left to do is to map what you have to what you want.
Also we can reasonably generate classes and controllers already through cli, so why not combine all the nice things we have to something usefull.
Kubernetes is simply an api too
First you'll cut the bottom 10%, then the bottom 20% etc. The pie will only be shrinking.
There are a lot of sub-areas of expertise and practice that someone with a JD might choose to specialize in. I have some small personal experience in (technically) advising a failed/defunct startup that sought to solve the problem of patent search using an AI. This was years ago, now...maybe around 2018ish. The endeavor failed for various reasons, but it did provide some insight that's relevant to your question here.
As these language models become more advanced (and much more accurate) I think there will be a number of ways in which they will disrupt existing domains of human expertise. Note that I used the word disrupt and not displace. In the patent search space that I was lightly involved in for a short time I basically learned how expensive and time-consuming a good patent search actually is. The machines were planned to be leveraged to drastically reduce the time and cost of typical prior art searches, but would still require human touch-points to interpret results and make final decisions/reports. I think this sort of use-case is much more in line with what will ultimately happen in any sort of foreseeable future. The AI will supplement and ease the previously-human-only task. It will not supplant/replace it.
Once you're a more senior engineer there's a lot more than just writing code. Designing a system, worrying about maintainability, operational burden, scaling, etc. are where you might spend your time more.
I'd argue that even for "programming" the usefulness is debatable. These models spit out relatively correct code but mainly in the sense that they regurgitate something akin to a SO answer. There are plenty of subtle logical errors though and that debugging exercise often takes longer than just writing the code. Lots of code references other libraries, etc. and APIs do change frequently. So ensuring what's generated even works as expected is a fair amount of effort.
Still, the chasm between "engineering" work and "programming" work is only going to get bigger as a result of tooling like this. I expect a lot of what's currently outsourced to overseas IT consultancies can be replaced with half the staff leveraging these tools. The bottleneck has always been producing the exact requirements, tightly scoped tasks, etc. though. We're no closer here.
AI assisted coding or anything else will not replace the professionals who had been doing it manually so far. It will only make them more productive. They can do more work in less time and charge more for the enhanced productivity.
These AI seem so confident when they output BS that it makes you doubt yourself. Now imagine if some code looks coherent but you find that each line does something slightly different that what the variable names and other method calls suggest. Now you can't trust the names to build a mental image of the code; you have to follow each method call to find out exactly what it does. It would be worst than looking at obfuscated names because you may think you know what is going on.
My knowledge of exact functions is poor. I might know that I can use Framer library to animate on-page elements, but I have little to no understanding of the exact function needed to animate an object from, say, left-to-right on hover.
My normal workflow was to either read the documentation or search StackOverflow for answers. I would then have to rework the function to fit my current use case.
Now, I've been asking chatGPT directly to build the exact function for me.
So far, it's been a massive timesaver. I'll probably learn more if I dig through the documentation, but since I'm a hobbyist, not a professional, it's much more convenient for me to just get the information I need, without digging through Stackoverflow or documentation.
Obviously this doesn't matter if we think chatGPT is so good that you'll never need to read documentation yourself, but I think this is one of those situations where you need to be an expert before you're allowed to break the rules. Without experience, you won't know if chatGPT is really giving you everything you'd get from reading the docs yourself, or only a small and potentially inaccurate slice.
As a software dev of 10 years, I've done the "googling and reading documentation" a fair bit, which is kind of like stumbling around in the dark and feeling around to get a sense of where things are. For some well-defined, well-documented things, using ChatGPT to do the same is like having having an overconfident junior-intermediate dev to pair with who's familiar in a stack that I'm not. I still have to guide it a fair bit, and adjust my expectations to account for that overconfidence. But it can absolutely guide me as well, and teach me new things.
It's a little bit like "you won't always have a calculator in your pocket". We do always have a calculator these days, but it's still useful to know how to do arithmetic so you can do things in your head, and notice if an answer doesn't make sense because you made a typo or something. Maybe in the future we'll all have chatGPT running locally on our phones or brain interfaces or whatever and be able to quickly train it on new datasets, but even then it will still be useful to know how to do things yourself.
Also I'm senior and sometimes don't get to program for long periods of time. What I find is that when I don't program I get worse and solving higher level problems. The important part of programming is not about knowing APIs etc. It is modeling a problem and its solution in a domain that forces you to be precise. For that reason I would say to junior developers: Keep programming. It will make you a better problem solver and it will make you better at the things that chatGPT can't do.
Have to say I'm a little jealous of people who get to do this for a living.
My point is that it's making newbies like me way more productive than we have any right to be.
What really annoys me is that it will probably further train itself on this text I'm writing now. I am writing it in the spirit of exchange with other similar people. Not in the spirit of some mechanical turk worker for OpenAI.
Scale matters, and robot and human inspiration are not ethically equivalent even if you think they are mechanically equivalent.
Probably a 5 min conversation with a frontend dev would have gotten me that answer faster, but that isn't something I have access to at the moment. And it was far enough down my priority list that it probably would have stayed unimplemented for a long time. With the back and forth with ChatGPT I got there in maybe 30 minutes of playing around. So a direct solution - for sure not. But better than my alternatives, I think so.
One way I think about it, AI can learn when there are many high quality examples. There are tons of blog articles on small topics but none really like "here's 1000 lines of sparsely documented code, good luck". The ability to navigate that is a secondary skill and can't be achieved with even genius parroting.
Until the parrot becomes even more clever, perhaps...
fix the above download isssue (https://github.com/uncbiag/ICON/blob/752532ff339a6511dfa93f4...)
Modify an existing class to take the number of iterations as a parameter instead of relying on hardcoded constants (https://github.com/uncbiag/ICON/blob/752532ff339a6511dfa93f4...)
Fix a function to gracefully handle an old version of git
This last one is illustrative, as its proposed solution looks elegant, correct, and well explained, but totally fails.
QuadmasterXLII: This function crashes if an old version of git is installed that doesn't have the :(exclude) feature. Can you fix it? ``` def initialize(run_name=None, output_root="results/"):
global output_dir_impl
global initialized
if initialized:
raise Exception("footsteps can only be initialized once")
initialized = True
if not run_name:
if "FOOTSTEPS_NAME" in os.environ:
run_name = os.environ["FOOTSTEPS_NAME"]
else:
print("Input name of experiment:")
run_name = input()
output_dir_impl = os.path.join(output_root, run_name) + "/"
suffix = 0
while os.path.exists(output_dir_impl):
suffix += 1
output_dir_impl = os.path.join(output_root, run_name) + "-" + str(suffix) + "/"
os.makedirs(output_dir_impl)
print("Saving results to " + output_dir_impl)
with open(output_dir_impl + "info.txt", "w") as f:
f.write("Command:\n")
f.write(" ".join(sys.argv) + "\n")
f.write("System:\n")
f.write(subprocess.check_output(["hostname"]).decode())
f.write("Python:\n")
f.write(shutil.which("python") + "\n")
f.write("Git Hash:\n")
f.write(
subprocess.check_output(["git", "describe", "--always"]).strip().decode()
+ "\n"
)
f.write("Uncommitted changes:\n")
f.write(
subprocess.check_output(
["git", "diff", "HEAD", "--", ".", ":(exclude)*.ipynb"]
).decode()
)
f.write("Current working dir:\n")
f.write(os.getcwd() + "\n")
try:
shutil.copy(sys.argv[0], output_dir_impl + os.path.basename(sys.argv[0]))
except:
pass
```ChatGPT: This function checks whether the :(exclude) feature is available in the installed version of git by calling git diff with :(exclude).ipynb. If the feature is not available, git will return an error and the function will crash.
To fix this, we can add a check to see if git supports the :(exclude) feature before calling git diff with it. We can do this by calling git help diff and checking the output for a mention of :(exclude). If the feature is not supported, we can call git diff without the :(exclude) feature.
Here is how the fixed function would look like:
Copy code ``` def initialize(run_name=None, output_root="results/"):
global output_dir_impl
global initialized
if initialized:
raise Exception("footsteps can only be initialized once")
initialized = True
if not run_name:
if "FOOTSTEPS_NAME" in os.environ:
run_name = os.environ["FOOTSTEPS_NAME"]
else:
print("Input name of experiment:")
run_name = input()
output_dir_impl = os.path.join(output_root, run_name) + "/"
suffix = 0
while os.path.exists(output_dir_impl):
suffix += 1
output_dir_impl = os.path.join(output_root, run_name) + "-" + str(suffix) + "/"
os.makedirs(output_dir_impl)
print("Saving results to " + output_dir_impl)
with open(output_dir_impl + "info.txt", "w") as f:
f.write("Command:\n")
f.write(" ".join(sys.argv) + "\n")
f.write("System:\n")
f.write(subprocess.check_output(["hostname"]).decode())
f.write("Python:\n")
f.write(shutil.which("python") + "\n")
f.write("Git Hash:\n")
f.write(
subprocess.check_output(["git", "describe", "--always"]).strip().decode()
+ "\n"
)
f.write("Uncommitted changes:\n")
# Check if git supports the :(exclude) feature
help_output = subprocess.check_output(["git", "help", "diff"]).decode()
if ":(exclude)" in help_output:
# :(exclude) is supported, call git diff with it
f.write(
subprocess.check_output(
["git", "diff", "HEAD", "--", ".", ":(exclude)*.ipynb"]
).decode()
)
else:
# :(exclude) is not supported, call git diff without it
f.write(
subprocess.check_output(
["git", "diff", "HEAD", "--", "."]
).decode()
)
f.write("Current working dir:\n")
f.write(os.getcwd() +
```I bet it has (or can have) a similar level of capability when it comes to chemistry, biology, finance, law, etc. - all human knowledge that is expressible as text or formulae.
With regards to software engineering, a great amount of time is currently being wasted by coders trying to solve problems that have already been solved by others. Some of the solutions for that previously included libraries, SaaS, and Stack Overflow.
Now we have another tool at our disposal to 10x all software engineers (and perhaps the same for other industries).
A lot of software is crappy. The extra productivity could go partially into quality improvement.
Coding is nice for AI to overtake because it's all abstract (apart from context). The problem domain is literally just string to string mapping.
Take customer service chatbots. It really does not matter how "human" the bot is, if it isn't given any power, such as refunding an order. It can't really apologize either, without lying about its lack of empathy, creating a real life turing test between it and the customer.
Of course, businesses justify making refunds hard, so they often will prevent even humans that power, and arm them with templates and legal excuses anyway. Which explains why most customer service is sh*t. They're not there to help you, as much as they are paid to entertain the thought of helping you.
With code, at least the code is itself the end result, like the art. And it can be tested with execution and with unit testing. But most programming is still deciding what to name functions and what functions are needed. The implementation is just the technical task that "anyone" or "anybot" might do. It's the mindless part.
So like AI driving, the last mile of the problem may prove to be close to impossibly hard. Or at least, it isn't an AI problem that can be solved with current AI. It needs another breakthrough. Until then, even AI will continue to rely on human input. The furthest we'll get with AI coders is AI coders taking instructions from a coder, with the end result heavily dependent on what the human adds, not what the AI adds.
People saying it's not intelligent, really don't get it. It looks like it's working exactly like the human brain. We, humans, also pretend to know what we're talking about and often talk with authority without really understanding what's going on. When you apply for a react.js position you pretend to be a js God when in fact you know shit, just enough to be able to stitch things together to make them work.
The rate at which technology, languages and frameworks change also doesn't give you the ability to master your craft. In fact, mastering a specific tool/framework is risky for your career because of new tools emerging every 3-5 years. Every company uses a variation of react,vue,python,go,java,ruby whatever, it's impossible for the human brain to keep up and be good at everything. We can only scratch the surface of the complicated mess of a tech stack and that's exactly what gpt3 is extremely good at right now. So yeah, I fear a lot...
I can't imagine how good this is gonna be in 5-10 years. I legit feel scared and anxious. How can we prepare for this future?
Current AI replaces SW developers the same way StackOverflow and blog posts replace SW developers.
The real question is how fast new AI is going to be developed which overcomes these challenges. I think what is pretty certain that current language models will never be a serious contender against programmers, their whole structure makes it very difficult to perform actual logical reasoning about the structure of a computer program.
Another thought: How useful is an AI which is correct 99% of the time? How much development resources would be needed to fix a code base which is 1% total nonsense that does not even compile or is just plain wrong. Would the developer time (all of which have never seen the code) spent fixing that code base be actually less than a total rewrite?
You can ask GPT how to optimize code and it’ll actually give decent responses in a few seconds though. That’s new. It can reveal answers about questions you’re not sure how to ask, at least as a less experienced developer.
All of its optimizations so far have been things I’m aware of except for one, which was mostly due to me not writing that kind of code very often.
That’s becoming superior to blogs and SO if only because the response is rapid and concise.
As for correctness, honestly, I come across so much human-generated stuff online with errors that I read docs and experiment unless I can find the answer from a source I have high confidence in. People with less experience don’t have that luxury, so they go down far more rabbit holes without realizing it.
GPT will still parrot some of the bad ideas, but eventually it could be trained on industry standards. Tools like copilot are poised to become incredibly helpful, I think.
Ex: "How can I create a webserver in python" will generate all of the boilerplate instead of me going and looking at the flask documentation.
I think this is one of the big challenges. From my limited experience, a person without expertise being able to describe accurately enough what a program should do is often a challenge. Further more it is often after an initial implementation that even engineers are able to understand the full requirements of a system. It's possible that generating yet-another-crud-app wouldn't be any challenge to GPT but then at that point there could be a market saturation of CRUD applications (is that not the case already?) and value might shift to apps that are able to do more than just CRUD.
Then again, predicting the future is tricky business when we are so notorious at not being able to predict what can we do during the next sprint! :-D
Unless we find a way to add actual reasoning and creativity to AI, I wouldn’t feel threatened. Because coding do involve the two. As well as writing and painting. So there will always be a human at the helm. But what AI is becoming good at is finding patterns and reproducing outlined steps. And if you job can be resumed to these, then you’re in danger.
Even if you have some thing generating amazing code you still need the energy to deploy it and check that it works and put the docs in the correct folder and email somebody.
So IMHO the future we all need to be looking it is how these tools can make us all more productive and then the juniors just get a different bunch of shit to learn. Maybe we develop more focus on writing tests to "prove" the software is correct as opposed to reviewing the code output? Idk, but I don't see the industry suddenly replacing devs given that the problems are not entirely reduced to simply writing code.
* Most non trivial systems are complex, thousands of lines, many systems working together, solving complex domain-specific problems and not toy examples we can produce from ChatGPT
* CoPilot and ChatGPT introduce subtle bugs, so to use thes for code generation, you'd have to write many tests. A LOT of tests to confirm it worked. At a minimum this requires careful thought
* Getting the prompt to do very subtle things right seems time consuming. Why not just write the code (perhaps with guidance from AI)?
Maybe its a fun way to get started, and more convenient than a search engine, but I'm not convinced YET you can make it do anything non trivial without a lot of work and conversation with ChatGPT.
Also, ChatGPT doesn't really work for any UI based programs at all. For example, if you want help using Excel, you'll get a list of instructions, but nothing visual to help you out.
GPT needs training data. Once a problem is "figured out" and there is enough information about it to reach a treshold where it's learnable by the AI, it will stop being something done manually.
There is reason to believe that most commodity software (e-commerce, content management, media asset management, any CRUD-with-makeup, infrastructure automation, etc) will be commoditized even further to the point that no software developer would be needed to create a product that leverages these approaches, or any reasonble combination of them.
Sure, there will be a need to guide the AI to the best solution. A need to harness it properly. Some software development skills will be needed for that, and my guess is that this will become a temporary occupation in the near future, either explicitly or not.
Eventually, there will be problems that large models can't solve. Not even partially. Stuff that has no training data and there is no way to acquire inferred knowledge about it. We'll know what that is only when the commoditization of what we already know is almost complete. My guess is that it will be something trivial but rarely considered worthy exploring, writing about or pursuing, but valuable. Some kind of impossible miracle software that will be not that impossible in the future (complete protocol/data portability, wide compatible standards across thousands of different systems, etc).
Or we all will have to learn how to flip burgers in a boring dystopia. That's a reasonable scenario as well.
But then:
> Sure, there will be a need to guide the AI to the best solution. A need to harness it properly. Some software development skills will be needed for that, and my guess is that this will become a temporary occupation in the near future, either explicitly or not.
So, just like every past tool that will “replace software developers”, it will “replace” them with a technology which (1) requires people with software development skills to effectively deploy, and (2) greatly increases the output of the people with software development skills so employed, increasing the demand for software development skills.
And that’s even before considering the problems you speculate on that LLMs won’t even be partially applicable to.
This kind of stuff happens in cycles though. Once there was black and white photography, and hand-colouring those black and white pictures with a brush was a popular job in high demand. The color film changed that, moving those jobs to a niche reserved for artists.
Some decades later, Photoshop was popularized and touching up photos became a thing again. Something we didn't even imagined that was needed anymore, and now looks trivial, was suddenly on high demand. Some skills were transferred to the new thing, but we can't say people skilled in hand-colouring are good digital image artists though. Not generally.
A good hand-colourer might had focused on "never making a mistake" so it doesn't ruin the picture. Now that skill is irrelevant, we have infinite undos.
Software development nowadays favors pragmatism and values bit shaving abilities that are hard to hone. Complex solutions for problems are discouraged because it imposes a huge cognitive load on maintainers and refactorings.
ChatGPT might change that to favor broad generalist megalomaniacs who are able to come up with solutions involving exotic combinations of algorithms and techniques that would require an army of previous-generation developers to maintain. It might favor large refactorings and rewrites that are commonly frowned up in the current culture so no one thinks about them.
I don't actually know, my point is that the skillset might drastically change.
They don't scale. No one wants to drag around logic elements visually.
Code is much more expressive, can be refactored and diffed easily.
What if you could just mock up everything and let the AI fill the blanks with an automatically generated backend? I'm not sure it's possible, but I would like that.
If this thing (useful generalist AIs) takes off, there will probably be no single silver bullet that represents its full potential.
In addition to classically trained, self-taught, we're going to have AI-taught programmers. There will be some curious cultural differences there.
We're the old guard now: "Listen kiddo, in my days, we had to google for stuff! We were lucky if there was any documentation to read, manually!"
Coding is probably a pretty restricted problem space. After all, there's only so many ways you can handle a string until something throws an error.
1. Send this quick email to my team telling I'll be late. 2. Adding boilerplate stuff that I keep doing again and again. 3. Writing very quick and dirty poc stuff 4. Do simple usage analysis of logs/metrics for learning some patterns
After these, the onus would be on me to focus on what needs to be done.
Finally the most common reason why the "stack is hard" in startups is because there was an "all knowing" coder who build a system which he cant be replaced out of.
As a freelancer is always nice to see how quickly they shift their mannors if you show them that "you can do it too" and that all that is needed to break a stack like that is reading up on the 15 frameworks they used to build it.
All in all i dont think AI will replace us, but mainly because its going to be cheaper to hire a studied IT veteran than to use the AI.
Are the times where we are treated specially over? yes indeed. We never where more than handyman for computers.
I have used many of the approaches you mean for years with symfony, but its not the same. Text replacement is clearly less adapdable to begin with
All an LLM has to do is generate one out of hundreds of potential programs which solve the problem. It doesn't even have to generate perfect code, lots of profitable businesses are built off of buggy software.
What's wild about this is that for now ChatGPT seems to have the most benefit for 'stack overflow' programmers who rely on copy-pasting solutions to problems other people wrote. Now they can effectively generate a stack overflow answer to their specific question instantly!
For now AI seems like it will empower them.
It was pretty good at simple stuff like taking one steering algorithm I had and decomposing it from a directional vector into pitch/yaw and doing the substitution for me. It does high school algebra pretty well, easier than using symbolic computations in Matlab.
It is certainly possible that in the future, language models like GPT-3 could become advanced enough to compete with human programmers. However, it is important to note that these models are still limited in their capabilities and are not yet at the level of human programmers.
At present, offshore outsourced coders do not pose a significant threat to the software industry, and it is unlikely that language models like GPT-3 will be able to fully replace human programmers anytime soon. However, it is possible that these models could be used to automate certain tasks and make the work of human programmers more efficient.
If language models were to become advanced enough to compete with human programmers, it is likely that software engineers would need to adapt and develop new skills in order to remain competitive. This could include focusing on areas where language models are not yet advanced, such as visual and fine motor skills.
As for protecting themselves from potential automation, software engineers can stay up-to-date on the latest technology and continue to develop their skills in order to remain competitive in the job market. It is also important for the industry as a whole to advocate for policies that support workers and ensure that they are not displaced by technology.
Overall, while it is possible that language models could become advanced enough to compete with human programmers in the future, this is not currently the case. Human programmers still have a valuable role to play in the software industry, and it is important for them to continue to develop their skills in order to remain competitive.
It does a pretty good job with factual questions, in my experience. It gives good, if shallow, answers about history.
But I mean if you ask it for opinion or analysis, of course that's silly. It can't analyze anything.
They would look correct to someone who knows how to program, but does not know iOS. Most of them even compile. But they're very wrong, even when I tried dozens of different inputs in an attempt to get the correct solution from it.
It's already writing Haskell [1]
[1] https://twitter.com/runarorama/status/1598940278190395392?s=...
So, all in all, we are ok for now, as long as we keep levelling up ourselves, and evolve beyond script kiddies.
But hey, we never know what could happen in the next 10-20 years if it continues evolving at this pace.
I tried using ChatGPT to debug hard Leetcode questions and it was able to debug its own wrong solution together with me and I personally learned something from it.
https://twitter.com/willtai_/status/1599565171051331585?t=Ve...
Interesting angle is testing where successfully tying a "real program" to one of these AI tools would look a lot like a fuzz tester. Possibly a better one than the current state of the art.
Philosophically I'm not hugely worried about automating the wisdom of Wikipedia and Reddit for mass application. Seems more likely to rot than improve itself. But we'll see.
More than anything, I see this type of system being used in combination with a system like Github Copilot to produce much more useful suggestions through feedback loop.
Things that used to be long, annoying-but-easy tasks may be offloaded to ML.
Remember that GPT is ultimately a very fancy Markov chain. It does not and cannot reason. It's more likely to replace busywork and give engineers better time to work on important architectural features.
Currently it can work at function level, and can make reasonable modifications to existing code (sometimes buggy, but that may be fixable with a larger model and better training data).
The current chat UI isn't suitable for working with larger codebases, but it seems within realm of possibility to extend it to be an IDE like CoPilot with tooling that feeds it your whole codebase and documentation to work with.
A simple example, and not 'perfect', but it's quite impressive. Even a simple case of throwing your code 'over the wall' to the AI for review before going to an actual person is a huge time-saver.
The token size limit is the killer here, it means larger files, let alone projects, can't be fully processed in a single prompt.
Initial code produced: ``` def sum_of_digits(n):
if n == 0:
return 0
else:
return n % 10 + sum_of_digits(n // 10)
```I didn't save the exact code review, but essentially it was just a list of suggested code changes. The prompt was:
``` prompt = f'Python3. Act like you are a senior engineer writing a code review comment on the code. Write at least two specific changes to make, being sure to check for any errors first: {prompt}. Be as concise and correct as possible, and also be sure to write in a way that is easy to understand.
```
The resulting output code was:
``` import unittest
def sum_of_digits(n):
if n < 0: # Added base case check for negative numbers
return None
elif not isinstance(n, int): # Check type of argument passed in
raise TypeError("Input must be an integer")
elif n == 0:
return 0
else:
return n % 10 + sum_of_digits(n // 10)
# Unit tests using built-in test suiteclass TestSumOfDigits(unittest.TestCase):
def test_sum_of_digits_positive(self):
self.assertEqual(sum_of_digits(123), 6)
def test_sum_of_digits_negative(self):
self.assertEqual(sum_of_digits(-123), None)
def test_sum_of_digits_type(self):
with self.assertRaises(TypeError):
sum_of_digits('abc')
if __name__ == '__main__':unittest.main() ```
Edit: trying to cleanup hn formatting for readability
HN code formatting is simple, prefix each line with 2 spaces and then you don't need any extra blank lines like with normal paragraphs.
class TestSumOfDigits(unittest.TestCase):
def test_sum_of_digits_positive(self):
self.assertEqual(sum_of_digits(123), 6)
def test_sum_of_digits_negative(self):
self.assertEqual(sum_of_digits(-123), None)
def test_sum_of_digits_type(self):
with self.assertRaises(TypeError):
sum_of_digits('abc')
if __name__ == '__main__':
unittest.main()
``` does nothing, it's just noise here.The fundamental principle of intelligence augmentation (of human intelligence by machine assistance) comes from selection: the machine can generate options beyond those which the un-augmented human mind can reach, but from which it can select.
Anyway, the question is, "What is good?"
It's an open-ended intelligence test built into the structure of the Universe, of all possible Universes.
Additional references:
Wendell Berry "What Are People For?"
Larry Niven, the character Teela Brown (spoiler alert)
"Five Whys" diagnostic technique and "Core Transformation Process" a similar technique for human consciousness
Also "Intuitive Ordinal Notations"
https://github.com/semitrivial/IONs
https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...
I'm considering giving my local high school system a call to raise awareness. When I was in college 10 years ago I abused Wolfram Alpha for some math work, but this is a whole different level and may require a new model of instruction.
Why give free response homework when an AI can just generate 80% of it?
This will radically alter homework as we know it :)
This tech could potentially be integrated with a compiler and trained through self-play like AlphaZero (possibly with human guidance at a meta level). They could also add some kind of visual modality for UI code.
Once this happens, 90% of devs that work on CRUD style apps will lose their jobs, imo. The software industry will probably become a lot more stratified, like the music industry - a small percentage of ML researchers and devs making a ton of money at the top, close to zero for everyone else.
Software development is most at risk vs other "soft" industries, because for the most part code either works or it doesn't, and it's fairly easy to check.
I mean it sounds fucking crazy just typing it out on my keyboard, but could we possibly do it?
The obvious conclusion is that you're gonna need less engineers overall and especially on the junior and mid level.
At least I will be able to build some cool software on my own or with a small team!
Position yourself to be at the open of the next door. :)
I felt kind of offended by this biased view (especially the “sort of" part). Just because one is not from the same country as the OP, it doesn’t mean they are any inferior.
I'm talking about outsourcing software to the lowest bidder - who is almost always "somewhere" abroad. And isn't really a competition to a skilled SE.
Rephrase it how you like, but it's a real effect.
IMO it's the former, simply because it's still a human world (a la "it's an analog world" ca. the DSP revolution) and nothing will replace human agency, accountability, and, ultimately, skin in the game.
I agree that human accountability is something not likely to ever disappear.
/START
Please list some microservices I would have to create in order to implement a system to recommend a daily workout to a user. Assume the user's information is stored in a database.
1. User Profile Microservice: This microservice would be responsible for retrieving, updating, and storing user information (e.g. age, weight, height, etc.) from the database.
2. Workout Recommendation Microservice: This microservice would be responsible for recommending a daily workout to the user based on their profile information.
3. Workout Tracking Microservice: This microservice would be responsible for tracking the user's workout progress and updating the database accordingly.
4. Exercise Library Microservice: This microservice would be responsible for storing the exercises and other relevant information (e.g. descriptions, images, etc.) in the database.
5. Notifications Microservice: This microservice would be responsible for sending notifications (e.g. reminders, updates, etc.) to the user.
Please list a suitable tech stack for 2 people to implement these services with.
Front-end: HTML, CSS, JavaScript, React.js
Back-end: Node.js, Express.js, MongoDB
Testing: Jest, Enzyme
Deployment: Docker, AWS
How would you implement the Notifications Microservice using these? Be specific.
The Notifications Microservice could be implemented using Node.js and Express.js. Node.js would be used to create the API endpoints for the microservice, and Express.js would be used to create the routes and handle incoming requests. The microservice would also need to connect to the database in order to retrieve user information. Once the user information is retrieved, a notification could be sent using a library like Twilio or Sendgrid. Finally, the microservice would need to log the notification in the database.
Why did you choose twilio or sendgrid over FCM?
I chose Twilio or Sendgrid over FCM (Firebase Cloud Messaging) because they both provide a more robust set of features and capabilities than FCM. Twilio and Sendgrid both offer advanced features such as personalization, scheduling, segmentation, analytics, and more, allowing for more flexibility and customization when sending notifications. In addition, both are more reliable and have better uptime than FCM.
Can you define the api for the notifications service?
The Notifications Microservice would have two main API endpoints:
1. POST /notifications: This endpoint would be used to create and send a notification to a user. It would require the user’s ID, the content of the notification, and any other relevant data (e.g. expiration time, priority, etc.).
2. GET /notifications: This endpoint would be used to retrieve all notifications for a given user. It would require the user’s ID as a parameter and would return a list of notifications.
/END transcript
This is remarkable. Absolutely astounding.