고정된 글
고정된 글
(leah cdr car . oh_my!)@millihertz@oldbytes.space

it's been almost completely forgotten that the 8086 was intended to be a Pascal machine. C was barely on the horizon when the 8086 was conceived.

which explains at least one apparently bizarre choice: segmented pointers are a whole lot less painful when "pointer" is its own type, and not compelled to behave like an integer

also explains why "ret N" increments the stack pointer after popping the return address; it's intended to pop the caller's parameters off the stack again, which is what Pascal-derived languages want (and the complete antithesis of C)

...of course, given that, it's ironic that the first high level language implemented on the 8086 was Forth, which is possibly the only language to be an even worse fit for segmented addressing than C. oh well

고정된 글
(leah cdr car . oh_my!)@millihertz@oldbytes.space

so this paper gets cited a lot when people want to talk about how expensive GC is vs explicit memory management. which is all well and good, but comes with two issues and one killer problem.

the showstopper? the explicit allocator is uses is written in C, but the GCs are written in Java! it's not even comparing apples and apples! ¹

the issues:

  1. the garbage collectors tested are all stop-the-world collectors, and generational variations thereof, which are already known to perform worse with larger heaps and with full heaps. real GCs have moved on quite a long way since the 80s.

  2. the explicit memory managers can call upon an oracle to determine reachability, which is only possible because these are benchmarks and a GC could provide that information from a previous run. manual memory management can't work that way. of course, refcounting can and does work that way, but they didn't test refcounting.

고정된 글
(leah cdr car . oh_my!)@millihertz@oldbytes.space

i've just realised why the PowerPC instruction eieio is called that.

yes, yes, it's an abbreviation for "ensure in-order execution of I/O" and that's all well and good, but...

the thing is. to ensure things are done in order, you need to interpolate that instruction into your stages of I/O processing... exactly as the nursery rhyme does between stanzas

i'm going to do some output here, eieio
then i'll do some input here, eieio
some output here
some input there
here a byte
there a byte
i don't care what happens when
but it needs to finish here, eieio

...

working at IBM must be... interesting