Second link that you've presented is using exactly the same formula as one used in Krzysztof's Narkowicz blog (and used in UE4) - https://knarkowicz.wordpress.com/2016/01/06/aces-filmic-tone-mapping-curve/ - his blog provide source, which is official ACES github.
At the same time, source provide in first shadertoy code, points to official ACES website - http://www.oscars.org/science-technology/sci-tech-projects/aces - in which you can find link to the official ACES github (https://github.com/ampas/aces-dev) which is the same as provided by Krzysztof Narkowicz.
In conclusion: It looks like both code is using official ACES formula, but different versions. As you can see in ACES github, there are version up to 1.3. Therefore, two shadertoy codes that you've presented are probably using different versions.
Edit: Read Nathan Reed's comment below. Indeed I forgot that Krzysztof Narkowicz's version is approximation.