Chat-gpt is killing jobs!

Chat-gpt is killing jobs!

The rise of large language models like GPT-3 has sparked a lot of discussion about their potential impact on the job market, and one area that has come under particular scrutiny is the field of programming. Some people are concerned that GPT-3 and other similar models could potentially replace human programmers, leading to widespread job loss in the industry. The concern is understandable. GPT-3 is capable of generating human-like text, which means that it could potentially be used to write code. In fact, some people have already used GPT-3 to generate simple programs, and the results are often impressive. Given the right instructions and data, GPT-3 can write code that is syntactically correct and even solves simple problems. However, it's important to note that GPT-3 and other large language models are not yet capable of replacing human programmers. While they can write syntactically correct code, they are not capable of understanding the underlying logic and meaning of the code. This means that they are not able to write complex programs or debug existing code. In addition, programming is more than just writing code. It requires a deep understanding of the problem being solved, the ability to think logically and systematically, and the ability to troubleshoot and debug complex systems. These are skills that are difficult to automate, and they are essential for successful programming. So, while GPT-3 and other large language models may be able to generate simple programs, they are not yet capable of replacing human programmers. However, as these models continue to evolve and become more advanced, it's possible that they could potentially automate some aspects of programming in the future. For now, however, human programmers are safe.

isn't that scary that whole thing you read? that was written by chat-gpt 😱. I just typed "write a blog about chat gpt killing programming jobs" and it gave this!. like this much better than my blogs. this thing can replace you if you are a writer. like, try it, it's free. ask it to write a story, and it will give you an original story that no one had heard before. and it's scary.

*back to the topic

test 1

let's try to ask to create a "hello world" HTML page "create a hello word HTML page" and it gave me this

"To create a simple "Hello World" HTML page, follow these steps:
Open a text editor. This could be a program like Notepad on Windows or TextEdit on Mac.
Type the following code into your text editor:

<!DOCTYPE html>
<html>
  <head>
    <title>Hello World</title>
  </head>
  <body>
    <h1>Hello World</h1>
  </body>
</html>
Save the file as "hello.html" (or any other name you prefer, as long as it ends in ".html").
Open the file in a web browser. You should see a simple page with the text "Hello World" displayed on it.
And that's it! You have successfully created a basic HTML page that displays the text "Hello World". You can now customize the page by adding more HTML elements and styling the page with CSS.

"

pretty simple right? let it one more time!

test 2

"write a javascript program that will find the biggest number in given three." answer that chat-gpt gave me =>

"// define the three numbers
var num1 = 5;
var num2 = 10;
var num3 = 15;

// initialize the variable that will hold the largest number
var largest = num1;

// compare the first number with the second and third numbers
// and update the value of the largest if necessary
if (num2 > largest) {
  largest = num2;
}
if (num3 > largest) {
  largest = num3;
}

// print the largest number to the console
console.log("The largest number is: " + largest);"

Do you know what javascript is too easy? let's try assembly!

test 3

"Create an assembly program that will input three values and show the largest number."

and this is mind-blowing 🤯.

"
; This program inputs three values and shows the largest number

section .data

num1: dq 0 ; first number
num2: dq 0 ; second number
num3: dq 0 ; third number

section .bss

section .text

global _start

_start:

; Input first number
mov rax, 0 ; syscall number for read
mov rdi, 0 ; file descriptor (standard input)
mov rsi, num1 ; address of buffer to store input
mov rdx, 8 ; number of bytes to read
syscall

; Input second number
mov rax, 0 ; syscall number for read
mov rdi, 0 ; file descriptor (standard input)
mov rsi, num2 ; address of buffer to store input
mov rdx, 8 ; number of bytes to read
syscall

; Input third number
mov rax, 0 ; syscall number for read
mov rdi, 0 ; file descriptor (standard input)
mov rsi, num3 ; address of buffer to store input
mov rdx, 8 ; number of bytes to read
syscall

; Compare the numbers and store the largest in rax
mov rax, num1
cmp rax, num2
jg greater_than
mov rax, num2

greater_than:
cmp rax, num3
jg greater_than
mov rax, num3

; Output the largest number
mov rax, 1 ; syscall number for write
mov rdi, 1 ; file descriptor (standard output)
mov rsi, rax ; address of buffer to output
mov rdx, 8 ; number of bytes to write
syscall

; Exit the program
mov rax, 60 ; syscall number for exit
mov rdi, 0 ; return value
syscall

"

It's getting easy let's try its one last time

test 4

"create a binary program that will input a value, and will display it"

"section .data

input_prompt: db "Enter a value: ", 0
input_buffer: resb 8

output_prompt: db "The value you entered is: ", 0

section .bss

section .text

global _start

_start:

; Output the input prompt
mov rax, 1 ; syscall number for write
mov rdi, 1 ; file descriptor (standard output)
mov rsi, input_prompt ; address of buffer to output
mov rdx, 18 ; number of bytes to write
syscall

; Input a value
mov rax, 0 ; syscall number for read
mov rdi, 0 ; file descriptor (standard input)
mov rsi, input_buffer ; address of buffer to store input
mov rdx, 8 ; number of bytes to read
syscall

; Output the output prompt
mov rax, 1 ; syscall number for write
mov rdi, 1 ; file descriptor (standard output)
mov rsi, output_prompt ; address of buffer to output
mov rdx, 27 ; number of bytes to write
syscall

; Output the value
mov rax, 1 ; syscall number for write
mov rdi, 1 ; file descriptor (standard output)
mov rsi, input_buffer ; address of buffer to output
mov rdx, 8 ; number of bytes to write
syscall

; Exit the program
mov rax, 60 ; syscall number for exit
mov rdi, 0 ; return value
syscall
"

chat time

now I am gonna chat with it. "me: what's the fastest language for programming"

"gpt: It is difficult to determine the "fastest" language for programming, as the performance of a program depends on many factors, such as the specific implementation, the algorithms and data structures used, the hardware and operating system it is running on, and the specific workload.
In general, compiled languages such as C and C++ are often considered to be among the fastest languages for programming, as they are designed to be compiled into efficient machine code that can be executed directly by the processor. This is because compiled languages allow the programmer to have fine-grained control over the generated machine code, which can be optimized for specific hardware and workloads.
However, interpreted languages such as Python and JavaScript can also be very fast, especially with the help of modern just-in-time (JIT) compilation techniques that can compile the code to machine code at runtime. These languages also often have large standard libraries and third-party modules that provide optimized implementations of common algorithms and data structures, which can improve the performance of the program without requiring the programmer to write low-level code.
In conclusion, the "fastest" language for programming will depend on the specific problem and the requirements of the program. It is important to carefully consider the trade-offs between different languages and to choose the one that is best suited for the task at hand."

"me: what would happen if wrote a python program that will uninstall python"

"gpt: It is not possible to write a Python program that will uninstall Python itself, as the program would need to be running to be executed. Additionally, uninstalling the Python interpreter would likely cause any programs that depend on it to stop working. It is generally not recommended to uninstall the Python interpreter unless it is necessary for a specific reason.
"

Conclusion

like chat gpt said "So, while GPT-3 and other large language models may be able to generate simple programs, they are not yet capable of replacing human programmers. However, as these models continue to evolve and become more advanced, it's possible that they could potentially automate some aspects of programming in the future. For now, however, human programmers are safe."

now that it. this blog was the most interesting blog. I have ever written. but before saying "bye to you".

Get rickroll'd!

Image description

Did you find this article valuable?

Support atharva shankar avhad by becoming a sponsor. Any amount is appreciated!