News for hackers. Stuff that matters.
Re:Why Aren’t More Users More Happy with Our VMs? Part 1 by magicalhippo on Thursday September 06, 2018 @08:35AM (#17925740)
.Net relies on runtime code generation for generics. This allows .Net to support generic instantiation with a type parameter the compiler hasn't seen at compile-time. Thus I don't need the source code for your generic data structure to use it with my custom types. I can just link in the compiled library.

It also allows the .Net regular expression library to be able to dynamically generate IL-code to match a given regular expression, which is then dynamically loaded into the process and JIT compiled to machine code. Other projects surely use the same facilities to dynamically generate and run specialized code based on user input and/or environment.

Re:Why Aren’t More Users More Happy with Our VMs? Part 1 by pjmlp on Thursday September 06, 2018 @09:51AM (#17926236)
Not when doing AOT compilation.
Re:Why Aren’t More Users More Happy with Our VMs? Part 1 by magicalhippo on Thursday September 06, 2018 @11:53AM (#17927121)
Indeed. The question was why do JIT instead of AOT, and I tried to list some benefits.
Re:Why Aren’t More Users More Happy with Our VMs? Part 1 by pjmlp on Thursday September 06, 2018 @12:41PM (#17927520)
Ah ok, sorry for the pedantic comment then.
Re:Why Aren’t More Users More Happy with Our VMs? Part 1 by magicalhippo on Thursday September 06, 2018 @03:04PM (#17928697)
No worries! I realize I could have been more explicit in my original comment.