Extras

Imported from the upstream Vibescript examples at arrays/extras.vibe and runnable in the browser today.

Arrays

Jobs And Events

Imported from the upstream Vibescript examples at background/jobs_and_events.vibe and runnable in the browser today.

Background

Functions And Calls

Imported from the upstream Vibescript examples at basics/functions_and_calls.vibe and runnable in the browser today.

Basics

Literals And Operators

Imported from the upstream Vibescript examples at basics/literals_and_operators.vibe and runnable in the browser today.

Basics

Blocks Advanced

Imported from the upstream Vibescript examples at blocks/advanced.vibe and runnable in the browser today.

Blocks

Blocks Transformations

Imported from the upstream Vibescript examples at blocks/transformations.vibe and runnable in the browser today.

Blocks

Enumerable Reports

Imported from the upstream Vibescript examples at blocks/enumerable_reports.vibe and runnable in the browser today.

Blocks

Yield Patterns

Imported from the upstream Vibescript examples at blocks/yield_patterns.vibe and runnable in the browser today.

Blocks

Capabilities Iteration

Imported from the upstream Vibescript examples at capabilities/iteration.vibe and runnable in the browser today.

Capabilities

Context Access

Imported from the upstream Vibescript examples at capabilities/context_access.vibe and runnable in the browser today.

Capabilities

Database Queries

Imported from the upstream Vibescript examples at capabilities/database_queries.vibe and runnable in the browser today.

Capabilities

Collections Arrays

Imported from the upstream Vibescript examples at collections/arrays.vibe and runnable in the browser today.

Collections

Hashes

Imported from the upstream Vibescript examples at collections/hashes.vibe and runnable in the browser today.

Collections

Symbols

Imported from the upstream Vibescript examples at collections/symbols.vibe and runnable in the browser today.

Collections

Case When

Imported from the upstream Vibescript examples at control_flow/case_when.vibe and runnable in the browser today.

Control Flow

Conditionals

Imported from the upstream Vibescript examples at control_flow/conditionals.vibe and runnable in the browser today.

Control Flow

Loop Control

Imported from the upstream Vibescript examples at control_flow/loop_control.vibe and runnable in the browser today.

Control Flow

Recursion

Imported from the upstream Vibescript examples at control_flow/recursion.vibe and runnable in the browser today.

Control Flow

Until Loop

Imported from the upstream Vibescript examples at control_flow/until_loop.vibe and runnable in the browser today.

Control Flow

While Loop

Imported from the upstream Vibescript examples at control_flow/while_loop.vibe and runnable in the browser today.

Control Flow

Durations

Imported from the upstream Vibescript examples at durations/durations.vibe and runnable in the browser today.

Durations

Enums Operations

Imported from the upstream Vibescript examples at enums/operations.vibe and runnable in the browser today.

Enums

Assertions

Imported from the upstream Vibescript examples at errors/assertions.vibe and runnable in the browser today.

Errors

Hashes Operations

Imported from the upstream Vibescript examples at hashes/operations.vibe and runnable in the browser today.

Hashes

Hashes Transformations

Imported from the upstream Vibescript examples at hashes/transformations.vibe and runnable in the browser today.

Hashes

Fizzbuzz

Imported from the upstream Vibescript examples at loops/fizzbuzz.vibe and runnable in the browser today.

Loops

Loops Advanced

Imported from the upstream Vibescript examples at loops/advanced.vibe and runnable in the browser today.

Loops

Loops Iteration

Imported from the upstream Vibescript examples at loops/iteration.vibe and runnable in the browser today.

Loops

Money Operations

Imported from the upstream Vibescript examples at money/operations.vibe and runnable in the browser today.

Money

Access Control

Imported from the upstream Vibescript examples at policies/access_control.vibe and runnable in the browser today.

Policies

Usage

Imported from the upstream Vibescript examples at ranges/usage.vibe and runnable in the browser today.

Ranges

100 doors

Toggle one hundred doors and return the open door numbers.

Rosetta Code

99 Bottles of Beer

Generate the full 99 Bottles of Beer song from 99 down to 0.

