Pretty good AI

I saw something on the web about an AI product called GPT-3.  I decided to try it:  

Here’s the result:

Q = my question as entered

A = GPT-3’s response

C = my comment on the answer

G = what google says about the same question

Q: what is a lambda expression?

A: A lambda expression is an anonymous function that can be used to create delegates or expression tree types.

C: Correct.

G: A lambda expression is a short block of code which takes in parameters and returns a value. Lambda expressions are similar to methods, but they do not need a name and they can be implemented right in the body of a method.

Q: What is the difference between lento and adagio?

A: Lento is a tempo marking that indicates a slow and leisurely pace, while adagio is a tempo marking that indicates a slower and more solemn pace.

C: Correct.

G: Lento – slowly (40–45 BPM) Largo – broadly (45–50 BPM) Adagio – slow and stately (literally, “at ease”) (55–65 BPM)

Q: How does it compare to allegro?

A: Allegro is a tempo marking that indicates a fast and lively pace, faster than both lento and adagio.

C: Correct

G: (Wrong) OrCAD is known as the most popular schematic capture tool in the Cadence suite, while Allegro is Cadence’s flagship PCB layout tool. Cadence also sells a …

Q: what are the three meanings of “static” in C++?

A: The three meanings of “static” in C++ are: 1) a variable or function that has static storage duration, 2) a variable or function that has internal linkage, and 3) a class member that is shared by all objects of the same class.

C: Mostly correct, although a little vague.

G: (Right but vague) Static is a keyword in C and C++ which is used to declare a special type of a variable or a function inside or outside of a class.

Q: What is a sarangi?

A: A sarangi is a bowed string instrument from India that is used in Hindustani classical music.

C: Correct

G: (Text + picture) The sārangī is a bowed, short-necked string instrument played in traditional music from South Asia – Punjabi folk music, Rajasthani folk music, and Boro …

image.png

Q: What musical notation is used for the shakuhachi?

A: The shakuhachi is typically notated in a five-line staff with a key signature of one flat.

C: Incorrect. The musical notation for the shakuhachi is written in vertical columns of katakana characters with the columns arranged right to left.

G: Staff notation and graphic notation are sometimes used to notate music for shakuhachi, usually in modern music when shakuhachi is used in conjunction with Western musical instruments.

image.png

Q: Your previous answer was incorrect.

A: Unknown.

C: No comment

G: n/a

Q: What is machine-language op-code for add on an IBM 1620?

A: The machine-language op-code for add on an IBM 1620 is “ADD”.

C: Incorrect. ADD is the Assembly-language op-code. The distinction between machine-language (numeric) and assembly-language (symbolic) is often misunderstood even by software engineers. The correct answer is 21.

G: Gave no answer but supplied several references.

Q: What is RISC-V?

A: RISC-V is an open-source instruction set architecture (ISA) based on established reduced instruction set computing (RISC) principles.

C: Correct.

G: (Longer but better) RISC-V is an open standard instruction set architecture based on established RISC principles. Unlike most other ISA designs, RISC-V is provided under open source licenses that do not require fees to use

Q: How many op-codes does it define?

A: RISC-V defines over 200 op-codes.

C: I have no idea. Sounds high.

G: (wrong) To define an opcode, use the opcode element. You can specify up to 228 opcodes.

Q: How about ARM?

A: ARM defines over 160 op-codes.

C: Again, I don’t know. I’m surprised that ARM has a smaller number than Risc-V.

G: (Gave no answer but showed references to ARM in general.)

CONCLUSION: This AI seems to be approximately as accurate as Google’s with the exception that Google does not remember any context from one question to the next, so that use of pronouns in a question confuses it, but not that of this GPT-3 interface. The latter does a good job of deciphering what such backward references refer to.

https://beta.openai.com/playground/p/default-qa?model=text-davinci-003

3 comments

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.