René's URL Explorer Experiment


Title: Rework neighbors API by tychedelia · Pull Request #253 · processing/libprocessing · GitHub

Open Graph Title: Rework neighbors API by tychedelia · Pull Request #253 · processing/libprocessing

X Title: Rework neighbors API by tychedelia · Pull Request #253 · processing/libprocessing

Description: Neighbor lists as per-particle attributes, like TouchDesigner's Neighbor POP. FIND_NEIGHBORS searches the grid once and writes neighbors (up to max indices, default 64) and neighbor_count onto each particle. Past max it keeps a spread sample rather than the nearest. NEIGHBOR reads those lists, so several reductions share one search (flocking does five). New: relative=True for a_j - a_i, and an INVERSE_SQUARE falloff. Particles never count themselves. grid= still does an exact search. Custom kernels just declare neighbors and neighbor_count, and apply binds them by name like position. p.apply(FIND_NEIGHBORS, grid=grid, radius=2.5) p.apply(NEIGHBOR, "velocity", out="alignment", op=SUM) p.apply(NEIGHBOR, "position", out="separation", op=SUM, relative=True, radius=1.2, falloff=INVERSE_SQUARE) Also adds processing_particles_find_neighbors to the FFI.

Open Graph Description: Neighbor lists as per-particle attributes, like TouchDesigner's Neighbor POP. FIND_NEIGHBORS searches the grid once and writes neighbors (up to max indices, default 64) and neighbor_count onto...

X Description: Neighbor lists as per-particle attributes, like TouchDesigner's Neighbor POP. FIND_NEIGHBORS searches the grid once and writes neighbors (up to max indices, default 64) and neighbor_count ...

