Julia Examples
Julia aligned plain-text terminal table renderer
Renders headers and rows as a padded plain-text table whose columns stay aligned in any monospace font.
Julia Base64 encode and strict decode
Encodes bytes as Base64 and decodes text back, rejecting illegal characters and bad padding lengths.
Julia field-level input validation collector
Validates a dictionary of fields against predicate rules and returns all field-level error messages at once.
Julia build and parse URL query strings
Percent-encodes parameters into a query string and parses one back into a dict of repeated values.
Julia JSON decode with positional error context
Decodes JSON and rethrows parse failures with the failing byte position and a short excerpt of the input.
Julia bounded worker pool with error capture
Runs a function over many inputs with a fixed number of threads, returning both results and captured errors.
Julia HTTP GET JSON with connect timeout
Performs an HTTP GET with a timeout, checks the status code, and parses the response body as JSON.
Julia validated environment configuration loader
Reads typed settings from environment variables with defaults and reports every invalid value in one error.
Julia token bucket rate limiter struct
A token bucket that permits short bursts up to capacity while enforcing a steady average rate over time.
Julia multi-key stable sort with nulls last
Sorts named tuples by several keys at once, placing missing values last and preserving original order for ties.
Julia LRU cache with a bounded size
A bounded cache that evicts the least recently used key when full, using a dict plus an access-order vector.
Julia split a sequence into fixed-size chunks
Splits any iterable into consecutive vectors of at most N elements, with a shorter final chunk when needed.
Julia stream a text file line by line
Streams a text file one line at a time through a callback, skipping blank lines and keeping memory flat.
Julia recursive deep copy and merge for nested dicts
Deep copies nested dictionaries and vectors, then recursively merges a patch in without mutating either input.
Julia capped exponential backoff retry helper
Retries a fallible function with capped exponential backoff plus jitter, rethrowing after the last attempt fails.