Live data from Hacker News

Viewing profile — MishraAnurag

MishraAnurag

HN member
Joined
Fri, Mar 29, 2013, 11:15 PM UTC
HN karma
106
Public activity
15 items

About MishraAnurag

No profile information was provided.

Recent public activity

  1. story
  2. comment
    Comment #10109338

    Great post. Soft errors have a different meaning altogether in electronics. It's an interesting read. https://en.m.wikipedia.org/wiki/Soft_error

  3. story
  4. story
  5. story
  6. comment
    Comment #7209651

    Looks like a scam.. The app icon for Flappy Bird is nowhere to be found on that screen.

  7. comment
    Comment #6347729

    Using the relevant SQLite implementation directly cuts down that time in half to about 3.5-3.7 seconds over a few runs.

  8. comment
    Comment #6347645

    That's a fair point. NSDateFormatter is fast enough and you should never replace it for anything else unless you know for sure that it's a problem. Well that goes for any optimizat…

  9. comment
    Comment #6345242

    I'd suggest using timegm instead of mktime, or set the TZ environment variable to UTC to ensure all implementations return an identical date. I ran the same tests and found that th…

  10. comment
    Comment #6345156

    Are you using mktime to get the unix timestamp? That might be the slower part as opposed to strptime.

  11. comment
    Comment #6345133

    A link to the source code is present in the article. You can find it here - https://gist.github.com/AnuragMishra/6474321 The NSDateFormatter is already being cached. That was my fi…

  12. comment
    Comment #6345111

    That's interesting. I'm not sure of the significance of that year or how that relates to the algorithm in Meeus' book. This web page talks about the date algorithms in Meeus' book …

  13. comment
    Comment #6345084

    That was to make a fair comparison between the two approaches since NSDateFormatter's dateFromString gives an NSDate, while SQLite was handing back an integer. But you are right. I…

  14. story
  15. story