Live data from Hacker News

I Wrote a Compiler

blog.singleton.io

71–78 of 78 posts

Re: I Wrote a Compiler

#72

> It’s possible to write the lexer and parser entirely by hand I write mine all by hand. It's the easiest part of a compiler to write, by far. It's also the least troublesome. One advantage of doing them by hand is better, more targeted error messages are easier to fold in.

Can't pass by without mentioning this amazing post about parsing with error recovery: https://matklad.github.io/2023/05/21/resilient-ll-parsing-tu...

Re: I Wrote a Compiler

#74
post #61

Earlier quoted context omitted.

yes, that Eric Schmidt.

[flagged]

@dang I feel like this is getting close to the lowest level of discourse and occurs somewhat often these days where people overly reference the output of some AI and then are challenging the results without googling. I feel a proper hacker ethos would spur someone to find a real answer. So in honor of the name of the site maybe disallow refutations or other dismissals of a submission based on the output of an AI or overly long discussion that is offtopic about an AI?

Re: I Wrote a Compiler

#76
post #61

Earlier quoted context omitted.

[flagged]

@dang I feel like this is getting close to the lowest level of discourse and occurs somewhat often these days where people overly reference the output of some AI and then are challenging the results without googling. I feel a proper hacker ethos would spur someone to find a real answer. So in honor of the name of the site maybe disallow refutations or other dismissals of a submission based on the output of an AI or o…

Tom and I of course agree! But it's not so easy to disallow things, since humans do $thing anyway.

Most probably the long-term solution is for the community to express this preference by flagging comments that do this. I think we see signs of that happening, which is good, because a community solution is better than a technical solution (and way better than an authority solution) any day.

Btw, tapirl is a good contributor and I don't think they did anything particularly wrong. It just takes time for us all to learn the optimal patterns together.

Re: I Wrote a Compiler

#77
post #69

Earlier quoted context omitted.

Delphi for sure. And while you have to run it on Windows, it can create binaries for Windows, macOS, Linux, and mobile. https://www.embarcadero.com/products/delphi

FreePascal and Lazarus get you close on other platforms I think. It’s been ages since I’ve looked into it.

Yes, but I'd argue the price of Delphi is totally worth the issues you would then avoid by not using Lazarus.

Re: I Wrote a Compiler

#78
post #69

Earlier quoted context omitted.

FreePascal and Lazarus get you close on other platforms I think. It’s been ages since I’ve looked into it.

Yes, but I'd argue the price of Delphi is totally worth the issues you would then avoid by not using Lazarus.

I thought Lazarus/FreePascal are 100% compatible with Delphi. Is that not the case?
Post reply on HN