3 ms·
(I work at Toitware) Yes, it's gradual typing. Currently we don't have generic collections, so it's just List, but certainly something that we are thinking abo
by ErikCorry 6y ago
(I work at Toitware)
Yes, it's gradual typing. Currently we don't have generic collections, so it's just List, but certainly something that we are thinking about.
Dart is another language we have worked on. It has typed collections, but I think we'll do it slightly differently. But passing a List<int> to a function isn't O(n) in Dart, and I don't think I'm promising too much when I say that it won't be O(n) in Toit either :-)
Performance is pretty good, at least compared with other interpreted languages (Toit is currently interpreted). About an order of magnitude faster than Python on comparable hardware.