Adding optional UUID to layouts
    Ty Young 
    youngty1997 at gmail.com
       
    Tue Mar 24 11:01:21 UTC 2020
    
    
  
Hi,
As was discussed before, I'm working on rigging up a dynamic memory 
allocation API. I think I know how to go about it but I need an API 
addition from Panama to make it happen since all interfaces are going to 
be sealed.
This addition comes in the form of a UUID which can be applied to any 
given layout. A UUID, unlike a hashcode or a name, is not *intended* to 
ever collide(hence UUID) with any other MemoryLayout.
Currently both of those do: it's possible that variables or structs 
(although, arguably uncommon) from different native libraries have the 
same name and hashcode will return the same code given the same byte 
size and ByteOrder.
Could this be added?
    
    
More information about the panama-dev
mailing list