Add Announcement Here

One more, a re-write

One more, a re-write

Ok, major problems with the way jacking and running is managed. Gotta change it to a new approach where jacking operates on shadows as well, and only during a run is every re-absorbed into the actual values. This is better than using the old jack-jobs because this didn't get around dead-locking. Being able to jack into a figment from one thread into another will be important.

stu
useravatar
Offline
680 Posts
User info in posts
Administrator has disabled public posting

Re: One more, a re-write

Another idea would be to give the jacked figment a copy of the lead. It then performs the jack either immediately if it's not stacked, or it is deferred until the figment calls finished.

However this causes a problem where the context becomes unreliable. We still need to eliminate self references because one figment can jack into another, which could in turn jack right back to the beginning and create a loop.

stu
useravatar
Offline
680 Posts
User info in posts
Administrator has disabled public posting

Re: One more, a re-write

Ok, a fair bit of stuff has been done, but it's all still a little broken at the moment.

run has now become exclusive to the cFigment class and its parents. The child classes of cFigment now use the work function to do something in the run cycle.

There's been some big changes in the lead and plug interfaces: You now can't get pointers to plugs directly from a lead, instead you pass it a plug you want to copy values into. This allows a lead to manage threading locks.

stu
useravatar
Offline
680 Posts
User info in posts
Administrator has disabled public posting

Re: One more, a re-write

things are moving along, most of the re-write is done and it at least compiles. However some of the tests are currently failing and really, there needs to be plenty more of them to make sure that there are no more issues going forward.

I hope I can get more done before I go away on vacation for 2 weeks, but I doubt a decent release will be seen this month.

Hopefully once all the units tests are working again in all 3 of the supported OSs, I can make another source code release. Hopefully one I can be proud of this time.

stu
useravatar
Offline
680 Posts
User info in posts
Administrator has disabled public posting

Re: One more, a re-write

Ok, the BIG rewrite is finally getting closer to being stable. The latest source forge update contains the following:

Leads no longer have a heap, the only have tagged plugs.
Plug containers, which allow you to effectively have lead heaps.
More consistent type conversion with plugs.
String conversions now have better names.
The reflection figments now have their own files.

Among other changes.

stu
useravatar
Offline
680 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
246
Total Polls:
0
Total Posts:
475
Posts this week:
1
User Info:
 
Total Users:
7
Newest User:
ian96
Members Online:
0
Guests Online:
34

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked
gamestool, Powered by Joomla! and designed by SiteGround Joomla Templates