tungwaiyip.info

home

about me

links

Blog

< July 2021 >
SuMoTuWeThFrSa
     1 2 3
4 5 6 7 8 910
11121314151617
18192021222324
25262728293031

past articles »

Click for San Francisco, California Forecast

San Francisco, USA

 

Metaphor in Computer Science

I have enjoyed Lakoff and Johnson's classic book Metaphors We Live By. Originally published in 1980, they argue that metaphor is not simply a literary device. Instead it is a fundamental way the human mind makes sense of the world, by using knowledge in one domain to reason about another domain. The use of metaphor is pervasive in our throught, whether we are aware of it or not.

Once I learned how to look, I started to see our use of metaphor everywhere. For example, we describe a computer program execution (a job) as a life object.

  • The job is created
  • The job uses a lot of memory
  • Is it still alive?
  • It is frozen
  • Kill the job

A faulty computer program is said to have a bug. A job as a programmer is to find bugs and remove bugs from software.

Data Structures are often conceived metaphorically. We have data structures like stacks (e.g. a stack of paper), queues, trees, and dictionaries, etc. Tree is a special metaphor. It is structurally similar to a biological tree. It has many branches and each branch has more sub-branches. On the other hand, we don't use other parts of the metaphor such as that tree is a living object that breathes and requires nutrition. Instead, all these data structures use the container metaphor. We put things into them and we take things out.

Computer science is often abstract in nature. We map abstract ideas into familiar concepts using metaphors. The mechanics of a "pointer" is a number used as the memory address of another data of interest. Instead of thinking about the mechanics, we conceive the pointer as an arrow that points to the referenced item. The pointer metaphor makes this much easier to make sense of.

2021.07.24 comments

 

Obituaries - Art Gensler

I have a devotion to obituaries. Most of the time, I don't find them sad at all. Instead, it is a review of what one accomplished in life and the legacy they left behind. They actually cast a guiding light for living. While we constantly struggle in the hectic day to day life, they tell us, at the end of the day, what really matters.

Architect Art Gensler, founder of his global design firm, dies at 85

With his health failing, Gensler had recently stepped down from long terms of service on the boards of directors for California College of the Arts, the San Francisco Museum of Modern Art and the Buck Institute for Research on Aging in Novato.
But he did not step down from his own design practice and had a calendar of meetings scheduled for Monday and the rest of this week.

Gensler showed me the life I aspire to. He applied himself to the greatest extent, from leading his firm to serving the public. He was going strong until the very last day!

Over the last 15 years, Gensler gave away half of his fortune, including a $10 million bequest to endow the Cornell art, architecture and planning program in New York City.

We all have limited time in this world. As we depart, the wish is to bequest others what we have and help them live better.

2021.07.18 comments

 

past articles »

 

BBC News

 

Kosovo: Fresh clashes as Nato troops called in to northern towns (29 May 2023)

 

Lindsey Graham: Russia issues arrest warrant for top Republican (29 May 2023)

 

Lawmakers race to secure US debt deal votes as deadline looms (29 May 2023)

 

Tourist boat sinks on Lake Maggiore killing four (29 May 2023)

 

Watch: Escaped bull charges into dancing crowd leaving two injured (29 May 2023)

 

Succession: Critics praise 'perfect, brutal' finale (29 May 2023)

 

German police arrest stripper over toy gun (29 May 2023)

 

Ukraine war: General Kyrylo Budanov promises revenge after latest Kyiv attack (29 May 2023)

 

Turkish election victory for Erdogan leaves nation divided (29 May 2023)

 

Thousands evacuate as Nova Scotia fights wildfires (29 May 2023)

more »

 

SF Gate

more »


Site feed Updated: 2023-May-29 15:00