3 ms·
Everyone always does this - plays down the amount of work thing X is if they themselves have done thing X. From this perspective you are ineluctably led to a bi
by mathisfun123 3y ago
Everyone always does this - plays down the amount of work thing X is if they themselves have done thing X. From this perspective you are ineluctably led to a binary classification of hardess:
1. Things that have not been done are hard.
2. Things that have been done are easy.
Ok maybe but given the choice between implementing my own IR and using LLVM IR and going to the beach, I choose the latter.
- gavinhoward 3y agoYes. My definition of hard is "I can't do it without leveling up," in whatever form leveling up may be, such as getting a PhD. I can do it without leveling up, so it is not hard for me. It just goes to show how much I hate C++ that I'll avoid LLVM specifically to avoid it.
- UncleEntity 3y agoDepending on your definition of “from scratch” I’d agree it isn’t all that hard. I mean, if I can do it… Just a couple days ago I was poking at one of my yak shaving projects which involves a generator for IR nodes as part of a backend for… something, haven’t quite decided where it’s going yet. Doesn’t really matter because it’s just the next logical step after the already written AST node generator. This is just something I’m doing because I find it interesting and haven’t spent all that much time on it. All I know is if I want to lower AST to IR I need IR nodes and in order to know what functionality a IR generator needs I must have an IR to target. As they say, you eat an elephant one byte at a time.