Skip to content

Conversation

@omfj
Copy link
Contributor

@omfj omfj commented Nov 10, 2025

Adds a now() builtin function that returns the time since unix epoch in nanoseconds as SmallBigInt.

@omfj
Copy link
Contributor Author

omfj commented Nov 10, 2025

Also, is there a way for me to return a u128? I am using u64, because I couldn't figure out how to return a u128 as a BigInt.

@aapoalas
Copy link
Member

Also, is there a way for me to return a u128? I am using u64, because I couldn't figure out how to return a u128 as a BigInt.

It might be that we're missing a from_u128(&mut Agent, NoGcScope) API for BigInt: do you want to try adding it? It should mostly be just a repetition of from_i64.

aapoalas
aapoalas previously approved these changes Nov 11, 2025
Copy link
Member

@aapoalas aapoalas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@aapoalas aapoalas marked this pull request as ready for review November 11, 2025 04:51
@omfj omfj force-pushed the feat/now-builtin branch 2 times, most recently from e8e35f0 to 7f5e8be Compare November 11, 2025 08:42
@omfj omfj requested a review from aapoalas November 11, 2025 12:41
@aapoalas aapoalas merged commit be67f26 into trynova:main Nov 11, 2025
8 checks 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.

2 participants