A critique of RISC design, and why CPUs end up with custom instructions: https://blackhole12.com/blog/risc-is-fundamentally-unscalable/
(RISC-V has explicit support for extensions, so I think it will be less of an issue there. The idea that webassembly will make programs more portable is interesting.)
Reading about the nonempty list type in Haskell: https://wiki.haskell.org/Non-empty_list (example of the 'enforce everything in the type system' philosophy)