Skip to main content

One post tagged with "Runtime Behavior"

View All Tags

Rust Sanitizes Standard Streams

· 10 min read
Pranav Ram Joshi
Software Engineer — Systems & Networks

Preamble

A programming language--in a hosted environment--has two crucial components: language features and runtime capabilities. For example, features such as traits are language features and it describes the functions (methods) a type may implement, borrow checker which statically analyzes program source to find common errors, and checks that are enforced during compilation are language features. Garbage collection, memory access checks, and other features that are available during program execution are runtime capabilities. We'll look into what happens when a hosted environment closes the standard streams of a Rust program along with masking the /dev directory. This directory is available in most UNIX-like systems, which is what I primarily use.