Rosetta Code

Abbreviations, automatic

Compute the shortest unique command prefixes for a fixed command set and resolve sample abbreviations.

Rosetta Code

Abbreviations, simple

Resolve simple command abbreviations by matching unique prefixes from a fixed command list.

Rosetta Code

Abundant odd numbers

Check a few well-known odd abundant numbers by comparing them with their proper divisor sums.

Rosetta Code

Abundant, deficient and perfect number classifications

Classify sample integers by comparing them with the sum of their proper divisors.

Rosetta Code

Align columns

Align Rosetta Code's dollar-delimited sample text into left, right, and centered columns.

Rosetta Code

Aliquot sequence classifications

Build short aliquot sequences and classify whether they terminate, loop, or are perfect.

Rosetta Code

Anagrams

Group a fixed word list into anagram sets using sorted-letter signatures.

Rosetta Code

Angle difference between two bearings

Compute the smallest signed turn needed to move from one bearing to another.

Rosetta Code

Angles (geometric), normalization and conversion

Normalize degree angles and convert between degrees and radians for fixed sample values.

Rosetta Code

Bacon cipher

Encode and decode short messages with Bacon's five-letter A/B cipher.

Rosetta Code

Balanced ternary

Convert small signed integers into balanced ternary using 1, 0, and T digits.

Rosetta Code

Best shuffle

Produce a low-fixed-point shuffle by rotating the sorted characters of a word.

Rosetta Code

Binary digits

Convert fixed non-negative integers into binary strings.

Rosetta Code

Binary strings

Generate all binary strings of a fixed length with a simple recursive builder.

Rosetta Code

Bitwise operations

Demonstrate common bitwise operations with a manual 8-bit model so the results stay runnable in plain Vibescript.

Rosetta Code

Box the compass

Map degree headings to the correct 32-point compass names for the Rosetta Code sample bearings.

Rosetta Code

Brazilian numbers

Find the first Brazilian numbers by searching for bases whose representation uses one repeated digit.

Rosetta Code

Bubble sort

Sort an array of integers using the bubble sort algorithm.

Rosetta Code

Call a function

Demonstrate direct function calls with positional arguments and composed results.

Rosetta Code

Cartesian product of two or more lists

Build Cartesian products iteratively for a pair of lists and a three-list input.

Rosetta Code

Catalan numbers

Generate the opening Catalan numbers with the standard multiplicative recurrence.

Rosetta Code

Chinese zodiac

Map sample years to their Chinese zodiac animal and element.

Rosetta Code

Conditional structures

Classify values with if, elsif, and else branches.

Rosetta Code

Day of the week

Compute weekdays for fixed Gregorian dates with Zeller's congruence.

Rosetta Code

Determine if a string is numeric

Recognize simple signed integer and decimal strings.

Rosetta Code

Determine if a string is squeezable

Collapse repeated adjacent characters and compare the squeezed result with a target string.

Rosetta Code

Digital root

Compute the digital root and additive persistence of a non-negative integer.

Rosetta Code

Discordian date

Convert Gregorian dates into the Discordian calendar.

Rosetta Code

Dot product

Compute the dot product of two vectors of equal length.

Rosetta Code

Ethiopian multiplication

Multiply two integers by repeated halving, doubling, and summing odd rows.

Rosetta Code

Factorial

Compute factorial values both recursively and iteratively.

Rosetta Code

Factors of an integer

Compute all positive factors of a small positive integer with trial division up to its square root.

Rosetta Code

Farey sequence

Generate Farey sequences of small orders with the classic iterative recurrence.

Rosetta Code

Fibonacci n-step number sequences

Generate Tribonacci and Tetranacci sequences by summing the previous n terms.

Rosetta Code

Fibonacci sequence

Produce the opening terms of the Fibonacci sequence iteratively.

Rosetta Code

Fibonacci word

Build the opening Fibonacci words by concatenating the two previous terms.

Rosetta Code

Find palindromic numbers in both binary and ternary bases

Search for numbers whose binary and ternary representations are both palindromes.

Rosetta Code

Find words which contain the most consonants

