This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "bytes" | |
| "compress/flate" | |
| "crypto/sha256" | |
| "encoding/binary" | |
| "encoding/hex" | |
| "encoding/json" | |
| "errors" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Exercise: Canonical divisor. Let X be a smooth projective variety. Name the divisor that records the zeros and poles of a rational volume form on X. | |
| Solution. That divisor is the canonical divisor K_X. For each positive integer m the nonzero sections of O_X(mK_X) are the m-pluricanonical forms. Their images in projective space have a maximum dimension, the Kodaira dimension kappa(X). The uniform pluricanonical degree theorem states: for each integer d>=1 there is an integer m(d)>0 such that, over every algebraically closed field of characteristic zero, the complete system |m(d)K_X| defines the Iitaka fibration of every smooth integral projective d-fold X with kappa(X)>=0. | |
| Iitaka 1971, On D-dimensions of algebraic varieties: ./Iitaka1971.pdf | |
| > The D-dimension of an algebraic variety is defined and studied. | |
| Kodaira 1963, On compact complex analytic surfaces I: https://www.jstor.org/stable/pdf/2373157.pdf | |
| > Elliptic surfaces and their canonical bundles organize the fibre structure. | |
| Exercise: Log discrep |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Big Bucket Rock Sorter | |
| Short Answer | |
| Big cloud bucket is very far away. | |
| Put flat sorted rocks in bucket. | |
| Keep map in fast camp. | |
| Smash small rocks into big rocks often. | |
| Send many hunters at once. | |
| Math is good but only if you smash. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ============================================================================== | |
| # flash_attn3 combined implementation | |
| # | |
| # Source URLs: | |
| # - https://huggingface.co/kernels-community/flash-attn3/resolve/v1/build/torch-stable-abi210-cu128-x86_64-linux/flash_attn_interface.py | |
| # - https://huggingface.co/kernels-community/flash-attn3/resolve/v1/build/torch-stable-abi210-cu128-x86_64-linux/_ops.py | |
| # ============================================================================== | |
| # ============================================================================== | |
| # flash_attn3_ops.py (inlined) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Epoch AI logo | |
| Latest | |
| Our work | |
| Navigate by topic | |
| About | |
| Contact | |
| MirrorCode: Evidence that AI can already do some weeks-long coding tasks | |
| Report | |
| Apr. 10, 2026 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** Search and Lookup pages. */ | |
| import React from 'react'; | |
| import type { Case } from './db'; | |
| import type { ApiResponse } from './api'; | |
| import { store } from './store.ts'; | |
| function onSearchChange(e: React.ChangeEvent<HTMLInputElement>) { | |
| store.set('search_query', e.target.value); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //bin/sh -c 'sum=$(cksum < "$0" | tr " " -); o=${TMPDIR:-/tmp}/how-to-split-ts-tsx-mjs-$sum; [ -x "$o" ] || ${CC:-cc} -O3 -Wall -Wextra $(pkg-config --cflags libgit2) "$0" -o "$o" $(pkg-config --libs libgit2) || exit; exec "$o" "$@"' "$0" "$@"; exit | |
| #include <git2.h> | |
| #include <ctype.h> | |
| #include <errno.h> | |
| #include <stdarg.h> | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <time.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pathlib as _pl; print(_pl.Path(__file__).read_text()); print("END_OF_SOURCE") | |
| import sys, pathlib, time, math, pickle | |
| import numpy as np | |
| import jax | |
| import jax.numpy as jnp | |
| import optax | |
| VOCAB = 256 | |
| CTX = 1024 | |
| BATCH = 96 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //bin/sh -c 'o=${0%.c}; [ "$o" -nt "$0" ] || ${CC:-clang} -O3 -march=native -o "$o" "$0"; exec "$o" "$@"' "$0" "$@"; exit | |
| // source: http://smalldatum.blogspot.com/2016/01/summary-of-advantages-of-lsm-vs-b-tree.html | |
| #define _GNU_SOURCE | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <time.h> | |
| #include <fcntl.h> | |
| #include <unistd.h> |
NewerOlder