http://newpascal.org/assets/modern_pascal_introduction.html
Is NewPascal dead?
Is rtl-generics in pair with https://github.com/maciej-izak/generics.collections ?
No clue about newpascal...
But Yes, the version for 3.0.4 on Maciej's site is - for user purposes - aligned with trunk and 3.2.0 except for some minor - internal! - ways that are now supported by the compiler.
This library by itself was responsible for a whole load of fixes to the compiler and rtl.
With the appeareance of the new rtl.generics on FPC 3.2.0, will FGL be deprecated?
No, because it has its own use: less complex for instance. The core team is reluctant to deprecate things anyway, especially high level units.
I am very glad there are multiple solid generics libraries: fcl-stl, fgl, rtl-generics.
Note they are just this: libraries that
use a new (it is not that new, FPC supported generics way before Delphi) language feature, they are
not that language feature itself.
There are many small examples inside the rtl units that also use the feature. Some of them written by me, like a generic IfThen() and some more very small ones.
A quick sum-up might read like this:
- FGL: a show case with well-known algorithms to demonstrate the generics feature ( objpas style)
- FCL-STL: tries to implement well-known algorithms in a C++ standard template library style
- RTL-GENERICS: tries to be Delphi compatible, also tries to implement well-known algorithms in the most optimized way.
Note that NONE of this is a generalization: lot's of overlap and if's and but's....All are well written and supported. There are even more good generics libraries.
As you might have noticed from some of my forum postings I actually use all three...