Opengraph URL: https://github.com/processing/libprocessing/pull/253

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:862aa579-96d5-14e0-d847-50e775027d06
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id810C:1F5792:1344C5:19AF86:6B0608C5
html-safe-nonced44e8ac57cab9347e034c727926bfa47c350e8ab4c7245fd5468c6498511a07d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTBDOjFGNTc5MjoxMzQ0QzU6MTlBRjg2OjZCMDYwOEM1IiwidmlzaXRvcl9pZCI6IjU3MDY5ODIwMTMwNDM4Njk4OTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacea03c68ca511cdb3fb79834b07e566bf07aa7c516e6bbbbb0bb59204ed49ec9b
hovercard-subject-tagpull_request:4672669087
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/processing/libprocessing/pull/253/files
twitter:imagehttps://avatars.githubusercontent.com/u/10366310?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/10366310?s=400&v=4
og:image:altNeighbor lists as per-particle attributes, like TouchDesigner's Neighbor POP. FIND_NEIGHBORS searches the grid once and writes neighbors (up to max indices, default 64) and neighbor_count onto...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None47127d2f2009e000f3401193f8b4163109ac669adad0804de1ee0e6333ca7b9e
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/processing/libprocessing git https://github.com/processing/libprocessing.git
octolytics-dimension-user_id1617169
octolytics-dimension-user_loginprocessing
octolytics-dimension-repository_id1101329545
octolytics-dimension-repository_nwoprocessing/libprocessing
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1101329545
octolytics-dimension-repository_network_root_nwoprocessing/libprocessing
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release0760ea46a027ba5099cdef7abd54f27865eb4f44
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/processing/libprocessing/pull/253/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessing%2Flibprocessing%2Fpull%2F253%2Ffiles
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%2Flibprocessing%2Fpull%2F253%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=processing%2Flibprocessing
Reloadhttps://github.com/processing/libprocessing/pull/253/files
Reloadhttps://github.com/processing/libprocessing/pull/253/files
Reloadhttps://github.com/processing/libprocessing/pull/253/files
processinghttps://github.com/processing
libprocessinghttps://github.com/processing/libprocessing
Codehttps://github.com/processing/libprocessing
Issues67 (67)https://github.com/processing/libprocessing/issues
Pull requests10 (10)https://github.com/processing/libprocessing/pulls
Actionshttps://github.com/processing/libprocessing/actions
Projectshttps://github.com/processing/libprocessing/projects
Wikihttps://github.com/processing/libprocessing/wiki
Security and qualityhttps://github.com/processing/libprocessing/security
Insightshttps://github.com/processing/libprocessing/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fprocessing%2Flibprocessing%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fprocessing%2Flibprocessing%2Fissues%2Fnew%2Fchoose
catilachttps://github.com/catilac
python-particle-apihttps://github.com/processing/libprocessing/tree/python-particle-api
neighbor-listshttps://github.com/processing/libprocessing/tree/neighbor-lists
Conversation 1 https://github.com/processing/libprocessing/pull/253
Commits 1 https://github.com/processing/libprocessing/pull/253/commits
Checks 5 https://github.com/processing/libprocessing/pull/253/checks
Files changed https://github.com/processing/libprocessing/pull/253/files
Please reload this pagehttps://github.com/processing/libprocessing/pull/253/files
Rework neighbors API https://github.com/processing/libprocessing/pull/253/files#top
Show all changes 1 commit https://github.com/processing/libprocessing/pull/253/files
11372af Neighbor lists. tychedelia Sep 29, 2026 https://github.com/processing/libprocessing/pull/253/commits/11372af2bc56fb247bcceca433377d44ec5a1fee
Clear filters https://github.com/processing/libprocessing/pull/253/files
Please reload this pagehttps://github.com/processing/libprocessing/pull/253/files
Please reload this pagehttps://github.com/processing/libprocessing/pull/253/files
constants.rs https://github.com/processing/libprocessing/pull/253/files#diff-8cfa7fa4a8125fce40bd070ded3f733762323930f7f00e72c2be7e937486959a
lib.rs https://github.com/processing/libprocessing/pull/253/files#diff-0c768253ad3c8c71da78e15fe59b798eeedad6c26c4912c9e32f64e60ae704b9
constants.rs https://github.com/processing/libprocessing/pull/253/files#diff-2ca21283e75f380f75ee78781ccbb6d7ee295eec2b976f7c5abcce7965775c98
particles.rs https://github.com/processing/libprocessing/pull/253/files#diff-d40c224f5646debb0a72d422bb841e7f266b4ad0b447c04a72ff7678179926ec
particles.wesl https://github.com/processing/libprocessing/pull/253/files#diff-af9c10b05856682e28c49a4be80d6574494e8a91474192964870902ddde0bfcd
lib.rs https://github.com/processing/libprocessing/pull/253/files#diff-3a676e70510cf46e1ceca32379dff6cb444fc4c05c436b673adc97312aa9e2f4
emit.rs https://github.com/processing/libprocessing/pull/253/files#diff-b6ef4ccaa7a0065f071fd82e5b9eb72782f6b8889ac97b07857d8ff5b44b5542
mod.rs https://github.com/processing/libprocessing/pull/253/files#diff-ed32eeb98bee5d040da1dfa6e6358b943e3da65735edf78b4f4cb4f3df6d449d
neighbors_build.wgsl https://github.com/processing/libprocessing/pull/253/files#diff-68e1a9ca34e2bdd63b71968f25ebf89f2fee9607f43811e034574af8bc389b05
neighbors_reduce.wgsl https://github.com/processing/libprocessing/pull/253/files#diff-8a1494c900754e28e977df4371009da17688c3e1a18808d5f563cab872bc830e
mod.rs https://github.com/processing/libprocessing/pull/253/files#diff-2985319cb3a3a7a5ef0a5f8b3559632e248de5fb87cd9865c48273c2dfc7cf51
neighbors.rs https://github.com/processing/libprocessing/pull/253/files#diff-d40f37a070ca1948ece048bd17cfcddb6facc83288f1b579c76f91b27bb91d4a
crates/processing_core/src/constants.rshttps://github.com/processing/libprocessing/pull/253/files#diff-8cfa7fa4a8125fce40bd070ded3f733762323930f7f00e72c2be7e937486959a
View file https://github.com/processing/libprocessing/blob/11372af2bc56fb247bcceca433377d44ec5a1fee/crates/processing_core/src/constants.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/processing/libprocessing/pull/253/{{ revealButtonHref }}
https://github.com/processing/libprocessing/pull/253/files#diff-8cfa7fa4a8125fce40bd070ded3f733762323930f7f00e72c2be7e937486959a
https://github.com/processing/libprocessing/pull/253/files#diff-8cfa7fa4a8125fce40bd070ded3f733762323930f7f00e72c2be7e937486959a
https://github.com/processing/libprocessing/pull/253/files#diff-8cfa7fa4a8125fce40bd070ded3f733762323930f7f00e72c2be7e937486959a
crates/processing_ffi/src/lib.rshttps://github.com/processing/libprocessing/pull/253/files#diff-0c768253ad3c8c71da78e15fe59b798eeedad6c26c4912c9e32f64e60ae704b9
View file https://github.com/processing/libprocessing/blob/11372af2bc56fb247bcceca433377d44ec5a1fee/crates/processing_ffi/src/lib.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/processing/libprocessing/pull/253/{{ revealButtonHref }}
https://github.com/processing/libprocessing/pull/253/files#diff-0c768253ad3c8c71da78e15fe59b798eeedad6c26c4912c9e32f64e60ae704b9
https://github.com/processing/libprocessing/pull/253/files#diff-0c768253ad3c8c71da78e15fe59b798eeedad6c26c4912c9e32f64e60ae704b9
crates/processing_pyo3/src/constants.rshttps://github.com/processing/libprocessing/pull/253/files#diff-2ca21283e75f380f75ee78781ccbb6d7ee295eec2b976f7c5abcce7965775c98
View file https://github.com/processing/libprocessing/blob/11372af2bc56fb247bcceca433377d44ec5a1fee/crates/processing_pyo3/src/constants.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/processing/libprocessing/pull/253/{{ revealButtonHref }}
https://github.com/processing/libprocessing/pull/253/files#diff-2ca21283e75f380f75ee78781ccbb6d7ee295eec2b976f7c5abcce7965775c98
https://github.com/processing/libprocessing/pull/253/files#diff-2ca21283e75f380f75ee78781ccbb6d7ee295eec2b976f7c5abcce7965775c98
crates/processing_pyo3/src/particles.rshttps://github.com/processing/libprocessing/pull/253/files#diff-d40c224f5646debb0a72d422bb841e7f266b4ad0b447c04a72ff7678179926ec
View file https://github.com/processing/libprocessing/blob/11372af2bc56fb247bcceca433377d44ec5a1fee/crates/processing_pyo3/src/particles.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/processing/libprocessing/pull/253/{{ revealButtonHref }}
https://github.com/processing/libprocessing/pull/253/files#diff-d40c224f5646debb0a72d422bb841e7f266b4ad0b447c04a72ff7678179926ec
https://github.com/processing/libprocessing/pull/253/files#diff-d40c224f5646debb0a72d422bb841e7f266b4ad0b447c04a72ff7678179926ec
https://github.com/processing/libprocessing/pull/253/files#diff-d40c224f5646debb0a72d422bb841e7f266b4ad0b447c04a72ff7678179926ec
https://github.com/processing/libprocessing/pull/253/files#diff-d40c224f5646debb0a72d422bb841e7f266b4ad0b447c04a72ff7678179926ec
https://github.com/processing/libprocessing/pull/253/files#diff-d40c224f5646debb0a72d422bb841e7f266b4ad0b447c04a72ff7678179926ec
crates/processing_render/shaders/processing/particles.weslhttps://github.com/processing/libprocessing/pull/253/files#diff-af9c10b05856682e28c49a4be80d6574494e8a91474192964870902ddde0bfcd
View file https://github.com/processing/libprocessing/blob/11372af2bc56fb247bcceca433377d44ec5a1fee/crates/processing_render/shaders/processing/particles.wesl
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/processing/libprocessing/pull/253/{{ revealButtonHref }}
https://github.com/processing/libprocessing/pull/253/files#diff-af9c10b05856682e28c49a4be80d6574494e8a91474192964870902ddde0bfcd
https://github.com/processing/libprocessing/pull/253/files#diff-af9c10b05856682e28c49a4be80d6574494e8a91474192964870902ddde0bfcd
crates/processing_render/src/lib.rshttps://github.com/processing/libprocessing/pull/253/files#diff-3a676e70510cf46e1ceca32379dff6cb444fc4c05c436b673adc97312aa9e2f4
View file https://github.com/processing/libprocessing/blob/11372af2bc56fb247bcceca433377d44ec5a1fee/crates/processing_render/src/lib.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/processing/libprocessing/pull/253/{{ revealButtonHref }}
https://github.com/processing/libprocessing/pull/253/files#diff-3a676e70510cf46e1ceca32379dff6cb444fc4c05c436b673adc97312aa9e2f4
https://github.com/processing/libprocessing/pull/253/files#diff-3a676e70510cf46e1ceca32379dff6cb444fc4c05c436b673adc97312aa9e2f4
crates/processing_render/src/particles/emit.rshttps://github.com/processing/libprocessing/pull/253/files#diff-b6ef4ccaa7a0065f071fd82e5b9eb72782f6b8889ac97b07857d8ff5b44b5542
View file https://github.com/processing/libprocessing/blob/11372af2bc56fb247bcceca433377d44ec5a1fee/crates/processing_render/src/particles/emit.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/processing/libprocessing/pull/253/{{ revealButtonHref }}
https://github.com/processing/libprocessing/pull/253/files#diff-b6ef4ccaa7a0065f071fd82e5b9eb72782f6b8889ac97b07857d8ff5b44b5542
https://github.com/processing/libprocessing/pull/253/files#diff-b6ef4ccaa7a0065f071fd82e5b9eb72782f6b8889ac97b07857d8ff5b44b5542
crates/processing_render/src/particles/kernels/mod.rshttps://github.com/processing/libprocessing/pull/253/files#diff-ed32eeb98bee5d040da1dfa6e6358b943e3da65735edf78b4f4cb4f3df6d449d
View file https://github.com/processing/libprocessing/blob/11372af2bc56fb247bcceca433377d44ec5a1fee/crates/processing_render/src/particles/kernels/mod.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/processing/libprocessing/pull/253/{{ revealButtonHref }}
https://github.com/processing/libprocessing/pull/253/files#diff-ed32eeb98bee5d040da1dfa6e6358b943e3da65735edf78b4f4cb4f3df6d449d
https://github.com/processing/libprocessing/pull/253/files#diff-ed32eeb98bee5d040da1dfa6e6358b943e3da65735edf78b4f4cb4f3df6d449d
https://github.com/processing/libprocessing/pull/253/files#diff-ed32eeb98bee5d040da1dfa6e6358b943e3da65735edf78b4f4cb4f3df6d449d
crates/processing_render/src/particles/kernels/neighbors_build.wgslhttps://github.com/processing/libprocessing/pull/253/files#diff-68e1a9ca34e2bdd63b71968f25ebf89f2fee9607f43811e034574af8bc389b05
View file https://github.com/processing/libprocessing/blob/11372af2bc56fb247bcceca433377d44ec5a1fee/crates/processing_render/src/particles/kernels/neighbors_build.wgsl
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/processing/libprocessing/pull/253/{{ revealButtonHref }}
crates/processing_render/src/particles/kernels/neighbors_reduce.wgslhttps://github.com/processing/libprocessing/pull/253/files#diff-8a1494c900754e28e977df4371009da17688c3e1a18808d5f563cab872bc830e
View file https://github.com/processing/libprocessing/blob/11372af2bc56fb247bcceca433377d44ec5a1fee/crates/processing_render/src/particles/kernels/neighbors_reduce.wgsl
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/processing/libprocessing/pull/253/{{ revealButtonHref }}
Please reload this pagehttps://github.com/processing/libprocessing/pull/253/files
Please reload this pagehttps://github.com/processing/libprocessing/pull/253/files
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-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.