AKMA's Random Thoughts

October 24, 2003

Put On Your Party Hats

Not quite in a category with International Talk Like a Pirate Day, today is Mole Day, a day dedicated to honoring the achievement of Amedeo Avogadro. All I remember from Chemistry class — apart from the surreal experience of taking the exam for the American Chemistry Society scholarships and actually doing well on it — are a few random names and notions, such as “acid-base titration” and “PV=NRT” and “Avogadro’s number.”

I have several numbers, not just one (a Social Security number, telephone numbers for home, work, fax, and cell). Still, if Avogadro had to have only one number, he chose a much bigger number than I’ll ever have: 6.02 times 10^23. That (to return to the subject of this post) is the number of molecules in a mole. A mole, if I remember correctly, is the quantity of a gas or compound or whatever equal to its molecular weight in grams. After copious research dedicated to bringing you a full explanation of this important day, I still can’t figure out quite why moles matter.

But then, chem majors need days like this to give them occasions for geeky fun, so (thinking especially of Betsy this morning) Happy Mole Day, and Avogadro bless us, everyone!

Posted by AKMA at October 24, 2003 07:50 AM | TrackBack
Comments

Moles Matter...

(I'll try to find time to elaborate at Sandhill, but I just wanted to drop the assertion into your comments in case life intrudes and I don't get around to blogging about this important event).

Thanks for bringing this important day to our attention, AKMA. First, we should remember that there is no such thing as chemistry, any more than there is any such thing as post-modern criticism. There is simply "what is" and "what is" surrounds and suffuses us all. Gram molecular weight, the mole, is an important way for us to discriminate - to establish proportionality and fine tuned equivalency. Everyone from pharmacists to terrorists can use this concept to aid in the efficient compounding of substances.

Also, Avogadros are the key ingredient in guaca-mole.

Posted by: fp at October 24, 2003 10:05 AM

Frank: that is so gruesome it’s beautiful.

Posted by: AKMA at October 24, 2003 05:22 PM

We can see an example of this in our code we've written so far. In each function's block, we declare variables that hold our data. When each function ends, the variables within are disposed of, and the space they were using is given back to the computer to use. The variables live in the blocks of conditionals and loops we write, but they don't cascade into functions we call, because those aren't sub-blocks, but different sections of code entirely. Every variable we've written has a well-defined lifetime of one function.

Posted by: Hercules at January 13, 2004 04:17 AM

This variable is then used in various lines of code, holding values given it by variable assignments along the way. In the course of its life, a variable can hold any number of variables and be used in any number of different ways. This flexibility is built on the precept we just learned: a variable is really just a block of bits, and those bits can hold whatever data the program needs to remember. They can hold enough data to remember an integer from as low as -2,147,483,647 up to 2,147,483,647 (one less than plus or minus 2^31). They can remember one character of writing. They can keep a decimal number with a huge amount of precision and a giant range. They can hold a time accurate to the second in a range of centuries. A few bits is not to be scoffed at.

Posted by: Lionel at January 13, 2004 04:17 AM

When compared to the Stack, the Heap is a simple thing to understand. All the memory that's left over is "in the Heap" (excepting some special cases and some reserve). There is little structure, but in return for this freedom of movement you must create and destroy any boundaries you need. And it is always possible that the heap might simply not have enough space for you.

Posted by: Anthony at January 13, 2004 04:17 AM

This is another function provided for dealing with the heap. After you've created some space in the Heap, it's yours until you let go of it. When your program is done using it, you have to explicitly tell the computer that you don't need it anymore or the computer will save it for your future use (or until your program quits, when it knows you won't be needing the memory anymore). The call to simply tells the computer that you had this space, but you're done and the memory can be freed for use by something else later on.

Posted by: Newton at January 13, 2004 09:21 AM

When the machine compiles your code, however, it does a little bit of translation. At run time, the computer sees nothing but 1s and 0s, which is all the computer ever sees: a continuous string of binary numbers that it can interpret in various ways.

Posted by: Cecily at January 13, 2004 09:21 AM