roc/src/builtins
2025-12-15 20:01:23 +11:00
..
dec.zig Dec conversion functions 2025-11-27 17:37:29 -05:00
fuzz_sort.zig Clean up some comments 2025-12-04 09:56:53 -05:00
handlers.zig big cleanup 2025-12-11 11:20:08 +11:00
hash.zig Rename .C calling convention to .c 2025-09-06 20:52:08 -05:00
host_abi.zig update tracy hooks 2025-12-15 00:22:16 -08:00
list.zig Refactor to alignedPtrCast 2025-12-11 11:30:06 -05:00
main.zig Roc platform host shim (#8214) 2025-09-09 13:15:23 +02:00
mod.zig Add stack overflow handling for roc programs 2025-12-06 13:07:52 -05:00
num.zig Rename .C calling convention to .c 2025-09-06 20:52:08 -05:00
OWNERSHIP.md initial implementation of Box 2025-12-11 21:07:35 +11:00
README.md Update README's 2025-08-12 18:26:26 +10:00
sort.zig Refactor to alignedPtrCast 2025-12-11 11:30:06 -05:00
static_lib.zig WIP 2025-08-10 11:40:44 +10:00
str.zig Refactor to alignedPtrCast 2025-12-11 11:30:06 -05:00
utils.zig Refactor to alignedPtrCast 2025-12-11 11:30:06 -05:00

Builtins

Built-in functions, types, and runtime support for the Roc language.

Overview

The builtins module provides the core runtime functionality that every Roc program depends on. It includes fundamental operations, data types, and the interface between Roc code and the host platform.

Purpose

This module provides:

  • Core Data Types: Built-in types like strings, numbers, and basic collections
  • Runtime Operations: Fundamental operations like memory allocation, string manipulation, and arithmetic
  • Host Platform Interface: The bridge between Roc code and the underlying platform (ABI, system calls, etc.)
  • Standard Library: Essential functions that are always available in Roc programs

The builtins module is essential for both the compiler (during type checking and code generation) and the runtime (during program execution).