Title: [Task] Replace Grisu2 with Xjb for float-to-string conversion · Issue #3012 · AssemblyScript/assemblyscript · GitHub
Open Graph Title: [Task] Replace Grisu2 with Xjb for float-to-string conversion · Issue #3012 · AssemblyScript/assemblyscript
X Title: [Task] Replace Grisu2 with Xjb for float-to-string conversion · Issue #3012 · AssemblyScript/assemblyscript
Description: AssemblyScript currently uses a pretty old Grisu2-based algorithm for f32/f64 to string conversion. Will be great to rewrite this using Zmij xjb, which is a newer shortest-roundtrip algorithm and should be much faster and probably more p...
Open Graph Description: AssemblyScript currently uses a pretty old Grisu2-based algorithm for f32/f64 to string conversion. Will be great to rewrite this using Zmij xjb, which is a newer shortest-roundtrip algorithm and s...
X Description: AssemblyScript currently uses a pretty old Grisu2-based algorithm for f32/f64 to string conversion. Will be great to rewrite this using Zmij xjb, which is a newer shortest-roundtrip algorithm and s...
Opengraph URL: https://github.com/AssemblyScript/assemblyscript/issues/3012
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Task] Replace Grisu2 with Xjb for float-to-string conversion","articleBody":"AssemblyScript currently uses a pretty old `Grisu2`-based algorithm for `f32`/`f64` to string conversion. Will be great to rewrite this using [~~`Zmij`~~](https://github.com/vitaut/zmij) [`xjb`](https://github.com/xjb714/xjb), which is a newer shortest-roundtrip algorithm and should be [much faster](https://github.com/vitaut/zmij?tab=readme-ov-file#performance) and probably more precise in some rare cases. SIMD should be optional.\n\nCurrent implementation: https://github.com/AssemblyScript/assemblyscript/blob/main/std/assembly/util/number.ts#L729\nTests: https://github.com/AssemblyScript/assemblyscript/blob/main/tests/compiler/std/string.ts#L736\n\n~~C++ Reference: https://github.com/vitaut/zmij~~\n~~Rust port: https://github.com/dtolnay/zmij~~\nC++ Reference: https://github.com/xjb714/xjb","author":{"url":"https://github.com/MaxGraey","@type":"Person","name":"MaxGraey"},"datePublished":"2026-04-10T23:49:22Z","url":"https://github.com/AssemblyScript/assemblyscript/issues/3012"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:554baa86-6066-82a0-c38b-a206566c0edc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D0D0:2148FB:2A69DFB:39E552D:6B0051B5 |
| html-safe-nonce | 8b441e7e2f1cced69cbadf9ff60cc83ed154a9de3dc1c513d6036e4011a78800 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMEQwOjIxNDhGQjoyQTY5REZCOjM5RTU1MkQ6NkIwMDUxQjUiLCJ2aXNpdG9yX2lkIjoiNTU2MzAxNzUwMTAxMDMxNzc0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5adb79ca3310f143b64607c5f75ffbc5821c4e6273dc98e2b51023e17c4249b5 |
| hovercard-subject-tag | issue:4242239412 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/AssemblyScript/assemblyscript/3012/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f5db3aa8b48478aa0157b755d71fbdd4bf1c95c340dbb34ef5e57f6fdef3db5b/AssemblyScript/assemblyscript/issues/3012 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f5db3aa8b48478aa0157b755d71fbdd4bf1c95c340dbb34ef5e57f6fdef3db5b/AssemblyScript/assemblyscript/issues/3012 |
| og:image:alt | AssemblyScript currently uses a pretty old Grisu2-based algorithm for f32/f64 to string conversion. Will be great to rewrite this using Zmij xjb, which is a newer shortest-roundtrip algorithm and s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MaxGraey |
| hostname | github.com |
| expected-hostname | github.com |
| None | f420f4996e6b1ff1ccd6d7683f8134f4b5f0f8a50124c210dbfe7490e5644abb |
| turbo-cache-control | no-preview |
| go-import | github.com/AssemblyScript/assemblyscript git https://github.com/AssemblyScript/assemblyscript.git |
| octolytics-dimension-user_id | 28916798 |
| octolytics-dimension-user_login | AssemblyScript |
| octolytics-dimension-repository_id | 105138356 |
| octolytics-dimension-repository_nwo | AssemblyScript/assemblyscript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 105138356 |
| octolytics-dimension-repository_network_root_nwo | AssemblyScript/assemblyscript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 26e00df917aba0f128135dc073ea0c5e33a70d40 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width