Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    D

    Derick Rethans

    derickrethans.nl · Personal blog · on HN since 2010

    Derick Rethans, a PHP core developer and Xdebug author, writes about PHP internals, date and time handling, and MongoDB.

    Visit blogRSSHN submissions
    ProgrammingLanguages & CompilersDatabases
    What HN says

    HN commenters recommend his date and time material for its timezone quirks and link his posts on PHP performance and garbage collection.

    Stats for nerds
    24HN people shared it
    21linked in comments
    92story points
    Nov 2024last shared
    2010people per year2024

    Top posts on HN

    1. 1
      Storing Date/Times in Databases
      2 people · 48 points · first shared 2010 · 36 comments on HN
    2. 2
      Managing schema changes with MongoDB
      1 person · 12 points · first shared 2015 · Discussion on HN
    3. 3
      15 years of Xdebug
      2 people · 4 points · first shared 2017 · Discussion on HN
    4. 4
      Leap seconds and what to do with them [2009]
      1 person · 3 points · first shared 2012 · Discussion on HN
    5. 5
      Mongo is dead, long live MongoClient
      1 person · 3 points · first shared 2012 · Discussion on HN
    6. 6
      PHP 8: A Quick Look at JIT – Derick Rethans
      1 person · 3 points · first shared 2020 · Discussion on HN
    7. 7
      To GMT or not to GMT
      1 person · 3 points · first shared 2012 · Discussion on HN
    8. 8
      Crowd-serfing
      2 people · 2 points · first shared 2013 · Discussion on HN
    9. 9
      Fail Faster
      1 person · 2 points · first shared 2026 · Discussion on HN
    10. 10
      References in PHP: An Indepth Look [pdf]
      1 person · 2 points · first shared 2018 · Discussion on HN

    What HN people wrote when they linked it

    • LtfeAug 2017

      Not even the maintainers really understand what they are doing :

      https://github.com/g0tmi1k/debian-ssh
      > There was an #ifndef PURIFY there for a reason. It's because the openssl authors knew that line would cause trouble in a memory debuger like Purify or Valgrind.

      Where a debian maintainer screwed the RNG of OpenSSL to make valgrind happy. This made any key generated on a debian or ubuntu system from 2006 to 2008 very easily breakable.

      Downstream should never touch packages beyond backporting fixes made by upstream.

      Here's another example of upstream vs downstream conflict in debian :

      https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477454

      Or PHP developers being fed up with both RedHat and Debian messing with their runtime on whims :

      https://derickrethans.nl/distributions-please-dont-cripple-php-or-red-hat-stop-fucking-around.html

      This is why I heavily support the desire for a new packaging system targeted at developers: snaps, flatpak. The downside of having multiple copies of the same libraries pale in comparison to giving back power to upstream. Distro maintainers are routinely modifying codebases they don't understand. Allow us to have a standard installation process that can install packages.. made by the developers themselves, upstream. Just like all other operating systems do.

      And Debian, unlike RHEL/CentOS, packages a lot more than they can even reasonably maintain. The vast majority of packages in a Debian stable are insecure, the security team simply…

    • 0x0Jan 2013

      I believe these obfuscators work by forcing you to install a binary-only .so zend extension in php.ini, which intercepts these encoded files. The files themselves should decode to already-halfway-parsed PHP opcodes or so, which is probably injected into the PHP/Zend virtual machine.

      Figuring out the encoding scheme is probably a lot of boring disassembly work, which in the end just lets you decode a bunch of PHP opcodes which themselves would take a lot of work to make sense of.

      But perhaps the Vulcan Logic Dumper could help out a little bit. http://derickrethans.nl/projects.html#vld

    • ck2Jan 2013

      I spent 10-15 minutes poking around php internals newslist for an explanation of the php 5.4 changelog "improved performance of the (@) silence operator" without luck. It's just listed as a zend engine improvement without specifications.

      Someone posted here a clear example of why (in earlier php5) it generates far worse opcode:

      http://derickrethans.nl/five-reasons-why-the-shutop-operator-should-be-avoided.html

    • asnyderFeb 2010

      Even if you're not using PHP I highly recommend reading Derick Rethans's slides on Date and Time. There's lots of good information there, especially about all the various quirks with timezones. http://derickrethans.nl/talks/time-zendcon9.pdf, you may even be able to find a video of him presenting this.

    • wwwestonNov 2024

      Yes! I remember downloading this for working in an offline setup 20+ years ago.

      Still, maybe getting rid of the mirrors program 5 years ago had its downsides:

      https://derickrethans.nl/php-mirrors.html

    • derickrDec 2014

      I think the article on this, explains why a memory reduction by garbage collection also increases execution speed: http://derickrethans.nl/collecting-garbage-performance-considerations.html

    Related

    Server Density Blogblog.serverdensity.com48 people

    Does everyone hate MongoDB?

    Server Density Blog
    Company · last shared 2017
    Aphyraphyr.com551 people

    Hexing the technical interview (2017)

    Aphyr
    Personal · last shared 2026
    XTDB Blogxtdb.com39 people

    Trucks, tubes and truth – event-driven systems

    XTDB Blog
    Company · last shared 2026
    The Morning Paperblog.acolyer.org606 people

    Local-first software: you own your data, in spite of the cloud

    The Morning Paper
    Personal · last shared 2026
    Markus Winanduse-the-index-luke.com171 people

    MongoDB is to NoSQL like MySQL to SQL - in the most harmful way

    Markus Winand
    Personal · last shared 2026
    Phil Sturgeonphilsturgeon.co.uk24 people

    Benchmarking Codswallop: Node.js vs. PHP

    Phil Sturgeon
    Personal · last shared 2014
    Scattered Thoughtsscattered-thoughts.net186 people

    Against SQL

    Scattered Thoughts
    Personal · last shared 2026
    Overreactedoverreacted.io186 people

    Goodbye, Clean Code

    Overreacted
    Personal · last shared 2026