Khan / Khan/live-editor

There should be an option to disable infinite loop protection so slower laptops can run larger programs

Open
#446 27 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
776
Forks
180
PR merge metrics
No merged PRs in 30d

Description

I understand the need for infinite loop protection, I remember before there was any loosing some programs because I wrote the wrong code and my program spiraled into an infinite loop and the browser just crashed so hard I couldn't even save my work... that sucks for sure, but on the flip side the current level of protection tends to kill legit programs if they get to large, especially for slower laptops like mine! Would it be possible to have a line of code that is able to disable the protection? So for example you could define some kind of bool like KAinfiniteloops and make all that stuff depend on the bool, and then give us access to it so all we would have to do is write KAinfiniteloops=false; at the top of a program.

Contributor guide

No contributing guide indexed for this repository

Research direction

No files, tests, or entry points are named in the issue. Start by locating the live editor's infinite-loop protection and determine how an opt-out would affect browser safety and larger programs; done means a documented, user-accessible option that disables the protection without crashing the browser.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.