Interesting..questions to Andres, when is it going to be harder for MSIL to be decompiled into rich code? Can C# compiler (managed compilers) have obfuscation natively in them so I dont have to worry about my assemblies being decompiled on the fly?Also, when will drivers be written in Managed code? With linq, from a performance perspective, is using Linq to query sql more efficient or using sql stored procedures more efficient?Lastly, what is going to be in C# 4.0? (C# transactional programming model for multi-core processing?).
SecretSoftware wrote:questions to Andres, when is it going to be harder for MSIL to be decompiled into rich code? Can C# compiler (managed compilers) have obfuscation natively in them so I dont have to worry about my assemblies being decompiled on the fly?
SecretSoftware wrote:Also, when will drivers be written in Managed code?
Ion Todirel wrote: SecretSoftware wrote: questions to Andres, when is it going to be harder for MSIL to be decompiled into rich code? Can C# compiler (managed compilers) have obfuscation natively in them so I dont have to worry about my assemblies being decompiled on the fly?i dont understand why this is a problem for you?
SecretSoftware wrote: questions to Andres, when is it going to be harder for MSIL to be decompiled into rich code? Can C# compiler (managed compilers) have obfuscation natively in them so I dont have to worry about my assemblies being decompiled on the fly?
kettch wrote:I haven't watched the video yet, but I cheered out loud when I saw Anders. He's just cool. Yeah, that might have been kind of creepy. I'm done now.
"Also, when will drivers be written in Managed code? "IIRC, there is a managed driver framework in Vista already."With linq, from a performance perspective, is using Linq to query sql more efficient or using sql stored procedures more efficient?"Linq can query either. After linq creates the sql string, the perf is the same as if you created the sql string yourself. Naturally there is some overhead in linq to process the results. But that is probably a wash as you would need to do it anyway.
Yes you do take a perf hit from not using Store procedures. (SQL Server is not given a chance to prechoose the execution plan)
Whats compelling about linq is the composibility. Doing Custom Where clauses on the fly is not something you can do with store procedures without a considerable time investment. Your other option is you can write a store proc for every case. You end up with a lot of stored procs. The second part of composibility is result set to object translation. My jaw dropped when they showed Linq ability to auto gen partial classes.
My suggestion would be to write basic CRUD with store procs. (Get 1 by ID, Get All, Update, Delete, Insert) Use LINQ for everything else. AFTER seriously bench marking the difference between a store proc and using equivelant LINQ syntax in time and resources.
I think at the point you you start hitting scalability or perf issues is where you probably have the money to shell out for an ORM mapper. Or just use Blinq.