News for hackers. Stuff that matters.
Re:Show HN: Scratch.js – Interactive JavaScript Scratchpad by 1-more on Wednesday November 18, 2020 @02:23PM (#25141193)
We started with a blacklist to match against while(1), while(true), for(;;), etc, but we eventually found an eslint plugin (goedel.js) that nicely tells you if the code contains an infinite loop or recursion.
Re:Show HN: Scratch.js – Interactive JavaScript Scratchpad by flafla2 on Wednesday November 18, 2020 @03:19PM (#25141906)
That plug-in certainly won’t cover all cases of infinite loops, or they just solved the halting problem :)
Re:Show HN: Scratch.js – Interactive JavaScript Scratchpad by 1-more on Wednesday November 18, 2020 @03:40PM (#25142166)
Hmmmm maybe you're thinking of entscheidungsproblem.js? This is a fork of that.