Engineering Tools for AI

Programmierung

Laufzeitumgebungen nach Sprache

Ein Suchleitfaden zu Runtime, Compiler, Paketmanager und Konfigurationsdateien für gängige Programmiersprachen.

34 Treffer

Grundbegriffe

Runtime

Runtime

node index.js

Bedeutung

A program or environment that actually runs code.

Einsatz

Node.js runs JavaScript, Python runs .py files, and the JVM runs compiled Java bytecode.

Beispiel

node index.js

Anfragebeispiel

Explain which runtime this project needs.

Grundbegriffe

Compiler

Compiler

gcc main.c -o main

Bedeutung

A tool that turns source code into another form, often an executable file.

Einsatz

C, C++, Rust, Go, and Java usually need a compilation step before or during execution.

Beispiel

gcc main.c -o main

Anfragebeispiel

Tell me which compiler command is needed for this file.

Grundbegriffe

Interpreter

Interpreter

python3 main.py

Bedeutung

A program that reads and runs source code directly or with minimal preparation.

Einsatz

Python is commonly run through an interpreter, while C is commonly compiled first.

Beispiel

python3 main.py

Anfragebeispiel

Explain whether this language is interpreted or compiled in normal use.

Grundbegriffe

PATH

PATH

echo $PATH

Bedeutung

A list of folders the terminal searches when you type a command.

Einsatz

If python, node, go, cargo, or javac is not found, PATH is one of the first settings to check.

Vorsicht

Editing PATH incorrectly can make normal commands disappear from the terminal.

Beispiel

echo $PATH

Anfragebeispiel

Check whether the needed runtime command is on PATH.

Grundbegriffe

Version check

Version check

python3 --version && node -v && go version

Bedeutung

A command pattern for confirming which runtime or compiler version is installed.

Einsatz

Use it before debugging version-specific build or package errors.

Beispiel

python3 --version && node -v && go version

Anfragebeispiel

List the version check commands for this language.

Grundbegriffe

Package manager

Package manager

pip install requests

Bedeutung

A tool that installs and records third-party libraries.

Einsatz

pip, npm, cargo, go modules, Maven, and Gradle all handle dependencies in different ecosystems.

Beispiel

pip install requests

Anfragebeispiel

Explain which package manager this project uses.

Python

python3

python3

python3 main.py

Bedeutung

The common command for running Python 3 scripts.

Einsatz

Use it to run a .py file directly or to create a virtual environment.

Beispiel

python3 main.py

Anfragebeispiel

Show how to run this Python file.

Python

venv

venv

python3 -m venv .venv

Bedeutung

A per-project Python environment for isolating installed packages.

Einsatz

Use it when different projects need different package versions.

Vorsicht

After creating it, activate the environment before installing packages.

Beispiel

python3 -m venv .venv

Anfragebeispiel

Create and explain a Python virtual environment for this project.

Python

Activate venv

activate

source .venv/bin/activate

Bedeutung

Switches the terminal to use the Python and pip inside the virtual environment.

Einsatz

Use it before pip install or python commands in that project.

Beispiel

source .venv/bin/activate

Anfragebeispiel

Tell me whether the Python virtual environment is active.

Python

pip

pip

pip install requests

Bedeutung

Python's package installation tool.

Einsatz

Use it to install libraries listed by a project or needed by a script.

Vorsicht

Make sure pip belongs to the same Python environment you will run.

Beispiel

pip install requests

Anfragebeispiel

Check which Python environment this pip command uses.

Python

requirements.txt

requirements.txt

pip install -r requirements.txt

Bedeutung

A text file listing Python packages to install.

Einsatz

Use it to recreate a project's Python package environment.

Beispiel

pip install -r requirements.txt

Anfragebeispiel

Install packages from requirements.txt in the active venv.

C

gcc

gcc

gcc main.c -o main

Bedeutung

A common compiler for C source files.

Einsatz

Use it to turn main.c into an executable file.

Vorsicht

Compiling creates an executable; it does not automatically run it.

Beispiel

gcc main.c -o main

Anfragebeispiel

Compile this C file and explain the output executable.

C

clang

clang

clang main.c -o main

Bedeutung

A C compiler commonly available on macOS through Xcode Command Line Tools.

Einsatz

Use it as an alternative to gcc for compiling C files.

Beispiel

clang main.c -o main

Anfragebeispiel

Check whether clang is installed and compile this C file.

C

.h header file

.h header file

#include "math_utils.h"

Bedeutung

A file that usually declares functions, types, constants, or shared interfaces for C code.

Einsatz

Use it when multiple .c files need to share declarations.

Beispiel

#include "math_utils.h"

Anfragebeispiel

Explain how this header file connects to the C source files.

C

Makefile

Makefile

make

Bedeutung

A file that defines build commands and dependencies for make.

Einsatz

Use it when compiling a C or C++ project needs multiple repeated commands.

Beispiel

make

Anfragebeispiel

Explain what this Makefile builds.

C++

g++

g++

g++ main.cpp -std=c++20 -o main

Bedeutung

A common compiler command for C++ source files.

Einsatz

Use g++ instead of gcc when compiling C++ code.

Beispiel

g++ main.cpp -std=c++20 -o main

Anfragebeispiel

Compile this C++ file with the right standard option.

C++

C++ standard

C++ standard

-std=c++20

Bedeutung

A setting that tells the compiler which C++ language version to use.

Einsatz

Use it when code depends on features from C++17, C++20, or another standard.

Vorsicht

A project can fail if the compiler is too old for the selected standard.

Beispiel

-std=c++20

Anfragebeispiel

Tell me which C++ standard this code needs.

C++

CMake

CMake

cmake -S . -B build

Bedeutung

A build configuration tool often used for C and C++ projects.

Einsatz

Use it when a project has CMakeLists.txt instead of a simple single-file compile command.

Beispiel

cmake -S . -B build

Anfragebeispiel

Explain the CMake configure and build commands for this project.

Go

go

go

go version

Bedeutung

The main command for running, building, testing, and managing Go modules.

Einsatz

Use it for go run, go build, go test, go mod, and dependency management.

Beispiel

go version

Anfragebeispiel

Check the installed Go version.

Go

go run

go run

go run main.go

Bedeutung

Compiles and runs Go code in one command.

Einsatz

Use it while developing a small Go program or testing a main package quickly.

Beispiel

go run main.go

Anfragebeispiel

Run this Go program and explain any errors.

Go

go.mod

go.mod

go mod init example.com/my-app

Bedeutung

The file that defines a Go module and its dependency requirements.

Einsatz

Use it as the project boundary for Go dependency and import resolution.

Beispiel

go mod init example.com/my-app

Anfragebeispiel

Explain what this go.mod file defines.

Go

go mod tidy

go mod tidy

go mod tidy

Bedeutung

Adds missing Go module requirements and removes unused ones.

Einsatz

Use it after changing imports or before committing Go dependency changes.

Beispiel

go mod tidy

Anfragebeispiel

Run go mod tidy and summarize dependency changes.

JavaScript / Node.js

Node.js

Node.js

node index.js

Bedeutung

A runtime for running JavaScript outside the browser.

Einsatz

Use it for backend scripts, build tools, and web framework tooling such as Next.js.

Vorsicht

Browser JavaScript and Node.js do not have exactly the same APIs.

Beispiel

node index.js

Anfragebeispiel

Check whether this JavaScript code is meant for Node.js or the browser.

JavaScript / Node.js

npm

npm

npm install

Bedeutung

The default package manager installed with Node.js.

Einsatz

Use it to install packages and run scripts defined in package.json.

Beispiel

npm install

Anfragebeispiel

Explain the npm scripts in this package.json.

JavaScript / Node.js

package.json

package.json

"scripts": { "dev": "next dev" }

Bedeutung

A Node.js project file that records scripts, dependencies, and package metadata.

Einsatz

Use it to understand npm run dev, npm run build, and required packages.

Beispiel

"scripts": { "dev": "next dev" }

Anfragebeispiel

Tell me what commands this package.json exposes.

JavaScript / Node.js

nvm

nvm

nvm use

Bedeutung

A tool for switching Node.js versions per project.

Einsatz

Use it when a project requires a specific Node version.

Beispiel

nvm use

Anfragebeispiel

Check whether this project specifies a Node version.

Rust

rustup

rustup

rustup show

Bedeutung

The recommended tool for installing and managing Rust toolchains.

Einsatz

Use it to install Rust, switch stable/nightly, or add targets.

Beispiel

rustup show

Anfragebeispiel

Check the active Rust toolchain.

Rust

rustc

rustc

rustc main.rs

Bedeutung

The Rust compiler.

Einsatz

Use it for simple single-file Rust experiments, though real projects usually use cargo.

Beispiel

rustc main.rs

Anfragebeispiel

Explain whether this Rust project should use rustc or cargo.

Rust

cargo

cargo

cargo run

Bedeutung

Rust's package manager, build tool, test runner, and project runner.

Einsatz

Use cargo run, cargo build, and cargo test for normal Rust projects.

Beispiel

cargo run

Anfragebeispiel

Run this Rust project with cargo and explain the output.

Rust

Cargo.toml

Cargo.toml

[dependencies]

Bedeutung

The manifest file that defines a Rust package, metadata, and dependencies.

Einsatz

Use it to understand which crates the Rust project depends on.

Beispiel

[dependencies]

Anfragebeispiel

Explain the dependencies in this Cargo.toml.

Java

JDK

JDK

java -version

Bedeutung

The Java Development Kit includes tools needed to compile and run Java programs.

Einsatz

Use it when a project needs javac, java, Maven, Gradle, or another Java build tool.

Beispiel

java -version

Anfragebeispiel

Check whether a JDK is installed and which version is active.

Java

javac

javac

javac Main.java

Bedeutung

The Java compiler that turns .java files into .class bytecode files.

Einsatz

Use it for simple Java files or to understand what build tools do internally.

Beispiel

javac Main.java

Anfragebeispiel

Compile this Java file and explain the generated class file.

Java

java

java

java Main

Bedeutung

Runs compiled Java classes on the JVM.

Einsatz

Use it after compiling a simple Java program with javac.

Vorsicht

Run java Main, not java Main.class.

Beispiel

java Main

Anfragebeispiel

Show the compile and run commands for this Java file.

Java

Maven / Gradle

Maven / Gradle

mvn test / ./gradlew test

Bedeutung

Common Java build tools for dependencies, tests, packaging, and project tasks.

Einsatz

Use Maven when a project has pom.xml and Gradle when it has build.gradle or gradlew.

Beispiel

mvn test / ./gradlew test

Anfragebeispiel

Tell me whether this Java project uses Maven or Gradle.