Skip to content

Conversation

@ssoelvsten
Copy link
Collaborator

@ssoelvsten ssoelvsten commented Oct 15, 2025

Some preliminary clean up as I'm looking at adding nomadic modules throughout the runtime ( #66 ).

@ssoelvsten ssoelvsten added this to the Modules milestone Oct 15, 2025
@ssoelvsten ssoelvsten self-assigned this Oct 15, 2025
@ssoelvsten ssoelvsten added 📁 ./rt Changes and additions to the runtime ✨ code quality Uncle Bob would be proud labels Oct 15, 2025
@ssoelvsten ssoelvsten force-pushed the fork/dev/rt-cleanup branch 3 times, most recently from 7e4e426 to 9373972 Compare October 20, 2025 15:05
@ssoelvsten ssoelvsten changed the title Minor runtime cleanup rt/ cleanup Oct 23, 2025
This brings the name closer to the actual meaning of this construction.
This way, is is less likely one by accident exports the wrong
function under a different name
Trailing whitespaces, missing semi colons, missing trailing comma on objects,
odd comment structur, outcommented dead code, odd order of functions, ...
Trailing whitespace, missing semi colons, hard to understand comments, ...
Trailing whitespace, missing semi colons, odd comments, dead code, ...
There is no reason to have an inconsistent access to `scheduer.__currentThread`;
one may as well just access it directly (as is done in the Runtime Monitor).
Furthermore, why the `__` when the variable is treated as public anyways?
This function is only called in one placed with these arguments given. This is
essentially dead code.
There seems to be no reason why we have to have an O(n) unblocking logic.
Furthermore, this is much cleaner.
This much better conveys the meaning of this argument, especially from the call site
This allows us later to store an initialised module. For now, it cleans up the scheduler
by decreasing the number of responsibilities.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ code quality Uncle Bob would be proud 📁 ./rt Changes and additions to the runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant