by ineptech · 3y ago · 0 comments
One interesting question is: when people are using LLMs to generate software for their own use, what will they do for the server component of client-server use cases? Is "LLM, go register me an EC2 instance and configure it not to go over $20/mo, here's my credit card number" totally out of the question?
> ? Is "LLM, go register me an EC2 instance and configure it not to go over $20/mo, here's my credit card number" totally out of the question?
I suspect we are _way_ closer to that than to having it respond to "make me a game like clash of clans".
> The hard part of defining requirements is being specific in them
True but I don't think you're accounting for iteration. You know the "idea guy" cliche? Today, if/when this "idea guy" hires a team of devs from India to make his million-dollar idea into reality, his inability to write good requirements will lead to a useless app, and the idea guy asking for changes (that are also poorly described) until he runs out of money, right?
Now imagine that his "dev team" works for free and can turn around each new set of requirements in minutes rather than months. How long will it take him to learn how to good acceptance criteria? A day? A week? It's hard but not that hard. And a million or two other "idea guys" are doing the same thing, and sharing notes with each other.
> It's hard but not that hard.
It really is that hard. It's basically 90% of staff+ engineer's job.
I don't doubt that AI and ML in particular will absolutely change our industry, but as an engineer I see chatGPT as a tool like copilot, a debugger, or a linter. All those tools make me an order of magnitude more productive, but they're useless without the human making the decisions
But if a few people asking the right prompts is all you need, what happens the to other 50-100+ people a game like Clash of Clans would normally employ?
2. You don't have to find a good blog article that works for your specific purpose
3. You can ask for changes to the code like "translate this code to python" "I want to use Azure instead of AWS" "add a database so I can save player scores" etc. and it will both write the code and explain what it did.
4. You can ask for elaboration if you don't understand something, it can describe code or it can further explain written text.
5. It can explain why you're getting an error message after you change something and suggest a way to fix it.
7. If you have a feature you want to add but don't know how you can just ask it and it will show you how to implement the feature and how to integrate it into the existing code.
There's a lot more, too much to list but every one of these is far more useful than just cloning a repo and following an article.
Have you actually tried this yourself? I have probably... 300+ ChatGPT chats/sessions past 30 days (aka, I actually use it).
I have 0 faith it would actually spit out anything error-free / working.
The scariest thing is that... I did use Chatgpt to set up an aws cloud formation stack for a lambda function, and it gave me the right file to sync.
So... Yeah, it's not that many steps to a "text to (web|mobile) app generator" solution.
Uh.. I will get to work.
Until we see chatgpt figuring out how to fix issues like that, I'm not worried.
[0] https://iamondemand.com/blog/how-to-deploy-your-lambda-funct...
ChatGPT: Below is an AWS CloudFormation YAML template for creating an AWS Lambda function with 16GB of memory:
```yaml AWSTemplateFormatVersion: '2010-09-09' Description: 'AWS CloudFormation Lambda Function Template with 16GB Memory'
Resources: LambdaFunctionRole: Type: 'AWS::IAM::Role' Properties: AssumeRolePolicyDocument: Version: '2012-10-17' Statement: - Effect: Allow Principal: Service: - lambda.amazonaws.com Action: - sts:AssumeRole Path: / Policies: - PolicyName: LambdaExecutionPolicy PolicyDocument: Version: '2012-10-17' Statement: - Effect: Allow Action: - logs:CreateLogGroup - logs:CreateLogStream - logs:PutLogEvents Resource: 'arn:aws:logs:::*'
LambdaFunction:
Type: 'AWS::Lambda::Function'
Properties:
FunctionName: MyLambdaFunction
Runtime: python3.9
Role: !GetAtt LambdaFunctionRole.Arn
Handler: lambda_function.lambda_handler
MemorySize: 16384
Timeout: 300
Code:
ZipFile: |
import json
def lambda_handler(event, context):
return {
'statusCode': 200,
'body': json.dumps('Hello from Lambda with 16GB memory!')
}
```This CloudFormation template creates an IAM role and a Lambda function with 16GB (16384MB) of memory. The Lambda function runtime is Python 3.9, but you can change this to another runtime if necessary. The code block contains a basic Python script for returning a simple message; you can replace this with your own script.
If you ask ChatGPT to generate a template for a lambda with 16 vCPUs, it will generate a template that allows a max of 16 concurrent invocations, which again is not what you asked it for, and unless you _know_ what reserved concurrenct executions are, you won't know that's what it's generated.
[0] https://docs.aws.amazon.com/lambda/latest/operatorguide/comp....
Let's say a simple single purpose web app such as Calendly. Why should I pay for such a service if I can just ask the LLM to create the entire app for me?
In TFA, the author let the LLM create an ics file. Why shouldn't the LLM also spawn a REST endpoint and serve stuff from it matching my prompt?
The more interesting question is, once non-technical people are able to auto-generate their own apps, what backend will they use and how will they handle auth? The easiest default option today is "cloud services, and 'log in with facebook' oauth" but we can hope for better...
Pls make website, all responsive like, w/ BIG pictures ooo, use my fav fonts, also fancy menus with whoosh on, load fast pls.
Thanks, Human
PS, no bugs :)
It would be awesome if gpt4 could be made to edit the code and therefore, it didn’t have to regenerate it from scratch every time.
The regeneration also chews up a lot of the token limit, so it forgets crucial parts earlier on in the conversation.
If there was any point in doing it, people would’ve already done it 1000x, the LLM adds no value here.
It's far from movie quality right now but there are a lot of people working on this sort of thing. People are also exploring text to 3D scene, model, and character generation pair that with text to animation which is also being worked on and we've at least taken the first steps towards that goal.