News for hackers. Stuff that matters.
Re:Microsoft asking for engineer to work on a native compile... by MichaelGG on Thursday November 29, 2012 @07:14PM (#4851137)
Where does the C# compiler erase an array bounds check? That would require the C# compiler to emit unsafe IL which wouldn't verify. The C# team has said they try for a fairly direct translation to MSIL; there's no super sophisticated optimization going in the C# compiler.

I think you mean the CLR/JIT often removes array checks if it can detect it (such as in certain loop constructs).

Please correct me if I'm wrong.

Re:Microsoft asking for engineer to work on a native compile... by pjmlp on Friday November 30, 2012 @06:48AM (#4852828)
Yes, the JIT/NGEN takes care of if it it can prove by dataflow analysis that the indexes are always within bounds.