Hacker News

Source: https://news.ycombinator.com/

Subscribe to this expanded feed

https://fullrss.dev/?url=https%3A%2F%2Fnews.ycombinator.com%2Frss Open Raw
Formats:
Open in RSS reader:
Adjust extraction, AI TL;DR & filter options
Content
8 expanded (1 cached) 0 already full 2 fallback +16,233 words added 1287 ms
Jump to article (30 items)
  1. 1. Cryptanalytic result from Anthropic: paper title leaked 1 min
  2. 2. Nvdriver is a clean-room, open-source Rust Linux kernel driver for Nvidia GPUs 10 min
  3. 3. DoorDash reduced LLM search costs by 98% without losing accuracy 1 min
  4. 4. Netflix Turns Low-Fidelity Media into Production-Grade HDR with GlowNet 1 min
  5. 5. I built an LLM where Gemini 4 wrote the initial weights as code 4 min
  6. 6. A 5090 has more transistors than existed on the planet in 1972 1 min
  7. 7. US public sector cyberdefenders can find vulnerabilities with Mythos in GovCloud 3 min
  8. 8. We Must Pace the Frontier, Part 2 20 min
  9. 9. iOS on iPod Nano 5 min
  10. 10. Roc version 0.1.0, eight years in the making 31 min
  11. 11. Quantum Quasi-polynomial algorithms for lattice problems 1 min
  12. 12. How we got RCE in ARTEX 1 min
  13. 13. Philip Emanuel Weidmann, developer of Heretic, found dead 1 min
  14. 14. FujiKit – Open-source Fujifilm X-series protocol spec, Swift SDK, and CLI 1 min
  15. 15. CrowdGPT – A Collaboratively Trained AI 1 min
  16. 16. Show HN: Device, a free open-source DAW for Mac, Windows and Linux 1 min
  17. 17. Uncovering Hidden TCP Throttling in the Linux Kernel 1 min
  18. 18. A Visual Guide to Agent Harnesses 1 min
  19. 19. No WiFi on British Airways today cause their SSL certificate expired 4 days ago 1 min
  20. 20. AlexNot is a pure-symbolic ARC-AGI-1/2 solver 1 min
  21. 21. polykatamari – roll up the world, one vertex at a time 1 min
  22. 22. The TV Mahjong Game: Straight and to the Point 1 min
  23. 23. Compare AI models side by side in a spreadsheet format 1 min
  24. 24. Georgia Waffle House cuts cooling energy use 40% with new salt-based A/C system 1 min
  25. 25. Sudoku's Hidden Rule 1 min
  26. 26. Open-source, GPU-first EM simulation and automated meshing for KiCad 1 min
  27. 27. Zen of Palm (2003) [pdf] 1 min
  28. 28. Claude and I found a dwarf planet candidate 1 min
  29. 29. Show HN: Web app to practice piano from a MIDI file 1 min
  30. 30. The state of Rust allocators in 2026: stabilised 1 min
Per-item expansion report (30 items)
#ArticleStatusWords
1 Cryptanalytic result from Anthropic: paper title leaked Expanded · 1 → 49 words 1 → 49
2 Nvdriver is a clean-room, open-source Rust Linux kernel driver for Nvidia GPUs Expanded · 1 → 2166 words 1 → 2166
3 DoorDash reduced LLM search costs by 98% without losing accuracy Fallback (HTTP 403) 1 → 1
4 Netflix Turns Low-Fidelity Media into Production-Grade HDR with GlowNet Fallback (HTTP 403) 1 → 1
5 I built an LLM where Gemini 4 wrote the initial weights as code Expanded · 1 → 923 words 1 → 923
6 A 5090 has more transistors than existed on the planet in 1972 Expanded · 1 → 14 words 1 → 14
7 US public sector cyberdefenders can find vulnerabilities with Mythos in GovCloud Expanded · 1 → 593 words 1 → 593
8 We Must Pace the Frontier, Part 2 Expanded · 1 → 4408 words 1 → 4408
9 iOS on iPod Nano Expanded · 1 → 1120 words 1 → 1120
10 Roc version 0.1.0, eight years in the making Cached · 6968 words 1 → 6968
11 Quantum Quasi-polynomial algorithms for lattice problems Past limit 1 → 1
12 How we got RCE in ARTEX Past limit 1 → 1
13 Philip Emanuel Weidmann, developer of Heretic, found dead Past limit 1 → 1
14 FujiKit – Open-source Fujifilm X-series protocol spec, Swift SDK, and CLI Past limit 1 → 1
15 CrowdGPT – A Collaboratively Trained AI Past limit 1 → 1
16 Show HN: Device, a free open-source DAW for Mac, Windows and Linux Past limit 1 → 1
17 Uncovering Hidden TCP Throttling in the Linux Kernel Past limit 1 → 1
18 A Visual Guide to Agent Harnesses Past limit 1 → 1
19 No WiFi on British Airways today cause their SSL certificate expired 4 days ago Past limit 1 → 1
20 AlexNot is a pure-symbolic ARC-AGI-1/2 solver Past limit 1 → 1
21 polykatamari – roll up the world, one vertex at a time Past limit 1 → 1
22 The TV Mahjong Game: Straight and to the Point Past limit 1 → 1
23 Compare AI models side by side in a spreadsheet format Past limit 1 → 1
24 Georgia Waffle House cuts cooling energy use 40% with new salt-based A/C system Past limit 1 → 1
25 Sudoku's Hidden Rule Past limit 1 → 1
26 Open-source, GPU-first EM simulation and automated meshing for KiCad Past limit 1 → 1
27 Zen of Palm (2003) [pdf] Past limit 1 → 1
28 Claude and I found a dwarf planet candidate Past limit 1 → 1
29 Show HN: Web app to practice piano from a MIDI file Past limit 1 → 1
30 The state of Rust allocators in 2026: stabilised Past limit 1 → 1

Cryptanalytic result from Anthropic: paper title leaked

taoki (@justalexoki) on X

I've obtained a copy of the cryptanalytic result that Anthropic plans to publish this week. Yes, there is a result. Yes, it's very significant. Perhaps uncharacteristically, and as much as I would honestly like to, I won't share more until Anthropic publishes the result, which

Compare original feed summary (1 words)

Nvdriver is a clean-room, open-source Rust Linux kernel driver for Nvidia GPUs

GitHub - QuixiAI/nvdriver

image

nvdriver (nvidia_rs.ko) is a clean-room, open-source #![no_std] Rust Linux kernel driver for NVIDIA GPUs — built to be a drop-in replacement for NVIDIA's proprietary kernel driver while giving you back full control of the hardware you own. It works out of the box with unmodified NVIDIA userspace (CUDA, PyTorch, cuDNN, NCCL, llama.cpp, nvidia-smi, NVENC/NVDEC) and unmodified stock companion modules (nvidia-uvm.ko, nvidia-modeset.ko, nvidia-drm.ko), without reproducing the artificial software locks NVIDIA ships in its closed driver. That means PCIe & BAR1 P2P across consumer and datacenter GPUs, Resizable BAR1 enabled by default, GPUDirect RDMA, unlocked NVENC sessions, no vGPU/hypervisor/CSP allowlists, and native support for pre-GSP architectures (Maxwell, Pascal, Volta) alongside modern Turing–Blackwell–Rubin GSP-RM GPUs. On Tesla V100 (GV100) cards, nvdriver also unlocks HBM2 memory clocks to 1107 MHz (V100S factory spec, +26.2% memory bandwidth, 1,041.7 GB/s per card / 8.33 TB/s across 8× V100) alongside dynamic P0 boost (1290 MHz all-bin stable default / 1425 MHz golden-bin OC, 1380 MHz XBAR, and a 1 Hz on-die thermal guard) and live hardware nvidia-smi telemetry — made possible by the pioneering hardware research of arikamidotnet and FBR-ROM/FBR-RAM-Downloader.


Why nvdriver?

  • Drop-In Compatibility: Runs unmodified libcuda.so, libnvidia-ml.so, nvidia-smi, libnvidia-encode.so, libnvcuvid.so, PyTorch, cuDNN, NCCL, and llama.cpp — plus unmodified stock nvidia-uvm.ko and nvidia-modeset.ko / nvidia-drm.ko via exact CONFIG_MODVERSIONS bridges.
  • Unlocks Artificial Software Restrictions: Removes NVIDIA's closed-driver product-tier and chipset gates — enabling PCIe & Dynamic BAR1 P2P (RMDynBar1P2PEnable=1 + RMDisableFeatureDisablement=1, including optional PCIe P2P Atomics), Resizable BAR1 by default, Native Linux dma-buf + P2PDMA / GPUDirect RDMA, unrestricted NVENC sessions/telemetry, CMP Mining Card Full Compute Unlock (CMP 100-210, 170HX, 90HX, 70HX, 50HX, 40HX, 30HX), Ada Lovelace SM Speed-Select Tensor Unlock (unlock_ada_tensor=1), Unprivileged Hardware Profiling (unpriv_profiling=1 default for non-root ncu/nsys/CUPTI), Zero-Reboot Dynamic ECC Toggle (disable_ecc=1), and vGPU / SR-IOV without CPUID or GRID licensing timers.
  • +26.2% Tesla V100 Memory Bandwidth Out of the Box (1,041.7 GB/s / 8.33 TB/s on 8× V100): Safely raises GV100 HBM2 clocks from the stock 877.5 MHz cap to 1107.0 MHz (v100_hbm_ndiv=82, V100S factory spec) with dynamic P0 boost (1290 MHz all-bin stable GPC / 1380 MHz XBAR + 1 Hz thermal guard, 1425 MHz configurable), live runtime-writable sysfs clocks (no module reload), per-partition lock verification, automatic rollback on error, and clean restore on unload — thanks to arikamidotnet and FBR-ROM/FBR-RAM-Downloader.
  • Live Hardware Telemetry (nvidia-smi / NVML + Native Linux /sys/class/hwmon): Exposes per-GPU Linux hwmon sensors (temp1_input, power1_average, in0_input, gpc_clock_mhz, mem_clock_mhz, gpu_util_pct, mem_util_pct for lm-sensors, btop, nvtop, and Prometheus node_exporter) alongside NVML/RMAPI telemetry (PROM BIT VBIOS version 88.00.80.00.01, hardware NV_PPWR_PMU_IDLE_COUNT GPU & memory utilization counters 0x2080a097 / 0x20802087, and PMGR I2C INA3221 power probe).
  • x86_64 & ARM64 / SBC PCIe Support (ARCH=arm64): Builds for both x86_64-unknown-none and aarch64-unknown-none (-C target-feature=-neon,-fp-armv8) with explicit non-coherent DMA cache sync (dma_sync_single_for_cpu/device) for ARM64 PCIe boards (RK3588, Ampere Altra, Apple Silicon Linux).
  • Maxwell Through Blackwell & Rubin in One Driver: Supports pre-GSP GPUs (Maxwell, Pascal, Volta) natively in Rust alongside Turing, Ampere, Hopper, Ada Lovelace, Blackwell (620.70.06 GSP-RM default, 580 compat), and Rubin (GR100).
  • Built in #![no_std] Rust with Strict Kernel Hygiene: Pure #![no_std] Rust core statically linked into a minimal Linux C shim, passing a 10/10 kernel ABI audit (zero GOT relocations, zero SIMD/x87, zero memcpy/memset/memmove, zero unwind sections, every stack frame <= 1,024 bytes).
  • Verified on Real 8-GPU Hardware: Battle-tested side-by-side against stock NVIDIA 580.178.04 on 8× physical Tesla V100-SXM2-32GB (256 GiB VRAM) — passing 77/77 CUDA Parity Suite checks, 8-GPU PyTorch/NCCL AllReduce (59.71 GB/s BusBW, max_err = 0.0), 8-GPU 8.33 TB/s HBM2 STREAM Triad, multi-GPU FP16/FP32 GEMM & llama.cpp, 25.781 Gbps NVLink 2.0, H.264/HEVC NVENC & NVDEC, S3/S4 suspend/resume, and automatic Xid 31 fault recovery with clean module unload.

Performance vs. Proprietary NVIDIA 580.178.04 (Tesla V100-SXM2-32GB)

Single-GPU & 2-GPU NVLink Head-to-Head (Identical VFIO VMs, 0000:b2/b3:00.0)

Benchmark Proprietary 580.178.04 nvdriver (Default) Delta
PyTorch STREAM Triad (768 MiB) 821.85 GB/s 1,041.72 GB/s +26.8% (>1 TB/s!)
HBM2 D2D Copy (512 MiB) 819.01 GB/s 1,013.65 GB/s +23.8%
FP16 Tensor Core GEMM (8192³) 97.69 TFLOPS 107.17 TFLOPS +9.7%
FP32 GEMM (8192³) 14.18 TFLOPS 14.37 TFLOPS +1.3%
Memory-Bound LayerNorm + GELU 2.612 ms 2.126 ms 1.23× faster
llama.cpp Prompt Eval (pp512) 31,067 tok/s 34,884 tok/s +12.3%
Transformer Layer Fwd + Bwd 13.245 ms 12.885 ms +2.7% faster
CUDA Graph 50-op Replay 76.17 µs 80.20 µs 95.0% parity
PCIe Pinned H2D / D2H (256 MiB) 12.39 / 13.16 GB/s 12.40 / 13.16 GB/s 100% parity
2-GPU NVLink 2.0 NV2 Bidir / Unidir 94.0 / 48.1 GB/s 96.98 / 48.49 GB/s +3.2% (25.781 Gbps)

Bare-Metal 8× Tesla V100-SXM2-32GB (geodd03, 256 GiB VRAM)

Workload Measured on nvidia_rs.ko
8× V100 HBM2 STREAM Triad (1107 MHz) 8,334.1 GB/s (8.33 TB/s) aggregate (1,041.3–1,041.9 GB/s per GPU)
8-GPU PyTorch/NCCL AllReduce (FP16 256 MiB) 59.71 GB/s BusBW (34.12 GB/s AlgBW, max_err = 0.0)
8-GPU PyTorch DDP Transformer (92.4M, FP16 AMP) 497,072 tok/s (970.8 samples/s, 275.4 TFLOPS eff., 0.0e+00 weight parity)
8-GPU Simultaneous FP16 / FP32 GEMM (8192³) 776.14 TFLOPS FP16 / 103.44 TFLOPS FP32 aggregate (1290 MHz, 97.00–97.03 TFLOPS/GPU; 106.8 TFLOPS/GPU @ 1425 MHz)
8-GPU Layer-Split llama.cpp (-sm layer, 256 GiB) 30,169.8 tok/s pp512, 492.28 tok/s tg128 across all 8 GPUs

See docs/PARITY_AND_UNLOCKS.md for the complete 3-way benchmark breakdown (including stock-clock 877.5 MHz vs. unlocked 1107 MHz HBM2).


Supported GPUs (At a Glance)

Family Representative GPUs Status
Volta (GV100) Tesla V100 PCIe / SXM2 16GB & 32GB, Quadro GV100, Titan V, CMP 100-210 Live physical silicon verified (0-diff) on 8× V100-SXM2-32GB (with default 1107 MHz HBM2 + dynamic P0 boost + 25.781 Gbps NVLink 2.0)
Maxwell & Pascal GTX 750–1080 Ti, Titan X, Tesla M40/M60/P4/P40/P100 Native Rust HALs implemented & Unicorn-verified offline (awaiting physical silicon test)
Turing, Ampere, Hopper, Ada, Blackwell, Rubin RTX 20/30/40/50 series, T4, A100, H100/H200, L40S, B100/B200/GB200, GR100, CMP 30HX–170HX GSP-RM (620.70.06 / 580) + MMU V2/V3 HALs wired & verified offline (awaiting physical silicon test)

For the full 43-chip architecture matrix, verified workload parity table, and disassembly-backed table of unlocked NVIDIA restrictions, see docs/PARITY_AND_UNLOCKS.md.


Quick Start

Prerequisites

  • Linux x86_64 or arm64 (aarch64) with kernel headers (/lib/modules/$(uname -r)/build)
  • Rust toolchain with x86_64-unknown-none (or aarch64-unknown-none for ARM64/SBCs) target
  • Existing NVIDIA userspace libraries (libcuda.so, nvidia-smi, etc.)

Build & Validate

Build nvidia_rs.ko and run the 30-step unit, oracle, QEMU guest & kernel-hygiene gate

sh tools/validate_all.sh

ARM64 / SBC PCIe build (RK3588, Ampere Altra, Apple Silicon Linux)

ARCH=arm64 make modules

Optional: x86_64 Unicorn binary oracles & companion module bridges

python3 tools/mock_gv100_diff.py make uvm-bridge && python3 tools/check_uvm_symbol_conformance.py make modeset-bridge && python3 tools/check_modeset_symbol_conformance.py

Install & Useful Module Options

Use ./install.sh (supports Secure Boot MOK signing) or configure /etc/modprobe.d/nvidia_rs.conf:

options nvidia_rs pci_target=* runtime_engines=1

Key tunable parameters:

  • v100_hbm_ndiv=82 (default, runtime-writable 0644) — GV100 / CMP 100-210 HBM2 clock divider (82 = 1107 MHz V100S spec / +26.2%, 80 = 1080 MHz / +23%, 78 = 1053 MHz / +20%, 0 = stock 877.5 MHz).
  • v100_p0_gpc_ndiv=190 (default, runtime-writable 0644, auto-capped to 172 / 1290 MHz unless Level-3 HS voltage scaling succeeds) — GV100 dynamic P0 boost GPC NAFLL divider; can be updated live via /sys/module/nvidia_rs/parameters/v100_p0_gpc_ndiv without reloading the module.
  • v100_p0_volt_uv=0 (default, experimental) — Optional GV100 LOGIC rail voltage target in µV (hard-clamped to [800_000, 1_050_000] µV in <= 25 mV steps; 0 keeps VBIOS boot voltage and caps GPC to 1290 MHz).
  • unlock_ada_tensor=0 (opt-in) — Pre-GSP Ada Lovelace (AD10x / RTX 40-series) SM Speed-Select FP32-accumulate Tensor Core unlock (SS0 = 0x88888888, SS1 = 0x8, PLM-guarded).
  • dyn_bar1_p2p=1 (default) — Enables Dynamic BAR1 P2P (RMDynBar1P2PEnable=1 + RMDisableFeatureDisablement=1 + RMForceP2PType=2) in the GSP-RM registry alongside EnableResizableBar=1.
  • unpriv_profiling=1 (default) — Allows non-root userspace CUPTI / ncu / nsys hardware performance counters (RMRestrictProfilingToAdminUsers=0).
  • disable_ecc=0 (opt-in) — Zero-reboot dynamic ECC disable toggle across RMAPI, UVM, and GSP-RM without flashing InfoROM.
  • live_pci_irq=1 (default) — Enables storm-guarded hardware MSI-X/PCI IRQ servicing across PFIFO, PGRAPH, PMU, THERM, and HUB/MMU (live_pci_irq=0 to disable).
  • enable_resizable_bar=1 (default) — Automatically expands BAR1 to the largest supported ReBAR aperture.
  • force_p2p=0x11 (default) — Enables PCIe P2P Read+Write (0x211 opts into PCIe P2P Atomics).
  • gsp_abi=620 (default) — Selects GSP-RM 620.70.06 framing for Turing–Blackwell–Rubin (580 for 580.178.04 compat).
  • system_memory_pool_retain_mb=0 (default) — Trims cached system-memory pages on client close so MemAvailable stays accurate.

Live /sys/class/hwmon Telemetry & Runtime Clock Tuning

Every GPU exposes a native Linux hwmon sensor node (name = nvdriver) readable by lm-sensors, btop, nvtop, and Prometheus node_exporter, and GV100 clocks can be adjusted live without reloading nvidia_rs.ko:

Read live per-GPU sensors directly from sysfs (no libnvidia-ml.so required)

for h in /sys/class/hwmon/hwmon*; do [ "$(cat "$h/name" 2>/dev/null)" = "nvdriver" ] && \ echo "$h: $(( $(cat $h/temp1_input)/1000 ))C $(( $(cat $h/power1_average)/1000000 ))W gpc=$(cat $h/gpc_clock_mhz)MHz mem=$(cat $h/mem_clock_mhz)MHz util=$(cat $h/gpu_util_pct)%" done

Dynamically tune GV100 GPC NAFLL clock live (takes effect within 1 s, no reload)

echo 160 | sudo tee /sys/module/nvidia_rs/parameters/v100_p0_gpc_ndiv # 1200 MHz echo 172 | sudo tee /sys/module/nvidia_rs/parameters/v100_p0_gpc_ndiv # 1290 MHz

Safe Live Testing in a Disposable VFIO VM

Single-GPU CUDA Parity Suite v19 on a VFIO-bound Tesla V100

sudo python3 tools/vm/run_vfio_guest.py --bdf 0000:b3:00.0 --driver rust


580.178.04 Subsystem Parity & Kernel Module Suite

nvdriver ships 4 standalone Linux kernel modules (nvidia_rs.ko with integrated UVM, nvidia_rs_modeset.ko, nvidia_rs_drm.ko, and nvidia_rs_peermem.ko) with 100% Linux UVM ioctl parity (73/73), 2,096/2,096 RM controls dispatched, and 899 passing Rust unit/oracle tests:

Domain Ported Subsystems (src/nvidia/src/ & kernel-open/)
Compute, Scheduling & Sync CILP / GFXP preemption (cilp_preempt.rs), Persisting L2 EVICT_LAST (l2_cache.rs), Explicit Sync dma_fence timelines 0x00da (sync_timeline.rs), NVIDIA MPS (UVM_REGISTER_MPS_*), Async CE VRAM/ECC Scrubber (mem_scrub.rs)
Memory, UVM & P2P 100% Linux UVM ioctls (73/73), Linux HMM / SVA-ATS (uvm/hmm.rs), Thrashing/Prefetch heuristics (uvm/perf_heuristics.rs), Access Counter Notify Buffer 0xc365, Native dma-buf P2PDMA (NV_ESC_EXPORT_TO_DMABUF_FD), nvidia_rs_peermem.ko
Telemetry, Debug & Reliability HWPM (0x90cc/0xb0cc/0xb1cc/0xb2cc) & cuda-gdb (0x83de/0x83df) + 13 UVM_TOOLS_* ioctls, SPI/PROM InfoROM (inforom_spi.rs), ECC Poison Xid 94/95 containment (ecc_poison.rs), RC Watchdog (rc_watchdog.rs), FECS Ctxsw Timeout Dump (ctxsw_dump.rs), GSP CrashCat decoder (crashcat.rs), stock NVRM: Xid logs, full /proc/driver/nvidia/ tree
Power, Thermals & Interconnect Full PMU task stack VFE→THERM→VOLT→CLK→PMGR→PERF (pmu_task_stack.rs), LPWR GR-PG/MSCG/ELPG (lpwr_pg.rs), RTD3 & S3 VRAM preservation (rtd3_pm.rs), Fan 2.0/3.0 PWM (fan_cooler.rs), PCIe Gen1–5 & ASPM (pcie_bif.rs), NVLink 2.0 telemetry (nvlink_telemetry.rs), NVLink-C2C (nvlink_c2c.rs), NVSwitch/NVLS Multicast 0x00fd (nvls_multicast.rs)
Display, Media & Datacenter nvidia_rs_drm.ko (GEM/PRIME/KMS /dev/dri/renderD*), nvidia_rs_modeset.ko (/dev/nvidia-rs-modeset), EDID/vblank (display_kms.rs), DP AUX/DPCD (dp_aux.rs), VRR/G-Sync (vrr_gsync.rs), HDCP 1.x/2.2 (hdcp.rs), ACPI NBCI mux (acpi_nbci.rs), Video Falcons NVDEC/NVENC/SEC2 (video_falcon.rs), OFA/NVJPG (ofa_nvjpg.rs), MIG 0xc637/0xc638 & IMEX (mig_fabric.rs), SR-IOV/vGPU 0xa080–0xa084 (sriov_vgpu.rs), Live GSP-RM queue/LIBOS/CC (gsp_live.rs)

Documentation & Deep Dives


Repository Layout

.
├── src/nvidia/
│   ├── abi/                  # Stable C/Rust ABI definitions (nv_rs_abi)
│   ├── src/                  # Core #![no_std] Rust driver (nv_rs_core): gpu, mmu, fifo, rmapi, uvm
│   └── kernel/               # Linux kernel FFI & live GV100/GSP bring-up (nv_rs_kernel)
├── kernel-open/
│   ├── nvidia/               # Minimal Linux PCI/chardev/DMA/hwmon/dmabuf C shim -> nvidia_rs.ko
│   ├── nvidia-modeset/       # Standalone /dev/nvidia-rs-modeset module -> nvidia_rs_modeset.ko
│   ├── nvidia-drm/           # Standalone Linux DRM GEM/PRIME/KMS module -> nvidia_rs_drm.ko
│   ├── nvidia-peermem/       # Standalone GPUDirect RDMA peermem bridge -> nvidia_rs_peermem.ko
│   ├── uvm_bridge/           # 76-symbol CONFIG_MODVERSIONS bridge -> nvidia_rs_uvm_bridge.ko
│   └── modeset_bridge/       # nvidia_get_rm_ops bridge -> nvidia_rs_modeset_bridge.ko
├── docs/                     # Parity/unlock tables & technical write-ups
├── tools/                    # Validation gate, Unicorn binary oracles, VFIO VM harness & parity suites
├── dkms.conf                 # DKMS packaging for automatic rebuilds across kernel upgrades
└── install.sh                # Installer with Secure Boot MOK signing support

Known Limitations & Roadmap

  • GV100 Dynamic V/F Above 1290 MHz: Raising NV_THERM_VID0_PWM_1 (0x20344, Priv Level 3) above VBIOS boot voltage (~0.72 V) for 1425–1530 MHz across all silicon bins requires full PMU VFE + THERM + CLK + VOLT prerequisite bring-up. Until complete, nvidia_rs.ko safely caps GPC to 1290 MHz by default whenever voltage scaling is inactive.
  • Non-Volta & Display-Attached Silicon: Maxwell, Pascal, and Turing–Blackwell–Rubin GSP-RM/Display HALs are implemented and verified offline (119/119 mock_gv100_diff.py + 19/19 oracle_gsp_620.py), but have not yet been validated on physical non-Volta or display-attached GPUs.
  • Discrete PCIe GPUs Only (x86_64 & ARM64): Tegra integrated SoCs (Jetson Orin / Thor) are not supported.

Credits & Acknowledgments

Compare original feed summary (1 words)

I built an LLM where Gemini 4 wrote the initial weights as code

A Language Model Architecture Whose Initial Weights an LLM Can Write as Code

An LLM writes the program that fills 97% of a language model's stored weights with corpus statistics, with no gradient step. Gradient descent trains only a 103M-parameter network on top, and the model supports continual knowledge updates without training.

An LLM writes a program P that compiles a corpus D into frozen sparse tables T. A Transformer reads the tables through an Engram block after its fourth layer and through gated fusion with its output logits. An external edit layer sits on top.

An LLM writes a program P that compiles a text corpus D into frozen sparse tables T = P(D). The Transformer reads the tables at every position, through an Engram block after its fourth layer and through gated fusion with its output logits, and only the network is trained. After pretraining, an external edit layer (dashed) adds facts without any training.

Abstract

Weight-space programming (WSP) is the idea that a frontier LLM can read and write the weights of a neural network directly, without gradient descent. So far, however, WSP has been limited to small networks or to sparse edits of existing models, and it has not been used to build a language model from scratch. We instead have an LLM write a compiler that builds the model's initial weights. The compiler turns 31.8B tokens of corpus statistics into a 7.96 GiB bank of sparse tables, over 97% of the model's stored bytes, without a single gradient step. Gradient descent then trains a 103M-parameter network on top of the frozen tables. After pretraining, an external edit layer adds new facts without any training, enabling continual knowledge updates. Trained on 10B tokens on a single GPU, the table model reaches a word-level perplexity of 46.4 on held-out FineWeb-Edu documents, 11% lower than a parameter-matched model without tables (52.1), comparable under standard parameter scaling laws to making the network about 1.5 times larger, and raises mean zero-shot accuracy on ten tasks by 1.2 points. Over 10,000 sequential WikiBigEdit edits, the edit layer answers 99.9% of the edited questions and 97.4% of their paraphrases, leaves 98.2% of unrelated answers unchanged, and changes perplexity by only 0.003%, at 12 ms per fact with no gradient step. Fine-tuning and LoRA, by comparison, recall at most 36.3% of the edits and push perplexity above 1,000. Code and results are available at github.com/Kim-Ai-gpu/wtable-lm.

Results

Hover over any bar or point for exact values.

Same network, lower perplexity

Both models have the same backbone, about 103M trained parameters, and the same 10B training tokens. The only difference is the frozen tables.

Word-level perplexity on 2,000 held-out FineWeb-Edu test documents, context 1,024. The 1.5× estimate uses the parameter scaling law of Kaplan et al. (2020), loss ∝ N−0.076.

Bigger tables keep helping

Keep only the most frequent fraction F of table entries in the trained model, without retraining. Perplexity improves with every doubling and shows no sign of saturating.

Show

Zero-shot accuracy

Accuracy of the table model minus the baseline on ten tasks. The largest gains come on tasks that reward common associations between words and events.

lm-eval 0.4.13, zero-shot, length-normalized accuracy where available. Results on all 21 evaluated tasks are in the paper's appendix.

Adding 10,000 facts after pretraining

WikiBigEdit facts are applied one batch after another and never undone. The edit layer stores each fact as a record and trains nothing. Weight editing keeps learning the new facts but forgets the old ones and damages the model.

Metric

Show results after 10,000 edits

EM is SQuAD-normalized exact match (%). Loc keep is the share of unrelated questions whose answer did not change. Perplexity is word-level on 2,000 validation documents. Time is the editing cost per fact on one T4 GPU.

How the edit layer adds a fact

Writing facts into the tables fails, because the last few tokens before an answer are almost always the same question template. The edit layer keeps facts outside the tables instead.

1

Store a record

Subject tokens, a key (the hidden state where the answer should be given) and the answer tokens. One forward pass, about 12 ms, no gradient step.

2

Fire only when it should

The subject must appear verbatim in the last 64 tokens (stored with and without a leading space, never inside a longer word), and the raw hidden state must match the key, cos(ht, ki) ≥ 0.93. No statistics of the prompt template are needed.

3

Push the answer

The stored answer token is raised 1.5 above the current top logit, one token after another, until the answer ends.

Records are plain data, so a person or an LLM can write, inspect or delete them. A new edit for the same subject and relation replaces the old one.

Eighteen channels, one interface

Every channel answers in the same form, a short list of next-token candidates with scores, so the network only learns how much to trust each one at each position.

Group Predicts the next token from Channels
n-gram the last 1 to 5 tokens 5
Skip-gram earlier tokens, with gaps 3
Synonym synonym clusters of recent tokens 2
Concept associations between concepts 2
Rule explicit phrase and fact rules 2
In-context the current document 4

The first five groups are counted from 31.8B FineWeb-Edu tokens, disjoint from the network's training data. The compiler was designed by Gemini 4 Neon.

Citation

