Re:A Complete Formal Semantics of x86-64 User-Level Instruct...
by userbinator on Tuesday April 23, 2019 @08:06PM
(#19734298)
Also, if the specification is too formal, no one besides academics would understand it and thus it would pretty useless as practical documentation.
[ Parent
| on HN ]
Re:A Complete Formal Semantics of x86-64 User-Level Instruct...
by StillBored on Wednesday April 24, 2019 @12:06AM
(#19735477)
Which is why there is a 7000+ page ARM ARM
https://static.docs.arm.com/ddi0487/da/DDI0487D_a_armv8_arm....
which is mostly written in plain English for the common programmer, but frequently suffers due to lack of specificity or general clarity.
Re:A Complete Formal Semantics of x86-64 User-Level Instruct...
by pcwalton on Tuesday April 23, 2019 @10:49PM
(#19735137)
Right.
Also, sometimes you want to leave things undefined. This killed the attempt to create a formal specification for ECMAScript 4 back in the day. For example, it was hard to formally specify things like "Array.sort calls the sorting order callback in such a way as to make the array sorted" without mandating a particular sorting algorithm.
Re:A Complete Formal Semantics of x86-64 User-Level Instruct...
by sanxiyn on Wednesday April 24, 2019 @01:13AM
(#19735749)
Maybe formal specification could have been done for the language but not for the standard library.
Note that formal specification of ECMAScript 5 does exist (JSCert), although it is not de jure and it does not handle the standard library.