Julia Examples

JuliaOct 23, 2026

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.

formattingtabletextcli
000
JuliaOct 23, 2026

Julia Base64 encode and strict decode

Encodes bytes as Base64 and decodes text back, rejecting illegal characters and bad padding lengths.

decodeencodingbase64
000
JuliaOct 23, 2026

Julia field-level input validation collector

Validates a dictionary of fields against predicate rules and returns all field-level error messages at once.

errorsvalidationforms
000
JuliaOct 23, 2026

Julia build and parse URL query strings

Percent-encodes parameters into a query string and parses one back into a dict of repeated values.

query-stringurlencoding
000
JuliaOct 23, 2026

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.

parsingerrorsjson
000
JuliaOct 23, 2026

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.

concurrencyworker-poolthreads
000
JuliaOct 23, 2026

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.

downloadshttpjsontimeout
000
JuliaOct 23, 2026

Julia validated environment configuration loader

Reads typed settings from environment variables with defaults and reports every invalid value in one error.

configenvgetenvvalidation
000
JuliaOct 23, 2026

Julia token bucket rate limiter struct

A token bucket that permits short bursts up to capacity while enforcing a steady average rate over time.

token-bucketrate-limitthrottle
000
JuliaOct 23, 2026

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.

sortnullsrecordscomparator
000
JuliaOct 23, 2026

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.

dictboundedlrucache
000
JuliaOct 23, 2026

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.

collectchunkbatchesiterable
000
JuliaOct 23, 2026

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.

streaminglinesfileio
000
JuliaOct 23, 2026

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.

dictmergedeep-copynested
000
JuliaOct 23, 2026

Julia capped exponential backoff retry helper

Retries a fallible function with capped exponential backoff plus jitter, rethrowing after the last attempt fails.

errorsbackoffretryjitter
000