Live data from Hacker News

Bytecode VMs in surprising places (2024)

dubroy.com

71–74 of 74 posts

Re: Bytecode VMs in surprising places (2024)

#71
post #47

Earlier quoted context omitted.

Power Macs had an x86 emulator which ran the x86 ROM in PCI cards.

I don't think that's true? Macs were running Open Firmware, they had an expectation of the same Forth code that Suns made use of, and several cards needed to be flashed with Apple firmware to be Mac compatible. Alphas definitely ran x86 video card init code under emulation, though.

iirc, the OpenFirmware boot image was larger than the equivalent BIOS image - I've got half a memory of resoldering ROM chips on ATi cards so they could be cross-flashed to work in G3/G4 PoweMacs.

Re: Bytecode VMs in surprising places (2024)

#72
post #58

LEGO Mindstorms programs run in an on-brick VM, iirc

Kinda-Sorta.

If you read Proudfoot's docs [ https://www.mralligator.com/rcx/ ] you'll find that what Lego did was half VM half native half "well, it depends".

There's a BIOS/stdlib, which in turn boots a userspace OS held in RAM ("firmware") that then executes the assembled mini-VM. However, there was nothing keeping people from rewriting the in-ram OS with something else, which led to BrickOS, jeJOS, pbForth, ROBOLAB, etc.

I spent many, MANY hours of my youth hacking on the RCX and am damn sad that there isn't currently a good replacement for it.

Re: Bytecode VMs in surprising places (2024)

#74
post #72
post #58

LEGO Mindstorms programs run in an on-brick VM, iirc

Kinda-Sorta. If you read Proudfoot's docs [ https://www.mralligator.com/rcx/ ] you'll find that what Lego did was half VM half native half "well, it depends". There's a BIOS/stdlib, which in turn boots a userspace OS held in RAM ("firmware") that then executes the assembled mini-VM. However, there was nothing keeping people from rewriting the in-ram OS with something else, which led to BrickOS, jeJOS, pbForth, ROBOLA…

That's on RCX. I don't know for certain about the NXT 1 or 2, but the EV3's VM is called LMS2012
Post reply on HN