Skip to content

Commit da14d78

Browse files
committed
Update v3/docs/project-ideas.md
1 parent 0cce2a4 commit da14d78

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎v3/docs/project-ideas.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ Main Advantages:
157157
- Enables an interactive REPL that incrementally takes in user inputs rather than just executing batch programs; this can lead to better interactivity and responsiveness.
158158
- Supports on-demand evaluation and in-memory storage of (relatively) large data structures such as a 100,000-element dictionary for a spell checker program; right now OPT must send that giant dictionary in a trace (encoded in an inefficient format).
159159
- Works in "offline mode" for students in regions without reliable Internet access
160+
- Enables on-the-fly editing of data by clicking on and editing the visualized objects (since they're just JavaScript objects) ... SmallTalk style :)
161+
- Might enable Bret-Victor-esque "live coding" where the display updates nearly instantaneously as you are coding
160162

161163
From an OPT user:
162164
"The second idea came about when teaching about return values, but it applies to any "compound" expression that is more than a single function call or assignment of a literal to a variable. I often find myself showing how Python processes a statement like "x = len(s) + 1" by showing how individual pieces are computed sequentially. Right now, OPT treats that as a single, atomic line, so students don't see clearly how it first calls len(s), "replaces" that with its return value, performs the addition, and then stores the result of that into x. I draw things like this on the board with underlining and arrows (e.g., "len(s)" is underlined, with an arrow pointing down to its return value) to show where data goes and how everything is evaluated. I expect that could be automated and displayed in something like OPT. I'm not sure I'm being clear, but I hope that makes some sense. I recognize that this doesn't fit that well into the current model, which is focused on one step being one line of code, so it may be a bit of a pipe-dream."

0 commit comments

Comments
 (0)