• Home
  • Blog
  • About
kenneth kiraly

Never Enough Time...

6/2/2013

 
Alas, when one is deeply and endlessly involved in the daily responsibilities of work and in life, it can be a challenge to find time to keep even a small, personal website up to date...

Ring buffers and mirrored memory

12/1/2012

0 Comments

 
I ran across a useful article on how to use virtual memory tricks to mirror ring buffer memory.  This allows one to virtually concatenate non-contiguous memory (which can come in very handy at times).  Part 2 of the article discusses the implementation of the ring buffer on top of the mirrored memory allocator.

You can find the mirrored queue code referenced in the article on github.  (Note that one of the commenters also points out an optimized POSIX-based implementation that is posted on Wikipedia.)
One Ring to Rule them All
0 Comments

Lock-free programming and weakly-ordered CPUs

11/3/2012

 
Picture
This is a nice article regarding weakly-ordered CPUs.  The author has covered a number of other subjects relating to lock-free programming on his site - definitely worth checking out!

How to Write a Spelling Corrector

10/20/2012

 
How to write an efficient spelling corrector in less than one page of code.  (Links to implementations across a variety of languages are included at the end of the article.)

The Hubble eXtreme Deep Field

10/7/2012

 
Hubble eXtreme Deep Field
Have you ever wanted to travel back to the beginning of time to see what some galaxies in our universe looked like?  Well, now you can!  (Well, almost...!)

Astronomers have recently released a new and updated version of our deepest view into the universe - the Hubble eXtreme Deep Field (XDF).  The XDF follows about eight years after the previous Hubble Ultra Deep Field (HUDF) image, which was released in 2004.

The XDF image was created by the assembly of almost 10 years of Hubble telescope photographs, focused on just a portion from the center location of the original UDF image.  Even though the XDF was created from a tiny portion of our sky, it contains images approximately 5,500 galaxies - some of which are estimated to date back to 13.2 billion years in time, when they were relatively young and still growing (!).

You can learn more at the HubbleSite: Hubble Goes to the eXtreme to Assemble Farthest Ever View of the Universe, and you can find the XDF and related images and illustrations on their Release Images page.  It is fascinating to download the high resolution version, then zoom in and pan around, and see the seemingly endless number of massive galaxies...!

A comparison of hash functions

10/5/2012

 
Peter Kankowski has put together a very interesting comparison of hash functions.  His main question, tests of the various types of hash function algorithms (e.g., multiplicative and complex), and his conclusion are useful and worth reviewing, if you're looking for an appropriate hash function for your application.  As is frequently the case in many areas in design and computing, there are trade-offs (!).

Hexaflexagons!

10/2/2012

 
This is really fun!  (Vi Hart has a number of other great videos on her YouTube page - highly recommended!)

You can learn more about Flexagons (and Hexaflexagons and all sorts of other variants) and how to make them from the Wikipedia Flexagon page.

Amazon Kindle Paperwhite reviews

10/1/2012

 
Kindle Paperwhite
It looks like we have a winner :-)

Kindle Paperwhite Review: Forget Everything Else, This Is the E-Reader You Want (Gizmodo)

Kindle Paperwhite is a big step forward for e-ink readers (gigaom)

Amazon Kindle Paperwhite Review (SlashGear)

A Clean, Well-Lighted Face (Wired)

Kindle Paperwhite leaves a glowing impression (USA Today)

Amazon Kindle Paperwhite Review (Engadget)

Amazon's Kindle Paperwhite is the new king of e-readers (NBCNews.com)

Kindle Paperwhite review (The Verge)

Amazon Kindle Paperwhite is the Best E-Ink Screen You Can Buy (Mashable Tech)

Kindle Paperwhite shines (CNET)

Review: Amazon Kindle Paperwhite really shines (TechHive)

The Kindle Paperwhite Is Evidently Amazing (The Atlantic Wire)

Amazon's New Kindle Is The Best E-Reader You Can Buy (BusinessInsider)

The Paperwhite is indeed a fantastic device.  (Now, to go catch up on some reading ;-))

SMC - The State Machine Compiler

9/29/2012

 
I learned about The State Machine Compiler (SMC) tool a few weeks back.  This tool is very useful for auto-generating complete state machine code (and it can generate state machine diagrams as well, using Graphviz).

To use SMC, you simply define your state machine using the SMC input language (which uses a yacc-like syntax), and compile it.  SMC can output the generated state machine pattern class code to a multitude of different languages (C, Java, C++, C#, Python, Perl, and so on - even Javascript!)  The generated code is very loosely coupled with your main application code, which makes it easy to integrate and maintain.  In addition, the output code generated by the tool belongs to you, and you can use/license it as you wish.

The SMC website (http://smc.sourceforge.net/) provides a wealth of information, including documentation, tutorials, FAQs, and so on.  If you are planning on creating a state machine in your code any time soon, it is worth checking out SMC.
SMC Example 2
(Example graph from the SMC website)

Cray T94 vs. NVIDIA GTX680

9/23/2012

 
Cray T94
There's a Cray T94 supercomputer currently up for sale on e-bay.  These machines were pretty amazing - e.g., from the picture of the power requirements plate it looks like this particular T94 requires almost 70kW of power to operate - no wonder Cray offered a liquid-cooled model...!

Comparing the relative compute and power capabilities of the T94 with some state-of-the art technology today, it's interesting to see how far things have advanced.

According to the Cray T90 series announcement document from 1995, the T94 appears to have been one of their "entry-level" offerings at the time (a budget supercomputer!):

U.S. list pricing ranges from $2.5 million to $35 million for the
new CRAY T90 series of parallel vector supercomputer
systems, available in three chassis models:

-  The CRAY T94 model: 1-4 CPUs (1.8-7.2 billion calculations
   per second); 512-1024 million bytes (megabytes) of memory;
   air- or liquid-cooled. U.S. list pricing starts at $2.5 million
   for a one-processor system with 512 megabytes of memory.

-  The CRAY T916 model: 8-16 CPUs (15-30 billion calculations
   per second); 1024-4096 megabytes of memory; liquid-cooled.
   U.S. list pricing starts at $9.5 million for an 8-processor
   system with 1024 megabytes of memory.

-  The CRAY T932 model: 16-32 CPUs (30-60 billion
   calculations per second); 4096-8192 megabytes of memory;
   liquid-cooled. U.S. list pricing starts at $22 million for a 16-
   processor system with 4096 megabytes of memory and goes
   to $30 million for a 32-processor system with 4096
   megabytes of memory, or $35 million for a 32-processor
   system fully configured with 8192 megabytes of memory.

If you take a dual-CPU T94 configuration in mid-1995 (for example), that probably would have set you back almost $5M, and you would have ended up with a whopping 3.6 GFLOPS of computing capability, while using a massive amount of electricity in the process (e.g., about 70kW).

Now compare this to an NVIDIA GTX680 graphic card that you can buy today - for around $500, you can get a card that provides you with over 3000 GFLOPS of computing capability, while drawing just 195W of current.  That's quite a contrast!

There are some other interesting tidbits - from the T94 flyer, it did support an optional SSD (1-4GB), and memory bus-bandwidth-wise, the T94's bandwidth was 100GB/s, whereas today the GTX680's is just shy of 200GB/s.

So the question now is - what will this area look like 20 years hence...?
<<Previous

    Author

    Kenneth Kiraly


    Archives

    June 2013
    December 2012
    November 2012
    October 2012
    September 2012
    August 2012
    July 2012


    Categories

    All
    Computing
    Cool
    Interesting
    Kindle


    RSS Feed




Content copyright (c) 2004-2021 Kenneth Kiraly
All Rights Reserved.