Sunday, 11 June 2017

Fun with C++ (Expert)

Or; C++ bytecode interpreter snippet with fused operations

Or; yeah, I'll add comments...

I program. A lot. I started with a little-known computer known as the Commodore *VIC-20(c), which was (to quote Wikipedia) "... the first computer of any description to sell one million units." It was succeeded shortly thereafter, with total sales of 2,500,000 units, by the Commodore 64(c), which went on to sell a staggering **17,000,000 units. In the early-to-mid 1980s.

Which isn't all that relevant today, except to establish some background info for those who normally see tabletop gaming stuff on here (on the rare occasions I post).

And today, I'm still programming. Including to relax.

Warning: There's a lot I don't know about interpreters and bytecode. I have no professional training here. I was just messing around, came up with something that looked neat, and decided to post it.

So I stuck it under the MIT license, and you can find it below the breakpoint.