Ternary VM (TVM)

Balanced Ternary Numeral System - forum was moved from http://ternary.info

Moderator: haqreu

hemuman

Re: Ternary VM (TVM)

Post by hemuman »

Yes, below is the list:

1). Devnagri (From -364 to -109)
2). GREEK Symbols (From -108 to -1)
3). Ascii Chars (From 0 to 255)
4). CYRILLIC (From 256 to 321)
5). CYRILLIC Extention (322 to 341)
6). EMPTY for future use (342 to 362)
7). Filler Values (363 to 364)
User avatar
Shaos
Admin
Posts: 24011
Joined: 08 Jan 2003 23:22
Location: Silicon Valley

Re: Ternary VM (TVM)

Post by Shaos »

hemuman wrote: 3). Ascii Chars (From 0 to 255)
I thought "ASCII" is only first 128 characters
Next 128...255 is probably from some European code page
hemuman

Re: Ternary VM (TVM)

Post by hemuman »

I thought "ASCII" is only first 128 characters Next 128...255 is probably from some European code page
----------------
Alexander Shabarshin http://www.shaos.net
from 128 to 255 it is Extended ASCII Codes

Below link can be referd:

http://www.asciitable.com/

Thanks,
hemuman

Re: Ternary VM (TVM)

Post by hemuman »

Finally I started with TVM, for now i can just post the image.
Image

:-)
Mac Buster
Retired
Posts: 1474
Joined: 03 Aug 2003 22:37
Location: Moscow

Re: Ternary VM (TVM)

Post by Mac Buster »

Well, it looks like a terminal window :) What can it do now ?

P.S. Why do you use that "Load Program" button instead of menu item ?
hemuman

Re: Ternary VM (TVM)

Post by hemuman »

For now it can
1). Display tryte value of char
2). perform addition using command "add 1,0,0 1,1,1"
3). Perform multiplication using command "mul 1,0,0 1,1,1"

To quickly load the instruction written in any file.

Next i am going to add something like registers to store the values.
hemuman

Re: Ternary VM (TVM)

Post by hemuman »

Here is some more fancy screen shot,

Image
hemuman

Re: Ternary VM (TVM)

Post by hemuman »

Hello All,

In TVM i am going to assign first 729 trits to the Tryte Chars.


Below is the test image:

Image
hemuman

Re: Ternary VM (TVM)

Post by hemuman »

Hello All,

Finally i am able to release the first draft for the Ternary Virtual Machine (TVM)

Following is the link:
http://tvm.manojky.net/VM/TVM_V1.zip

Following are the instructions:
IMPORTANT:
After extracting the TVM_V1.zip COPY Directory TVM which is present in TVM_V1 directory to c drive.

Open command prompt and change your working directory to TVM_V1 and then Run the program using:
java -jar "TVM_V_1.jar"

Please post your views.
Mac Buster
Retired
Posts: 1474
Joined: 03 Aug 2003 22:37
Location: Moscow

Re: Ternary VM (TVM)

Post by Mac Buster »

I am unable to start your application on all three machines where I tried.
User avatar
Shaos
Admin
Posts: 24011
Joined: 08 Jan 2003 23:22
Location: Silicon Valley

Re: Ternary VM (TVM)

Post by Shaos »

Yes, directly it's not working:

Code: Select all

java.io.FileNotFoundException: C:\TVM\3t2.csv (The system cannot find the path specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(Unknown Source)
        at java.io.FileInputStream.<init>(Unknown Source)
        at java.io.FileReader.<init>(Unknown Source)
        at tvm_v_1.charFromTryte.readFile(charFromTryte.java:67)
        at tvm_v_1.charFromTryte.<init>(charFromTryte.java:15)
        at tvm_v_1.TVM_Action.<init>(TVM_Action.java:14)
        at tvm_v_1.TVM_V_1View.<init>(TVM_V_1View.java:28)
        at tvm_v_1.TVM_V_1App.startup(TVM_V_1App.java:19)
        at org.jdesktop.application.Application$1.run(Application.java:171)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
27.09.2008 6:18:50 org.jdesktop.application.Application$1 run
SEVERE: Application class tvm_v_1.TVM_V_1App failed to launch
java.lang.ArrayIndexOutOfBoundsException: -1
        at tvm_v_1.TVM_Action.<init>(TVM_Action.java:55)
        at tvm_v_1.TVM_V_1View.<init>(TVM_V_1View.java:28)
        at tvm_v_1.TVM_V_1App.startup(TVM_V_1App.java:19)
        at org.jdesktop.application.Application$1.run(Application.java:171)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0" java.lang.Error: Application class tvm_v_1.TVM_V_1App failed to launch
        at org.jdesktop.application.Application$1.run(Application.java:177)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
        at tvm_v_1.TVM_Action.<init>(TVM_Action.java:55)
        at tvm_v_1.TVM_V_1View.<init>(TVM_V_1View.java:28)
        at tvm_v_1.TVM_V_1App.startup(TVM_V_1App.java:19)
        at org.jdesktop.application.Application$1.run(Application.java:171)
        ... 8 more
To launch it I unzipped it to C: then copied C:\TVM\TVM to C:\TVM
hemuman

Re: Ternary VM (TVM)

Post by hemuman »

Hmm...

Please follow this:

1). Unzip it to Desktop
2). Copy the TVM directory which contains only two files(csv and properties) to C:,actually the program searches for c:\TVM\3t2.csv and the properties file.
3). Launch the application from desktop itself using (java -jar TVM_V_1.jar)

it should work.
hemuman

Re: Ternary VM (TVM)

Post by hemuman »

Hello All,

Did any one try this, as the same error one of friend was facing, later on he followed the above mentioned process and he success fully used it.

Please try.:-)
Mac Buster
Retired
Posts: 1474
Joined: 03 Aug 2003 22:37
Location: Moscow

Re: Ternary VM (TVM)

Post by Mac Buster »

Now I can start TVM, thanks!
hemuman

Re: Ternary VM (TVM)

Post by hemuman »

Waw..thats a relief to me.:-) thanks.