Welcome, Guest. Please login or register.

Author Topic: Datatypes and boopsi architecture documents?  (Read 4153 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline hth313Topic starter

  • Newbie
  • *
  • Join Date: Aug 2018
  • Posts: 20
  • Country: 00
  • Gender: Male
    • Show only replies by hth313
Datatypes and boopsi architecture documents?
« on: June 30, 2019, 10:53:21 PM »
Having messed around inside some datatype code I begin to wonder if there is any good in depth architecture description of it?

I mean, there are attributes to be set, asynchronous layout, notification and then rendering going on. The descriptions I found are some example code and very basic descriptions of how to do it, but I have yet to find an in depth description of how it is actually supposed to work. What are the roles, responsibilities, in which order does it happen, how to do proper locking and how does typical things happen over time?

I have looked at some code and even tried to address some issues in it, but it is hard to fully comprehend it. That is also based on object oriented programming does not help (as usual), as it is all about delegating and not explicitly expose how it works, which makes it hard to follow.

So far my idea is that changes somehow cause a layout (not sure how), which can be kicked off asynchronously internally, which sends a notification that is picked up by another object or more often the IDCMP in the main app, which does a RefreshDTObjects which translates to a rendering operation. Normally the layout and renderer have a semaphore to prevent simultaneous access, which I suppose are not to happen so often in reality as they are kind of chained together in sequence by these object messages, as otherwise the renderer could get blocked (holding a layer lock) waiting for the object semaphore when a slow layout is being done.

I may have misunderstood things above, a pointer to a good architecture description would probably be very helpful to me...
 

Offline NinjaCyborg

Re: Datatypes and boopsi architecture documents?
« Reply #1 on: July 01, 2019, 06:58:05 AM »
Do you have the RKRMs? and OS3 NDK?
 

Offline hth313Topic starter

  • Newbie
  • *
  • Join Date: Aug 2018
  • Posts: 20
  • Country: 00
  • Gender: Male
    • Show only replies by hth313
Re: Datatypes and boopsi architecture documents?
« Reply #2 on: July 01, 2019, 05:01:03 PM »
Yes, I have all of them.
 

Offline NinjaCyborg

Re: Datatypes and boopsi architecture documents?
« Reply #3 on: July 01, 2019, 07:29:24 PM »
Then you've probably got all the information there is on the topic. Aminet might have some third party content also, including plenty of datatypes source code to crib from.
 

Offline hth313Topic starter

  • Newbie
  • *
  • Join Date: Aug 2018
  • Posts: 20
  • Country: 00
  • Gender: Male
    • Show only replies by hth313
Re: Datatypes and boopsi architecture documents?
« Reply #4 on: July 01, 2019, 10:26:20 PM »
OK, I had a hunch about that. The documentation is mostly aimed at developers using datatypes, not so much about implementing them. I suppose I need to read some source then and try to figure out how the methods and threads are supposed to interact.
 

Offline kolla

Re: Datatypes and boopsi architecture documents?
« Reply #5 on: July 02, 2019, 06:54:25 AM »
The sources are out there :)
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline hth313Topic starter

  • Newbie
  • *
  • Join Date: Aug 2018
  • Posts: 20
  • Country: 00
  • Gender: Male
    • Show only replies by hth313
Re: Datatypes and boopsi architecture documents?
« Reply #6 on: July 03, 2019, 04:59:32 AM »
It seems some source reading is the best way forward at the moment. I found a couple of pages with some information on how to implement datatypes. A quick look indicates that they both contain a good amount of information, but fall a bit short in describing the actual interactions between involved processes and the internal states for a non-trivial datatype. Basically, what I miss is a cook-book with best practises, but I suppose you cannot have it all.

References (for the benefit of anyone interested and who may stumble on this thread in the future):
https://en.wikibooks.org/wiki/Aros/Developer/Docs/Libraries/DataTypes
https://wiki.amigaos.net/wiki/Writing_Datatype_Classes
 

Offline NinjaCyborg

Re: Datatypes and boopsi architecture documents?
« Reply #7 on: July 03, 2019, 07:17:03 PM »
Correct. But, there are loads of examples on aminet.
 

Offline SamuraiCrow

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2280
  • Country: us
  • Gender: Male
    • Show only replies by SamuraiCrow
Re: Datatypes and boopsi architecture documents?
« Reply #8 on: July 04, 2019, 12:27:32 PM »
I managed to find Stefan Ruppert by googling.  He gave some talks about making and using datatypes at the Gateway Amiga show in 1998.  I still have the handouts somewhere in my stash.  It seems he's been out of the Amiga scene a few years though.  If he doesn't object, I can probably dig around until I find those handouts and scan them.
 

Offline hth313Topic starter

  • Newbie
  • *
  • Join Date: Aug 2018
  • Posts: 20
  • Country: 00
  • Gender: Male
    • Show only replies by hth313
Re: Datatypes and boopsi architecture documents?
« Reply #9 on: July 05, 2019, 07:14:41 AM »
I downloaded several of Stefan Ruppert's datatypes from aminet, seems like a lot of good stuff!

There are plenty of datatypes on aminet as NinjaCyborg points out, I will have a lot to play with for long time.
 

Offline Minuous

Re: Datatypes and boopsi architecture documents?
« Reply #10 on: July 05, 2019, 08:29:57 AM »
@SamuraiCrow:

That would be great.

 

Offline SamuraiCrow

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2280
  • Country: us
  • Gender: Male
    • Show only replies by SamuraiCrow
Re: Datatypes and boopsi architecture documents?
« Reply #11 on: July 05, 2019, 03:53:46 PM »
I looked through my boxes and haven't found the handouts yet.  Sorry to get your hopes up.