Skip to content

DOES NOT WORK. Non-working stdin implementation. #1296

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lupino3
Copy link
Member

@lupino3 lupino3 commented Mar 30, 2025

This is how a naive web-based stdin implementation would look like, except that the web worker doesn't have a way of "waiting" for the data to come from the UI.

A better solution would probably be event-based,
but I am unsure if it can be implemented without
changing more deeply the simulator logic and the way it interacts with I/O.

This is how a naive web-based stdin implementation would look like,
except that the web worker doesn't have a way of "waiting" for the data to come from the UI.

A better solution would probably be event-based,
but I am unsure if it can be implemented without
changing more deeply the simulator logic and the way
it interacts with I/O.
Copy link

codecov bot commented Mar 30, 2025

Codecov Report

Attention: Patch coverage is 0% with 15 lines in your changes missing coverage. Please review.

Project coverage is 52.29%. Comparing base (5aba6b3) to head (4a77d84).

Files with missing lines Patch % Lines
src/main/java/org/edumips64/client/Simulator.java 0.00% 6 Missing ⚠️
src/main/java/org/edumips64/client/Worker.java 0.00% 5 Missing ⚠️
.../main/java/org/edumips64/client/ResultFactory.java 0.00% 4 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1296   +/-   ##
=========================================
  Coverage     52.29%   52.29%           
  Complexity     1468     1468           
=========================================
  Files           252      252           
  Lines         10261    10261           
  Branches       1105     1105           
=========================================
  Hits           5366     5366           
  Misses         4572     4572           
  Partials        323      323           
Files with missing lines Coverage Δ
src/main/java/org/edumips64/client/Result.java 0.00% <ø> (ø)
.../main/java/org/edumips64/client/ResultFactory.java 0.00% <0.00%> (ø)
src/main/java/org/edumips64/client/Worker.java 0.00% <0.00%> (ø)
src/main/java/org/edumips64/client/Simulator.java 0.00% <0.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5aba6b3...4a77d84. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@lupino3
Copy link
Member Author

lupino3 commented Mar 31, 2025

@davidepatti suggests to implement a new CPU state to represent waiting for the input, which makes total sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant