Quantcast
Channel: Side
Browsing all 17 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Tripped on C

Almost right after I got into programming, I fell in love with C++. Its immensely powerful nature keeps fascinating me day after day, and I’m always hungry to pick up a new piece of C++ wizardry to...

View Article



Image may be NSFW.
Clik here to view.

Generate Pseudo-random Numbers Using LFSR

When performance is critical, it is essential to avoid even the slightest overhead. I’ve recently had the chance to implement a test facility scanning through the DRAM unit on various devices to be...

View Article

Image may be NSFW.
Clik here to view.

Implicit Function Declarations Will Bite

Is the following code correct in C? #include <stdio.h> int main () { int i = DoSomething(); /* does it work? */ printf("%d\n", i); return 0; } int DoSomething (int num) { return 5; } I haven’t...

View Article

Image may be NSFW.
Clik here to view.

Does Restrict Actually Improve Performance?

C99 has introduced a slew of new features into the language, among which many are aimed at improving the performance and flexibility of C in embedded programming. A prominent example would be the new...

View Article

Image may be NSFW.
Clik here to view.

The “Goes-to” Operator?

#include <stdio.h> int main () { int x = 10; while( x --> 0 ) { // x goes to 0 printf("%d ", x); } } What?? My first impression after seeing the above code was WTH. Never did I ever hear of...

View Article


Image may be NSFW.
Clik here to view.

Who Doesn’t Want Optimization? (Part One)

When it comes to optimization, C is often regarded as the ultimate language. Simple and efficient, C encourages programmers to write customized, often lightweight, though sometimes obscure, routines as...

View Article

Image may be NSFW.
Clik here to view.

New Blog!

Hi, check out my new blog at http://beyondsora.github.com/

View Article

Image may be NSFW.
Clik here to view.

Favorite 10-Liner

shared_ptr< widget > get_widget( int id ) { static map< int, weak_ptr< widget > > cache; static mutex m; lock_guard< mutex > holder( m ); auto sp = cache[ id ].lock(); if ( !sp...

View Article


Image may be NSFW.
Clik here to view.

Should I throw an exception in my destructor?

The following is the work of Marshal Cline @ C++ FAQ.   Write a message to a log-file.  Or call Aunt Tilda.  But do not throw an exception! Here’s why (buckle your seat-belts): The C++ rule is that you...

View Article


Image may be NSFW.
Clik here to view.

The Danger of the Concentration of Power

Some thoughts from what I read recently. Quintus Catalus (Consul of 78 BC) once said, in front of a popular gathering in 67 BC, “I admit that Gnaeus Pompeius rightfully deserves all the honors you have...

View Article

Image may be NSFW.
Clik here to view.

2015 EOY Goals

I’m setting some goals for myself. For those who wonder why I’m doing this when it’s almost the last month of the year: I don’t believe in new year resolution and I start a goal whenever I think I’m...

View Article

Image may be NSFW.
Clik here to view.

Review: Lean In

“Leadership is about making others better as a result of your presence and making sure that impact lasts in your absence.” is one of my favorite lines from Lean In. My take on this book is going to be...

View Article

Image may be NSFW.
Clik here to view.

Review: Starting Point

Hayao Miyazaki is a conflicting person. One second optimistic and uplifting, the next disillusioned and bitter. Miyazaki would at times exclaim the world was heading to a meaningless place before...

View Article


Image may be NSFW.
Clik here to view.

So, You Want To Wake Up Early?

A friend of mine has recently asked me for some tips for waking up early. To this friend, and to anyone what wants to adopt a regular schedule, my answer is to simply do two things, of which sleeping...

View Article

Image may be NSFW.
Clik here to view.

There Is Meaning In Sadness

I finally got around to watch Inside Out. Moments of the movie reminds me of a very different sort of book, Man’s Search For Meaning by Viktor E. Frankl. In the movie, sadness however depressing it can...

View Article


Image may be NSFW.
Clik here to view.

Review: The Kindly Ones

I must say the ending left a sour taste in my mouth. The story just stopped. Never mind there was no light at the end of the tunnel. There was not even an end to the tunnel. Did Aue go mad at the end?...

View Article

Image may be NSFW.
Clik here to view.

Review: SPQR

The Romans too wondered where they came from. To them, a city as mighty as theirs could not possibly have been of an obscure origin. So it was Aeneas, who fled the destruction of Troy, that Romulus...

View Article

Browsing all 17 articles
Browse latest View live




Latest Images