Anonymize your writing style. Zig WASM engine detects authorship markers, fine-tuned LLM rewrites to remove them. Runs entirely in-browser. fantasma.qstorage.quilibrium.com/
wasm privacy qwen zig
at main 13 lines 452 B view raw
1const std = @import("std"); 2 3/// Returns the appropriate allocator for the target. 4/// WASM: page_allocator (backed by memory.grow) 5/// Native: GeneralPurposeAllocator for testing 6pub fn getAllocator() std.mem.Allocator { 7 if (@import("builtin").target.cpu.arch == .wasm32) { 8 return std.heap.wasm_allocator; 9 } else { 10 // For native builds, use the page allocator (simple, no state) 11 return std.heap.page_allocator; 12 } 13}