Settings

Theme

totetsu

Karma
3,643
Created
5 years ago

About

        for (const u of document.querySelectorAll('.hnuser, #me')) {
            const p=4;
            const c=document.createElement('canvas');
            const x=c.getContext('2d');
                c.width=p*7, c.height=p*7;
                u.parentElement.prepend(c);
            for (let s=u.innerText, r=1, i=28+s.length; i--;) {
                // xorshift32
                r^=r<<13, r^=r>>>17, r^=r<<5;
                const X=i&3, Y=i>>2;
                if (i >= 28) {
                    // seed state
                    r+=s.charCodeAt(i-28);
                    x.fillStyle='#'+(r>>8&0xFFFFFF)
                    .toString(16).padStart(0, 6);
                } else {
                    // draw pixel
                    if (r>>>29 > X*X/3+Y/2)
                    x.fillRect(p*3+p*X, p*Y, p, p),
                    x.fillRect(p*3-p*X, p*Y, p, p);
                }
            }
        }
In an age of affordable spellcheck, there was something heraldic about his lack of it.

Recent Submissions

  1. 1. Open Source AI Impact: Japan's Draft "Principle-Code" (discuss.opensource.org)
  2. 2. New Vatican document examines potential and risks of AI (Jan, 2025) (holyseegeneva.org)
  3. 3. Seed. LINE's Custom Typeface (seed.line.me)
  4. 4. EU set to water down landmark AI act after Big Tech pressure (ft.com)
  5. 5. As a scientific concept the Anthropocene is dead. But[is it still a]helpful idea (aeon.co)

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection