Re:Swift for TensorFlow Shuts Down
by The_rationalist on Friday February 12, 2021 @10:36PM
(#26121181)
Swift has no traced garbage collector which means you cannot represent circular data structure/references.
Also swift support for interfaces (protocol) is sub-par with today standards
[ Parent
| on HN ]
Re:Swift for TensorFlow Shuts Down
by andrekandre on Saturday February 13, 2021 @04:47AM
(#26122559)
> Also swift support for interfaces (protocol) is sub-par with today standards
interesting, what could be added/changed to make it better?
Re:Swift for TensorFlow Shuts Down
by The_rationalist on Saturday February 13, 2021 @09:42AM
(#26123832)
No support for default implementation methods.
No support for generics in protocol.
There might be workarounds but for a newcomer, this is a red flag of reinventing a basic and universal construct (interfaces) in a sub-par one, this show a dangerous mentality from the swift vm devs, what else did they wrongfully reinvent in a sub-par way?
As the other commenter pointed out, default implementations (with genetic constraints!) are supported, they actually my favourite swift feature.