Skip to content

Instantly share code, notes, and snippets.

@scbafk
scbafk / lms.zig
Last active July 3, 2021 15:07
Simple Low Memory Sort in Zig
const std = @import("std");
const io = std.io;
const fs = std.fs;
const fmt = std.fmt;
const ArenaAllocator = std.heap.ArenaAllocator;
const page_allocator = std.heap.page_allocator;
const Allocator = std.mem.Allocator;
const File = fs.File;
const insertionSort = std.sort.insertionSort;
const assert = std.debug.assert;