Re:A sketch of the biggest idea in software architecture
by hoosieree on Friday June 17, 2022 @10:14AM
(#31778505)
Best example I know of:
You have M languages, and N computer architectures. You want a compiler from every language to every architecture, but don't want to write M*N compilers.
One solution is to make a virtual machine. Now, you write M language-to-VM compilers, and N VM-to-cpu compilers, so you only have to write M+N compilers.
You have M languages, and N computer architectures. You want a compiler from every language to every architecture, but don't want to write M*N compilers.
One solution is to make a virtual machine. Now, you write M language-to-VM compilers, and N VM-to-cpu compilers, so you only have to write M+N compilers.