News for hackers. Stuff that matters.
Re:Parse, Don't Validate (2019) by ukj on Saturday June 26, 2021 @04:47AM (#27640269)
You are tripping up over polymorphism. "Is" means many things - which meaning you infer is precisely parsing!

"A square is a rectangle" means "A square is a TYPE of rectangle" (at least, that is what I am parsing it as).

"Parsing is Validation" means Parsing is isomorphic to Validation.

How do I know? Because that is how I want you to parse it.

Re:Parse, Don't Validate (2019) by pwdisswordfish8 on Saturday June 26, 2021 @04:53AM (#27640298)
> 'When I use a word,' Humpty Dumpty said in rather a scornful tone, 'it means just what I choose it to mean — neither more nor less.'
Re:Parse, Don't Validate (2019) by ukj on Saturday June 26, 2021 @04:56AM (#27640310)
+∞

parse verb. resolve (a sentence) into its component parts and describe their syntactic roles.

In computer science what we do is precisely syntax analysis. Determining the meaning of operators.

Mathematicians have the exact same problem with respect to the equality operator.

https://ncatlab.org/nlab/show/equality#DifferentKinds

Re:Parse, Don't Validate (2019) by jhgb on Saturday June 26, 2021 @09:57AM (#27641887)
> "A square is a rectangle" means "A square is a TYPE of rectangle" (at least, that is what I am parsing it as).

In that case your former statement that 'The word "is" implies an isomorphism' seems to be wrong.

Re:Parse, Don't Validate (2019) by ukj on Saturday June 26, 2021 @03:48PM (#27645179)
It may be wrong in your model/interpretation of my words, but it's not wrong in my interpretation of my words.
Re:Parse, Don't Validate (2019) by jhgb on Sunday June 27, 2021 @05:15PM (#27655456)
In what interpretation is it consistent for 'A square is a rectangle" means "A square is a TYPE of rectangle"' and 'The word "is" implies an isomorphism' to be simultaneously true? No matter how I cut it, the latter seems to prevent the former to me.