Skip to content

feat: add limb intrinsics for BigInt foundation#184

Draft
Kroisse wants to merge 1 commit intomainfrom
feat/limb-intrinsics
Draft

feat: add limb intrinsics for BigInt foundation#184
Kroisse wants to merge 1 commit intomainfrom
feat/limb-intrinsics

Conversation

@Kroisse
Copy link
Owner

@Kroisse Kroisse commented Jan 6, 2026

No description provided.

Prepare infrastructure for arbitrary precision integer support:

- Update tree-sitter-tribute to v0.4.2 (adds #(T, T) tuple type syntax)
- Add I32/I64 types to resolver for low-level arithmetic
- Create lib/std/runtime/limb.trb with limb intrinsics:
  - __limb_add: addition with carry
  - __limb_sub: subtraction with borrow
  - __limb_mul: wide multiplication (32×32 → 64)
  - __limb_div: wide division (64÷32 → 32)
  - __limb_cmp: unsigned comparison

Note: wasm backend implementation pending. Also need to decide on
Array type or builtin BigInt representation before full implementation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 6, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Kroisse Kroisse self-assigned this Jan 6, 2026
@Kroisse Kroisse removed their assignment Feb 20, 2026
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