News for hackers. Stuff that matters.
Re:How Many Type Parameters Can a Java Method Have? by sebazzz on Monday April 29, 2019 @11:03AM (#19778963)
I imagine that the limit on the .NET CLR is even lower because there needs to be runtime support for type parameters all the way down to the JIT.
Re:How Many Type Parameters Can a Java Method Have? by reifiedgent on Monday April 29, 2019 @06:49PM (#19783349)
I modified the python script to generate C# and it compiled with 131072 type parameters. It did take 9 minutes though so I didn't continue after that.
Re:How Many Type Parameters Can a Java Method Have? by int_19h on Tuesday April 30, 2019 @04:49AM (#19786177)
In theory, the maximum encodable compressed unsigned integer, as used by GenParamCount in MSIL, is 0x1FFFFFFF.