CryoEnix Posted September 22, 2005 Posted September 22, 2005 Hey guys, long time no see. I'm just studying ASP in college at the moment, and it seems a little easier than PHP (going back to roots, I'm better with VB than Java!) - however, I was wondering whether ASP.NET was compatible with MySQL databases, or just Microsoft's own SQL? Additionally, I know both PHP and ASP are interpreted rather than compiled, but is there a significant performance difference between the two? Cheers peeps, CryoEnix Quote Chaos is merely logic beyond human comprehension
*Experts* Nerseus Posted September 22, 2005 *Experts* Posted September 22, 2005 Yes, you can do MySQL with ASP.NET. I can't compare PHP to .NET but remember that .NET is not interpreted, it is JIT'ed. That means the code is compiled as needed. A DLL stores the IL code. When you run the program, the .NET engine loads in the code as needed and compiles it on the fly. If you have a large function in your DLL but it's never called, it won't get compiled. JIT is for "just in time". So you DO take a small hit to load the IL and have the engine compile it on the fly (just in time), but the execution after that is as fast as any compiled code. This is different than VB6 and prior, which always interpreted every line of code. So if you had an "if" inside of a loop, it would need to be interpreted every time through. This is not the case with .NET. I can't speak for PHP, I know nothing of it. -ner Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
CryoEnix Posted September 22, 2005 Author Posted September 22, 2005 Cheers dude, that's good to know - thanks again! Quote Chaos is merely logic beyond human comprehension
mskeel Posted September 22, 2005 Posted September 22, 2005 http://weblogs.asp.net/bleroy/articles/193608.aspx Some interesting discussion stemming form a paper written by Oracle. Quote
neodammer Posted October 15, 2005 Posted October 15, 2005 Yes, you can do MySQL with ASP.NET. I can't compare PHP to .NET but remember that .NET is not interpreted, it is JIT'ed. That means the code is compiled as needed. A DLL stores the IL code. When you run the program, the .NET engine loads in the code as needed and compiles it on the fly. If you have a large function in your DLL but it's never called, it won't get compiled. JIT is for "just in time". So you DO take a small hit to load the IL and have the engine compile it on the fly (just in time), but the execution after that is as fast as any compiled code. This is different than VB6 and prior, which always interpreted every line of code. So if you had an "if" inside of a loop, it would need to be interpreted every time through. This is not the case with .NET. I can't speak for PHP, I know nothing of it. -ner Hypothesizing on .net's use of JIT; is that mainly for security? because i can see the plus side to that and also a negative if .net's protocol has bugs. Quote Enzin Research and Development
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.