HNHacker News
TopNewBestAskShowJobs

nirei

4 karma · joined April 9, 2014

Computer enchanter living in A Coruña, Galicia, on the spanish northwest.
submissionscomments
nirei··on Copper – A minimal low-level programming language with OOP and generics
How does it free memory? I don't get it. I browsed the docs a bit but didn't find a single reference to deallocation. There's alloc for heap allocation but no free?
nirei··on Claude discovers a novel enzyme system with CRISPR-like repeats
Eager to learn whose research they are stealing this time.
nirei··on Make product worse, get money
Very good involuntary defense of the thing it's trying to disprove.
nirei··on Let’s Draw Together
function createEvent(type, x, y) { const event = new PointerEvent(type, {pointerId: 1, bubbles: true, cancelable: true, pointerType: "touch", width: 100, height: 100, isPrimary: true, clientX: x, clientY: y }); const element = document.getElementById('canvas'); element.dispatchEvent(event); }

createEvent("pointerdown", 0, 300); for(x = 0; x < 100; x+=10) { createEvent("pointermove", x, 300) } createEvent("pointerup", 100, 300);

what am I doing wrong?