-
Notifications
You must be signed in to change notification settings - Fork 3
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
Second version of the Leios simulator #6
Conversation
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.
This goes in the right direction, although I would personally have taken some shortcuts for the sake of simplifying the whole model, as it's going to be thrown away. Also, I would have tried to minimise the monadic code, as we don't really care about efficiency and concurrency: Just modeling a single pipeline for a single node is enough right now.
I would like to see the "code in action", eg. running in a terminal or connected to the front-end, to make sure it's demonstrating what we care about.
Also, I would suggest to clean up existing code that's no more relevant |
I have tried to write a small test for
This is a direct translation of the comment for |
Feel free to check c592284 I still need to update the queue, but now the logic got more complex since that information is not in the EBs anymore. |
Thanks! I'll incorporate this! |
6b605eb
to
fd33469
Compare
It currently features a clock and nodes that trace the slot number.
... and hook it up to the simulation.
via priority queues.
This has influence on the how long it takes for a node to receive a message.
This commit incorporates parameters `L`, λ.
- Use the Bootstrap library. - Add buttons to start and stop the simulation.
This commit also: - Changes the order of the parameters. `L` appears before λ since the latter is defined in terms of the former.
…s field - Blocks might arrive not in slot order, therefore a scatter plot is more suitable. - `_L` is now being used consistently to access the `L` value.
- Function 'nextSlot' would return slot 0 even if the tick function was paused (waiting on a TVar). - I did not use the set size for IBs, which was part of the parameters. I was using `gIBSize`.
Gave up after a while as there are too many moving parts, and setting up networking and permissions correctly is a major PITA
* added tooltip character * link CSS * consistent ids for inputs
2fd1f88
to
ad37549
Compare
This PR is a work in progress and is intended to gather feedback.