Tunguska the ternary emulator

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

Moderator: haqreu

eudoxie
Maniac
Posts: 277
Joined: 17 Sep 2012 13:36
Location: 81.170.128.52

Re: Tunguska the ternary emulator

Post by eudoxie »

I'm all done with the source package now.

I've uploaded the manual here --> http://tunguska.sourceforge.net/The_Fine_Manual.pdf

I've also uploaded the source package here for now (I'll upload it to sourceforge when the windows package is ready for release) --> http://nedopc.org/ternary/tunguska/tunguska-0.5.tar.bz2
User avatar
Shaos
Admin
Posts: 24008
Joined: 08 Jan 2003 23:22
Location: Silicon Valley

Re: Tunguska the ternary emulator

Post by Shaos »

Wow, you use GPL v3 now?...
Your COPYING says version 3
But version of GPL for CYGWIN is 2 ONLY!
And we can't mix GPL v2 and GPL v3 in one package...

See http://nedopc.org/ternary/tunguska/tunguska-0_5-win.zip (2.7Mb)
I added my stuff to separate folder and COPYING.txt is GPLv2
Also check correctness of README.txt
Last edited by Shaos on 11 Nov 2012 16:42, edited 1 time in total.
eudoxie
Maniac
Posts: 277
Joined: 17 Sep 2012 13:36
Location: 81.170.128.52

Re: Tunguska the ternary emulator

Post by eudoxie »

The license of Tunguska is strictly speaking "GPL2 or later", so you can distribute it with a GPL2 or GPL3 license.

3CC accidentally used a GPL3 only copyright notice, but I've changed that to 2 or later in the CVS now (and will do the same to the package).

As for the package, the README.txt looks good, but I think it would make sense to rename "ram" to "ram_asm"
User avatar
Shaos
Admin
Posts: 24008
Joined: 08 Jan 2003 23:22
Location: Silicon Valley

Re: Tunguska the ternary emulator

Post by Shaos »

eudoxie wrote: The license of Tunguska is strictly speaking "GPL2 or later", so you can distribute it with a GPL2 or GPL3 license.
But not with CYGWIN stuff - it requires GPL v2 around

If you put COPYING that says GPLv3 then we can take it and mix with CYGWIN because of it's GPLv2, so COPYING in sources must be GPLv2 rigth?
As for the package, the README.txt looks good, but I think it would make sense to rename "ram" to "ram_asm"
OK, I made this change: http://nedopc.org/ternary/tunguska/tunguska-0_5-win.zip (2.7Mb)

P.S. I again have problems with mouse in pong. Could you please check this build on your available Windows?
Last edited by Shaos on 11 Nov 2012 16:43, edited 1 time in total.
eudoxie
Maniac
Posts: 277
Joined: 17 Sep 2012 13:36
Location: 81.170.128.52

Re: Tunguska the ternary emulator

Post by eudoxie »

I don't have access to a windows box right now, so I'll try it tomorrow when I do.
eudoxie
Maniac
Posts: 277
Joined: 17 Sep 2012 13:36
Location: 81.170.128.52

Re: Tunguska the ternary emulator

Post by eudoxie »

I can't get the mouse to work in Pong in the windows port either, though it works in the brownian motion demo for the assembly image. The mouse works in pong in Linux when I checked last night.

But there is another problem, cpp tries to run "cc1.exe", which isn't present, so building the 3cc image fails. I think it could perhaps be a better idea to make MinGW a requirement for the windows port, instead of shipping the specific parts of GCC.
User avatar
Shaos
Admin
Posts: 24008
Joined: 08 Jan 2003 23:22
Location: Silicon Valley

Re: Tunguska the ternary emulator

Post by Shaos »

Yes, you're right - I never tried run it on other machine before...
So now I'm trying to write "quick and dirty" mini cpp that will be enough to process your 3CC files in this release...
P.S. I think the best solution will be to add limited preprocessor functionality directly to your 3CC application
User avatar
Shaos
Admin
Posts: 24008
Joined: 08 Jan 2003 23:22
Location: Silicon Valley

Re: Tunguska the ternary emulator

Post by Shaos »

OK, it's ready: http://nedopc.org/ternary/tunguska/tunguska-0_5-win.zip (2.0Mb)

No more cpp.exe! My minicpp is very simple program - 236 lines of program itself and 762 lines of my old (back to 1996) string/text library - all is kind of public domain. One thing that I did in your sources, I removed TEST(TEST) macro definition from MAIN.C, because I do not have time to support macros with arguments ;)

Code: Select all

21c21
< #define TEST(TEST) puts(#TEST " = "); putnum(TEST); putc(2);
---
> //#define TEST(TEST) puts(#TEST " = "); putnum(TEST); putc(2);
37,38c37,39
< char test(int value) {
<         TEST(value);
---
> char test(char *s, int value) {
>         puts(s);puts(" = ");
>         putnum(value);putc(2);
82c83
<                 TEST(random());
---
>                 test("random()",random());
P.S. Result is identical to standard cpp (in case of current 3CC source code). Enjoy :)
Last edited by Shaos on 11 Nov 2012 16:44, edited 1 time in total.
eudoxie
Maniac
Posts: 277
Joined: 17 Sep 2012 13:36
Location: 81.170.128.52

Re: Tunguska the ternary emulator

Post by eudoxie »

Great! Unless you have any last minute changes, I think it's ready for release.
User avatar
Shaos
Admin
Posts: 24008
Joined: 08 Jan 2003 23:22
Location: Silicon Valley

Re: Tunguska the ternary emulator

Post by Shaos »

eudoxie wrote: Great! Unless you have any last minute changes, I think it's ready for release.
No changes - it's ready ;)
eudoxie
Maniac
Posts: 277
Joined: 17 Sep 2012 13:36
Location: 81.170.128.52

Re: Tunguska the ternary emulator

Post by eudoxie »

Ok, good. I'll probably release it on SF tonight then.
eudoxie
Maniac
Posts: 277
Joined: 17 Sep 2012 13:36
Location: 81.170.128.52

Re: Tunguska the ternary emulator

Post by eudoxie »

... and now it's released :-D
User avatar
Shaos
Admin
Posts: 24008
Joined: 08 Jan 2003 23:22
Location: Silicon Valley

Re: Tunguska the ternary emulator

Post by Shaos »

eudoxie wrote: ... and now it's released :-D
Great! What about news? It still says "0.0.3"...
eudoxie
Maniac
Posts: 277
Joined: 17 Sep 2012 13:36
Location: 81.170.128.52

Re: Tunguska the ternary emulator

Post by eudoxie »

Hmm, I think I'll fix that tomorrow. Freshmeat.net isn't updated either, so it's no hurry.
eudoxie
Maniac
Posts: 277
Joined: 17 Sep 2012 13:36
Location: 81.170.128.52

Re: Tunguska the ternary emulator

Post by eudoxie »

Freshmeat is still not updated. I think my update request was lost somewhere in transit. I've resubmitted.

I've been thinking about what stuff to work on for the next version of tunguska. So far, I've come up with the following things:

* UI changes (probably a move to GTK, possibly also OpenGL)
* New character table (the current one is so limited it's painful and I really like the one Shaos designed)