Count consonants in a fixed word list and return the words with the highest totals.

Rosetta Code

FizzBuzz

Emit the classic FizzBuzz sequence up to a chosen limit.

Rosetta Code

Floyd's triangle

Generate the opening rows of Floyd's triangle.

Rosetta Code

Four bit adder

Add two four-bit binary values and return the carry with the result bits.

Rosetta Code

Fraction reduction

Reduce sample fractions to lowest terms with Euclid's algorithm.

Rosetta Code

Gray code

Generate the 4-bit Gray code sequence with the standard reflective construction.

Rosetta Code

Greatest common divisor

Compute greatest common divisors with the iterative Euclidean algorithm on a fixed sample set.

Rosetta Code

Greedy algorithm for Egyptian fractions

Decompose sample rational numbers into Egyptian fractions with the standard greedy method.

Rosetta Code

Hailstone sequence

Build a hailstone sequence and report its length.

Rosetta Code

Hamming numbers

Generate the opening Hamming numbers with the classic 2-3-5 pointer technique.

Rosetta Code

Happy numbers

Classify happy numbers by iterating the sum-of-squares process and list the first twelve.

Rosetta Code

Harshad or Niven series

Find Harshad (Niven) numbers — integers divisible by the sum of their own digits.

Rosetta Code

Heronian triangles

Search a small side-length range for Heronian triangles with integer area.

Rosetta Code

Humble numbers

Generate humble numbers with the standard 2-3-5-7 pointer technique.

Rosetta Code

I before E except after C

Check sample words against the classic “i before e except after c” spelling rule.

Rosetta Code

Insertion sort

Sort an array by repeatedly inserting each element into its correct position.

Rosetta Code

Isqrt (integer square root) of X

Compute integer square roots with a binary search over fixed sample inputs.

Rosetta Code

Josephus problem

Find the survivor position in the Josephus problem for n people counting every k-th.

Rosetta Code

Kaprekar numbers

Test fixed integers for the Kaprekar split-square property.

Rosetta Code

Kaprekar routine

Apply the Kaprekar routine to a 4-digit number and watch it converge to 6174.

Rosetta Code

Last letter-first letter

Build a word chain where each next word starts with the previous word's last letter.

Rosetta Code

Leap year

Determine whether a given year is a leap year using the Gregorian calendar rules.

Rosetta Code

Letter frequency

Count alphabetic character frequencies in a sample phrase.

Rosetta Code

Levenshtein distance

Compute edit distance with insert, delete, and substitute operations using a single rolling row.

Rosetta Code

Long multiplication

Break a multiplication problem into the partial products used by long multiplication.

Rosetta Code

Look-and-say sequence

Generate terms of the look-and-say sequence where each term describes the digits of the previous one.

Rosetta Code

Luhn test of credit card numbers

Validate a small deterministic set of account numbers with the Luhn checksum.

Rosetta Code

Lychrel numbers

Check sample numbers for palindrome formation under the reverse-and-add process.

Rosetta Code

Magic squares of odd order

Build a 3x3 magic square with the classic Siamese method.

Rosetta Code

Matrix multiplication

Multiply two small matrices and return the deterministic product matrix.

Rosetta Code

Matrix transposition

Transpose a matrix by swapping its rows and columns.

Rosetta Code

Middle three digits

Return the middle three digits of integers that have an odd number of digits.

Rosetta Code

Minimum multiple of m where digital sum equals m

Search small multiples until the digit sum matches the divisor.

Rosetta Code

Morse code

Encode text to Morse code using a fixed A-Z and digit lookup table.

Rosetta Code

Multiplication tables

Build a small multiplication table as nested arrays.

Rosetta Code

N-smooth numbers

Generate the first twenty 5-smooth numbers by stripping allowed small factors.

Rosetta Code

Narcissistic decimal number

Identify fixed sample numbers that equal the sum of their digits raised to the digit count.

Rosetta Code

Natural sorting

Sort filenames by comparing embedded digit runs numerically instead of lexicographically.

Rosetta Code

Number names

Spell small whole numbers in English words for predictable sample inputs.

Rosetta Code

Numerical integration

