Not much to say today, except that Manfred Klein released a batch of new free typefaces earlier this week. A couple were picture collections, one is an interesting experimental typeface (including only the upper or lower half of each letter), a ransom-note assortment of glyphs in which no two characters are formed on the same design, an eccentric sans serif face, and a strong blackletter typeface.
And today, the grant check for the Disseminary arrived, so Trevor and I can begin making stuff happen (in our copious free time).
Posted by AKMA at February 19, 2003 10:22 PM | TrackBackTo address this issue, we turn to the second place to put variables, which is called the Heap. If you think of the Stack as a high-rise apartment building somewhere, variables as tenets and each level building atop the one before it, then the Heap is the suburban sprawl, every citizen finding a space for herself, each lot a different size and locations that can't be readily predictable. For all the simplicity offered by the Stack, the Heap seems positively chaotic, but the reality is that each just obeys its own rules.
Posted by: Chroferus at January 13, 2004 04:05 AMSince the Heap has no definite rules as to where it will create space for you, there must be some way of figuring out where your new space is. And the answer is, simply enough, addressing. When you create new space in the heap to hold your data, you get back an address that tells you where your new space is, so your bits can move in. This address is called a Pointer, and it's really just a hexadecimal number that points to a location in the heap. Since it's really just a number, it can be stored quite nicely into a variable.
Posted by: Wymond at January 13, 2004 04:05 AMEarlier I mentioned that variables can live in two different places. We're going to examine these two places one at a time, and we're going to start on the more familiar ground, which is called the Stack. Understanding the stack helps us understand the way programs run, and also helps us understand scope a little better.
Posted by: Aaron at January 13, 2004 04:05 AMNote the new asterisks whenever we reference favoriteNumber, except for that new line right before the return.
Posted by: Chroseus at January 13, 2004 09:56 AMThis back and forth is an important concept to understand in C programming, especially on the Mac's RISC architecture. Almost every variable you work with can be represented in 32 bits of memory: thirty-two 1s and 0s define the data that a simple variable can hold. There are exceptions, like on the new 64-bit G5s and in the 128-bit world of AltiVec
Posted by: Cecily at January 13, 2004 09:56 AMThis 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: Gervase at January 13, 2004 09:56 AM