@article{202611.3172, doi = {10.20944/preprints202611.3172.v1}, url = {https://doi.org/10.20944/preprints202611.3172.v1}, year = 2026, month = {November}, publisher = {Preprints}, author = {Youngseong Kim}, title = {A Language Model Architecture Whose Initial Weights an LLM Can Write as Code}, journal = {Preprints} }

Compare original feed summary (1 words)

US public sector cyberdefenders can find vulnerabilities with Mythos in GovCloud

Verified U.S. public sector cyber defenders can now find and fix hidden vulnerabilities with Claude Mythos in AWS GovCloud

Verified U.S. public sector security teams can now use Claude Mythos 5.2, Opus 5.5, and Sonnet 5.5 for cyber defense through Amazon Bedrock in AWS GovCloud (US).

This is the first time Claude Mythos, Anthropic’s most advanced cybersecurity model, is available in AWS GovCloud (US). It’s also the first region where approved customers can use Mythos with workloads subject to ITAR.

Account owners and admins can apply to give their security teams access through Anthropic’s Cyber Verification Program.

Agencies must protect the services they provide from being disrupted by cyber attacks. This includes critical services that support benefit payments, emergency response, and public health.

When code is checked one service at a time, serious vulnerabilities can remain hidden. This includes vulnerabilities stemming from how systems connect and work together. Several weaknesses that look minor on their own can be linked into an exploit chain that allows attackers to access sensitive information, gain control of systems, or disrupt key services.

Claude helps teams know where they are vulnerable and what to fix first. Mythos 5.2 catches more vulnerabilities than our previous models, and is better at reproducing and fixing them.

“Government security teams have told us they want frontier AI for cyber defense without giving up the controls their missions require. With Claude Mythos 5.2 in AWS GovCloud (US), verified defenders can find and fix vulnerabilities faster, on infrastructure built for ITAR workloads and operated by U.S. citizens,” said Alex Martinez, Director of Global Government Solutions Architecture at AWS.

What cyber defenders have found with Mythos models

A subset of organizations in our earlier limited-access program reported they uncovered at least 129,000 verified software vulnerabilities between April and July 2026.

Booz Allen took part in the program. Using Claude Mythos Preview, one analyst reviewed eight production systems across 138 repositories in twelve days. Booz Allen says a review at that scale would otherwise have taken several months with a larger team.

“To ensure U.S. advantage against adversaries, it’s critical that the government can use cyber models to proactively harden against rapidly evolving threats,” said Brad Medairy, president of national cybersecurity at Booz Allen. “Our research shows that vulnerability discovery remains a clear U.S. advantage over other global models — an important differentiator to maintain.”

Mythos can find vulnerabilities and draft fixes, but it takes people who know their systems to verify those findings, decide what matters most, and approve each fix.

As the volume of findings grows, so does that work. Validation is the new bottleneck. IT leaders should plan to increase validation and remediation capacity as they speed up discovery.

Cyber Verification Program now available in AWS GovCloud (US)

To keep advanced capabilities in the hands of defenders, access to Mythos 5.2 in AWS GovCloud (US) is limited to verified organizations through the Cyber Verification Program (“CVP”) and additional eligibility requirements. Not every applicant will qualify.

CVP also covers Claude Opus 5.5 and Sonnet 5.5. These models are already generally available in AWS GovCloud (US), and CVP verification adjusts their cyber safeguards so defenders can do more security work.

Claude Mythos 5.2 is available to verified organizations through Amazon Bedrock in AWS GovCloud (US).

Learn more about Anthropic’s solutions for government or read the AWS announcement.

Get the developer newsletter

Product updates, how-tos, community spotlights, and more. Delivered monthly to your inbox.

Please provide your email address if you'd like to receive our monthly developer newsletter. You can unsubscribe at any time.

Compare original feed summary (1 words)

We Must Pace the Frontier, Part 2

Dario Amodei

November 2026

I started my career as a biologist, hoping to find better treatments for major diseases, including those which had affected my family and me. I joined the field of AI in 2014 because progress I had seen at the time convinced me that AI would eventually be the most effective way to accelerate these biomedical efforts. But I quickly came to understand that while these benefits were going to be at least as incredible as I imagined — in medicine, science, poverty reduction, and the quality of human life — AI would also bring serious risks. I realized that AI would, by capturing the incredible power of cognition, be capable of bringing about great good and great ill (much like the human mind itself). As early as 2016, long before Anthropic was founded, I got involved in work trying to understand and address AI’s risks — but the lack of easy answers made more urgent the basic, haunting question of whether to work in the field at all.

Part of the answer I came to is: the risks of AI depend heavily on the choices made by the people who build it, and the societies that govern it. As is the case today, people back then sometimes asked whether AI’s benefits were worth its risks, or imagined that building AI was like rolling a set of grim cosmic dice, with some fixed, random probability of disaster. I believed this was fundamentally the wrong way to look at the situation. The size of the risks was instead something we could change with our actions, so the question was not just whether to build AI, but also how we should do so.

In a world with a sizable number of actors that can build powerful AI, the “how” matters enormously. Whether an AI system can be misused to carry out a cyberattack or build a biological weapon depends on what safeguards its developers put in place, and how they test them. Whether we lose control of a model depends on how carefully it is trained, how well we can look inside it to see what it is actually doing, and whether its developers are willing (or required) to hold it back when something looks wrong. Not only that, but the same AI systems, pointed in the right direction, are likely to be among our best tools for defending against AI that’s built carelessly or used maliciously. As with anything in life, we can never reduce risks to precisely zero. But with the right choices, we can make them very small.

This view suggested to me a theory of change which ultimately led to the founding of Anthropic: that we could help the world realize AI’s extraordinary benefits and greatly reduce the risk, not just for the models built by our company but for everyone in the industry. We’d do so by building the technology carefully and making the right choices along the way — developing strong technical methods for shaping the AI’s behavior and strong safeguards for preventing its misuse, making thoughtful governance decisions to ensure we build it at the pace needed to get it right, and advocating carefully for appropriate societal guardrails. This would lead to what I’ve called a “Race to the Top” on safety: technical safety innovations, once published, could be adopted by other companies; responsible practices would inspire the best talent and encourage other companies to match us; and the sharing of detailed analyses of risks with the public would improve the quality of societal oversight. If our company operated in this way, we could reduce the overall risk from AI compared to what it would be if we didn’t exist.

To be clear, the Race to the Top does not mean rushing to build safe AI faster than others can build unsafe AI. It means showing by example that responsible practices are possible, and using market-like forces to induce them in the rest of the industry as well. Since founding Anthropic, we have recruited thousands of candidates, and many joined because we were known for some responsible or positive practice X. Whenever any such candidate accepts, I tell them “please tell the companies you turned down that you chose Anthropic because of X”. Almost without fail, once a few candidates have said this, other companies become much more interested in X. Sometimes there is also a similar dynamic for customers, or for media. Somewhat like Adam Smith’s invisible hand, these effects often happen implicitly and in a decentralized manner (and thus people underestimate them), but they are in fact very strong. Although commercial competition driving a race to the bottom is very real, the Race to the Top is a powerful way to counteract it.

There is a real tension here: the Race to the Top works better if you are the leading company1, because you can pull others upward with more force — but being ahead also accelerates the field. For six years Anthropic has tried as best it can to navigate this tension. We’ve surely done so imperfectly and made many mistakes, but in my view our track record validates the overall strategy. At many points we have given up revenue or substantial chunks of our commercial lead in order to make a choice aligned with our mission.

Our theory of change remains the same today, but now everything is happening faster, and AI is surpassing human capabilities in domain after domain. This makes the central tradeoffs more acute and the path more tortuous. I continue to think that stopping or pausing AI development is both infeasible and undesirable — we must not allow authoritarian states to build AI first, there are great benefits to AI, and I believe it is possible to build AI safely (if we ever came to believe differently, we would stop). I am, however, convinced that at this most treacherous stretch of the journey, we need to not only steer in the right direction, but also slow down enough to navigate it safely.

It was in this spirit that I wrote my essay We Must Pace the Frontier earlier this fall, suggesting a three-step plan for building AI more carefully across the world: (1) that companies institute embedded evaluators with employee-like access; (2) that democratic governments and industry work together to govern the pace of AI; and (3) that the United States pursue international coordination with China on AI safety while also holding the line on export controls2. Anthropic voluntarily and unilaterally committed to step (1); we have since begun working with embedded evaluators, and the White House Accord on Super Intelligence advocated similar steps across the industry.

It is now time to take further steps. In this essay, I suggest an early outline of possible frontier AI legislation focused on five principles: risk assessment requirements, testing and auditing, embedded evaluators, speed limits to prevent full recursive self-improvement, and pacing the frontier of AI.

As a demonstration of our belief in these principles, we have taken a number of actions that constitute first steps towards voluntarily following this framework, steps which we hope to formalize over time. Below, I go through first the policy framework for frontier AI legislation and then the voluntary and unilateral actions we have taken.

Proposed Principles for AI Legislation

I believe that effective AI safety legislation should have at least 5 central elements:

  1. Risk Assessment Requirements. Anthropic has long advocated for risk assessment requirements on commercially released models. Some of these have been implemented in state laws in 2025 and 2026. These requirements should be strengthened and should also cover deployment and training of models within AI companies, since internal models can cause alignment incidents — or be stolen and misused — just as easily as externally released ones. Companies should be required to complete risk assessments (including for alignment, monitoring, and security risks) each time they commence training or internal deployment of a new frontier model, and publicly disclose serious incidents attributed to that model. While not everything in a risk assessment should be published (for example, due to security considerations), key sensitive information should be shared with independent evaluators and/or regulators.
  2. Testing and Auditing. In addition to risk assessments by the company itself, frontier AI models should go through rigorous, mandatory testing by government agencies and/or third-party organizations they license. This would be aimed at risks related to biology, cybersecurity, loss of control, and other key national security risks. The government should have the ability to block both commercial model releases and internal frontier training/deployments if they present an unacceptable risk to the public, although such decisions should be subject to a well-defined administrative process to avoid arbitrary, secretive judgement calls. Included in this testing and auditing should be red teaming (that is, strong adversarial testing) of companies’ protection of model weights and algorithmic secrets, since theft of these poses national security risks.
  3. Embedded Evaluators with Employee-Like Access. All frontier AI companies should be required to grant roughly employee-like access to embedded evaluators who can independently assess whether the company’s safety practices and risk controls are adequate, and verify that they operate as described. Without this measure, it is difficult for the public to trust what AI companies say about their safety. Embedded evaluators could come directly from the government, or could be private organizations licensed by governments. In drafting regulations related to embedded evaluators, policymakers could take inspiration from bank supervision, which has similar legally mandated functions.
  4. A Speed Limit to Prevent Full RSI. Recursive self-improvement (RSI) — the process of using AI models to improve the next generation of AI models — has quickly gained attention in AI policy. However, it is often treated as a binary when in fact it is a broad spectrum of activities. At one end, Anthropic and other AI companies have for years used AI models to improve the efficiency of mathematical operations performed by our chips, to write code for filtering data, and for many other mundane and unremarkable activities within our companies. At the other extreme, one could imagine future AI models that autonomously build their successor, which in turn builds its successor, all without any human intervention and understanding. AI isn’t yet capable of this latter feat (which we might call “full RSI”), but it may be capable of it in the near future, and I believe it would be dangerous and ill-advised for any AI company to do it. What we need is a principled way to draw a line somewhere between these extremes. A promising proposal for doing so is to impose a “waiting period” — set at perhaps 60 to 90 days initially, with discretion for a qualified agency (see below) to increase it substantially — during which a frontier AI model with significantly greater capabilities cannot be used to enhance the capabilities of future frontier AI models3. This waiting period would function as a control rod that limits the speed of the AI automation loop and prevents it from accelerating out of control. This period would also be a mechanism to allow humans to remain in the loop of AI development, to conduct more extensive safety testing, and to improve security.
  5. Pacing the Frontier. In my September essay on pacing the frontier, I suggested that legislation should moderate the rate at which AI capabilities advance across the industry. The methods I mentioned include (a) limiting the amount of compute that can be used for AI capabilities R&D and (b) blocking the training or deployment of models that reach certain capability thresholds without corresponding improvements in safety and security. Although I remain open to both, I am currently more enthusiastic about (b), because it more directly incentivizes making models safer, rather than merely slowing the development of models that may or may not be safe. To implement (b), legislation could direct a qualified agency (such as CAISSI) to implement a set of capability thresholds and safety/security requirements, and block the training or deployment of models which don’t meet these requirements. This process could be an extension of the testing and auditing process described in point 2, with the new element being that models can be blocked for being too capable and lacking safety requirements in the abstract, rather than just for presenting an imminent risk.

A few general points are worth making. First, I’ve used “frontier model” and “frontier AI company” throughout the above list, because I think these rules should only apply to companies which are at, or at least relatively close to, the frontier of AI capabilities. Some worry that AI regulation may hamper smaller companies. This has never been our intent; the AI regulation that we have supported applies entirely or disproportionately to frontier companies, and our current advocacy is no exception.

Second, a hotly debated issue is whether a US federal AI bill4 that includes items 1-5 should also include “preemption”, preventing states from implementing their own laws in these areas. Preemption was attempted in 2025 to try to prevent state regulation of AI without instituting any federal legislation (something I publicly fought against). Given the urgency of the situation today, any federal bill should primarily be a floor rather than a ceiling on the strength of safety regulation, and states should be free to go further in most areas.

Third, AI regulation should not be a substitute for, and should not weaken, existing tort liability. In line with those existing liability regimes, AI companies should be responsible for harms they cause when they fail to exercise reasonable care, and responsibility should be apportioned based on fault. Simply complying with AI legislation should not protect AI companies from liability. Conversely, I disagree with those who claim that liability is enough alone to ensure safety: what we need is regulation in addition to existing product liability rules, not either alone.

Fourth, some have raised serious and legitimate concerns about domestic regulation of AI allowing autocratic regimes like that of the Chinese Communist Party to catch up to democracies. I share these concerns and have long emphasized the importance of the United States staying ahead of its autocratic adversaries. But this imperative must be balanced with ensuring that we build the technology safely within democracies. We can get the best of both worlds by combining carefully designed domestic regulation of AI with strong export controls blocking the shipment of chips and semiconductor equipment to China, blocks on remote access to datacenters by China, and strong security to protect model weights and algorithmic secrets and crack down on distillation5. Export controls and improved security will increase the lead of the US and its democratic allies, giving us a larger “buffer” that we can partially spend on building more slowly and carefully, and strengthening our hand in negotiations on reducing risks. I urge Congress to pass the bipartisan MATCH, AI OVERWATCH, and Chip Security acts as part of the National Defense Authorization Act, which would strengthen chip and semiconductor equipment controls.

Fifth, some argue that individual frontier AI companies should simply pace their progress voluntarily without any common rules of the road from government or external review, and that there’s no need for regulation. I agree voluntary company action can play an important role, and Anthropic has done and continues to do a great deal voluntarily and unilaterally to pace its progress (as will be described in the next section). The industry as a whole can also voluntarily take important steps to strengthen safety, as was announced in the recent White House Accord on Super Intelligence. But no one should trust self-regulation by large tech companies as a complete solution. Even if Anthropic and most other frontier companies operate completely safely, all it takes is the defection of one company to put the public at risk. The only way to ensure universal compliance is to mandate it in law. This is exactly what we do with other high-stakes industries such as aviation or pharmaceuticals, and AI should be no different.

I do not yet know what will ultimately turn out to be politically feasible, but I intend to make it one of my top priorities as Anthropic’s CEO to advocate for passing as much of items 1-5 as possible, ideally at the federal level, with states largely free to adopt stronger protections.

Voluntary Actions Taken by Anthropic Towards These Principles

Ultimately the five principles above will only be effective in the long run if they are enforced by law on every frontier AI company. But we don’t know when or if legislation will pass, even if we do everything we can to support its enactment. Anthropic has a long history of implementing costly safety practices ahead of the rest of the industry or what the law requires. That is true here as well. In recent months, Anthropic has begun taking voluntary steps towards these principles, and I will go through some of these steps in this section.

To be clear, most of these steps are experiments or individual actions rather than permanent commitments; we are iterating rapidly to see how effective they are in practice, and to figure out how best to formalize them. It is also our hope that prototyping them can be of use to policymakers in refining legislative proposals. Below I describe what Anthropic has done or is now doing in each of these areas:

  1. Risk Assessment Requirements. Anthropic has led the way in risk assessment on model releases, releasing system cards and risk reports that often run to hundreds of pages. As a further step in this direction, we recently began doing risk assessments for internal training and internal deployment, and we will continue to do so for frontier runs going forward6. We will share these risk assessments with our board, Long-Term Benefit Trust, and external evaluators; we will also work toward sharing the key content with the public, balancing the goal of transparency with the goal of not giving potentially dangerous details to threat actors. Currently, approval of these reports by our Responsible Scaling Officer acts as a gate on substantially more powerful training runs or deployments; our aim is ultimately for the reports to also be independently audited before we proceed.
  2. Testing and Auditing. We have long done testing of our AI models before release, both internally and with third-party organizations and governments (including METR, UK AISI, and CAISSI). But as the capabilities of our models have continued to advance, we’ve been raising our safety standards for model release and for internal deployment. Our approach has led us to accept costly delays to both commercial release and internal deployment. For example, we recently paused the general release of new frontier models (pushing back some model launches) until we can improve our misuse classifiers — we found they were not yet at the standard that we believe more capable models require. We also delayed full internal deployment of a frontier model, limiting its use while we continued testing and strengthened our monitoring and controls.
  3. Embedded Evaluators with Employee-Like Access. Anthropic has already begun the work of granting embedded evaluators employee-like access. We will continue to add a wider set of embedded evaluators with complementary expertise, as well as deepening our collaborations with existing evaluators. We encourage other frontier AI companies to also adopt embedded evaluators with employee-like access.
  4. A Speed Limit to Prevent Full RSI. As a first small step towards a speed limit to prevent full RSI, Anthropic will adopt, as an experiment, a short waiting period of the type we proposed in the previous section. For the first 14 days after training each model that advances the frontier of capabilities, we will not apply that model to research aimed at improving the capabilities of future AI models7. This is much shorter than the 60+ day period I refer to above. But even a limited delay is enough to prevent the tightest version of the RSI loop (where a new model immediately starts improving the next) and give human researchers more time to study a new model before it contributes to the next one. We may increase the number of days over time. We will publish updates as we adjust the waiting period.
  5. Pacing the Frontier. We recently decided that, to train the next generation of models, we would require a higher standard of alignment and security than we had at that time. We therefore delayed the pretraining of our next model by at least six weeks, from November to January, primarily in order to give us time to improve the security guarding its model weights and the quality of its alignment. A six-week delay is very substantial8 in a race where US frontier AI companies are rarely more than a few months apart (and rarely more than 6-12 months ahead of Chinese models). This delay was not due to any safety or security incidents or a credible concern that such an incident had occurred — we undertook it proactively, to hold ourselves to a higher standard of safety. We will extend the delay if we are not satisfied with our safety and security progress by January. The delay allows us time to advance the following goals in the period before we train a new and more powerful class of models:
    • In recent months we moved dozens of technical employees, primarily from RL, pretraining, and inference (the key capability teams) to alignment, security, monitoring, and safeguards projects for the indefinite future, and we are now moving over 100 more. This constitutes a substantial fraction of those teams and includes several of our most senior capabilities team leads.
    • We have set up highly restricted computing clusters, and begun requiring them for inference and training of our most sensitive frontier models. They are designed to make model weights much harder to steal. This is an early stage of a larger weight-security program, which we will keep strengthening before we train our next model. We are also planning to move research to similar environments, to make algorithmic secrets harder to steal.
    • We have found and fixed over 18,000 security issues in Anthropic’s internal systems. This may sound like a lot, or like we were unusually insecure before, but this is in fact representative of what AI-driven vulnerability discovery is finding across the industry, and we are determined to rapidly use our best models to find and fix vulnerabilities.
    • We are currently working to replace as many third-party dependencies as we can with internally built software, the secure construction of which has been sped up by Claude.
    • We have a rapidly growing effort dedicated to cleaning up our RL environments and pretraining data to improve the resulting models’ alignment.
    • We have started efforts to make alignment and monitorability safety assessments of every new significant algorithmic advance before including it in model training.

These actions constitute an early form of the blocking-based pacing that I described in the previous section — we blocked the pretraining of the next generation of frontier models until we could meet desired safety and security goals. Again, we hope that our experience and rapid iteration can help to demonstrate to lawmakers how safety-based pacing might work in practice.

We may also develop and release measures for model capability that could be used as an input to blocking-based pacing in legislation. We applaud the release of a perplexity-based measure by OpenAI as one step towards a capabilities yardstick.

Going Forward

We will continue to expand, evolve, and iterate on all of these steps, and will share more details on their formalization, implementation, and strengthening, as well as adding some aspects of them into our Responsible Scaling Policy and its updates over time. We will also use what we learn to refine our policy recommendations, and share updates as we do so.

Separately, I will aim to regularly release updates on our pacing of the frontier, how we are thinking about safety, and any new commitments we decide to make. We remain committed to a future of abundance, empowerment, and medical and scientific wonders, and believe this future can be achieved with AI. But in order to achieve that future, we must build with extraordinary care. The public deserves to see our thinking, our actions, and our policy recommendations.

Footnotes

  1. 1 Contrary to a common assumption, the Race to the Top still works to some extent if you are not the leading company — it just doesn’t work quite as powerfully.↩︎
  2. 2 We applaud the steps taken by the White House to establish an incident reporting hotline with China and to encourage further cooperation.↩︎
  3. 3 There should likely be exceptions for AI alignment, security, and safety testing, because these help to accelerate our defenses against risks without accelerating model capabilities. However, any such exceptions would need to be very narrowly scoped so that they cannot be gamed.↩︎
  4. 4 To be clear, the principles laid out above are intended to be applicable to not only US federal legislation, but also state legislation and legislation outside the US — and all of these forms of legislation should be pursued. Preemption is one specific question that arises for US federal legislation in particular.↩︎
  5. 5 Anthropic has made significant efforts on the parts of this that are within our control: we’ve developed measures against distillation attacks and, as described later in this essay, are rapidly fortifying our internal security.↩︎
  6. 6 OpenAI began doing this over the summer. We’re very glad to join them.↩︎
  7. 7 Once we have determined a model is safe for any internal use, we do think it should be swiftly deployed for security, alignment, and other squarely safety-targeted work — the prohibition only rules out capabilities work. While these lines are not always sharp, we think these activities are sufficiently separable that this is the sort of thing an evaluator could help determine.↩︎
  8. 8 We have not paused smaller-scale internal R&D, which will allow us to make up some (but far from all) of the delay. For future levels of capability and future required levels of security, it could make sense to pause all internal R&D rather than just frontier training, in order to avoid an overhang of compute multipliers.↩︎
Compare original feed summary (1 words)

iOS on iPod Nano

GitHub - nfzerox/iOSOniPodNano: Say hello to the world’s lightest iOS device at just 31 grams. When running iPhone OS 1 up to iOS 10, iPod nano 7th generation transforms into an entirely different class of device, letting you take iconic iOS apps and games wherever you go. iOS on iPod nano supports GPU acceleration with OpenGL ES 1.1, multi-touch, storage, audio, and more.

Screenshot of iOS on iPod nano

Say hello to the world’s lightest iOS device at just 31 grams. When running iPhone OS 1 up to iOS 10, iPod nano 7th generation transforms into an entirely different class of device, letting you take iconic iOS apps and games wherever you go. iOS on iPod nano supports GPU acceleration with OpenGL ES 1.1, multi-touch, storage, audio, microphone, accelerometer, and USB.

Contributions are welcome! See Contributing to iOS on iPod nano, join the iOS and NanoApps Discord, and share your setup on r/ipod.

Installing iOS on iPod nano

⏳ A small number of iPod nano 7th generation (2012) may no longer start up after installing iOS. If your iPod nano no longer starts up, follow recovery instructions here. Direct downloads have been temporarily removed, and will be reissued after fixes become available.

  1. Install the latest version of NanoApps on iPod nano.
  2. Download your favorite iOS release (temporarily removed). Unzip it, and copy the "iOS" folder to the top level of your iPod's disk in Finder or File Explorer.
  3. Open the iOS app on iPod nano, choose a version of iOS, and tap Boot.

To restart from iOS back to nanoOS, press and hold Home and Power. To allow iPod nano to be locked and put into sleep, turn off Settings > Advanced > Skip Lock.

iPhone OS 2 and iPhone OS 3 are recommended for optimal performance. iOS 4 up to iOS 6 trades performance for app compatibility. iOS 7 up to iOS 10 are extremely slow and mostly provided for hobbyists to experiment with. iPhone OS 1 exhibits graphical corruption issues.

All iOS releases share the same xnu_ios.bin kernel file, and you can have multiple iOS filesystem images under the "iOS" folder at the top level of your iPod's disk. You can switch between them in the iOS app, or choose to automatically boot to iOS instead of nanoOS.

If you run into issues or need help with setup, point Codex, Antigravity, or Claude Code at this repository, then ask it to diagnose live and fix the issue. Because many issues can be specific to your setup, or apps and games you'd like to run, this is usually the easiest way to fix issues. If you find a solution, please open a pull request. Contributions are welcome!

Power users and developers can open Terminal on Mac and run the following command, which builds iOS on iPod nano from source, offers more installation options and flexibility, inlcuding the ability to set a different partition size for iOS, or run iOS in the NanoEmu emulator:

git clone https://github.com/nfzerox/iOSOniPodNano.git cd iOSOniPodNano ./start

Contributing to iOS on iPod nano

All contributions are welcome! A physical iPod nano is recommended for hardware qualification, performance tuning and driver bringup, but is not required to contribute! Run ./start and start iOS in the NanoEmu emulator, and press h for home, or p for power.

Good places to start include:

  • Support video playback, deep sleep and wake, and radio
  • Performance optimizations, especially for iOS 7 and later
  • Expand GLES 2.0 coverage to support more apps and games
  • Fix layout issues when running apps at the iPod nano display size
  • Improve Bluetooth compatibility with headphones, speakers, and Internet Sharing
  • Support accessories such as Lightning headphones, USB adapters, docks, and more
  • Support installing and developing iOS on iPod nano when using Windows and Linux

Technical Overview

Bringing iPhone OS 1 through iOS 10 to the iPod nano 7th generation builds on xnu-hd2, adapting its ARM XNU kernel to the iPod nano SoC using the hardware documentation from NanoOS and an initial QEMU emulator from NanoEmu (forked into third_party/NanoEmu). On real hardware, the on-device iOS NanoApp and optional silver_resident auto-boot plugin hand off directly to a lightweight XNU bundle loader, locating /iOS/iOS <version>.img extents on either HFS+ or FAT32 formatted iPods without modifying the RetailOS system partition.

Rather than maintaining ten separate kernels, the iOS 4-era XNU kernel from xnu-hd2 is stretched in both directions, down to iPhone OS 1's legacy Mach and IOKit conventions, and up through iOS 10's newer syscalls, Mach VM flags, IOSurface semantics, and dyld shared cache interfaces. Each release pairs this unified kernel with a stock Apple userland assembled by per-version rootfs builders from the matching iPod touch or iPhone IPSW of that era.

Because iPod nano only has 64 MB of RAM, an in kernel LZ4 memory compressor works alongside aggressive LaunchDaemon trimming to yield roughly 80 MB of effective memory, which gets close enough to the 128 MB iPod touch 1st and 2nd generation for full iOS userlands to stay responsive. Storage runs directly on internal flash through a custom NAND driver and block device layer with DMA pipelining and persistent writes.

Graphics acceleration takes advantage of a happy coincidence: iPod nano carries the same PowerVR MBX Lite GPU as the iPod touch 2nd generation. Through iOS 4.2.1, Apple's native OpenGL ES 1.1 userland driver runs directly over our MBX hardware driver, IOKit accelerator, and zero-copy MIPI-DSI display pipeline. From iOS 4.3 through iOS 10, an OpenGL ES 2.0 translation shim wraps that same native GLES 1.1 driver so newer versions of SpringBoard and apps remain hardware-accelerated.

Board peripherals are wired into standard iOS subsystems across releases: multi-touch, PMU, backlight, RTC, buttons, and accelerometer, audio DAC, microphone, and Bluetooth backed by a BSD/kernel-control UART transport and automatic Bluetooth firmware extraction from the connected iPod, plus DWC2 USB gadget and USBMux. On the userland side, a lightweight UIKit and SpringBoard adapter adapts the iOS user interface, keyboard, and per-app Zoom settings onto the 240×432 display, while an mbedTLS SecureTransport shim brings modern TLS 1.2/1.3 HTTPS to classic releases.

Credits

iOS on iPod nano is made possible with the culmination of these community research and projects combined with recent advances in agentic coding:

  • xnu-hd2 provides the upstream ARM XNU kernel port, IOKit display and HID architecture that this port adapts to iPod nano.
  • NanoEmu provides the QEMU-based iPod nano emulator and PowerVR MBX Lite software rasterizer used for development and testing.
  • NanoOS documents the iPod nano hardware registers, display, touch, audio, PMU, and flash interfaces.
  • FreeMyiPod U-Boot provides the U-Boot bootloader used for DFU kernel loading.
  • NanoApps provides the homebrew runtime used to chainload directly into the XNU bundle loader.
Compare original feed summary (1 words)

Roc version 0.1.0, eight years in the making

November 30, 2026

After eight years of development, the Roc programming language has its first numbered release: version 0.1.0!

There are too many contributors to thank for all their incredible work on the road to this milestone, but I at least want to mention (in alphabetical order) Agus Zubiaga, Anthony Bullard, Anton-4, Aurélien Geron, Ayaz Hafiz, Brendan Hansknecht, Brian Carroll, Folkert de Vries, Hannes, Jack Scully, Jared Ramirez, Jasper Woudenberg, Jelle Teeuwissen, Josh Warner, JRI98, Luke Boswell, MagicMan, Niclas Åhdén, Sam Mohr, Stephan, and Steve Howell.

Thank you all so much!

What is Roc?

Roc is a programming language with the tagline fast, friendly, functional.

It's designed to build faster than Go and output programs that run nearly as fast as Rust, with user-friendly tooling and a friendly community, plus security and reliability guarantees you can't find in any mainstream language today. Roc hasn't achieved all of its goals yet (version 0.1 is not 1.0!) but as you'll see, 0.1.0 has a lot.

Roc 0.1.0 compiles to standalone binaries (with hot reloading out-the-box) or to WebAssembly, it combines Hindley-Milner type inference with purity inference and static dispatch, and uses a novel system of platforms and applications to let you build on lower-level languages without a FFI compromising guarantees.

I started designing the language in 2018 with a goal of making an Elm-inspired experience for "the long tail of use cases." Back then, Elm was focused only on user interfaces, although now with Acadia its scope has expanded—check it out if you haven't already! Roc has evolved its own character over time, so although the languages still have much in common, there are some obvious differences too.

I made the first compiler commit in 2019, and talked about the project publicly in 2020. More contributors got involved then, leading to promising early results that I spoke about at Strange Loop 2021. We incorporated research from the Koka and Morphic languages, but hit a major architectural problem along the way, which I talked about in detail with Ayaz Hafiz in 2024. This led to a 2025 scratch-rewrite of the compiler, which we completed earlier in 2026.

Many details in the language's design changed over those years, yet the types in the standard library still look about how they did in my 2018 sketches. (One of the reasons for holding off on making a numbered release was to set a clear expectation not to expect stability. Things are much more stable these days!)

There's more detail about language specifics below, as well as a showcase of projects community members have built. But first, some numbers!

Fast Programs

One of Roc's goals is to approach the performance of speed-focused languages like Rust and C++, without quite matching it (since Roc does automatic memory management and is stricter about memory safety than Rust, and both of those design choices have runtime performance costs). So how close can Roc get?

Here are some performance benchmarks across four community projects. Each includes a comparison to Rust or C, and all were built with the highest levels of optimization in their respective compilers.

roc-deflate

In How close can pure FP get to C?, I compared Niclas Åhdén's roc-deflate with C's libdeflate across 144 compression benchmarks. You can read more about these measurements in that article, but the quick summary is that roc-deflate had a median slowdown (compared to libdeflate) of 2.6% on an M1 MacBook Pro and 8.9% on a Ryzen 3900X. Here's the main chart from that article:

#### Compression on Silesia corpus

M1 MacBook Pro Ryzen 3900X Ubuntu

MB/s

L1

L2

L3

L4

L5

L6

L7

L8

L9

L10

L11

L12

  • libdeflate
  • roc-deflate

Compression Level

MB/s

L1

L2

L3

L4

L5

L6

L7

L8

L9

L10

L11

L12

  • libdeflate
  • roc-deflate

Compression Level

roc-redis

Jared Ramirez included benchmarks in the README of his roc-redis package. I plotted them here with Rust's redis-rs as the dashed red baseline, and the other libraries' numbers converted to percentages of redis-rs. (Higher is better.)

#### Redis client throughput

  • roc-redis
  • go-redis
  • redis-py
  • redis-rs

Throughput vs. redis-rs

0%

10%

20%

30%

40%

50%

60%

70%

80%

90%

100%

ping_sequential

set_get_sequential

incr_sequential

ping_pipeline

mset_mget_sequential

hash_roundtrip_sequential

set_get_pipeline

roc-redis on ping_sequential

91.8% of redis-rs throughput

go-redis on ping_sequential

76.0% of redis-rs throughput

redis-py on ping_sequential

29.7% of redis-rs throughput

roc-redis on set_get_sequential

93.5% of redis-rs throughput

go-redis on set_get_sequential

79.2% of redis-rs throughput

redis-py on set_get_sequential

29.8% of redis-rs throughput

roc-redis on incr_sequential

92.6% of redis-rs throughput

go-redis on incr_sequential

78.7% of redis-rs throughput

redis-py on incr_sequential

32.1% of redis-rs throughput

roc-redis on ping_pipeline

96.3% of redis-rs throughput

go-redis on ping_pipeline

91.8% of redis-rs throughput

redis-py on ping_pipeline

10.0% of redis-rs throughput

roc-redis on mset_mget_sequential

92.7% of redis-rs throughput

go-redis on mset_mget_sequential

81.4% of redis-rs throughput

redis-py on mset_mget_sequential

29.8% of redis-rs throughput

roc-redis on hash_roundtrip_sequential

94.4% of redis-rs throughput

go-redis on hash_roundtrip_sequential

80.5% of redis-rs throughput

redis-py on hash_roundtrip_sequential

29.7% of redis-rs throughput

roc-redis on set_get_pipeline

91.2% of redis-rs throughput

go-redis on set_get_pipeline

95.8% of redis-rs throughput

redis-py on set_get_pipeline

11.3% of redis-rs throughput

roc-regex

Karl's roc-regex technically benchmarks faster than the popular regex Rust crate, but it's not an apples-to-apples comparison. Karl used a matching algorithm based on RE#, which differs from how regex is implemented in ways that favor the RE# algorithm on these particular inputs. Still, both packages get identical answers across all inputs in this benchmark. (Lower is better.)

#### Regular expression matching

  • roc-regex
  • regex crate

Matching time vs. regex crate

0%

20%

40%

60%

80%

100%

120%

Holmes

Moriarty

8-name alternation

[A-Za-z]+

[0-9]{2,4}

\bthe\b

\w+\s+\w+

(\w+)@(\w+)

\p{L}+

.*Holmes

roc-regex matching Holmes

26.54 μs (96% of regex)

(minimum across five runs)

roc-regex matching Moriarty

9.69 μs (98% of regex)

(minimum across five runs)

roc-regex matching 8-name alternation

411.99 μs (97% of regex)

(minimum across five runs)

roc-regex matching [A-Za-z]+

1,041.30 μs (47% of regex)

(minimum across five runs)

roc-regex matching [0-9]{2,4}

58.83 μs (55% of regex)

(minimum across five runs)

roc-regex matching \bthe\b

175.63 μs (93% of regex)

(minimum across five runs)

roc-regex matching \w+\s+\w+

1,093.57 μs (71% of regex)

(minimum across five runs)

roc-regex matching (\w+)@(\w+)

62.63 μs (91% of regex)

(minimum across five runs)

roc-regex matching \p{L}+

1,260.14 μs (61% of regex)

(minimum across five runs)

roc-regex matching .*Holmes

238.12 μs (37% of regex)

(minimum across five runs)

roux webserver

Zak Kohler built roux on top of his Zig webserver, fourneau. He benchmarked it against Rust's popular axum crate as well as a vanilla Go webserver. This chart uses his November 28 benchmarks, and his Drag Race Page updates nightly with fresh measurements using the latest roux and fourneau. (Higher is better.)

#### HTTP server throughput

  • roux
  • fourneau-zig
  • go
  • axum

Throughput vs. axum

0%

25%

50%

75%

100%

125%

150%

175%

Echo 4 KiBConnection churnSSE (Datastar)PlaintextPlaintext (h2c)Templates

axum · Echo 4 KiB

77,950 req/s (100%)

(best of three runs)

fourneau-zig · Echo 4 KiB

74,510 req/s (96% of axum)

(best of three runs)

go · Echo 4 KiB

45,396 req/s (58% of axum)

(best of three runs)

roux · Echo 4 KiB

77,576 req/s (100% of axum)

(best of three runs)

axum · Connection churn

14,730 req/s (100%)

(best of three runs)

fourneau-zig · Connection churn

14,550 req/s (99% of axum)

(best of three runs)

go · Connection churn

7,458 req/s (51% of axum)

(best of three runs)

roux · Connection churn

14,621 req/s (99% of axum)

(best of three runs)

axum · SSE (Datastar)

99,010 req/s (100%)

(best of three runs)

fourneau-zig · SSE (Datastar)

136,931 req/s (138% of axum)

(best of three runs)

go · SSE (Datastar)

19,736 req/s (20% of axum)

(best of three runs)

roux · SSE (Datastar)

139,933 req/s (141% of axum)

(best of three runs)

axum · Plaintext

236,522 req/s (100%)

(best of three runs)

fourneau-zig · Plaintext

354,305 req/s (150% of axum)

(best of three runs)

go · Plaintext

69,886 req/s (30% of axum)

(best of three runs)

roux · Plaintext

361,682 req/s (153% of axum)

(best of three runs)

axum · Plaintext (h2c)

244,087 req/s (100%)

(best of three runs)

fourneau-zig · Plaintext (h2c)

383,439 req/s (157% of axum)

(best of three runs)

go · Plaintext (h2c)

74,426 req/s (30% of axum)

(best of three runs)

roux · Plaintext (h2c)

391,028 req/s (160% of axum)

(best of three runs)

axum · Templates

38,710 req/s (100%)

(best of three runs)

fourneau-zig · Templates

63,443 req/s (164% of axum)

(best of three runs)

go · Templates

1,875 req/s (5% of axum)

(best of three runs)

roux · Templates

49,569 req/s (128% of axum)

(best of three runs)

Fast Feedback Loops

Roc is designed not only to run fast, but also to provide fast feedback loops.

Instead of sharing laboratory benchmarks on build times, I decided to ask the community what projects of theirs I could share in this post. Some posted their own build times, and others I measured on my own machine. (A few of the projects were commercial and proprietary, so I don't have access to the code.)

Terminology note: a "cold" build has no on-disk cache yet, a "warm" build has been built once before (and so benefits from the cache), "root changed" means a rebuild after only the root module changed (meaning every other module can be loaded from cache; this is almost the best-case scenario for caching), and "import changed" means a rebuild after a heavily-imported module changed, which would invalidate a bunch of cached modules and bring the overall build time closer to the cold build time.

roc check does type-checking and compile-time evaluation and reports errors, roc build --opt=dev does everything roc check does, and then also outputs a binary (a development build without optimizations, because of --opt=dev), and roc test runs tests as well.

Here are the results:

### roc check on real-world code bases

  • Cold
  • Warm
  • Root changed
  • Import changed

roc check wall time

0

200 ms

400 ms

600 ms

800 ms

1 s

0

10k

20k

30k

40k

50k

60k

70k

Lines of code including dependencies

lukewilliamboswell/roc-graph-layout · cold

874 ms · 66,168 lines

(median across five runs)

roxum/ddd · cold

560 ms · 11,896 lines

(median across three runs)

roxum/middleware · cold

530 ms · 10,501 lines

(median across three runs)

grayrest/roc-regex · cold

509 ms · 17,408 lines

(median across five runs)

lukewilliamboswell/roc-font · cold

489 ms · 29,118 lines

(median across five runs)

roxum/hello · cold

470 ms · 10,159 lines

(median across three runs)

lukewilliamboswell/weaver · cold

399 ms · 15,470 lines

(median across five runs)

lukewilliamboswell/roc-ray · cold

398 ms · 18,856 lines

(median across five runs)

showell/roc-apps · cold

344 ms · 4,371 lines

(median across five runs)

showell/roc-markdown · cold

329 ms · 6,241 lines

(median across five runs)

lukewilliamboswell/plume · cold

319 ms · 12,951 lines

(median across five runs)

lukewilliamboswell/roc-automation · cold

294 ms · 9,239 lines

(median across five runs)

lukewilliamboswell/roc-time · cold

249 ms · 13,822 lines

(median across five runs)

grayrest/roc-regex · import changed

218 ms · 17,408 lines

(median across five runs)

grayrest/roc-regex · root changed

201 ms · 17,408 lines

(median across five runs)

lukewilliamboswell/roc-font · import changed

185 ms · 29,118 lines

(median across five runs)

lukewilliamboswell/roc-time · import changed

88.1 ms · 13,822 lines

(median across five runs)

showell/roc-markdown · import changed

83.7 ms · 6,241 lines

(median across five runs)

showell/roc-apps · import changed

81.6 ms · 4,371 lines

(median across five runs)

lukewilliamboswell/roc-graph-layout · import changed

79.3 ms · 66,168 lines

(median across five runs)

lukewilliamboswell/roc-graph-layout · root changed

62.3 ms · 66,168 lines

(median across five runs)

lukewilliamboswell/plume · import changed

61 ms · 12,951 lines

(median across five runs)

lukewilliamboswell/weaver · import changed

59.7 ms · 15,470 lines

(median across five runs)

showell/roc-apps · root changed

52.5 ms · 4,371 lines

(median across five runs)

lukewilliamboswell/roc-font · root changed

48.5 ms · 29,118 lines

(median across five runs)

rocco/widgets · cold

46 ms · 3,740 lines

(median across three runs)

rocco/pong · cold

41 ms · 3,583 lines

(median across three runs)

lukewilliamboswell/weaver · root changed

30.6 ms · 15,470 lines

(median across five runs)

rocco/primitives · cold

30 ms · 2,134 lines

(median across three runs)

lukewilliamboswell/roc-ray · root changed

28.6 ms · 18,856 lines

(median across five runs)

lukewilliamboswell/roc-automation · root changed

26.9 ms · 9,239 lines

(median across five runs)

lukewilliamboswell/roc-time · root changed

23.8 ms · 13,822 lines

(median across five runs)

lukewilliamboswell/roc-graph-layout · warm

20.8 ms · 66,168 lines

(median across five runs)

lukewilliamboswell/plume · root changed

18.9 ms · 12,951 lines

(median across five runs)

lukewilliamboswell/roc-font · warm

12.2 ms · 29,118 lines

(median across five runs)

ageron/roclet · cold

10.8 ms · 29 lines

(median across five runs)

lukewilliamboswell/plume · warm

10.2 ms · 12,951 lines

(median across five runs)

lukewilliamboswell/weaver · warm

9.9 ms · 15,470 lines

(median across five runs)

lukewilliamboswell/roc-ray · warm

9.9 ms · 18,856 lines

(median across five runs)

ageron/roclet · root changed

9.7 ms · 29 lines

(median across five runs)

lukewilliamboswell/roc-time · warm

9.7 ms · 13,822 lines

(median across five runs)

grayrest/roc-regex · warm

9.5 ms · 17,408 lines

(median across five runs)

showell/roc-markdown · root changed

8.6 ms · 6,241 lines

(median across five runs)

lukewilliamboswell/roc-automation · warm

8.3 ms · 9,239 lines

(median across five runs)

lukewilliamboswell/roc-platform-template-zig · cold

7.6 ms · 106 lines

(median across five runs)

showell/roc-markdown · warm

6.5 ms · 6,241 lines

(median across five runs)

showell/roc-apps · warm

6.3 ms · 4,371 lines

(median across five runs)

lukewilliamboswell/roc-platform-template-zig · root changed

5.7 ms · 106 lines

(median across five runs)

ageron/roclet · warm

4.4 ms · 29 lines

(median across five runs)

lukewilliamboswell/roc-platform-template-zig · warm

4.4 ms · 106 lines

(median across five runs)

### roc build --opt=dev on real-world code bases

  • Cold
  • Warm
  • Root changed
  • Import changed

roc build --opt=dev wall time

0

200 ms

400 ms

600 ms

800 ms

1 s

0

10k

20k

30k

40k

50k

60k

70k

Lines of code including dependencies

lukewilliamboswell/roc-graph-layout · cold

985 ms · 66,168 lines

(median across five runs)

roxum/ddd · cold

640 ms · 11,896 lines

(median across three runs)

roxum/middleware · cold

590 ms · 10,501 lines

(median across three runs)

lukewilliamboswell/roc-font · cold

559 ms · 29,118 lines

(median across five runs)

roxum/hello · cold

530 ms · 10,159 lines

(median across three runs)

grayrest/roc-regex · cold

527 ms · 17,408 lines

(median across five runs)

lukewilliamboswell/weaver · cold

441 ms · 15,470 lines

(median across five runs)

lukewilliamboswell/roc-automation · cold

334 ms · 9,239 lines

(median across five runs)

lukewilliamboswell/plume · cold

332 ms · 12,951 lines

(median across five runs)

lukewilliamboswell/roc-time · cold

271 ms · 13,822 lines

(median across five runs)

grayrest/roc-regex · import changed

226 ms · 17,408 lines

(median across five runs)

grayrest/roc-regex · root changed

207 ms · 17,408 lines

(median across five runs)

lukewilliamboswell/roc-font · import changed

204 ms · 29,118 lines

(median across five runs)

lukewilliamboswell/roc-graph-layout · import changed

115 ms · 66,168 lines

(median across five runs)

lukewilliamboswell/roc-graph-layout · root changed

98.6 ms · 66,168 lines

(median across five runs)

lukewilliamboswell/roc-time · import changed

94.8 ms · 13,822 lines

(median across five runs)

lukewilliamboswell/roc-automation · root changed

86.2 ms · 9,239 lines

(median across five runs)

rocco/widgets · cold

86 ms · 3,740 lines

(median across three runs)

lukewilliamboswell/weaver · import changed

84.6 ms · 15,470 lines

(median across five runs)

lukewilliamboswell/roc-font · root changed

81.4 ms · 29,118 lines

(median across five runs)

lukewilliamboswell/roc-graph-layout · warm

80.1 ms · 66,168 lines

(median across five runs)

rocco/pong · cold

73 ms · 3,583 lines

(median across three runs)

lukewilliamboswell/weaver · root changed

63.4 ms · 15,470 lines

(median across five runs)

lukewilliamboswell/plume · import changed

58.1 ms · 12,951 lines

(median across five runs)

rocco/primitives · cold

56 ms · 2,134 lines

(median across three runs)

lukewilliamboswell/roc-font · warm

55.7 ms · 29,118 lines

(median across five runs)

lukewilliamboswell/plume · root changed

38.3 ms · 12,951 lines

(median across five runs)

lukewilliamboswell/roc-time · root changed

26.9 ms · 13,822 lines

(median across five runs)

lukewilliamboswell/weaver · warm

21.5 ms · 15,470 lines

(median across five runs)

lukewilliamboswell/roc-time · warm

18 ms · 13,822 lines

(median across five runs)

grayrest/roc-regex · warm

17.8 ms · 17,408 lines

(median across five runs)

lukewilliamboswell/plume · warm

16.9 ms · 12,951 lines

(median across five runs)

lukewilliamboswell/roc-automation · warm

16.3 ms · 9,239 lines

(median across five runs)

ageron/roclet · cold

14.2 ms · 29 lines

(median across five runs)

ageron/roclet · root changed

13.4 ms · 29 lines

(median across five runs)

ageron/roclet · warm

8.5 ms · 29 lines

(median across five runs)

### roc test on real-world code bases

  • Cold
  • Warm
  • Root changed
  • Import changed

roc test wall time

0

500 ms

1 s

1.5 s

2 s

2.5 s

0

10k

20k

30k

40k

50k

60k

Lines of code including dependencies

lukewilliamboswell/roc-blueprint · cold

2.242 s · 14,460 lines

(median across five runs)

lukewilliamboswell/roc-graph-layout · cold

1.8 s · 57,088 lines

(median across five runs)

lukewilliamboswell/roc-blueprint · import changed

1.744 s · 14,460 lines

(median across five runs)

grayrest/roc-markdown · cold

1.621 s · 8,649 lines

(median across five runs)

lukewilliamboswell/roc-font · cold

1.621 s · 19,995 lines

(median across five runs)

grayrest/roc-markdown · import changed

1.608 s · 8,649 lines

(median across five runs)

grayrest/roc-markdown · root changed

1.567 s · 8,649 lines

(median across five runs)

lukewilliamboswell/roc-graph-layout · import changed

700 ms · 57,088 lines

(median across five runs)

roxum/ddd · cold

700 ms · 11,896 lines

(median across three runs)

roxum/middleware · cold

650 ms · 10,501 lines

(median across three runs)

roxum/hello · cold

620 ms · 10,159 lines

(median across three runs)

lukewilliamboswell/roc-time · cold

580 ms · 19,374 lines

(median across five runs)

lukewilliamboswell/weaver · cold

457 ms · 7,190 lines

(median across five runs)

lukewilliamboswell/roc-ray · cold

432 ms · 18,856 lines

(median across five runs)

showell/roc-markdown · cold

366 ms · 6,241 lines

(median across five runs)

grayrest/roc-regex · cold

261 ms · 9,076 lines

(median across five runs)

lukewilliamboswell/roc-font · import changed

198 ms · 19,995 lines

(median across five runs)

grayrest/roc-regex · import changed

147 ms · 9,076 lines

(median across five runs)

lukewilliamboswell/plume · cold

132 ms · 3,838 lines

(median across five runs)

showell/roc-apps · cold

115 ms · 2,869 lines

(median across five runs)

lukewilliamboswell/roc-time · import changed

110 ms · 19,374 lines

(median across five runs)

showell/roc-markdown · import changed

83.7 ms · 6,241 lines

(median across five runs)

lukewilliamboswell/weaver · import changed

65.6 ms · 7,190 lines

(median across five runs)

rocco/widgets · cold

65 ms · 3,740 lines

(median across three runs)

lukewilliamboswell/plume · import changed

56 ms · 3,838 lines

(median across five runs)

rocco/pong · cold

56 ms · 3,583 lines

(median across three runs)

showell/roc-apps · import changed

51.7 ms · 2,869 lines

(median across five runs)

rocco/primitives · cold

42 ms · 2,134 lines

(median across three runs)

lukewilliamboswell/roc-ray · root changed

41.2 ms · 18,856 lines

(median across five runs)

lyceum-quest/study · cold

27.6 ms · 348 lines

(median across five runs)

showell/roc-apps · root changed

26 ms · 2,869 lines

(median across five runs)

lukewilliamboswell/roc-graph-layout · root changed

22.6 ms · 57,088 lines

(median across five runs)

lukewilliamboswell/roc-graph-layout · warm

19.3 ms · 57,088 lines

(median across five runs)

lukewilliamboswell/roc-platform-template-zig · cold

14.9 ms · 139 lines

(median across five runs)

ageron/roclet-display · import changed

14.4 ms · 101 lines

(median across five runs)

ageron/roclet-display · cold

14.3 ms · 101 lines

(median across five runs)

lukewilliamboswell/roc-time · root changed

13.7 ms · 19,374 lines

(median across five runs)

lukewilliamboswell/roc-time · warm

13 ms · 19,374 lines

(median across five runs)

lukewilliamboswell/roc-font · root changed

12.9 ms · 19,995 lines

(median across five runs)

lukewilliamboswell/roc-platform-template-zig · root changed

12.2 ms · 139 lines

(median across five runs)

lukewilliamboswell/roc-font · warm

11.1 ms · 19,995 lines

(median across five runs)

lukewilliamboswell/roc-ray · warm

10.9 ms · 18,856 lines

(median across five runs)

ageron/roclet · root changed

10 ms · 29 lines

(median across five runs)

ageron/roclet · cold

9.3 ms · 29 lines

(median across five runs)

lukewilliamboswell/roc-blueprint · root changed

9.1 ms · 14,460 lines

(median across five runs)

showell/roc-markdown · root changed

8 ms · 6,241 lines

(median across five runs)

lukewilliamboswell/roc-blueprint · warm

7.8 ms · 14,460 lines

(median across five runs)

showell/roc-markdown · warm

7 ms · 6,241 lines

(median across five runs)

lukewilliamboswell/weaver · root changed

7 ms · 7,190 lines

(median across five runs)

grayrest/roc-regex · root changed

6.9 ms · 9,076 lines

(median across five runs)

lukewilliamboswell/plume · root changed

6.8 ms · 3,838 lines

(median across five runs)

showell/roc-apps · warm

6.5 ms · 2,869 lines

(median across five runs)

lukewilliamboswell/weaver · warm

6.2 ms · 7,190 lines

(median across five runs)

grayrest/roc-regex · warm

6.2 ms · 9,076 lines

(median across five runs)

grayrest/roc-markdown · warm

6 ms · 8,649 lines

(median across five runs)

lukewilliamboswell/plume · warm

5.7 ms · 3,838 lines

(median across five runs)

ageron/roclet-display · root changed

4.8 ms · 101 lines

(median across five runs)

lyceum-quest/study · root changed

4.8 ms · 348 lines

(median across five runs)

lukewilliamboswell/roc-platform-template-zig · warm

4.4 ms · 139 lines

(median across five runs)

ageron/roclet-display · warm

4.1 ms · 101 lines

(median across five runs)

ageron/roclet · warm

3.9 ms · 29 lines

(median across five runs)

lyceum-quest/study · warm

3.9 ms · 348 lines

(median across five runs)

I left one outlier out of these charts because it made the y-axes hard to read: Rocco's village example. Its cold-run median build times on an M5 MacBook Pro were 1s for roc check, 3.5s for roc build --opt=dev, and 7.5s for roc test. The example wasn't significantly bigger than the other code bases, but it contained a huge literal which revealed a pathological edge case in the compiler. A fix for that edge case should be in the next release after 0.1.0.

Roc is designed to have user-friendly syntax, APIs, and compiler error messages.

Syntax Example

Here's what Roc code looks like, adapted from a sparkline rendering example in Kite, a Roc GUI platform whose author runs it on an e-ink tablet. (You can read more about Kite in its community showcase entry below.)

spark_cell = |ctx| {
	prices = ctx.row.timeline
	
	up = match (prices.first(), prices.last()) {
		(Ok(first), Ok(last)) => first < last
		(_, _) => True
	}
	
	color = if up { Colors.good } else { Colors.bad }
	
	Sparkline.bars(prices, 100.0, 28.0, color)
		|> View.style(St.width(Grow).height(Fixed(28)))
}

Error Messages

Here's the error message you get if you change True to 1 in this example:

✗ type mismatchmain.roc:11:13

This number is being used where a non-number type is needed.

(_, _) => 1
          ^

Other code expects this to have the type:

    Bool

Roc is directly descended from Elm, whose compiler is legendary for its friendly error messages, and Roc's goal is to follow in its footsteps.

Purity Inference

A concise example of Roc's user-friendliness is this snippet:

if File.exists!(path)

Just by looking at this code, I can tell you that File.exists! is not a pure function; it performs side effects. That's because Roc's type system gives different types to pure functions and effectful functions, and the compiler enforces the naming convention that effectful functions' names must end in !.

I can also tell that this conditional is inside an effectful function. That's because effectful functions may only be called from other effectful functions (pure functions can be called anywhere), which the compiler infers and enforces. This simple system reliably tells you which parts of your code base are pure (usually most, in real-world Roc code bases), and exactly where the effects are, while keeping function calls as straightforward as they are in mainstream languages.

Compile-Time Evaluation

Pure functions are also evaluated at compile time when possible (that is, when they depend on no runtime inputs), and this happens before exhaustiveness checking. That means this roc-regex snippet will execute Regex.compile when you are compiling your Roc program:

Ok(my_regex) = Regex.compile(".*Holmes.*&.*Watson.*")

If your regex string contains a syntax error, Regex.compile will return an Err during compile-time evaluation, making the Ok pattern-match fail before your program even runs. Even roc check will report an error for this! These functions are safe to evaluate at compile time because the compiler knows they're pure.

Friendly People

The Roc community is also full of friendly people who hang out in Roc Zulip. Come say hi in the #introductions channel!

When I asked for community projects to share in the 0.1.0 announcement post, I got way too many responses to put here, so I left some out and limited these to one project per author. Below each featured project, you can find links to other projects that community member has made.

Roc is designed to be useful in a variety of use cases, and these projects demonstrate a wide range of them: a full-stack Web framework, native macOS and Windows app frameworks based on reactive signals, a 3D game engine, a reactive notebook, a neural-network library, a native GUI platform running apps on an e-ink tablet, a chat client, a Game Boy Advance emulator, commercial screenwriting software, an immediate-mode UI library, a Web framework for hypermedia apps, a bindings generator for Godot and related game engines, a CLI for reproducible development environments and machines, a Redis client, an HTTP API and backend server platform, and a serialization format.

An open-source framework for building full-stack web applications in Roc, with an Elm-style architecture and a WebAssembly frontend. Niclas has been using Joy in paid production work for 2 years.

Niclas Åhdén talking about the Joy Web Framework

Niclas has also published numerous other open-source Roc packages, most of which he uses in production.

Platforms for building native macOS and Windows applications in Roc, using pure functions for rendering and reactive signals for state updates without side effects.

Build native macOS apps using Roc — Luke Boswell

Luke uses Roc for internal tooling at work, and has open-sourced many different packages and platforms.

An experimental 3D game engine for native desktop or WebAssembly games, with game logic written in Roc and engine internals written in Odin. It has a stylish interactive tour that you can try in your browser.

Download the Rocco demo video.

Reactive Roc notebooks that run in a browser (including offline!) with support for exporting notebooks and running the server locally.

Download the Roclet introduction.

Aurélien's introduction to Roclet. Shared on Zulip.

Aurélien has also written lots of Roc's official documentation and tutorial, and also created the Roc Exercism Track. He's also published a variety of other Roc packages.

A small neural network package for exploring machine learning, inspired by micrograd and tinygrad. You can try it in your browser via Roclet.

A native GUI platform using The Elm Architecture, Tailwind-inspired styles, animation, and rich text. Karl runs it on an e-ink tablet:

Karl has open-sourced other Roc packages as well.

A privately-deployed chat application featuring topics, direct messages, and Markdown for styling. roc-chat uses Roc for its application logic and a custom platform under the hood written in Zig.

Steve has also built games, learning materials, and packages in Roc.

A work-in-progress Game Boy Advance emulator written in Roc. It uses Luke Boswell's roc-ray for graphics, and has not implemented sound yet.

Commercial screenwriting software that uses Roc for screenplay layout, pagination, and other application logic, with a custom Rust platform under the hood for managing I/O and collaborative document state.

An immediate-mode GUI library for Roc native applications and games, with a Clay-inspired layout system, a Model-View-Update architecture, and roc-ray rendering. You can see its interactive tutorial in action here:

Download the Terrocotta demo.

A web platform with typed HTML templates, SQLite queries that are verified at compile time, server-sent events, and live reload. Its tutorial is a Roux app, and there are nightly benchmarks vs. Go, axum, and others.

Generates Roc bindings for Godot, Redot, and other game engines using GDExtension, so you can write game logic in Roc for any of these engines.

Scott has also built other platforms and developer tools in Roc.

As the README explains: "Kai wraps Nix in a friendly frontend"—with an optional guix plugin as well.

Brandon has also built Ancient Greek learning tools in Roc.

A binary-safe Redis client that can be used from different Roc platforms. Jared isn't aware of anyone using it in the wild yet.

#### Redis client throughput (higher is better)

  • roc-redis
  • go-redis
  • redis-py
  • redis-rs

Throughput vs. redis-rs

0%

10%

20%

30%

40%

50%

60%

70%

80%

90%

100%

ping_sequential

set_get_sequential

incr_sequential

ping_pipeline

mset_mget_sequential

hash_roundtrip_sequential

set_get_pipeline

roc-redis on ping_sequential

91.8% of redis-rs throughput

go-redis on ping_sequential

76.0% of redis-rs throughput

redis-py on ping_sequential

29.7% of redis-rs throughput

roc-redis on set_get_sequential

93.5% of redis-rs throughput

go-redis on set_get_sequential

79.2% of redis-rs throughput

redis-py on set_get_sequential

29.8% of redis-rs throughput

roc-redis on incr_sequential

92.6% of redis-rs throughput

go-redis on incr_sequential

78.7% of redis-rs throughput

redis-py on incr_sequential

32.1% of redis-rs throughput

roc-redis on ping_pipeline

96.3% of redis-rs throughput

go-redis on ping_pipeline

91.8% of redis-rs throughput

redis-py on ping_pipeline

10.0% of redis-rs throughput

roc-redis on mset_mget_sequential

92.7% of redis-rs throughput

go-redis on mset_mget_sequential

81.4% of redis-rs throughput

redis-py on mset_mget_sequential

29.8% of redis-rs throughput

roc-redis on hash_roundtrip_sequential

94.4% of redis-rs throughput

go-redis on hash_roundtrip_sequential

80.5% of redis-rs throughput

redis-py on hash_roundtrip_sequential

29.7% of redis-rs throughput

roc-redis on set_get_pipeline

91.2% of redis-rs throughput

go-redis on set_get_pipeline

95.8% of redis-rs throughput

redis-py on set_get_pipeline

11.3% of redis-rs throughput

A webserver platform with typed handlers, tags, and staged middleware. Here's how Roxum benchmarks against Rust's axum crate:

#### HTTP throughput with Roxum

  • roxum
  • axum

Throughput vs. axum

0%

20%

40%

60%

80%

100%

120%

Plaintext

Pre-encoded JSON

Routing (100 routes)

Keep-alive-heavy

1,000 connections

Roxum on plaintext

216,198 req/s (82% of axum)

(median across four runs)

Roxum on pre-encoded json

218,086 req/s (83% of axum)

(median across four runs)

Roxum on routing (100 routes)

187,479 req/s (73% of axum)

(median across four runs)

Roxum on keep-alive-heavy

172,320 req/s (96% of axum)

(median across four runs)

Roxum on 1,000 connections

200,752 req/s (76% of axum)

(median across four runs)

Pronounced "raven," short for Roc Value Notation. As the README says:

Raven is to Roc as JSON is to JavaScript. Any Roc value that does not contain functions is valid Raven.

{
	language: "Roc",
	tags: [Fast, Friendly, Functional],
	color: 0x7c38f5, # Hex numbers and comments, too!
}

Jasper also created Gregorian, "a small and safe date/time package."

Other Packages

You can find many more Roc projects at roc-awesome, or right here in this list:

More packages from community members

Niclas Åhdén

  • joy-html provides HTML building blocks for Joy applications.
  • roc-pg is a PostgreSQL client with compile-time checking of SQL queries.
  • roc-deflate implements DEFLATE compression in pure Roc.
  • roc-xlsx generates Excel spreadsheets.
  • roc-zip creates and extracts ZIP archives.
  • roc-playwright lets Roc programs automate browsers using Playwright.
  • roc-spec runs tests in parallel with isolated test environments.
  • roc-vcr records and replays HTTP interactions for tests.
  • roc-openapi validates HTTP request bodies against OpenAPI specifications.
  • roc-sendgrid sends email through SendGrid.
  • roc-url parses and constructs URLs.
  • roc-database-url parses database connection URLs.
  • roc-base64 encodes and decodes Base64.
  • roc-crc32 calculates CRC32 checksums.
  • roc-hmac implements HMAC authentication codes in pure Roc.
  • roc-md5 implements MD5 hashing in pure Roc.
  • roc-scram implements SCRAM authentication in pure Roc.
  • roc-prng provides pseudorandom number generation.
  • roc-xml generates XML.
  • roc-human-readable-file-size formats file sizes for people to read.
  • roc-maybe provides a type for optional values.
  • roc-non-zero provides a number type that excludes zero.

Luke Boswell

  • roc-ray is a platform for games and graphics built on raylib, with support for tasks, networking, files, and databases.
  • roc-gui is an experimental platform for native GUI applications using GPUI.
  • roc-signals is a signals-based framework for web user interfaces.
  • plume provides a typed Roc API for interactive Plotly.js charts.
  • roc-docx reads and writes Word documents compatible with Word, LibreOffice, and Google Docs.
  • roc-font reads OpenType and TrueType fonts and shapes text into positioned glyphs.
  • roc-graph-layout provides graph layout algorithms and parses and renders Mermaid diagrams.
  • roc-parser combines parser combinators with ready-made parsers for formats including JSON, YAML, XML, Markdown, AsciiDoc, HTTP, and Roc source.
  • roc-pdf generates PDF 2.0 and PDF/A-4 documents in Roc.
  • roc-time handles dates, times, and durations.
  • weaver parses command-line arguments with an API inspired by Rust's clap.
  • basic-ssg generates static sites from Markdown and AsciiDoc.
  • roc-fuzz provides fuzzing and property-based testing using libFuzzer, along with tools for observing performance.
  • Zig platform template is a starting point for hosting Roc applications in Zig.
  • Rust platform template is a starting point for hosting Roc applications in Rust.
  • Go platform template is a starting point for hosting Roc applications in Go.
  • embed-roc-in-dotnet demonstrates embedding Roc in a .NET application.
  • roc-blueprint describes development environments, builds, tasks, and workflows in Roc, with Nix integration.
  • roc-automation supplies shared automation and a manual for maintaining Roc packages and platforms.
  • roc-awesome collects maintained Roc packages, platforms, tools, and applications from across the community.

Karl

  • Trantor assembles Roc platforms from reusable Rust components.
  • roc-regex is a regular expression engine written in Roc.
  • roc-markdown is Karl's CommonMark and GitHub Flavored Markdown parser, a separate project from Steve's library of the same name.

Steve Howell

  • Safari Walk is a 3D journey through a savanna at sunset, built with Roc and Rocco and running in browsers with WebGPU support.
  • A little Roc book teaches Roc by walking through the code behind the original 2D Safari Ride.
  • roc-markdown is Steve's Markdown library, used in his book-building tools and chat application.
  • BASIC interpreter is a browser playground for running BASIC programs with an interpreter written in Roc.
  • Fast Track is a browser implementation of the marble-racing board game, with card-driven moves and computer opponents.
  • Welcome to Roc is an animated welcome made for the Roc release.

blu

  • Lyceum Study is a spaced-repetition tool for learning Ancient Greek, being ported to Roc.
  • Apo uses language models to generate glosses and prose translations as part of the Lyceum Ancient Greek toolkit.

Aurélien Geron

  • roclet-display adds rich notebook output such as tables, images, charts, and interactive controls.
  • Exercism's Roc track provides coding exercises, tests, and example solutions for learning and practicing Roc.

Jasper Woudenberg

  • Gregorian provides tools for working with dates and times.

Scott Campbell

  • goose-roc experiments with hosting Roc applications in Goose, including a console example and a work-in-progress mini-Doom port.
  • roc-build runs build tasks in parallel according to their dependency graph, using a Zig host.
  • roc-platform-patcher injects middleware into already-distributed platforms, enabling instrumentation, effect interception, and testing even when a platform's source is unavailable.

More about the language

Beyond the basics discussed earlier, here are some more details about Roc as a language. This won't be as comprehensive as the language reference or as helpful an introduction to the language as the tutorial or Exercism learning track, but it will give you an overview of what you can find in it.

Common Features

These are some features Roc has that can be found in several other languages.

  • Cross-compiling to static binaries out-the-box just like Go, including to Linux with no libc dependency (e.g. for Alpine Linux).
  • Sum types with pattern matching and exhaustiveness checks.
  • Simple, sound type system.
    • No null or any (or equivalent of either).
    • Type annotations are optional. Roc's type inference is principal and decidable, meaning it always correctly infers the most flexible correct type.
  • All expressions that can be evaluated at compile time are evaluated then.
    • This is true even if heap allocations are involved.
  • Testing, building, package management, and formatting, are all out-the-box.
  • Tests are automatically cached to avoid re-running tests whose outcomes couldn't possibly have changed given that the relevant source code didn't.

Uncommon Features

These are features that are much less common.

Getting Started

If Roc sounds interesting to you, the official tutorial is an easy place to start, and the language reference can answer questions you encounter in more detail.

In addition to writing much of the official documentation, Aurélien Geron created Exercism's Roc track and has built out 139 different exercises in conjunction with other maintainers.

Finally, Roc Zulip has always been a welcoming place for beginners, and there are plenty of friendly people there who are happy to help you get into the language. Come say hi in the #introductions channel!

Shout-Outs

Before wrapping up, I want to give some final shout-outs to all the people and projects who got Roc to this milestone, including:

  • The amazing Roc community! This post would have practically no content without the people who created the wonderful projects above.
  • All the contributors, past and present, who helped bring the language to this milestone. Thank you, thank you, thank you!
  • The Elm Programming Language, which directly inspired Roc (fun fact: the logo is origami as an homage to Elm's tangram logo).
  • The Koka and Morphic research languages, without which Roc would not be competitive with fast imperative languages on performance.
  • The Rust Programming Language, which is the language Roc's original compiler was written in. It served us well for years, and I'm still happy to use it daily at work.
  • The Zig Programming Language, which is the language Roc's compiler is now written in. It has continued to be great for us since the rewrite, and I'm still a happy recurring donor to the nonprofit Zig Software Foundation.
  • Zed, the editor I used for the entirety of the current code base, at least until I switched to...
  • Delta, which has become my main tool for building software. It's what I use daily to collaborate with my coworkers, as well as some Roc contributors.
  • And finally, all the people and companies who have donated to the nonprofit Roc Programming Language Foundation. Your donations, whether through every.org, Liberapay, GitHub Sponsors, or Benevity, have let us pay contributors to improve the language, and we'd love to do more of that! Corporate sponsors are also welcome; DM me on Zulip if you'd like to chat about corporate sponsorship.

What's Next?

The next release after 0.1.0 will most likely be 0.1.1, with bugfixes and performance improvements based on issues people have already reported on 0.1.0. (It will not take eight years to ship. Most likely sometime in December 2026.) In the meantime, there are automatically-published nightly releases if you want to try the latest compiler built from the previous day's main.

After that, here are some things we're exploring for 2027 and beyond:

  • Concurrency primitives in the standard library
  • Improved test output, as well as support for simulating effects (and testing real effects) and property-based testing out-the-box
  • A built-in debugger (in addition to the DWARF debug info we already emit for third-party debuggers to use)
  • Features inspired by theorem provers for additional ways to verify Roc programs
  • Improving build times for cold builds and optimized builds. (Minimizing development rebuild times was the priority for 0.1.0, since that's the most common feedback loop.)

It's taken a long time to get this foundation in place, but 0.1.0 is just the beginning for Roc!

Compare original feed summary (1 words)