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

Misc since jan 2022 #39

Merged
merged 9 commits into from
Mar 19, 2024
Merged

Misc since jan 2022 #39

merged 9 commits into from
Mar 19, 2024

Conversation

kanaka
Copy link
Owner

@kanaka kanaka commented Mar 19, 2024

No description provided.

Generate miniMAL-core.js file that exports the core lib code to
evaluate. Load and evaluate that file automatically in the miniMAL
executor. use the top-levle miniMAL-core.js to generate the
web/miniMAL-core.js file with a simple sed to replace the exports with
core_ns variable.
Also in stepB_node.js, normalize core function lambda param style to
(...a) that other steps use since it no longer seems to help to go with
the (a,b) style.
Unfortunatley, the most recently published regpack npm module is 5.0.1
which results in some string escaping clobbering some of the code for
js1k mode. So add the regpack submodule that has version 5.0.3 which
doesn't have the problem.

Also, refer to new location of all web files under js/web/ from web
pages.
Add missing step0 file for cljs. Add step0 to python/Makefile so that it
is used (for tests/stats/etc).

Improve formatting of the STEPS variable for all three.
All:
- Implements a number of miscellaneous shrinks across all three
  implementations.
- Change "ARGS" command line parameter variable to "argv"
- Remove "load" definition and use "slurp -> read -> eval" instead (more
  efficient compressing)
- Update copyrights to 2024.

cljs:
- Drop lumo support and use nbb instead.
- Switch cljs full compilation mode to use shadow-cljs.
    - Add cljs/shadow-cljs.edn with builds for all steps.
    - By default use release mode in the Makefile which compiles into
      a standalone *.js file (although it's quite slow to build).
- add babashka vs shadow-cljs reader macros for core ns hoisting. During
  shrinking (which is only for nbb mode) sed out the regular :cljs
  reader macro.
- use nbb from cljs/node_modules (and 'npm install' during build if
  needed)

js:
- Remove JS jscrush rules (regpack is sufficient)
- Fix regpack node_module make dep
@kanaka kanaka merged commit e693223 into gh-pages Mar 19, 2024
1 check passed
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