Approximate definite integrals with the trapezoidal rule over fixed functions.

Rosetta Code

Palindrome detection

Detect palindromes after normalizing letters and digits to lowercase.

Rosetta Code

Palindromic gapful numbers

Find the first palindromic gapful numbers in a bounded decimal range.

Rosetta Code

Pangram checker

Check whether a sentence contains every letter of the alphabet at least once.

Rosetta Code

Parse an IP Address

Parse dotted IPv4 strings into four validated octets.

Rosetta Code

Pascal's triangle

Generate the opening rows of Pascal's triangle iteratively.

Rosetta Code

Permutations

Generate every permutation of three items with a simple recursive backtracking routine.

Rosetta Code

Pig Latin

Translate English words into Pig Latin by moving leading consonants and appending ay.

Rosetta Code

Playing cards

Construct a standard 52-card deck from suit and rank combinations.

Rosetta Code

Prime decomposition

Decompose composite integers into their prime factors with straightforward trial division.

Rosetta Code

Priority queue

Model a simple highest-priority-first queue with sorted insertion over an array-backed store.

Rosetta Code

Pythagorean triples

Enumerate small Pythagorean triples with bounded hypotenuse.

Rosetta Code

Range extraction

Compress an ordered list of integers into Rosetta Code's comma-and-range string format.

Rosetta Code

Roman numerals/Decode

Convert a Roman numeral string back to its integer value.

Rosetta Code

Roman numerals/Encode

Convert an integer to its Roman numeral representation.

Rosetta Code

Rosetta Code A+B

Add fixed integer pairs and return the resulting sums.

Rosetta Code

Rosetta Code A+B

Return the sum of integer pairs.

Rosetta Code

Rosetta Code Arrays

Demonstrate basic array creation, indexing, appending, and aggregation in Vibescript.

Rosetta Code

Rot-13

Encode and decode text by rotating letters by thirteen positions.

Rosetta Code

Run-length encoding

Encode and decode a short sample string with classic run-length encoding.

Rosetta Code

Selection sort

Sort an array by repeatedly selecting the minimum element from the unsorted portion.

Rosetta Code

Sequence of primorial primes

Check primorial minus one and plus one values for primality over a short prime prefix.

Rosetta Code

Set

Demonstrate union, intersection, and difference with array-backed sets.

Rosetta Code

Show ASCII table

Return a compact slice of ASCII rows with code, character, and ordinal data.

Rosetta Code

Sieve of Eratosthenes

Generate the prime numbers up to fifty with the classic sieve.

Rosetta Code

Smith numbers

Detect Smith numbers by comparing the digit sum of a composite integer with the digit sum of its prime factors.

Rosetta Code

Spiral matrix

Fill a square matrix in clockwise spiral order.

Rosetta Code

Square-free integers

List the square-free integers up to thirty.

Rosetta Code

Stack

Model a small LIFO stack with push, pop, and peek over an array-backed store.

Rosetta Code

String comparison

Compare sample string pairs lexicographically and report the sign of each comparison.

Rosetta Code

String matching

Find every starting index of a pattern inside a fixed string with a naive scan.

Rosetta Code

Substring

Extract substrings from a source string using start offsets and lengths.

Rosetta Code

Sum multiples of 3 and 5

Sum the integers below fixed limits that are divisible by three or five.

Rosetta Code

Taxicab numbers

Search a small cube-sum table for numbers that can be written as two sums of two cubes.

Rosetta Code

Temperature conversion

Convert fixed Celsius and Fahrenheit values with straightforward formulae.

Rosetta Code

Ternary logic

Build a small truth table for three-valued logic with true, maybe, and false states.

Rosetta Code

Top rank per group

Pick the highest-scoring row from each group with a stable tie-break on name.

Rosetta Code

Topological sort

Topologically sort a small dependency graph with Kahn's algorithm.

Rosetta Code

Total circles area

Sum the areas of several circles from their radii.

Rosetta Code

Towers of Hanoi

Solve Towers of Hanoi recursively and return the ordered move list for a small deterministic puzzle.

Rosetta Code

Tree traversal

