News for hackers. Stuff that matters.
Re:PumpkinOS, a Re-Implementation of PalmOS by MaulingMonkey on Sunday April 07, 2024 @09:16PM (#39965373)
> Didn't 16-bit Windows and classic Mac OS do something similar?

I assume this is what `{Local,Global}{Lock,Unlock}` were for when combined with `{Local,Global}Alloc({L,G}MEM_MOVEABLE)`

Similar idioms occasionally persist in modern code - e.g. when dealing with FFI in GCed languages (C#'s `fixed` statement pins memory in place.)

Re:PumpkinOS, a Re-Implementation of PalmOS by asveikau on Sunday April 07, 2024 @09:20PM (#39965392)
The lock/unlock metaphor is also used when sharing buffers with video or a/v apis in Windows.

And the "safe array" type from COM/OLE.

Re:PumpkinOS, a Re-Implementation of PalmOS by saagarjha on Wednesday April 10, 2024 @06:15AM (#39989006)
And macOS too, with CVPixelBuffer.