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 fiddled around with getting the CVS to work with GTK, and I actually made some progress. Right now the code (which is not on the CVS) is a horrible Frankenstein's monster-like combination of Tunguska and a makeshift GTK+ UI ... but it works!

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

Re: Tunguska the ternary emulator

Post by Mac Buster »

Looks very impressive :)
eudoxie
Maniac
Posts: 277
Joined: 17 Sep 2012 13:36
Location: 81.170.128.52

Re: Tunguska the ternary emulator

Post by eudoxie »

Yeah, I've been playing around with GTK even more now, and it seems to work pretty well with Tunguska, and it opens up a lot of interesting possibilities.
User avatar
Shaos
Admin
Posts: 24086
Joined: 08 Jan 2003 23:22
Location: Silicon Valley

Re: Tunguska the ternary emulator

Post by Shaos »

eudoxie wrote: Yeah, I've been playing around with GTK even more now, and it seems to work pretty well with Tunguska, and it opens up a lot of interesting possibilities.
If I fix something minor in your code to make it really multi-platform may I commit this changes to CVS? Or you prefer to discuss every change in forum (here or sf.net)?
eudoxie
Maniac
Posts: 277
Joined: 17 Sep 2012 13:36
Location: 81.170.128.52

Re: Tunguska the ternary emulator

Post by eudoxie »

Sure, go a head and commit the changes to the CVS.
User avatar
Shaos
Admin
Posts: 24086
Joined: 08 Jan 2003 23:22
Location: Silicon Valley

Re: Tunguska the ternary emulator

Post by Shaos »

eudoxie wrote: Sure, go a head and commit the changes to the CVS.
OK, I will start with tg_assembler on my PowerMac G4 under Debian Linux. It has PowerPC G4 processor running in big-endian mode. Then MacOS X 10.4 with Xcode 2.0 (it has more strict GCC rules by default) on my PowerBook G4...
eudoxie
Maniac
Posts: 277
Joined: 17 Sep 2012 13:36
Location: 81.170.128.52

Re: Tunguska the ternary emulator

Post by eudoxie »

Another GTK UI screenshot.

Image

And don't worry about breaking the GUI stuff I'm writing right now with CVS updates. It's really non-invasive. I think I've added three lines (and changed none) of code in the files currently in the CVS.
Mac Buster
Retired
Posts: 1474
Joined: 03 Aug 2003 22:37
Location: Moscow

Re: Tunguska the ternary emulator

Post by Mac Buster »

On next tuesday I'll visit conference dedicated to 50-th anniversary of Setun computer. May I anounce the GTK version there ? :)
eudoxie
Maniac
Posts: 277
Joined: 17 Sep 2012 13:36
Location: 81.170.128.52

Re: Tunguska the ternary emulator

Post by eudoxie »

Mac Buster wrote: On next tuesday I'll visit conference dedicated to 50-th anniversary of Setun computer. May I anounce the GTK version there ? :)
Sure.

It'll probably be a while before it's all ready, but I've really come a long way in a short time :-)

Image

This screenshot is pretty cool. The memory inspector is showing part of the area of memory where the screen buffer is, so (it's a bit hard to see) you can actually see the lines of text on the screen in the memory inspector 8-)
User avatar
Shaos
Admin
Posts: 24086
Joined: 08 Jan 2003 23:22
Location: Silicon Valley

Re: Tunguska the ternary emulator

Post by Shaos »

incredible progress just in one day :-o
eudoxie
Maniac
Posts: 277
Joined: 17 Sep 2012 13:36
Location: 81.170.128.52

Re: Tunguska the ternary emulator

Post by eudoxie »

Yeah, I'm surprised as well. I would have thought it would take at least a week to get the stuff I finished today done. Add to that it's been ages since I've worked with GTK, so I'm spending half the time looking stuff up in the references. It's just gone really smooth for some reason. I must be on a lucky coding streak.

I think part of the reason it's gone so fast because a lot of the functionality is already in tunguska, only it's not visible so most of the stuff I've done is just make ready-made internal functions available to the user. So in the end, it isn't all that much code (it's something like 600 lines for the whole GUI at the moment).
eudoxie
Maniac
Posts: 277
Joined: 17 Sep 2012 13:36
Location: 81.170.128.52

Re: Tunguska the ternary emulator

Post by eudoxie »

I've been thinking it makes sense to build a small IDE around Tunguska with automated building and a source editor with syntax highlighting and that whole deal. It wouldn't really be all too much code when things come around, a lot of the code editor functionality already exists in GtkSourceView and I've already written most of the debugging functionality.

I don't want Tunguska to get bloated and turn into EMACS, but I think this functionality can be justified. The SDL version will still be around for people who want a slimmed GUI optimized for speed.
User avatar
Shaos
Admin
Posts: 24086
Joined: 08 Jan 2003 23:22
Location: Silicon Valley

Re: Tunguska the ternary emulator

Post by Shaos »

eudoxie wrote: I've been thinking it makes sense to build a small IDE around Tunguska with automated building and a source editor with syntax highlighting and that whole deal.
I think it's great idea!
Mac Buster
Retired
Posts: 1474
Joined: 03 Aug 2003 22:37
Location: Moscow

Re: Tunguska the ternary emulator

Post by Mac Buster »

Good IDE is what we all missing in Tunguska project :)
eudoxie
Maniac
Posts: 277
Joined: 17 Sep 2012 13:36
Location: 81.170.128.52

Re: Tunguska the ternary emulator

Post by eudoxie »

Image

I've put together most of the the interface now. A rough update of the status:

Machine: 60% (still lacks raster and vector graphics)
Machine control: 70%
Debug utilities: 60%
Text editing: 60%
File management: 10%
Build management: 0%