Reads the entire contents of a UTF-8 text file into a fixed stack memory buffer. Raises E008 if file not found.
set contents to file.read("config.json")
display "Loaded: ", length of contents, " bytes"
Atomically creates or overwrites target file with the specified string data. Flushes OS buffer synchronously.
call file.write with "output.txt", "Sovereign build complete"
Reads a single line of text from standard input (stdin) up to newline terminator with zero trailing whitespace.
display "Enter username: "
set name to io.read_line()
Computes the IEEE-754 double precision square root using native CPU vector FPU instructions in O(1) time.
set root to math.sqrt(144) // 12.0
Calculates base raised to the power exponent with double-precision accuracy across integer and fractional powers.
set val to math.pow(2, 10) // 1024
Generates a cryptographically seeded pseudo-random integer in the inclusive range [min, max].
set dice to math.random(1, 6)
Partitions a string into a list of substrings separated by the specified delimiter string in O(N) linear time.
set words to string.split("enlangg is fast", " ")
Replaces all occurrences of pattern string with target string, returning a newly allocated stack string slot.
set clean to string.replace("foo-bar", "-", "_")
Strips leading and trailing ASCII whitespace (spaces, tabs, newlines) without altering interior text.
set clean to string.trim(" hello world ")
Appends an element to the end of a dynamic array list with amortized O(1) constant time allocation.
set items to []
call list.append with items, "first"
call list.append with items, "second"
Retrieves value associated with key from Robin Hood hash table in O(1) average lookup time.
set user to { "name": "Ada", "role": "Engineer" }
set role to map.get(user, "role", "Guest")
Dispatches a non-blocking HTTPS GET request via system TLS sockets and returns status code, headers, and body.
set res to http.get("https://api.github.com/zen")
display "Response: ", res.body
Launches a multi-threaded POSIX/WinSock HTTP micro-daemon listening on the specified port.
listen on port 8080:
on request: respond with "Hello from Enlangg"
Generates an authentic NIST FIPS 180-4 256-bit cryptographic digest as a 64-character lowercase hexadecimal string.
set hash to crypto.sha256("sovereign_token")
Computes a keyed-hash message authentication code (HMAC-SHA256) for verifying data integrity and API signatures.
set signature to crypto.hmac("secret_key", "payload")
Loads an installed CPython package (NumPy, PyTorch, Pandas) directly into virtual memory via C-ABI foreign call bridge.
set torch to python.import("torch")
set tensor to torch.randn([3, 3])
Executes arbitrary Python code within the shared virtual memory context, returning native C types back to Enlangg slots.
set result to python.eval("2 ** 32 - 1")
Returns the full array of command line arguments passed to the executable upon process invocation.
set args to system.argv()
display "Program invoked with ", length of args, " flags"
Returns current high-resolution monotonic UNIX timestamp in milliseconds since epoch (useful for precision micro-benchmarks).
set start to system.time_ms()
// run workload
set elapsed to system.time_ms() minus start
Reads the specified environment variable from the operating system session. Returns empty string if unset.
set port to system.get_env("PORT")