Better HN
topnewbestaskshowjobs
Log inSign up

nirei

4 karma · joined Apr 9, 2014 (12y ago) · 4 submissions

Computer enchanter living in A Coruña, Galicia, on the spanish northwest.
Submissions

comment 3w ago · link · parent

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?

comment 2mo ago · link · parent

Eager to learn whose research they are stealing this time.

comment 1y ago · link · parent

Very good involuntary defense of the thing it's trying to disprove.

comment 6y ago · link · parent

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?