|
|
|
|
|
by coldtea
6 days ago
|
|
>Are you making a case for built-in components for e.g. sorting and filtering and what have you? To me that's just way more clunky than having an actual programming language. I'd take more clunky over what we have any day of the week. >A toy example, but HTML+CSS is Turing complete. And it shouldn't be. Problem fixed. >Even PDF, a static document format with no real user interaction, has a programming language (PostScript) embedded. Given the millions of PDF exploits, that's likely the worst example one could give in support of this. |
|
For example, if you take away all loops and branches from JS, but still allow it to send network requests, you'll no longer have a Turing complete language (well, you'll have to also remove lambda functions and some other stuff; Turing completeness is complicated). But have you reduced its exploitability? Perhaps marginally, but no more than that.
You're barking up the wrong tree.
> And it shouldn't be. Problem fixed.
Why should it not? What changes would you make to ensure it's not? And what problem would that fix?
For the record, it's really quite difficult proving a system is not TC. See [1] for a list of examples. Note that I disagree with the "security implications", though it's worthwhile reading. To me, TC is more of a mathematical curiosity of a complex enough system; without other problems such as bad sandboxing or other exploitable features, it has no relevance for security.
[1] https://gwern.net/turing-complete#surprisingly-turing-comple...