Skip to content

Conversation

@Light2Dark
Copy link
Contributor

@Light2Dark Light2Dark commented Oct 14, 2025

📝 Summary

CleanShot 2025-10-14 at 12 55 09

CleanShot 2025-10-14 at 12 55 30

note that floats with big ints don't work well with tables, so I convert them to strings (which is the default rendering if using mo.plain)

before:
CleanShot 2025-10-14 at 12 56 50

after:
CleanShot 2025-10-14 at 16 14 13

🔍 Description of Changes

📋 Checklist

  • I have read the contributor guidelines.
  • For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on Discord, or the community discussions (Please provide a link if applicable).
  • I have added tests for the changes made.
  • I have run the code and verified that it works as expected.

@vercel
Copy link

vercel bot commented Oct 14, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
marimo-docs Ready Ready Preview Comment Oct 14, 2025 3:17pm

@Light2Dark Light2Dark marked this pull request as ready for review October 14, 2025 13:20
@Light2Dark Light2Dark requested a review from manzt as a code owner October 14, 2025 13:20
mscolnick
mscolnick previously approved these changes Oct 14, 2025
Copy link
Contributor

@mscolnick mscolnick left a comment

Choose a reason for hiding this comment

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

nice! looks great

reviver?: (this: any, key: string, value: any) => any,
): unknown;

rawJSON(value: string): any;
Copy link
Contributor

Choose a reason for hiding this comment

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

is this better as rawJSON(value: string): unknown?

mscolnick
mscolnick previously approved these changes Oct 14, 2025
const bigint = 2 ** 64;
const value = `text/plain+bigint:${bigint}`;
const result = getCopyValue(value);
expect(result).toMatchInlineSnapshot(`"18446744073709552000"`);
Copy link
Contributor

Choose a reason for hiding this comment

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

this seems rounded 2 ** 64

Copy link
Contributor

Choose a reason for hiding this comment

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

it should be 18446744073709551616

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops, yeah, I think the test is inaccurate because 2 ** 64 is going to be rounded. let me think of a way

@mscolnick mscolnick merged commit 008599b into main Oct 15, 2025
45 of 74 checks passed
@mscolnick mscolnick deleted the sham/support-bigints branch October 15, 2025 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants