René's URL Explorer Experiment


Title: Clarify undefined behavior when target == source in PMatrix::mult docs · Issue #1591 · processing/processing4 · GitHub

Open Graph Title: Clarify undefined behavior when target == source in PMatrix::mult docs · Issue #1591 · processing/processing4

X Title: Clarify undefined behavior when target == source in PMatrix::mult docs · Issue #1591 · processing/processing4

Description: Hi folks! I know this won't be top priority, but this issue caused me to spin my wheels for a couple days straight since it was one of those times where all my logic "looked right" after many passes so I figured it might throw some other...

Open Graph Description: Hi folks! I know this won't be top priority, but this issue caused me to spin my wheels for a couple days straight since it was one of those times where all my logic "looked right" after many passe...

X Description: Hi folks! I know this won't be top priority, but this issue caused me to spin my wheels for a couple days straight since it was one of those times where all my logic "looked right" af...

Opengraph URL: https://github.com/processing/processing4/issues/1591

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Clarify undefined behavior when target == source in PMatrix::mult docs","articleBody":"Hi folks!\n\nI know this won't be top priority, but this issue caused me to spin my wheels for a couple days straight since it was one of those times where all my logic \"looked right\" after many passes so I figured it might throw some other beginners for a loop.\n\nI'd like to request additional clarity be added to the javadoc here:\n\nhttps://github.com/processing/processing4/blob/cd50e02e5a8cdf41f8bb165b6ebd85feeeeac543/core/src/processing/core/PMatrix.java#L165-L171\n\nSpecifically, I think that it should be stated explicitly that behavior is undefined when `target == source`. Since no warning was offered I did not expect for the contents of `source` to still be in the process of being read by the time that `target` is actually being populated within this method but it appears something like that is happening (my expectation was that the contents of `source` would have probably been extracted into local variables once at the beginning since there are so few elements in a `PVector` and then loaded into `target` once at the end after performing intermediate computations). Ideally, if there is no utility in allowing `target == source` whatsoever, this case should throw an exception but, alternatively, additional doc clarity would have been a noninvasive way of preventing prolonged confusion in my case. Also I think \"`target will then be the matrix returned`\" is a typo since this method is returning a `PVector`.\n\n[Here is an example sketch](https://gist.github.com/AndrewMatzureff/6700a271d6b34277cffae633659562a9) you can use to observe the undocumented undefined behavior. Move the mouse around without pressing anything to observe normal behavior when simply passing `target = null`. Similarly, pressing Right-click will set `target` equal to a `PVector` reference which is fixed across `draw()` frames--the outcome of which is normal behavior. Pressing Left-click will pass `target = source` triggering the undefined behavior.\n\nThanks!","author":{"url":"https://github.com/AndrewMatzureff","@type":"Person","name":"AndrewMatzureff"},"datePublished":"2026-10-30T23:57:04Z","url":"https://github.com/processing/processing4/issues/1591"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6b1f5a2f-adbd-cb83-c610-80145300be4c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idABFC:1F0299:FB7B6:15A523:6B05F78B
html-safe-nonce46056f5a646f26766c38f8281a0ce4a5dce65e716bf1c37650285e6a532e57e2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkZDOjFGMDI5OTpGQjdCNjoxNUE1MjM6NkIwNUY3OEIiLCJ2aXNpdG9yX2lkIjoiNTMxMDgwNjkzMjUxMTM4OTU4MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace4f9cffd9b4b3743a89278ffd6dcb962feef3c13b329516b978efce61d9c1232
hovercard-subject-tagissue:6128842778
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/processing/processing4/1591/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a4513c1c7cfa7fd73a265abbe8556b79d05474d61a91c008c935f9eea4a02d63/processing/processing4/issues/1591
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a4513c1c7cfa7fd73a265abbe8556b79d05474d61a91c008c935f9eea4a02d63/processing/processing4/issues/1591
og:image:altHi folks! I know this won't be top priority, but this issue caused me to spin my wheels for a couple days straight since it was one of those times where all my logic "looked right" after many passe...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAndrewMatzureff
hostnamegithub.com
expected-hostnamegithub.com
Nonec214754a6652274794ed4e054a7b71be999d69843f103ba54893001d45010ece
turbo-cache-controlno-preview
go-importgithub.com/processing/processing4 git https://github.com/processing/processing4.git
octolytics-dimension-user_id1617169
octolytics-dimension-user_loginprocessing
octolytics-dimension-repository_id844382769
octolytics-dimension-repository_nwoprocessing/processing4
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id844382769
octolytics-dimension-repository_network_root_nwoprocessing/processing4
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
release7d164a4e71eb333b2b17fd5b17e18efb7855505c
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/processing/processing4/issues/1591#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessing%2Fprocessing4%2Fissues%2F1591
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessing%2Fprocessing4%2Fissues%2F1591
Sign uphttps://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=processing%2Fprocessing4
Reloadhttps://github.com/processing/processing4/issues/1591
Reloadhttps://github.com/processing/processing4/issues/1591
Reloadhttps://github.com/processing/processing4/issues/1591
processinghttps://github.com/processing
processing4https://github.com/processing/processing4
Codehttps://github.com/processing/processing4
Issues265 (265)https://github.com/processing/processing4/issues
Pull requests22 (22)https://github.com/processing/processing4/pulls
Actionshttps://github.com/processing/processing4/actions
Projectshttps://github.com/processing/processing4/projects
Wikihttps://github.com/processing/processing4/wiki
Security and qualityhttps://github.com/processing/processing4/security
Insightshttps://github.com/processing/processing4/insights
https://github.com/processing/processing4
New issuehttps://github.com/login?return_to=https://github.com/processing/processing4/issues/1591
New issuehttps://github.com/login?return_to=https://github.com/processing/processing4/issues/1591
Clarify undefined behavior when target == source in PMatrix::mult docshttps://github.com/processing/processing4/issues/1591#top
https://github.com/AndrewMatzureff
AndrewMatzureffhttps://github.com/AndrewMatzureff
on Oct 30, 2026https://github.com/processing/processing4/issues/1591#issue-6128842778
processing4/core/src/processing/core/PMatrix.javahttps://github.com/processing/processing4/blob/cd50e02e5a8cdf41f8bb165b6ebd85feeeeac543/core/src/processing/core/PMatrix.java#L165-L171
cd50e02https://github.com/processing/processing4/commit/cd50e02e5a8cdf41f8bb165b6ebd85feeeeac543
Here is an example sketchhttps://gist.github.com/AndrewMatzureff/6700a271d6b34277cffae633659562a9
Sign up for freehttps://github.com/signup?return_to=https://github.com/processing/processing4/issues/1591
Sign in to commenthttps://github.com/login?return_to=https://github.com/processing/processing4/issues/1591
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.