News for hackers. Stuff that matters.
Re:How Difficult is it to Write a Compiler? by Eliezer on Monday December 15, 2008 @05:39PM (#398939)
It's easy to write a compiler.

I understand that writing a good compiler is somewhat more difficult.

Re:How Difficult is it to Write a Compiler? by akeefer on Monday December 15, 2008 @07:26PM (#399028)
Indeed . . . as someone who works with an in-house language, I can affirm that the ratio of time we've spent on the initial parse/compile steps to the time spent on things like error reporting and optimization is probably approaching 1:100 at this point.
Re:How Difficult is it to Write a Compiler? by michaelneale on Monday December 15, 2008 @11:51PM (#399189)
I find the error reporting the hardest thing. And a lot of "tips and techniques" kind of neglect that you actually may have syntax errors and need to report them to the user in a helpful way.
Re:How Difficult is it to Write a Compiler? by jey on Tuesday December 16, 2008 @02:39AM (#399323)
I think the post is pointing out that there's less magic involved in writing a compiler than one may initially think.
Re:How Difficult is it to Write a Compiler? by jwilliams on Tuesday December 16, 2008 @02:24AM (#399317)
> writing a good compiler is somewhat more difficult

Also depends on how you define what's good.

You might want a compiler to give good CPU performance, memory, code size, debugging information, robustness, start-up speed, etc.

Some of these can be difficult - any combination is even more difficult again.