Archive for February, 2015

My Virtual Machine

Thursday, February 26th, 2015

I’ve been head down, working all spare hours on my virtual machine. It is 100% original code written from scratch in C. I can’t give details yet, but it’s a register-based 32-bit VM that runs within a 32-bit or 64-bit parent application (depending on the host OS) that permits me to run multiple VMs simultaneously, each of which can run the same or different applications.

The last few days have been a whirlwind of ISA tweaks code refactoring and general mania, but today I got to the point I could run a simple test. The test application ran two loops, one nested within the other, that both iterate 65,535 times for a total of 4,294,836,225 iterations.

Turns out my VM, running within a VMWare Fusion-hosted guest Ubuntu OS on my 2.26Ghz Mac, executes 117,131,896 instructions per second.

I knew that going for a register based VM (as opposed to stack based) was a good idea 🙂

I also have a number of additional things on the plan that will radically increase the effective performance. High on the agenda at this point is to finish my assembler for it, as currently I have to hand-assemble my instructions. I should get that done in the next couple of days. Later, there will be direct assembly to native code, depending on whether the VM is running on x86 or ARM… I’ve already done some successful prototyping of the concept. At that point, I start hitting the billions of instructions/sec.

Very, very happy with the way this is going!

Unicode portrait

Tuesday, February 17th, 2015


Thanks Seskin!


Saturday, February 14th, 2015

I’ve not posted much in recent days, not because I’m bored or have nothing to say (as if!) but because I’m engrossed in programming my own project, which is the evolution of previous activities. Unfortunately I can’t say much about what I’m doing (for potentially commercial reasons), but I wish I could. It’s wicked fun and I will be posting little snippets of coolness that have emerged form it in coming days.

It’s interesting how I’m evolving as a programmer. The latest code is leaner, better structured and packs more ‘punch’ than pretty much anything I’ve done to date and I’m learning a lot. It’s the things I’m learning that I’ll be putting up going forward!

And there’s more…

Monday, February 9th, 2015

This makes me happy 🙂

This is awesome

Monday, February 9th, 2015

This is amazing work for many reasons. The 3D scene is being rendered in ASCII art (that’s a picture made up of characters you can type) by a program in realtime. Simply stunning. I like the chip-tune too 🙂

I think he’s got a point to be honest

Tuesday, February 3rd, 2015

At least, it’s obvious there are massive gaps in the education system as it stands.

Why I’m here, and not on Facebook

Sunday, February 1st, 2015

This guy sums it up rather well. Facebook is a bad thing, for you and your friends, and here’s why.