Pas2js for Delphi lazarus / 76-Pas2JS ---------------------------------------------------------------------- Kryvich · 2019-01-26 14:40 I have made an adaptation of Pas2js for Delphi compiler. So now it's possible to debug the code in Delphi IDE. If somebody interested you can find it here: https://github.com/Kryuski/pas2js-for-delphi ---------------------------------------------------------------------- Ñuño_Martínez · 2019-01-29 12:52 Nice. ---------------------------------------------------------------------- Akira1364 · 2019-01-31 01:42 QuoteUsed generic collections (TDictionary) instead of TFPHashObjectList. Certainly something I'd like to see more of on the FPC side of things as far as new libraries/utilities being written, especially considering that for example the FPC Generics.Collections is well known to perform better than any of the other FPC containers libraries. I don't really understand why anyone would start a new project using non-generic lists/dictionaries/e.t.c. nowadays. ---------------------------------------------------------------------- Zoran · 2019-01-31 10:23 Quote from: Akira1364 on January 31, 2019, 02:42:34 amQuoteUsed generic collections (TDictionary) instead of TFPHashObjectList. Certainly something I'd like to see more of on the FPC side of things as far as new libraries/utilities being written, especially considering that for example the FPC Generics.Collections is well known to perform better than any of the other FPC containers libraries. I don't really understand why anyone would start a new project using non-generic lists/dictionaries/e.t.c. nowadays. Akira1364, Is there a particular reason for introducing TDictionary, when we have TFPGMap from unit fgl, which is part of rtl? ---------------------------------------------------------------------- marcov · 2019-01-31 12:27 Quote from: Zoran on January 31, 2019, 11:23:26 am Akira1364, Is there a particular reason for introducing TDictionary, when we have TFPGMap from unit fgl, which is part of rtl? - Afaik TFPGMap are array wrappers, and with larger counts, the resizes get more and more expensive and the fragmentation higher. - no for .. in support. - primitive hashing. IOW there is simply no reason to use them, except that they are Delphi incompatible and minimalistic. ---------------------------------------------------------------------- PascalDragon · 2019-02-04 08:11 Also the types in Generics.Collections support records without any operator overload. One advantage of the FGL ones: they are small, so they're more suitable for embedded projects where memory size might be an issue. And for those that are interested: here we have a performance comparison of various FPC containers (no, not by me). ---------------------------------------------------------------------- Zoran · 2019-02-04 11:56 I see. Thank you, Sven and Marco.