You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not clear what data must be present at runtime level due to issues with maps and structs. Current implementation assumes names and indexes but it may be wrong
TODO figure out real cases that must be solved
The text was updated successfully, but these errors were encountered:
// compiler
type Ports map[string]Port
type Port struct {
Type PortType // single | array
Len uint8 // always 0 for single
}
// runtime
type Ports map[string]map[PortAddr]chan Msg // node_full_path -> ...
type Connections []Connection
type Connection struct {
From PortRef
To []PortRef
}
type PortAddr struct {
IsArrEl bool
Idx uint8
Name string
}
type PortRef struct {
IsArrEl bool
Idx uint8
Name string
}
// core
type Ports map[string]Port
type Port struct {
Type PortType // single | array
Single chan Msg
Arr []chan Msg
}
It's not clear what data must be present at runtime level due to issues with maps and structs. Current implementation assumes
names
andindexes
but it may be wrongTODO figure out real cases that must be solved
The text was updated successfully, but these errors were encountered: