Probably the biggest distortion in the first image comes from ignoring output brightness:
https://news.ycombinator.com/item?id=47047866
Next I'd guess is correctly mapping wavelength to raw RGB ratios, and then third would probably be gamma.
Since that would be the "good enough" approach for most people, I wish a could see a comparison of that with the author's CIE-based results.