Improve the ArkEmscripten playground
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- javascript, wasm
Research direction
Start by inspecting the current ArkEmscripten playground and the JavaScript output-capture code shown in the issue. Review how the playground is compiled and how compilation is currently tested in CI. The work is done when the playground has improved UI/UX, better output capture, additional DOM and JavaScript utilities, and tests covering its behavior.
Written by the indexing model from the issue text.
Description
Is your feature request related to a problem?
The current playground is pretty bare, and the current method of capturing what's printed is not that good (though I have no clue how to make it better):
log = console.log;
var can_capture = false;
window.console.log = (message) => {
log(message);
if (can_capture)
document.getElementById("output").value += message + "\n";
};
var Module = {
onRuntimeInitialized: function () {
document.getElementById("run").addEventListener("click", () => {
document.getElementById("output").value = "";
const code = document.getElementById("code").value;
try {
can_capture = true;
Module.run(code);
} catch (e) {
document.getElementById("output").value = e;
}
can_capture = false;
});
}
};
Playground:
Describe the solution you would like
- Improve the UI/UX of the playground (without having to add Vue, React or other huge libraries)
- Add more utils / builtins to ArkEmscripten to play with DOM and JavaScript values / functions
- Find a better way to get ArkScript output
- Add more tests (currently not tested in the CI, only the compilation is tested)
Is it a big modification to the language? Leave it if you don't know
- Breaking change
- Compiler/syntax modifications
- Runtime modifications (standard library, modules, packages...)
- Dominant language
- C++
- Stars
- 729
- Forks
- 54
- Avg merge
- 4h 8m
- Merged PRs (30d)
- 2
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ArkScript-lang/Ark
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
ArkScript-lang/Ark#712 · 2 comments ·
-
🤔 help wanted ark/repl documentation enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
ArkScript-lang/Ark#711 ·
-
❗️ priority/low 👷 ci 🤔 help wanted github_actions
Difficulty 5/5 Over a week Newbie friendliness 30/100
ArkScript-lang/Ark#708 ·
-
Link Checker Report Openautomated issue report
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
ArkScript-lang/Ark#700 ·
-
❗️ priority/low 👷 ci 🧪 tests
Difficulty 4/5 3-5 days Newbie friendliness 35/100
ArkScript-lang/Ark#506 ·
All issues in ArkScript-lang/Ark
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
Component: GLib
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Mute ydb/tests/functional/dstool/test_canonical_requests.py.Test.test_group_take_snapshot in main Openai_reviewed
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
ydb-platform/ydb#53974 · 3 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
google/libultrahdr#485 ·