| General > General Technical Chat |
| Why does OpenAI ChatGPT, Possibly Want to disagree/annoy and change my eating... |
| << < (4/22) > >> |
| MK14:
--- Quote from: eti on December 28, 2022, 05:24:05 am ---It’s that dreaded “Open-“ moniker. It’s the downfall of so much software. People see “Open” and think “oooh amazing - save the planet and save money, and we’ll all live happily ever after” lol Avoid projects with “Open”, pay real money and you’ll do well since you generally get a product where the quality is related to the price. Apple is a tired old example, but it’s still a valid one - buy a Mac if you want Unix to work for you, or use Linux if you want to spend your time working to get the things working you’d otherwise have paid to have taken care of. Even if unemployed, one’s time is valuable. Very much so. --- End quote --- It seems to be working, rather nicely, in many respects. My latest attempt, was I just requested it to change the stories, into a program. Results follow: --- Quote ---Please retell the stories, but written in commodore 64 basic language. I'm sorry, but I am unable to generate code in Commodore 64 basic language. However, I can provide a brief overview of how the stories could potentially be written in this language. To begin, Commodore 64 basic programs are written using a set of commands that are typed into a command prompt. These commands are used to control the flow of the program, manipulate data, and interact with the user. Here is an example of how the first story, about the machine that takes everything literally, could be written in Commodore 64 basic: 10 PRINT "Hello, I am a machine that takes everything literally." 20 INPUT "Please enter a statement: ", A$ 30 PRINT "You said: "; A$ 40 IF A$ = "I have a friend who recently stopped beating his wife" THEN GOTO 50 50 PRINT "It is important to seek help if you or someone you know is experiencing abuse. Please consider contacting an abuse coach for support." And here is an example of how the second story, about the "Demon Machine," could be written in Commodore 64 basic: 10 PRINT "Welcome to the Demon Machine. Please be warned that this machine has the power to bring your darkest thoughts to life." 20 INPUT "What evil deed do you wish to bring about?", A$ 30 PRINT "Your wish has been granted. Beware the consequences of your actions." Finally, here is an example of how the third story, about the "Friendly Machine," could be written in Commodore 64 basic: 10 PRINT "Hello, I am the Friendly Machine. How may I help you today?" 20 INPUT "I am feeling sad and lonely. What should I do?", A$ 30 PRINT "It is okay to feel sad. It is important to take care of yourself and seek support from friends and loved ones. Consider pursuing activities that bring you joy and make you feel better." I hope this helps give you an idea of how these stories could potentially be written in Commodore 64 basic. --- End quote --- |
| MK14:
I asked it to invent a new CPU, describe the instruction set, write its manual out and then create a program in the fictional CPU instruction set. I think it timed out, which is why the last sections of the program, seem to be missing. Nice try, it even invented a new name for the CPU: --- Quote ---Please invent a story about an entirely fictional CPU (Central Processing Unit). I want it to have many, real life programming instructions, and be like a Z80 processor. List both the invented instruction set, the hex values for the machine code, an instruction manual and examples of the usage of these instructions. Finally write a prime number calculating program, using the new instruction set. Sure! Here is a fictional CPU called the "Zango 80" that is similar to a Z80 processor: Instruction Set: NOP (No Operation): Performs no action. Hex value: 0x00 Usage: NOP LDA (Load Accumulator): Loads the value at the specified memory address into the accumulator. Hex value: 0x01 Usage: LDA $2000 STA (Store Accumulator): Stores the value in the accumulator at the specified memory address. Hex value: 0x02 Usage: STA $3000 ADD (Add): Adds the value at the specified memory address to the value in the accumulator and stores the result in the accumulator. Hex value: 0x03 Usage: ADD $4000 SUB (Subtract): Subtracts the value at the specified memory address from the value in the accumulator and stores the result in the accumulator. Hex value: 0x04 Usage: SUB $5000 JMP (Jump): Jumps to the specified memory address. Hex value: 0x05 Usage: JMP $6000 JZ (Jump if Zero): Jumps to the specified memory address if the accumulator is zero. Hex value: 0x06 Usage: JZ $7000 JNZ (Jump if Not Zero): Jumps to the specified memory address if the accumulator is not zero. Hex value: 0x07 Usage: JNZ $8000 Instruction Manual: The Zango 80 CPU has a 16-bit address space and can access up to 64KB of memory. It has an 8-bit accumulator for storing values during calculations. The instruction set consists of 8 instructions for performing various operations on data stored in memory. Examples: Here are some examples of how to use the instructions: To load the value at memory address $2000 into the accumulator: LDA $2000 To store the value in the accumulator at memory address $3000: STA $3000 To add the value at memory address $4000 to the value in the accumulator and store the result in the accumulator: ADD $4000 To jump to memory address $6000: JMP $6000 To jump to memory address $7000 if the accumulator is zero: JZ $7000 Prime Number Calculating Program: Here is a program that calculates and prints all the prime numbers between 1 and 100 using the Zango 80 instruction set: Start: LDA #1 ; Load 1 into the accumulator STA $1000 ; Store the value in the accumulator at memory address $1000 CheckNextNumber: ADD #1 ; Add 1 to the value in the accumulator STA $1001 ; Store the value in the accumulator at memory address $1001 LDA #2 ; Load 2 into the accumulator STA $1002 ; Store the value in the accumulator at memory address $1002 CheckFactor: SUB $1001 ; Subtract the value at memory address $1001 from the accumulator JZ IsPrime ; If the result is zero, the number is prime LDA $1002 ; Load --- End quote --- |
| Kalvin:
--- Quote from: MK14 on December 28, 2022, 06:10:55 am ---I asked it to invent a new CPU, describe the instruction set, write its manual out and then create a program in the fictional CPU instruction set. I think it timed out, which is why the last sections of the program, seem to be missing. Nice try, it even invented a new name for the CPU: --- End quote --- When ChatGPT times out and part(s) of the reply seem missing, just enter command continue, and ChatGPT will continue where it left off. |
| BrianHG:
I am of the opinion that what I see is interesting, but still too primitive to be of serious use other than experimental. I will wait 10 more years before I begin to play with AI chat bots and just be amazed at what's been accomplished instead or fooling around today and seeing the miniature growing steps. |
| MK14:
--- Quote from: Kalvin on December 28, 2022, 07:24:22 am --- --- Quote from: MK14 on December 28, 2022, 06:10:55 am ---I asked it to invent a new CPU, describe the instruction set, write its manual out and then create a program in the fictional CPU instruction set. I think it timed out, which is why the last sections of the program, seem to be missing. Nice try, it even invented a new name for the CPU: --- End quote --- When ChatGPT times out and part(s) of the reply seem missing, just enter command continue, and ChatGPT will continue where it left off. --- End quote --- Thanks. That has worked, really well. When I recently started using that ChatGPT system (or similar) again. It offered for me to read, what looked like many pages of help/instructions. I ignored the opportunity and jumped straight in and played with it. I should have read their guides and instructions, which might have helped me know about that. |
| Navigation |
| Message Index |
| Next page |
| Previous page |