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

Reorg builtins #1847

Merged
merged 67 commits into from
Oct 1, 2024
Merged

Reorg builtins #1847

merged 67 commits into from
Oct 1, 2024

Conversation

chriseth
Copy link
Member

No description provided.

@chriseth chriseth marked this pull request as ready for review September 30, 2024 12:48
@chriseth chriseth changed the base branch from main to format_number September 30, 2024 13:05
@@ -60,6 +59,23 @@ pub fn generate_glue_code<T: FieldElement>(
Ok(format!("{PREAMBLE}\n{glue}\n",))
}

const PREAMBLE: &str = r#"
Copy link
Member Author

Choose a reason for hiding this comment

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

will remove, this is from another pr

Base automatically changed from format_number to main September 30, 2024 13:08
Copy link
Collaborator

@onurinanc onurinanc left a comment

Choose a reason for hiding this comment

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

I haven't used ibig::Ibig before, just wondering why you prefer this over others, does this have a better performance?

@chriseth
Copy link
Member Author

We use it in powdr_number and it's quite small and still fast IMO

BUILTINS.get_or_init(|| {
[
(
"std::array::len",
Copy link
Collaborator

Choose a reason for hiding this comment

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

is std::convert::fe missing on purpose?

Copy link
Member Author

Choose a reason for hiding this comment

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

It was not working as it was written any way. Will be re-added in #1834

@chriseth chriseth added this pull request to the merge queue Oct 1, 2024
Merged via the queue into main with commit 4ed8845 Oct 1, 2024
14 checks passed
@chriseth chriseth deleted the reorg_builtins branch October 1, 2024 14:06
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.

3 participants