Engineering Tools for AI

Программирование

Среды выполнения по языкам

Справочник по runtime, компиляторам, пакетным менеджерам и конфигурации для популярных языков.

34 пунктов

Общие понятия

Runtime

Runtime

node index.js

Значение

A program or environment that actually runs code.

Когда использовать

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

Пример

node index.js

Пример запроса

Explain which runtime this project needs.

Общие понятия

Compiler

Compiler

gcc main.c -o main

Значение

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

Когда использовать

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

Пример

gcc main.c -o main

Пример запроса

Tell me which compiler command is needed for this file.

Общие понятия

Interpreter

Interpreter

python3 main.py

Значение

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

Когда использовать

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

Пример

python3 main.py

Пример запроса

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

Общие понятия

PATH

PATH

echo $PATH

Значение

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

Когда использовать

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

Осторожно

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

Пример

echo $PATH

Пример запроса

Check whether the needed runtime command is on PATH.

Общие понятия

Version check

Version check

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

Значение

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

Когда использовать

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

Пример

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

Пример запроса

List the version check commands for this language.

Общие понятия

Package manager

Package manager

pip install requests

Значение

A tool that installs and records third-party libraries.

Когда использовать

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

Пример

pip install requests

Пример запроса

Explain which package manager this project uses.

Python

python3

python3

python3 main.py

Значение

The common command for running Python 3 scripts.

Когда использовать

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

Пример

python3 main.py

Пример запроса

Show how to run this Python file.

Python

venv

venv

python3 -m venv .venv

Значение

A per-project Python environment for isolating installed packages.

Когда использовать

Use it when different projects need different package versions.

Осторожно

After creating it, activate the environment before installing packages.

Пример

python3 -m venv .venv

Пример запроса

Create and explain a Python virtual environment for this project.

Python

Activate venv

activate

source .venv/bin/activate

Значение

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

Когда использовать

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

Пример

source .venv/bin/activate

Пример запроса

Tell me whether the Python virtual environment is active.

Python

pip

pip

pip install requests

Значение

Python's package installation tool.

Когда использовать

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

Осторожно

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

Пример

pip install requests

Пример запроса

Check which Python environment this pip command uses.

Python

requirements.txt

requirements.txt

pip install -r requirements.txt

Значение

A text file listing Python packages to install.

Когда использовать

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

Пример

pip install -r requirements.txt

Пример запроса

Install packages from requirements.txt in the active venv.

C

gcc

gcc

gcc main.c -o main

Значение

A common compiler for C source files.

Когда использовать

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

Осторожно

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

Пример

gcc main.c -o main

Пример запроса

Compile this C file and explain the output executable.

C

clang

clang

clang main.c -o main

Значение

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

Когда использовать

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

Пример

clang main.c -o main

Пример запроса

Check whether clang is installed and compile this C file.

C

.h header file

.h header file

#include "math_utils.h"

Значение

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

Когда использовать

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

Пример

#include "math_utils.h"

Пример запроса

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

C

Makefile

Makefile

make

Значение

A file that defines build commands and dependencies for make.

Когда использовать

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

Пример

make

Пример запроса

Explain what this Makefile builds.

C++

g++

g++

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

Значение

A common compiler command for C++ source files.

Когда использовать

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

Пример

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

Пример запроса

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

C++

C++ standard

C++ standard

-std=c++20

Значение

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

Когда использовать

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

Осторожно

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

Пример

-std=c++20

Пример запроса

Tell me which C++ standard this code needs.

C++

CMake

CMake

cmake -S . -B build

Значение

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

Когда использовать

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

Пример

cmake -S . -B build

Пример запроса

Explain the CMake configure and build commands for this project.

Go

go

go

go version

Значение

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

Когда использовать

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

Пример

go version

Пример запроса

Check the installed Go version.

Go

go run

go run

go run main.go

Значение

Compiles and runs Go code in one command.

Когда использовать

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

Пример

go run main.go

Пример запроса

Run this Go program and explain any errors.

Go

go.mod

go.mod

go mod init example.com/my-app

Значение

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

Когда использовать

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

Пример

go mod init example.com/my-app

Пример запроса

Explain what this go.mod file defines.

Go

go mod tidy

go mod tidy

go mod tidy

Значение

Adds missing Go module requirements and removes unused ones.

Когда использовать

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

Пример

go mod tidy

Пример запроса

Run go mod tidy and summarize dependency changes.

JavaScript / Node.js

Node.js

Node.js

node index.js

Значение

A runtime for running JavaScript outside the browser.

Когда использовать

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

Осторожно

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

Пример

node index.js

Пример запроса

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

JavaScript / Node.js

npm

npm

npm install

Значение

The default package manager installed with Node.js.

Когда использовать

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

Пример

npm install

Пример запроса

Explain the npm scripts in this package.json.

JavaScript / Node.js

package.json

package.json

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

Значение

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

Когда использовать

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

Пример

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

Пример запроса

Tell me what commands this package.json exposes.

JavaScript / Node.js

nvm

nvm

nvm use

Значение

A tool for switching Node.js versions per project.

Когда использовать

Use it when a project requires a specific Node version.

Пример

nvm use

Пример запроса

Check whether this project specifies a Node version.

Rust

rustup

rustup

rustup show

Значение

The recommended tool for installing and managing Rust toolchains.

Когда использовать

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

Пример

rustup show

Пример запроса

Check the active Rust toolchain.

Rust

rustc

rustc

rustc main.rs

Значение

The Rust compiler.

Когда использовать

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

Пример

rustc main.rs

Пример запроса

Explain whether this Rust project should use rustc or cargo.

Rust

cargo

cargo

cargo run

Значение

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

Когда использовать

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

Пример

cargo run

Пример запроса

Run this Rust project with cargo and explain the output.

Rust

Cargo.toml

Cargo.toml

[dependencies]

Значение

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

Когда использовать

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

Пример

[dependencies]

Пример запроса

Explain the dependencies in this Cargo.toml.

Java

JDK

JDK

java -version

Значение

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

Когда использовать

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

Пример

java -version

Пример запроса

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

Java

javac

javac

javac Main.java

Значение

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

Когда использовать

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

Пример

javac Main.java

Пример запроса

Compile this Java file and explain the generated class file.

Java

java

java

java Main

Значение

Runs compiled Java classes on the JVM.

Когда использовать

Use it after compiling a simple Java program with javac.

Осторожно

Run java Main, not java Main.class.

Пример

java Main

Пример запроса

Show the compile and run commands for this Java file.

Java

Maven / Gradle

Maven / Gradle

mvn test / ./gradlew test

Значение

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

Когда использовать

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

Пример

mvn test / ./gradlew test

Пример запроса

Tell me whether this Java project uses Maven or Gradle.