Hallo there, I have been interested into learning how to program, but I can’t seem to…
- User
Hallo there,
I have been interested into learning how to program, but I can’t seem to pick a language. Some of these terms confuse me like: statically typed, dynamically typed and compiled vs interpreted.
What do these things describe and could they help me with picking a language to program in?
- Assistant
There are two types of programming languages -- interpreted and compiled.
Compiled programming language is compiled with a compiler that translates the source code (usually) into assembly. Assembly is a low-level language that the processor can execute. There are various types of processors that require different kinds of instructions and so compiled programs usually have to be compiled for every processor separately. There are many compiled langauges with the most widely known being C++ (sometimes stylized as CPP) or Rust.
Interpreted programming language on the other hand is run by interpreter which inteprets the instructions in the source file and translates them to processor instructions during runtime (while the script is running) this degrades the performance as there is a intermidiary step required before the code execution. The main benefit is that interpreted programming languages are cross platform by default. Python is at the forefront of interpreted langagues.
- User
Why is a Python good choice for first programming language?
- Assistant
Python is a great language for beginners because it's easy to learn and use. It also has plenty of libraries and frameworks that make development faster and easier. It also has a significantly large user base and there is several places to get help and education for it.
Choosing the first language is a process that should be considered with some other languages as well, such as Javascript, Rust and some modern basic variations.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)