Live data from Hacker News

Parsing: The Solved Problem That Isn't (2011)

tratt.net

21–30 of 90 posts

Re: Parsing: The Solved Problem That Isn't (2011)

#21

Parsing computer languages is an entirely self-inflicted problem. You can easily design a language so it doesn't require any parsing techniques that were not known and practical in 1965, and it will greatly benefit the readability also.

Do you mean lisp? If yes I agree

Re: Parsing: The Solved Problem That Isn't (2011)

#22

Parsing computer languages is an entirely self-inflicted problem. You can easily design a language so it doesn't require any parsing techniques that were not known and practical in 1965, and it will greatly benefit the readability also.

Do you mean lisp? If yes I agree

Including, but not limited to.

Re: Parsing: The Solved Problem That Isn't (2011)

#23

Parsing computer languages is an entirely self-inflicted problem. You can easily design a language so it doesn't require any parsing techniques that were not known and practical in 1965, and it will greatly benefit the readability also.

But I don't want to be able to parse only highly restricted languages. I want to be able to parse anything, including natural language or even non-languages like raw audio.

My brain can do it, why can't my computer?

Re: Parsing: The Solved Problem That Isn't (2011)

#24
Common example of complications of two grammars being combined: C code and character strings.

Double quotes in C code mean begin and end of a string. But strings contain quotes too. And newlines. Etc.

So we got the cumbersome invention of escape codes, and so characters strings in source (itself a character string) are not literally the strings they represent.

Re: Parsing: The Solved Problem That Isn't (2011)

#25

Parsing computer languages is an entirely self-inflicted problem. You can easily design a language so it doesn't require any parsing techniques that were not known and practical in 1965, and it will greatly benefit the readability also.

But I don't want to be able to parse only highly restricted languages. I want to be able to parse anything , including natural language or even non-languages like raw audio. My brain can do it, why can't my computer?

Your computer can do it, if it has a beefy enough Nvidia card. That's what LLMs are for!

Grammar-based parsing for natural language isn't anywhere close to working, sadly, and may never be.

Re: Parsing: The Solved Problem That Isn't (2011)

#26

Parsing computer languages is an entirely self-inflicted problem. You can easily design a language so it doesn't require any parsing techniques that were not known and practical in 1965, and it will greatly benefit the readability also.

But I don't want to be able to parse only highly restricted languages. I want to be able to parse anything , including natural language or even non-languages like raw audio. My brain can do it, why can't my computer?

[deleted]

Re: Parsing: The Solved Problem That Isn't (2011)

#27

Common example of complications of two grammars being combined: C code and character strings. Double quotes in C code mean begin and end of a string. But strings contain quotes too. And newlines. Etc. So we got the cumbersome invention of escape codes, and so characters strings in source (itself a character string) are not literally the strings they represent.

at no point in my life have I ever considered escape codes to be problematic.

ugly, yes. problematic? no.

Re: Parsing: The Solved Problem That Isn't (2011)

#28

Parsing computer languages is an entirely self-inflicted problem. You can easily design a language so it doesn't require any parsing techniques that were not known and practical in 1965, and it will greatly benefit the readability also.

But I don't want to be able to parse only highly restricted languages. I want to be able to parse anything , including natural language or even non-languages like raw audio. My brain can do it, why can't my computer?

Yes, never do humans misunderstand each other, or instructions are not clear to everyone and totally unambiguous, and luckily no language has pure differentiation of meaning by intonation, and, and.. and...

Re: Parsing: The Solved Problem That Isn't (2011)

#29

Earlier quoted context omitted.

But I don't want to be able to parse only highly restricted languages. I want to be able to parse anything , including natural language or even non-languages like raw audio. My brain can do it, why can't my computer?

Your computer can do it, if it has a beefy enough Nvidia card. That's what LLMs are for! Grammar-based parsing for natural language isn't anywhere close to working, sadly, and may never be.

You've never had an LLM misinterpret what you correctly wrote?

(… I have.)

Re: Parsing: The Solved Problem That Isn't (2011)

#30

Parsing computer languages is an entirely self-inflicted problem. You can easily design a language so it doesn't require any parsing techniques that were not known and practical in 1965, and it will greatly benefit the readability also.

But I don't want to be able to parse only highly restricted languages. I want to be able to parse anything , including natural language or even non-languages like raw audio. My brain can do it, why can't my computer?

[deleted]
Post reply on HN