News for hackers. Stuff that matters.
Re:What can we learn from how compilers are designed? by verletx64 on Friday March 16, 2018 @09:12PM (#16605085)
Can I ask, as somebody that hasn't dived into Compiler's yet; not out of not wanting to, but more a 'so much to learn' scenario

How does it make a developer better? I see this repeated often, but I don't really see how.

Re:What can we learn from how compilers are designed? by slx26 on Saturday March 17, 2018 @05:53AM (#16606219)
For example: once you see what the compiler does, you can write readable code without sacrificing efficiency.

When you don't really know what's going on under the hood, consciously or unconsciously you write code based on assumptions, which a lot of the time are wrong. It's very hard to exemplify because the mental model programmers have about programming can be very different, and therefore the benefits of a better understanding provided by learning about compilers can have different effects on different people. And still, everyone who has tried recommends learning about compilers.

Programming languages are our most fundamental tool as programmers, and yet it's pretty much impossible to make a fair assessment of why they are designed the way they are, why they work the way they do, why they provide the abstractions and structures they provide, until you try for yourself. Understand programming languages better => use them more naturally.

Re:What can we learn from how compilers are designed? by magpi3 on Friday March 16, 2018 @09:57PM (#16605217)
Compilers are a great example of taking a very complicated task and breaking it down into simpler (though not necessary simple) steps. Just going through the practice of building one might change how you look at other projects you've worked on in the past.

And I think the insights you take from designing a compiler translate into data processing as a whole, as other commenters have noted.

Re:What can we learn from how compilers are designed? by Ono-Sendai on Saturday March 17, 2018 @12:31AM (#16605617)
You get an insight into why current languages and compilers are designed the way they are. For example, why does C have #include? Probably because it's the easiest possible way of including/referencing source code from another file.
Re:What can we learn from how compilers are designed? by kqr on Saturday March 17, 2018 @02:43AM (#16605864)
It's surprisingly practical to view a lot of data mangling tasks through one's compiler glasses.