builtins generator: allow putting builtins into subsets #857

Open
opened 2025-06-10 22:35:34 +00:00 by jade · 1 comment
Owner

One of the pieces of feedback that was regrettably blocking https://gerrit.lix.systems/c/lix/+/2975 is that adding a pile of bit builtins would further fill up the builtins namespace. Secondly we have a problem where builtins should really only be used by nixpkgs lib, at least for new builtins that should be used through a polyfill.

For example, we could have builtins.bit.bitShiftLeft.

I don't know how to force the second, but we probably want the capability to namespace builtins anyhow. Maybe builtins.privateForNixpkgsLibUseOnly or something, which requires this anyway.

One of the pieces of feedback that was *regrettably* blocking https://gerrit.lix.systems/c/lix/+/2975 is that adding a pile of bit builtins would further fill up the builtins namespace. Secondly we have a problem where builtins should really only be used by nixpkgs lib, at least for new builtins that should be used through a polyfill. For example, we could have `builtins.bit.bitShiftLeft`. I don't know how to force the second, but we probably want the capability to namespace builtins anyhow. Maybe `builtins.privateForNixpkgsLibUseOnly` or something, which requires this anyway.
rbt was assigned by jade 2025-06-10 22:35:39 +00:00
Member

This issue was mentioned on Gerrit on the following CLs:

  • comment in cl/2975 ("language: add bit shift builtins")
<!-- GERRIT_LINKBOT: {"cls": [{"backlink": "https://gerrit.lix.systems/c/lix/+/2975", "number": 2975, "kind": "comment"}], "cl_meta": {"2975": {"change_title": "language: add bit shift builtins"}}} --> This issue was mentioned on Gerrit on the following CLs: * comment in [cl/2975](https://gerrit.lix.systems/c/lix/+/2975) ("language: add bit shift builtins")
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#857
No description provided.