
Tunguska the ternary emulator
Moderator: haqreu
-
- Maniac
- Posts: 277
- Joined: 17 Sep 2012 13:36
- Location: 81.170.128.52
Re: Tunguska the ternary emulator
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!


-
- Retired
- Posts: 1474
- Joined: 03 Aug 2003 22:37
- Location: Moscow
Re: Tunguska the ternary emulator
Looks very impressive 

-
- Maniac
- Posts: 277
- Joined: 17 Sep 2012 13:36
- Location: 81.170.128.52
Re: Tunguska the ternary emulator
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.
-
- Admin
- Posts: 24086
- Joined: 08 Jan 2003 23:22
- Location: Silicon Valley
Re: Tunguska the ternary emulator
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 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.
-
- Maniac
- Posts: 277
- Joined: 17 Sep 2012 13:36
- Location: 81.170.128.52
Re: Tunguska the ternary emulator
Sure, go a head and commit the changes to the CVS.
-
- Admin
- Posts: 24086
- Joined: 08 Jan 2003 23:22
- Location: Silicon Valley
Re: Tunguska the ternary emulator
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 wrote: Sure, go a head and commit the changes to the CVS.
-
- Maniac
- Posts: 277
- Joined: 17 Sep 2012 13:36
- Location: 81.170.128.52
Re: Tunguska the ternary emulator
Another GTK UI screenshot.

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.

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.
-
- Retired
- Posts: 1474
- Joined: 03 Aug 2003 22:37
- Location: Moscow
Re: Tunguska the ternary emulator
On next tuesday I'll visit conference dedicated to 50-th anniversary of Setun computer. May I anounce the GTK version there ? 

-
- Maniac
- Posts: 277
- Joined: 17 Sep 2012 13:36
- Location: 81.170.128.52
Re: Tunguska the ternary emulator
Sure.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 ?
It'll probably be a while before it's all ready, but I've really come a long way in a short time


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

-
- Admin
- Posts: 24086
- Joined: 08 Jan 2003 23:22
- Location: Silicon Valley
Re: Tunguska the ternary emulator
incredible progress just in one day 

-
- Maniac
- Posts: 277
- Joined: 17 Sep 2012 13:36
- Location: 81.170.128.52
Re: Tunguska the ternary emulator
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).
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).
-
- Maniac
- Posts: 277
- Joined: 17 Sep 2012 13:36
- Location: 81.170.128.52
Re: Tunguska the ternary emulator
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.
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.
-
- Admin
- Posts: 24086
- Joined: 08 Jan 2003 23:22
- Location: Silicon Valley
Re: Tunguska the ternary emulator
I think it's great idea!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.
-
- Retired
- Posts: 1474
- Joined: 03 Aug 2003 22:37
- Location: Moscow
Re: Tunguska the ternary emulator
Good IDE is what we all missing in Tunguska project 

-
- Maniac
- Posts: 277
- Joined: 17 Sep 2012 13:36
- Location: 81.170.128.52
Re: Tunguska the ternary emulator

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%