-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
gh-136251: Improvements to WASM demo REPL #136252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
af4aa0d
EMSCRIPTEN BUILD: export HEAPU32 from emscripten build so that python…
adqm 394815e
WASM REPL: fix loading xterm.js (broken in 2f1cee8477)
adqm aab9ccc
WASM REPL: basic navigation in REPL (arrow keys, home/end, etc)
adqm bd52abe
WASM REPL: reset the python worker after a program exits so that we c…
adqm 77cc952
WASM REPL: handle a few more special keys (tab, ctrl+c)
adqm 4cfa3f1
WASM REPL: use ace editor instead of a plain textbox for code snippet
adqm b688663
WASM REPL: some organization, refactoring, fixes for history
adqm 43a47dc
WASM REPL: put demo at index.html and change text of the 'Run Code' b…
adqm 6d5f698
WASM REPL: update README.md to account for demo location moving
adqm 16cfea2
WASM REPL: add HEAPU32 to exports in configure.ac
adqm faf2ba4
WASM REPL: fix for ACE setup in Chromium
adqm 70d4a17
WASM REPL: run prettier on index.html
adqm ce5ebca
WASM REPL: lower-case 'code' on 'Run code' button
adqm 66cf49d
WASM REPL: remove trailing slashes from void tags in index.html
adqm 8fe92d6
add short news blurb
adqm 25fd7fc
change text of news blurb
adqm 9a26d70
WASM REPL: better implementation of ctrl+c behavior
adqm c477e30
WASM REPL: show error message when SharedArrayBuffer is not available
adqm 4dcc6fb
WASM REPL: maintain history during browsing session
adqm e06a7b2
WASM REPL: make the magic ctrl+c string vary with each run
adqm 3e76313
Merge branch 'main' into wasm_repl
hoodmane 26ddd07
Fix emscripten in browser
hoodmane 7d33525
Merge branch 'main' into wasm_repl
hoodmane File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
WASM REPL: add HEAPU32 to exports in configure.ac
- Loading branch information
commit 16cfea22b3fd62427de65d16146c912e815630b3
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you provide more information? I made this change since
python.worker.mjs
is currently trying to look inHEAPU32
to find Python's version info but it wasn't accessible (in my original builds, I just manually editedpython.worker.mjs
to hard-code the version number to make things work).I'm guessing from "Oops," though, that this isn't the right way to fix this? First time messing with Emscripten/WASM at all, so if you don't mind, more context would be appreciated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hoodmane The "oops" comment is ambiguous to me as well - just to confirm, this is an "oops, HEAPU32 should definitely be included, how did I miss that?", rather than or "oops, this shouldn't be included"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry for the unclear communication. Change is correct.
Exactly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the confusion; I definitely initially interpreted it the other way 😅 But glad to know I wasn't making a stupid mistake!