Re:Show HN: How to write a tiny compiler
by GFK_of_xmaspast on Thursday February 09, 2017 @08:05PM
(#13612507)
Looking at those slides and watching the first part of the talk, it sounds as if he's re-invented LLVM IR, and poorly.
[ Parent
| on HN ]
Re:Show HN: How to write a tiny compiler
by chubot on Thursday February 09, 2017 @11:08PM
(#13613140)
If it's a lot smaller and serves their purpose, it's not implemented poorly. And if it compiles 10x as fast, which it probably does (I'm not a heavy Go user.)
Also I think this representation is different architecturally. Go now uses an SSA representation apparently, which would be the equivalent of LLVM IR AFAIK. This assembly language is more toward the backend where as the IR is more like the "middle end".
Re:Show HN: How to write a tiny compiler
by 77pt77 on Thursday February 09, 2017 @08:26PM
(#13612581)
Why LLVM specifically?
there are many intermediate representations.
Re:Show HN: How to write a tiny compiler
by GFK_of_xmaspast on Thursday February 09, 2017 @08:46PM
(#13612655)
First one I thought of and also you can write it directly.