under-the-hood

Phantom Referenced Objects

Phantom References serve for post-mortem operations. The Java specification states that a phantom referenced object will not be deallocated until the phantom-reference itself is cleaned. My question is: What purpose does this feature (object not deallocated) serve? (The only idea i came up with, is to allow native code to do post-morte...

Environment Variables in Python on Linux

Python's access to environment variables does not accurately reflect the operating system's view of the processes environment. os.getenv and os.environ do not function as expected in particular cases. Is there a way to properly get the running process' environment? To demonstrate what I mean, take the two roughly equivalent programs...

Retrieving the memory map of its own process in OS X 10.5/10.6

In Linux, the easiest way to look at a process' memory map is looking at /proc/PID/maps, giving something like this: 08048000-08056000 r-xp 00000000 03:0c 64593 /usr/sbin/gpm 08056000-08058000 rw-p 0000d000 03:0c 64593 /usr/sbin/gpm 08058000-0805b000 rwxp 00000000 00:00 0 40000000-40013000 r-xp 00000000 03:0c 4165 /lib/...

Understanding hibernate internals

Hi, Im trying to understand how hibernate works under the hood, how it manages lazy load, transactions, data mappers, unit of work, identity maps, etc. I wrote a small object model, and im downloading hibernate's source code for debbuging it. Im kind of lost, is this the best approach? Does documentation on these issues exist out ther...

How do .net 4.0 [named] tuples work under the hood?

I suspect that there is a lot of work done at low level. when names are used for tuple elements, do auto-properties get created? Thanks. ...

How do Relational Databases Work Under the Hood?

I've always been interested in how you can throw some SQL at at database, and it nearly instantaneously returns your results in an orderly manner without thinking about it as anything other than a black box. What is really going on? I'm pretty sure it has something to do with how values are laid out regularly in memory, similar to an a...

Is the code available that SQL Server uses to fill sys.sql_dependencies?

My current client is struggling with their release process. It's a bit complex and a little uncontrolled. I'm trying to fix the process problems, but in the meantime it would be helpful if I could put together a utility that could scan their scripts, look for dependencies, and generate the order in which those scripts need to run. Rathe...

How does 'typeof' work?

Hi, I am curious what the "method body" for typeof in C# would look like (pretty sure I can't get to it in reflector as it's a keyword not a method). I am guessing it is equivalent to GetType(magic convert symbol to string). Looking at GetType(string) in Reflector it calls a method "PrivateGetType", which calls "RuntimeTypeHandle.GetT...

Location of VB.NET "source" code, similar to Java's JDK src.zip

Hello, I apologize very much if this question has already been asked, or is hard to understand. I have not been able to find the answer after much searching. Does VB.NET have anything similar to Java's JDK source code? When I used to work in Eclipse, I could right click and view the generated code, or "look under-the-hood" so to speak. I...