Skip to content

Instantly share code, notes, and snippets.

View hildjj's full-sized avatar

Joe Hildebrand hildjj

View GitHub Profile
@hildjj
hildjj / tagged-vector-adder.pegjs
Last active December 3, 2023 20:08 — forked from frostburn/tagged-vector-adder.pegjs
Peggy proposition: Tagged template parser with auto-vectorization of template arguments
import peg from "peggy-tag";
const PLACEHOLDER = "{{{ARG}}}";
const parse = peg`
{{
function add(left, right) {
if (typeof left === 'number') {
if (typeof right === 'number') {
return left + right;
foo = '1'
foo = '1'
@hildjj
hildjj / f16.json
Created November 16, 2025 18:12
Every float16 and its numerical value
This file has been truncated, but you can view the full file.
{
"0000": "0",
"0001": "5.960464477539063e-8",
"0002": "1.1920928955078125e-7",
"0003": "1.7881393432617188e-7",
"0004": "2.384185791015625e-7",
"0005": "2.980232238769531e-7",
"0006": "3.5762786865234375e-7",
"0007": "4.172325134277344e-7",
"0008": "4.76837158203125e-7",