Wednesday, August 31, 2005
I’m working some more on my object oriented bytecode compiler + language this week, and I have automatic garbage collection (mark + sweep). (100000 objects GC’d in 0 seconds)…
First attempt maked every object as recoverable, then scanned every object (that every object pointed to) and marked off ones that each other pointed at marking them non-recoverable.. Then ran through the list again and recovered the ones marked....
It works fine, and is good for a “manual” garbage collect…
Second attempt put a “bucket” in each object that pointed back to those that referenced it. If the bucket is empty, its recoverable. Each time an object is de-referenced, the object is marked for GC if its empty…
Obviously I need to switch from using a double linked list to using an automatically balanced tree to store my list of objects…
meh…
Posted by
Stu on 08/31 at 06:23 PM
Permalink to this post.
Filed Under :
Development •
Comments are closed
There are no comments on this entry.
Linked To by (0) blogs. Get a
Trackbacks link here
Wednesday, August 24, 2005
I fail to see why people program in VB.NET instead of going straight to C#.NET, it is afterall, a comepltly new language unrelated to VB6??
mm ohwell…
Spent a few hours this morning looking for a small bug tracking system that is not a web app, doesnt require a web server and is a standalone windows app… Could not really find anything suitable.
I really hate the datagrid in .net, its effing horrid. Why did the developers assume you’d 99.99999% of the time just hook it directly to a table/query from a database?? Every example I’ve ever seen for it just plugs it into the DB. “Look heirachical records from the DB with primary keys!!” Nice, but not what I bloody well want. I shouldnt have to bind it to something.
It makes using it outside of a database table/query really bloody hard and awefull.
As bad as the old vb6 flexgrid was, it makes me miss its simplicity. Select Full Rows, auto size columns, etc. just pile data into it.
aaargh.
Posted by
Stu on 08/24 at 08:28 PM
Permalink to this post.
Filed Under :
Development •
Comments are closed
Commented on by (1) people. Read those
Comments Here
Linked To by (0) blogs. Get a
Trackbacks link here
Tuesday, August 23, 2005
Complete Savage Island part 2 this morning (no hiccups at all....)…
So, now its time to get a relase of 0.1 out there and see what happens… Then on to testing the home brew games I have....
Posted by
Stu on 08/23 at 04:05 PM
Permalink to this post.
Filed Under :
Computers •
Development •
Bunyon / ScottCom •
Comments are closed
There are no comments on this entry.
Linked To by (0) blogs. Get a
Trackbacks link here
Monday, August 22, 2005
Was trying to compute the hash of a password, but I needed the result as a string.. Looking over the .NET stuff, it only returns the hash as binary (unless I missed some glaringly obvious function)…
anyway here is a simple class that will hash strings passed to it and return them as ascii. You can select ether an MD5 or SHA1 routine.
using System;
using System.Security.Cryptography;
namespace GeneralRoutines
{
/// <summary>
/// Summary description for clsHash.
/// </summary>
public class clsHash
{
public enum HashFunctions
{
hash_SHA1 = 0,
hash_MD5
}
private System.Security.Cryptography.HashAlgorithm xHash;
public clsHash(HashFunctions htype)
{
//
// TODO: Add constructor logic here
//
switch(htype)
{
case HashFunctions.hash_SHA1:
xHash = new System.Security.Cryptography.SHA1CryptoServiceProvider();
break;
case HashFunctions.hash_MD5:
xHash = new System.Security.Cryptography.MD5CryptoServiceProvider();
break;
}
}
/// <summary>
/// Computes a hash of the input string and returns it as ascii.
/// </summary>
/// <param name="strInput">String</param>
/// <returns>The ASCIIized string of the hash</returns>
public string HashString(string strInput)
{
byte[] xx;
byte[] result;
xx = System.Text.Encoding.UTF8.GetBytes(strInput);
xHash.Initialize();
result = xHash.ComputeHash(xx);
return HashToAscii(result);
}
private string HashToAscii(byte[] hash)
{
char[] keys = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'};
string x;
int l;
x = "";
l = hash.Length * 2;
for(int i=0; i<l; i+=1)
{
byte k;
k = hash[i/2];
if(i%2 == 1)
k &= 0xF;
else
k >>= 4;
x += keys[k].ToString();
}
return x;
}
}
}
Posted by
Stu on 08/22 at 11:32 PM
Permalink to this post.
Filed Under :
Development •
Comments are closed
There are no comments on this entry.
Linked To by (1) blogs. Get a
Trackbacks link here
Saturday, August 20, 2005
Made some good progress today… Only have savage island part 2 to test before I make a public release of the interpreter.. (unix/windows)…
Status;
- Adventureland : 100%
- Pirate Isle : 100%
- Mission Impossible : 100%
- Voodoo Island : 100%
- The Count : 100%
- Strange Odyssey : 100%
- The Mystery Fun House : 100%
- Pyramid of Doom : 100%
- Ghost Town : 100%
- Savage Island Part I : 100%
- Savage Island Part II : 0%
- Golden Voyage : 100%
- Great Advocado Adventure : 0%
- Matilda’s Dilema : 0%
- Escape from Cannibal Island : 0%
- Mystery of Captain Kidd : 0%
- Colossal Cave v4.0 Part 1 : 0%
- Colossal Cave v4.0 Part 2 Masters Game : 0%
- Computorama : 0%
- Escape from Alcatraz : 0%
- Gerrys Place : 0%
- Tomb of the Gray Elf : 0%
- Knight Ironheart : 0%
- Moon Adventure : 0%
- Nessy : 0%
- Travelling : 0%
Posted by
Stu on 08/20 at 02:28 AM
Permalink to this post.
Filed Under :
Computers •
Development •
Bunyon / ScottCom •
Comments are closed
There are no comments on this entry.
Linked To by (0) blogs. Get a
Trackbacks link here
Friday, August 19, 2005
A few updates… Two more games are 100% finishable…
- Strange Odyssey : In Testing Progress
- The Mystery Fun House : 100%
- Pyramid of Doom : 100%
and now fixed bugs with Moon Adventure, so it starts now.
Posted by
Stu on 08/19 at 05:15 PM
Permalink to this post.
Filed Under :
Computers •
Development •
Bunyon / ScottCom •
Comments are closed
There are no comments on this entry.
Linked To by (0) blogs. Get a
Trackbacks link here
Strange Odyssey contains more ‘items’ than what it really has.. The game SAYS it has X when it really has X-2!!!
Which means I cant trust it and now need to manually calculate this X myself :/ grrrrrr....
Status;
- Adventureland : 100%
- Pirate Isle : 100%
- Mission Impossible : 100%
- Voodoo Island : 100%
- The Count : 100%
- Strange Odyssey : In Testing Progress
- The Mystery Fun House : 0%
- Pyramid of Doom : 0%
- Ghost Town : 0%
- Savage Island Part I : 0%
- Savage Island Part II : 0%
- Golden Voyage : 0%
Of the games below, I really only count Knight Ironheart as part of the testing. Looking at its decompiled source, it makes the most extensive use of the TI99 Scott Adams format than any other game…
Once all the Scott Adams games are done and tested, Knight Ironheart will be the first on the list of testing.
- Great Advocado Adventure : 0%
- Matilda’s Dilema : 0%
- Escape from Cannibal Island : 0%
- Mystery of Captain Kidd : 0%
- Colossal Cave v4.0 Part 1 : 0%
- Colossal Cave v4.0 Part 2 Masters Game : 0%
- Computorama : 0%
- Escape from Alcatraz : 0%
- Gerrys Place : 0%
- Tomb of the Gray Elf : 0%
- Knight Ironheart : 0%
- Moon Adventure : crashes on startup....
- Nessy : 0%
- Travelling : 0%
Posted by
Stu on 08/19 at 03:56 AM
Permalink to this post.
Filed Under :
Computers •
Development •
Bunyon / ScottCom •
Comments are closed
There are no comments on this entry.
Linked To by (0) blogs. Get a
Trackbacks link here
Thursday, August 18, 2005
Squashed a few bigs today in the timer routines.. Now all games seem to load and go ok… Everything looks like its squared away!
Its just down to testing now…
testing testing testing…
Posted by
Stu on 08/18 at 10:14 PM
Permalink to this post.
Filed Under :
Computers •
Development •
Bunyon / ScottCom •
Comments are closed
There are no comments on this entry.
Linked To by (0) blogs. Get a
Trackbacks link here
Tuesday, August 16, 2005
Holy crap!! I’ve just been through a thunderstorm like none I’ve been through before.
Where our little house is, is in the mountains in a gorge. I could see all the clouds coming down then gorge, and it started getting darker, so I was watching it come (they look pretty cool, the big thunderheads rolling in)…
Then it starts to rain, and we are getting a LOT of thunder. More than normal… I heard a cracking noise and watched one of our fenceline trees just fall over with barely any sound, it was very muted…
So, there I am standing at the windows, and BAAM! Two lightening bolts hit down in the yard, I’m on my ass in the lounge, my ears are ringing and I’m seeing spots. The hair on my arms is sticking up like porcupine quills. It was dumping buckets of rain and I could smell it, that ozone smell. The gutters were overflowing everywhere on the roof.
When it stops, I want to go out and investigate where the two strikes came down..
Looks like we got some more (wet) firewood to be chopping up for the winter…
Posted by
Stu on 08/16 at 08:15 PM
Permalink to this post.
Filed Under :
Life •
Comments are closed
There are no comments on this entry.
Linked To by (0) blogs. Get a
Trackbacks link here
Only managed to get Voodoo Castle through last night without a hitch. I am now trying it on with the Count! ooooh Dracula..
After The Count, frmo Adventure #6 onwards, there start to be lots of usage of select_rv/swap_rv which I havnt implemented yet (well I have but I am not satisified as to its correctness)…
anyway.. Time to slog through The Count! I expect problems with this one. Lots of swapping variables and such… time to test my code....
Posted by
Stu on 08/16 at 03:22 PM
Permalink to this post.
Filed Under :
Computers •
Development •
Bunyon / ScottCom •
Comments are closed
There are no comments on this entry.
Linked To by (0) blogs. Get a
Trackbacks link here
Monday, August 15, 2005
A single fix to interp.c had Pirates Isle solved, and a few fixes were required to make Mission Impossible winnable as well..
There are some annoyances in MI, namely, you have to type “unlock” rather than “unlock yellow” and “pour” rather than “pour water” or “pour pail” to defuse the bomb.
grrr.
I’m on to Voodoo Castle now, which looks pretty easy.... Hopefully I will get through 4+5 and maybe 6 this afternoon (voodoo castle, the count and strange odyssey)....
Posted by
Stu on 08/15 at 07:14 PM
Permalink to this post.
Filed Under :
Computers •
Development •
Bunyon / ScottCom •
Comments are closed
There are no comments on this entry.
Linked To by (0) blogs. Get a
Trackbacks link here
Sunday, August 14, 2005
turned 30 two days ago. am i allowed to have a mid life crisis now? my mum says i already had one (the AT). i dont think that counts…
west ham won 3-1 in their first game back in the premier league! woohooo. i dont hold my breath this year tho, its gonna be tough!!
meh. in other news, my interpreter is complete enough to make it through Adventureland… now I just need to test it on the other games and see how well it does.
Posted by
Stu on 08/14 at 01:40 PM
Permalink to this post.
Filed Under :
Life •
Comments are closed
There are no comments on this entry.
Linked To by (0) blogs. Get a
Trackbacks link here
Monday, August 08, 2005
Well, here we are!! Joy and I have moved into our own place down near Lexington, in the mountains, right next to a huge river.
Its so nice to be out of the basement!! Whooo!!
(Right now I am testing the slooow internet dialup.. I’ve connected at 26k… shesh.. Its back to the days of a 14.4 modem.....)
I am slowly debugg-ifying the house. LOTS of spiders on the outside, and wasps building little paper nests, so I am slowly killing them all off.
Gwyn is kinda adapting. The window in the lounge is juuust a bit to high off the ground for her to lay down with her chin on the sill… So she has worked out she can lay on the couch and look out the window!! cheeky!!
There is no AC in here but we get a good breeze going through, and I dont find it too hot, but joy does…
Things are mostly unboxed and packed away, which is nice, and I am making a list of things we need to get as we go…
Posted by
Stu on 08/08 at 07:10 PM
Permalink to this post.
Filed Under :
Life •
Comments are closed
There are no comments on this entry.
Linked To by (0) blogs. Get a
Trackbacks link here
Page 1 of 1 pages