optimize build size by letting users choose core function(s)(ality)

Open
#357 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
clojure
Domain
build-system

Research direction

Start with namespaces.cljc and inspect how its top-level core namespace data structures are consumed. Then review addons.future for the existing opt-in pattern. Done should allow users to select or remove core functionality and optionally include future functionality while reducing the resulting build size.

Written by the indexing model from the issue text.

Description

CLJS

I think the idea that @ikitommi has:

The namespaces.cljc file contains top-level datastructures with all the core namespaces in it. Those should be lifted into a function and then users can do a select-keys or dissoc on those namespaces, and making a top-level value out of that. That should help.

Also, we have an addons.future namespace to optionally include future functionality. That's also a way to get access to opt-in functionality.

Dominant language
Clojure
Stars
1.4k
Forks
109
Avg merge
1m
Merged PRs (30d)
26

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from babashka/sci

All issues in babashka/sci

Similar issues

More Clojure issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.