Engineering Tools for AI

प्रोग्रामिंग

Language runtime environments

Common programming languages चलाने के लिए runtime, compiler, package manager और config files की searchable guide।

34 items

सामान्य अवधारणाएँ

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.