News for hackers. Stuff that matters.
Re:A History of .NET Runtimes by GordonS on Tuesday October 02, 2018 @12:52PM (#18123408)
> C# generics are an (arguably improved) Java generics clone

That one at least is incorrect - C# had generic types long before Java

Re:A History of .NET Runtimes by iainmerrick on Tuesday October 02, 2018 @03:24PM (#18124864)
I didn’t know that, thanks for the correction! (Edit: although now I’m not sure I was wrong after all; see my reply to the other comment)

I had the wrong idea because (if I understand right) C#’s generic collections seem to be a copy of Java’s (which in turn were inspired by C++’s STL). Do I have that one the right way round?

The C# collections use generally poorer name choices (e.g. IEnumerator, which does not actually enumerate the elements) so I assumed they wanted to avoid making it identical to Java.

Re:A History of .NET Runtimes by pvg on Tuesday October 02, 2018 @09:02PM (#18126914)
Java's collections are not much like STL (and pre-date Java generics) and important implementation details of generics in C++, C# and Java differ very substantially.
Re:A History of .NET Runtimes by iainmerrick on Wednesday October 03, 2018 @03:41AM (#18128280)
They are not very similar in implementation due to the nature of the languages. But the idea that it would be useful for the Java standard library to provide flexible, extensible, general-purpose containers (as opposed to ad-hoc stuff like Vector and Hashtable) was inspired by the STL.
Re:A History of .NET Runtimes by pvg on Wednesday October 03, 2018 @04:01AM (#18128367)
I don't think that's accurate or that the general idea comes from STL. STL itself is a very particular kind of design.
Re:A History of .NET Runtimes by iainmerrick on Wednesday October 03, 2018 @05:57AM (#18128856)
What’s a good example of a really flexible, composable containers library that predates STL?

I think STL was the first mainstream one. I guess some of the ideas came from Ada? But I don’t know if Ada had standardized containers.

Re:A History of .NET Runtimes by pjmlp on Wednesday October 03, 2018 @06:38AM (#18129020)
Smalltalk and Eiffel collections.

Long before STL was a thing in C++.

Stepanov started STL original design in Ada, before switching to C++. Recent Ada standards have adopted collection classes as well.