Traverse a small binary tree in preorder, inorder, postorder, and level order.

Rosetta Code

Truth table

Enumerate boolean combinations for common logical operators.

Rosetta Code

UPC

Validate sample UPC codes with the standard checksum rule.

Rosetta Code

URL parser

Parse a fixed URL into scheme, host, path, and query parameters.

Rosetta Code

UTF-8 encode and decode

Encode fixed code points into UTF-8 byte arrays and decode them back.

Rosetta Code

Variables

Show variable assignment, reassignment, and derived values.

Rosetta Code

Vector products

Compute the dot product and cross product of two fixed three-dimensional vectors.

Rosetta Code

Vigenère cipher

Encode and decode a short uppercase message with a fixed Vigenère key.

Rosetta Code

Word frequency

Count the frequency of normalized words in a short sample passage.

Rosetta Code

Word wrap

Wrap a paragraph with the standard greedy algorithm at two different column widths.

Rosetta Code

Zeckendorf number representation

Represent integers as sums of non-consecutive Fibonacci numbers using Zeckendorf's theorem.

Rosetta Code

Zig-zag matrix

Fill a small square matrix with zig-zag diagonal ordering.

Rosetta Code

ABC Problem

Determine whether a word can be formed from a fixed set of two-letter blocks without reusing a block.

Rosetta Code Popular

Ackermann Function

Evaluate the classic Ackermann function for a few small inputs to demonstrate deep recursion.

Rosetta Code Popular

Balanced Brackets

Check whether bracket pairs are properly nested and closed by scanning the text with a stack.

Rosetta Code Popular

Binary Search

Locate values in a sorted array by repeatedly halving the remaining search interval.

Rosetta Code Popular

Caesar Cipher

Encode and decode text by rotating alphabetic characters through a fixed shift.

Rosetta Code Popular

Core Utilities

Imported from the upstream Vibescript examples at stdlib/core_utilities.vibe and runnable in the browser today.

Stdlib

Strings Operations

Imported from the upstream Vibescript examples at strings/operations.vibe and runnable in the browser today.

Strings

Duration

Imported from the upstream Vibescript examples at time/duration.vibe and runnable in the browser today.

Time

Approval chain

Express release approvals with typed states, Duration-based deadlines, and structured review steps.

Vibescript Showcase

Digest schedule

Schedule digest jobs with cadence enums, Duration windows, and template-driven subjects.

Vibescript Showcase

Escalation policy

Build support SLAs with typed severity enums, Duration windows, and structured routing output.

Vibescript Showcase

Late fee policy

Apply late-fee policy with money values, Duration aging buckets, and typed standing enums.

Vibescript Showcase

Maintenance window

Plan maintenance windows with typed environment enums, freeze notices, and Duration arithmetic.

Vibescript Showcase

On-call handoff

Package on-call handoffs with typed coverage enums, shift durations, and deterministic reminder times.

Vibescript Showcase

Payout schedule

Schedule merchant payouts with money totals, cadence enums, and Duration-based settlement delays.

Vibescript Showcase

Quote approval

Route quotes with money thresholds, approval enums, and structured decision output.

Vibescript Showcase

Refund decision

Make refund decisions with typed enums, money values, and Duration-based policy windows.

Vibescript Showcase

Release readiness

Model a release workflow with typed enums, time-aware scheduling, and structured status reporting.

Vibescript Showcase

Reminder schedule

Generate reminder jobs with enum channels, Duration lead times, and template-based subjects.

Vibescript Showcase

Retry backoff schedule

Build a retry schedule with typed enum policies and Duration-based exponential backoff.

Vibescript Showcase

Session expiry

Model session expiry with typed risk enums, Duration-based TTLs, and deterministic timestamps.

Vibescript Showcase

Shipping quote

Quote delivery windows with enum-based shipping speeds, money totals, and Duration math.

Vibescript Showcase

Subscription billing

Price a subscription invoice with typed plan enums and semantic money values.

Vibescript Showcase

Trial offer

Generate trial offers with account-type enums, Duration terms, and template-based onboarding copy.

Vibescript Showcase