René's URL Explorer Experiment


Title: NaN vs -NaN (negative NaN) on macOS/arm64 · Issue #2909 · AssemblyScript/assemblyscript · GitHub

Open Graph Title: NaN vs -NaN (negative NaN) on macOS/arm64 · Issue #2909 · AssemblyScript/assemblyscript

X Title: NaN vs -NaN (negative NaN) on macOS/arm64 · Issue #2909 · AssemblyScript/assemblyscript

Description: Bug description Strange issue found while working on something unrelated. It seems that in certain cases, the compiler creates NaN on some platforms, and -NaN on others. This can lead to test failures. I encountered it first here: #2908 ...

Open Graph Description: Bug description Strange issue found while working on something unrelated. It seems that in certain cases, the compiler creates NaN on some platforms, and -NaN on others. This can lead to test failu...

X Description: Bug description Strange issue found while working on something unrelated. It seems that in certain cases, the compiler creates NaN on some platforms, and -NaN on others. This can lead to test failu...

Opengraph URL: https://github.com/AssemblyScript/assemblyscript/issues/2909

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NaN vs -NaN (negative NaN) on macOS/arm64","articleBody":"### Bug description\n\nStrange issue found while working on something unrelated.  It seems that in certain cases, the compiler creates `NaN` on some platforms, and `-NaN` on others.  This can lead to test failures.\n\nI encountered it first here:\nhttps://github.com/AssemblyScript/assemblyscript/pull/2908#issuecomment-2640748643\n\nBut a search found that we've seen it before.\nhttps://github.com/AssemblyScript/assemblyscript/pull/2352/files/403cae846a804c829b70bd2de388c3286cfdb899?diff=unified\u0026w=0#r931976127\n\n(wait about 5-10 seconds for GitHub to jump to the comment thread on that last link)\n\nI'm not sure if this an macOS issue or an arm64 issue, but in both cases that was the platform.  It does not occur on Linux or Windows x64.\n\nWriting this up mostly so it doesn't get lost.  I haven't found any practical implications yet.  Some opinions about `NaN` vs `-NaN` seems to think it's not very important: https://stackoverflow.com/questions/21349847/positive-vs-negative-nans\n\nPerhaps already fixed by a newer Binaryen implementation? 🤷 \n\n### Steps to reproduce\n\nOn a macOS/arm64 machine:\n\n```\nnpm run test:compiler -- std/math --create\ngit diff\n```\n\nObserve a bunch of changes like this:\n\n```diff\n-  f64.const -nan:0x8000000000000\n+  f64.const nan:0x8000000000000\n```\n\n### AssemblyScript version\n\nv0.27.32","author":{"url":"https://github.com/mattjohnsonpint","@type":"Person","name":"mattjohnsonpint"},"datePublished":"2025-02-06T20:18:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/2909/assemblyscript/issues/2909"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c7fa418f-0b64-0f90-dbee-b6b7232aabec
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEB88:BE940:4FC87E6:6B5DF2A:696E0882
html-safe-nonceb17828d6a6c35455e4bacc1152ffa741a04ea42d6c33b6588105f2f3a49228f3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjg4OkJFOTQwOjRGQzg3RTY6NkI1REYyQTo2OTZFMDg4MiIsInZpc2l0b3JfaWQiOiI3OTM0NjAzNzMyMjUwODA5NjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac98c12eafd89e3b5f51f17aa8390a704688d84abbdebee20f0329f9ae8c18a453
hovercard-subject-tagissue:2836498541
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/AssemblyScript/assemblyscript/2909/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e420c97a63a979cdfd74ddce31e3d2fa3e3926d4d6054f2085e5f811b70e5808/AssemblyScript/assemblyscript/issues/2909
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e420c97a63a979cdfd74ddce31e3d2fa3e3926d4d6054f2085e5f811b70e5808/AssemblyScript/assemblyscript/issues/2909
og:image:altBug description Strange issue found while working on something unrelated. It seems that in certain cases, the compiler creates NaN on some platforms, and -NaN on others. This can lead to test failu...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemattjohnsonpint
hostnamegithub.com
expected-hostnamegithub.com
None9b5131b207ddd175abf059a848d5f4302ec0606b02211b989013be49cf08593e
turbo-cache-controlno-preview
go-importgithub.com/AssemblyScript/assemblyscript git https://github.com/AssemblyScript/assemblyscript.git
octolytics-dimension-user_id28916798
octolytics-dimension-user_loginAssemblyScript
octolytics-dimension-repository_id105138356
octolytics-dimension-repository_nwoAssemblyScript/assemblyscript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id105138356
octolytics-dimension-repository_network_root_nwoAssemblyScript/assemblyscript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef8590a63bfc8093b241930ca57d536c9a50f9680
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/AssemblyScript/assemblyscript/issues/2909#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FAssemblyScript%2Fassemblyscript%2Fissues%2F2909
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FAssemblyScript%2Fassemblyscript%2Fissues%2F2909
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=AssemblyScript%2Fassemblyscript
Reloadhttps://github.com/AssemblyScript/assemblyscript/issues/2909
Reloadhttps://github.com/AssemblyScript/assemblyscript/issues/2909
Reloadhttps://github.com/AssemblyScript/assemblyscript/issues/2909
AssemblyScript https://github.com/AssemblyScript
assemblyscripthttps://github.com/AssemblyScript/assemblyscript
Please reload this pagehttps://github.com/AssemblyScript/assemblyscript/issues/2909
Notifications https://github.com/login?return_to=%2FAssemblyScript%2Fassemblyscript
Fork 682 https://github.com/login?return_to=%2FAssemblyScript%2Fassemblyscript
Star 17.8k https://github.com/login?return_to=%2FAssemblyScript%2Fassemblyscript
Code https://github.com/AssemblyScript/assemblyscript
Issues 175 https://github.com/AssemblyScript/assemblyscript/issues
Pull requests 17 https://github.com/AssemblyScript/assemblyscript/pulls
Actions https://github.com/AssemblyScript/assemblyscript/actions
Wiki https://github.com/AssemblyScript/assemblyscript/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/AssemblyScript/assemblyscript/security
Please reload this pagehttps://github.com/AssemblyScript/assemblyscript/issues/2909
Insights https://github.com/AssemblyScript/assemblyscript/pulse
Code https://github.com/AssemblyScript/assemblyscript
Issues https://github.com/AssemblyScript/assemblyscript/issues
Pull requests https://github.com/AssemblyScript/assemblyscript/pulls
Actions https://github.com/AssemblyScript/assemblyscript/actions
Wiki https://github.com/AssemblyScript/assemblyscript/wiki
Security https://github.com/AssemblyScript/assemblyscript/security
Insights https://github.com/AssemblyScript/assemblyscript/pulse
New issuehttps://github.com/login?return_to=https://github.com/AssemblyScript/assemblyscript/issues/2909
New issuehttps://github.com/login?return_to=https://github.com/AssemblyScript/assemblyscript/issues/2909
NaN vs -NaN (negative NaN) on macOS/arm64https://github.com/AssemblyScript/assemblyscript/issues/2909#top
bughttps://github.com/AssemblyScript/assemblyscript/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/mattjohnsonpint
https://github.com/mattjohnsonpint
mattjohnsonpinthttps://github.com/mattjohnsonpint
on Feb 6, 2025https://github.com/AssemblyScript/assemblyscript/issues/2909#issue-2836498541
#2908 (comment)https://github.com/AssemblyScript/assemblyscript/pull/2908#issuecomment-2640748643
https://github.com/AssemblyScript/assemblyscript/pull/2352/files/403cae846a804c829b70bd2de388c3286cfdb899?diff=unified&w=0#r931976127https://github.com/AssemblyScript/assemblyscript/pull/2352/files/403cae846a804c829b70bd2de388c3286cfdb899?diff=unified&w=0#r931976127
https://stackoverflow.com/questions/21349847/positive-vs-negative-nanshttps://stackoverflow.com/questions/21349847/positive-vs-negative-nans
bughttps://github.com/AssemblyScript/assemblyscript/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.