HNHacker News
TopNewBestAskShowJobs

chi_h

9 karma · joined January 2, 2012

submissionscomments
chi_h··on Microjs: an index of javascript micro frameworks
Google Closure and GWT both do exactly that - they use static analysis to cull code which never gets called. You can't use them with standard JS libs though - JS code needs to be specially marked up to use that feature in Closure, and GWT development is in Java.

GWT takes the idea one step further - the code splitting functionality lets you define split points, and code that only ever gets called behind the split point does not need to be downloaded on page load, but can instead be downloaded when that split point is first reached.

chi_h··on The New iPad's Screen Under the Microscope
3x would cause antialiasing artifacts for apps with images optimized for 2x retina displays. Apple decided to wait for pixels to be 4x smaller before jumping to a higher resolution, so they must think these artifacts are unacceptable. Therefore, the logical next step is 4x displays with 528ppi :)
chi_h··on Why I don’t like Dynamic Typing
static typing does NOT mean C# and java - there are far better statically typed languages out there.
chi_h··on Studio History - Delta Versioning in JS
When i first saw it, I wondered why they didn't just use google's awesome diff-match-patch library - http://code.google.com/p/google-diff-match-patch/

Then, I looked at the source code and saw that it actually was just a thin wrapper around diff-match-patch.

:(

chi_h··on The Zuckerberg Tax
To me, the loophole seems to be 'Now his widow can sell those shares without paying any income tax on the appreciation before his death. She would have to pay taxes only on the increase in value from the time of his death to the time of the sale. '

Why doesn't the widow need to pay taxes on the increase from the original cost basis to time of sale? What is the reasoning for resetting the cost basis to 'value at time of death', when no taxes are paid at that time?