.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

F# compared to OO and Procedural

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net

Is F# (Functional Programming) the next level, after procedural and object oriented programming? 

View Complete Post

More Related Resource Links

F# compared to OO and Procedural


Is F# (Functional Programming) the next level, after procedural and object oriented programming? 

Slow load time of custom assembly on x64 compared to x86.

I am developing an application that automatically generates assemblies using the CSharpCodeProvider (.Net Framework 3.5).  These assemblies contain a single class with a very large number of local variables and methods.  After compilation I create an instance of this class (using Activator.CreateInstance) to be used elsewhere in the application.  When the application is deployed on a 32-bit system (tested on Win 7 Prof 32-bit and on Win XP) the CreateInstance method returns after 1 or 2 seconds, i.e. it first JITs the assembly before creating the instance.  However, on a 64-bit system (tested on Win 7 Home 64-bit, Win Server 2003 64-bit and Win Server 2008 64-bit) CreateInstance takes up to 5 minutes to return. Is there any reason why it would be that much slower on a 64-bit machine? I have tried many different options when compiling, such as setting the platform to x64, using the /optimize flag, etc, but none of these have made a difference. I also tried calling PrepareMethod on all the method in the class.  When I do this in the 32-bit environment, it takes approximately 10 seconds.  In the 64-bit environment it takes more than 3 minutes. As a last resort I tried ngen before constructing the object, but this made no difference in the execution time.

Refcursor compared slow to sql query

Hi, I have created stored procedure with refcursor in Oracle 11g. The execution time of the procedure takes nearly 3 mins whereas when i execute only the select statements it takes nearly 35 mins.  How can tune my stored procedure when using refcursor.   Thanks, gayatri

Why do we say delegates are type safe as compared pointers???


Two questions:

  •  Why do we say delegates are type safe as compared pointers ?
  • Can we define a pointer in C# ?

Are distributed queries a better way of retrieving data for analysis when compared to an ETL?



We need to analyse some data in a database which is hosted on remote server. So we planned to copy that data into a new database using ETL and analyze it but we are not allowed to copy that data without permissions. so now we are thinking about using distributed queries like linked server, analyze the data on remote server and copy that analyzed data in our DB using distribute queries as we can copy that analyzed data.


 Any one has any idea of issues that occur if we use linked servers in the products that are shipped beacause to my idea there is o product with linked server concept in it as it will have some issues with permissions and all it seems. So can any on f you help me out with this please

Thank You so much...


Which value types can be compared with Opcodes.ceq?


I'm doing some IL code generation and realizing that some value types (e.g., integer) can be compared using Ceq but others (e.g., decimal) require a call to op_Equality.  An attempt to Ceq on decimal types is detected as invalid IL by PeVerify. 

What's the rule on this?  Is it that "if op_equality is defined on the type, use it, else you can Ceq?" (for value types, of course.)





Leo Tohill

whenChanged attribute is not being loaded and cannot be compared


I am having a problem where only certain domain users can search the AD using the whenChanged attribute.  The  following filter will work for some users but not others.


I even went so far as to make one of the users that was having a problem a Domain Admin just to see if that fixed the problem (it didn't).   For those users the test oResult.Properties.Contains("whenChanged") returns false.  Below is the whole code:

myDE = New DirectoryEntry("LDAP://test/OU=Users1,OU=SubCloset,OU=Closet,OU=OfficeOU,dc=test")

Dim oSearcher As DirectorySearcher = New DirectorySearcher(myDE)
Dim oResults As SearchResultCollection
oSearcher.filter = "(&(objectClass=user)(whenChanged>=20101101010000.0-0500))"
oSearcher.PageSize = 1000
oResults = oSearcher.FindAll()

I don't recall having this problem previously and I have this type

The Working Programmer: Multiparadigmatic .NET, Part 3: Procedural Programming


Procedural programming is often seen as "old school," outdated and useless in modern software design, but the design paradigm still shows up in a surprising number of places-including the compiler and MSBuild.

Ted Neward

MSDN Magazine November 2010

SQL Server locking, compared to DB2 question;


Hi We have a sql 2008 Enterprise Edition x64 on a win 2008 cluster. The application is a 3rd party app that normally uses Oracle or DB2. We have been having deadlock issues in our environment. The vendor mentioned they don't have deadlocks in Oracle or DB2 and said they use DB2_EVALUNCOMMITTED (From DB2 manual, "which improve concurrency of scans, it may be possible to defer row locking until after determining that a row qualifies for a query) to improve concurrency, is there a similar feature in SQL Server?


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend