Skip to content
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

2024 refactor #13

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
Draft

2024 refactor #13

wants to merge 9 commits into from

Conversation

free-ghz
Copy link
Owner

I aim to solve #7 and #12 in here. Maybe more on the way.

Changes

  • switch to ECMAScript 6 modules (instead of common.js)
  • update to newest Express-handlebars
  • keep all pages in memory and query them from there instead of disk

common.js is old now i think
Potentially controversial, but my usecase has changed a bit. Read all
.dream files from disk at startup, store them in some maps, and read
them from there until the next restart.

This breaks stats and the "transpiler", but the end-user experience
should be the same.
@free-ghz free-ghz self-assigned this Jan 22, 2024
@free-ghz free-ghz marked this pull request as draft January 22, 2024 21:44
Split rows into tokens upon reading them. Tokens represent grime, links,
letters, whitespace, commands.
Instead of finding tokens again once per page read, use those that have
already been defined.

Disables every justifier except for "center" because they need to be rewritten.
It didn't look good, plus i don't want to bother with stateful caps. As
in, would have to depend on the previous token, etc. No thanks - better
to do letter per letter replacement only.
"Documentation". Nevertheless, update it.
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