Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Virtual instruction set

Name: Anonymous 2012-02-20 12:51

Hello.

I am thinking about simulating robots in a virtual world, and they would have an embedded computer that controls their movement.

I would like to know which instruction set architecture to simulate on said computers. Also, if I use an instruction set already supported by common compilers, will I be able to compile C code and load the resulting binaries on these virtual robots ?

Thank you.

Name: Anonymous 2012-02-20 13:04

Make a MIPS CPU simulator

Name: Anonymous 2012-02-20 13:10

>>2
Seconded. Beutiful and quite simple to implement.

Name: Anonymous 2012-02-20 13:11

Why not use an existing register-based virtual machine?

http://docs.parrot.org/parrot/latest/html/docs/overview.pod.html

Name: Anonymous 2012-02-20 13:12

As far as I know, you'd have to implement:

Learn D


Learn D


Learn D


This is only a partial list, however.

Name: Anonymous 2012-02-20 13:14

Is there any particular reason why an instruction set would be required? Just define an interface which the robots must obey to interact with the environment and leave the implementation to those writing the robot software (they can write it in any language and use any compiler as long as they can interface with your API/ABI). Unless, you're going for something more integrated and more "artificial life"-kind of virtual world.

Name: Anonymous 2012-02-20 13:25

>>1,2
Thank you, I’ll look into that.

>>4
I really would like to have the whole control over how these systems are doing. Also, it should not be too difficult to implement, so I might as well do it myself.

>>6
Well, I plan on doing a fully safe and enclosed thing. I don’t want robots to be able to crash the whole system, corrupt memory, or go into an infinite loop, no matter what their code is.
In the worst case, they’d crash their own robot.

Name: Anonymous 2012-02-20 13:30

>>7
Well, I plan on doing a fully safe and enclosed thing. I don’t want robots to be able to crash the whole system, corrupt memory, or go into an infinite loop, no matter what their code is.
In the worst case, they’d crash their own robot.
Define the interface via some RPC or protocol then - any language written anywhere, running anywhere (remotely or locally) could then use it. Although, this might be complicating things if there's a lot of traffic and you need efficiency.

Name: Anonymous 2012-02-20 13:47

>>8
Well, there’s that, but I’m also searching for fairness between units, and deamon-like running. I don’t want to have to wait for a remote system to send an action to get to the next frame, nor do users want to leave their systems running permanently.

Don't change these.
Name: Email:
Entire Thread Thread List