Ternary.info Forum Index Ternary Software {ENG}
Ternary VM (TVM) | Register To Post |
| | Newest First | Previous Topic | Next Topic | Bottom |
| Poster | Thread |
|---|---|
| hemuman | Posted on: 2008/8/1 11:34 |
Just can't stay away ![]() ![]() Joined: 2008/8/1 From: India, Bangalore Posts: 98 |
Ternary VM (TVM) Hello All,
I have just started over the ternary Computers(TCs), and by my understanding of the market, i can say that its tough to have a actual working model of TCs, what I wish is , if we really have to make it popular we should come up with some kind of Virtual Machines for TCs i.e. a TVM, So that people can actually work on them, much like JVM. Please post your views. |
| eudoxie | Posted on: 2008/8/1 12:19 |
Home away from home ![]() ![]() Joined: 2007/12/27 From: Sweden Posts: 266 |
Re: Ternary VM (TVM) Well, that is sort of what I'm trying to do with Tunguska. It's not a quite a virtual machine, in the java sense; it emulates a complete ternary computer.
The main problem with doing what you propose is speed. Regular binary virtual machines can rely heavily on native instructions (through JIT or whatever) to gain some sort of semblance of speed, but ternary virtual machines must emulate everything. |
| Shaos | Posted on: 2008/8/1 18:16 |
Webmaster ![]() ![]() Joined: 2005/4/9 From: New York Posts: 754 |
Re: Ternary VM (TVM) Do you plan to have support for graphics, windows, networks in your "TVM"?
P.S. I removed duplicate post from "Ternary Hardware" section
|
| Mbr | Posted on: 2008/8/2 0:31 |
Moderator ![]() ![]() Joined: 2005/4/10 From: Moscow Posts: 381 |
Re: Ternary VM (TVM) Yes, you're absolutely right. I'm working on prototype of such a virtual machine. Thought my vision slightly different from yours, I myself want to have something like configurable platform, that allow me define many things, such as amount of memory, how many radixes should contain registers and memory values, have number and type of instructions, how should machine perform arithmetics operations (fixed set or radixes, or variable), etc. From user's point of view the machine looks very much like VirtualBox, that also have low level programming tools (editor, compiler, debugger, memory inspector, profiler) and tools to inport binary data to balanced ternary one and of course to export it.
|
| eudoxie | Posted on: 2008/8/2 21:56 |
Home away from home ![]() ![]() Joined: 2007/12/27 From: Sweden Posts: 266 |
Re: Ternary VM (TVM) Interesting idea. I think there should be some sort of standardized way of describing any given virtual machine.
What would be really awesome if we could use XML to do it, and have the virtual machine parse it and automatically build itself. You could probably also implement functionality hooks (say you want your virtual machine to be more of an emulator, like Tunguska) in some lightweight interpreted language, like lua or python. I think, with some careful design work, it could actually work. Since you can describe pretty much any grammar with a tree structure, you might even be able to describe opcode functionality with it, which would be immensely powerful. You could specify an entire system architecture with nothing but a few hundred lines of easily readable XML code. Here's an example of what I'm thinking |
| Mbr | Posted on: 2008/8/3 0:30 |
Moderator ![]() ![]() Joined: 2005/4/10 From: Moscow Posts: 381 |
Re: Ternary VM (TVM) I will think about using XML in configuration file, it looks exactly what I need :)
|
| hemuman | Posted on: 2008/8/4 5:53 |
Just can't stay away ![]() ![]() Joined: 2008/8/1 From: India, Bangalore Posts: 98 |
Re: Ternary VM (TVM) Hello All,
I have just come up with ternary representation of "Trits" and "Trytes" much like a byte but here in 1 Tryte we have 6 Trits. i.e. 729 values(3^6=729).(WKT 1Byte has 8Bits i.e. 2^8) I will post the link in a day or two once formatting is done. If any one has specific file format for the data please let me know. Thanks, Manoj |
| hemuman | Posted on: 2008/8/4 5:59 |
Just can't stay away ![]() ![]() Joined: 2008/8/1 From: India, Bangalore Posts: 98 |
Re: Ternary VM (TVM) @ Shaos
I have just started working on the representation of data for "TVM". Once its complete i will start working on Interpreters. |
| hemuman | Posted on: 2008/8/4 7:50 |
Just can't stay away ![]() ![]() Joined: 2008/8/1 From: India, Bangalore Posts: 98 |
Re: Ternary VM (TVM) @Mbr
Hi I will be taking care of following: "how should machine perform arithmetics operations (fixed set or radixes, or variable), etc. From user's point of view the machine looks very much like VirtualBox, that also have low level programming tools (editor, compiler, debugger, memory inspector, profiler) and tools to inport binary data to balanced ternary one and of course to export it." Thanks, |
| eudoxie | Posted on: 2008/8/4 11:54 |
Home away from home ![]() ![]() Joined: 2007/12/27 From: Sweden Posts: 266 |
Re: Ternary VM (TVM) Quote:
I have just come up with ternary representation of "Trits" and "Trytes" much like a byte but here in 1 Tryte we have 6 Trits. i.e. 729 values(3^6=729).(WKT 1Byte has 8Bits i.e. 2^8) That's what I'm using in Tunguska. I'm storing it in a plain array of signed shorts (that is, 16 bits per tryte), and compressing it with zlib (which saves a lot of space effective). It isn't very space effective once in the host memory, but it's a lot faster than using bit twiddling to store it more effectively. |
| (1) 2 3 4 ... 9 » | |
| | Newest First | Previous Topic | Next Topic | Top |
| Register To Post | |





