René's URL Explorer Experiment


Title: Cleanup flocking example to use composition by tychedelia · Pull Request #254 · processing/libprocessing · GitHub

Open Graph Title: Cleanup flocking example to use composition by tychedelia · Pull Request #254 · processing/libprocessing

X Title: Cleanup flocking example to use composition by tychedelia · Pull Request #254 · processing/libprocessing

Description: Flocking is now built from the generic ops, so the built-in flock goes. Removed: p.flock(), particles_flock, particles_kernel_flock, the flock.wgsl kernel, and its FFI constructor. flocking_gpu.py is now a recipe with no shader code: find neighbors, sum what each rule steers toward, apply steering with a mask for boids that have no neighbors, then add the force to velocity and limit the speed. It's slower than the fused kernel: about 3.5 ms vs 1.6 ms at 20k boids, and 8 ms vs 4 ms at 100k. Most of that is the per-dispatch cost of ~30 passes, not GPU work, so batching submits is the next thing to look at. Anyone who needs the speed can still write a small kernel that reads neighbors directly.

Open Graph Description: Flocking is now built from the generic ops, so the built-in flock goes. Removed: p.flock(), particles_flock, particles_kernel_flock, the flock.wgsl kernel, and its FFI constructor. flocking_gpu.py...

X Description: Flocking is now built from the generic ops, so the built-in flock goes. Removed: p.flock(), particles_flock, particles_kernel_flock, the flock.wgsl kernel, and its FFI constructor. flocking_gpu.py...

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

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:74a089a0-eff1-6db1-fef8-859e94eeb5b9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB014:1A8934:13B6C4:1A3ECC:6B0608D7
html-safe-nonce33097857e71111e470db40ec62f23d89de7c8f1331a3bac20cf32a2c26d818f0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDE0OjFBODkzNDoxM0I2QzQ6MUEzRUNDOjZCMDYwOEQ3IiwidmlzaXRvcl9pZCI6IjM4NDU1NDQyMDQ4NjQ3MTkwNjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2350bb35a9d97a5de582310d489099e5bc0f1e66d8f7f8b52e68d50129be6031
hovercard-subject-tagpull_request:4672669858
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/254/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:altFlocking is now built from the generic ops, so the built-in flock goes. Removed: p.flock(), particles_flock, particles_kernel_flock, the flock.wgsl kernel, and its FFI constructor. flocking_gpu.py...
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/254/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessing%2Flibprocessing%2Fpull%2F254%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%2F254%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/254/files
Reloadhttps://github.com/processing/libprocessing/pull/254/files
Reloadhttps://github.com/processing/libprocessing/pull/254/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
neighbor-listshttps://github.com/processing/libprocessing/tree/neighbor-lists
flocking-compositionhttps://github.com/processing/libprocessing/tree/flocking-composition
Conversation 2 https://github.com/processing/libprocessing/pull/254
Commits 1 https://github.com/processing/libprocessing/pull/254/commits
Checks 5 https://github.com/processing/libprocessing/pull/254/checks
Files changed https://github.com/processing/libprocessing/pull/254/files
Please reload this pagehttps://github.com/processing/libprocessing/pull/254/files
Cleanup flocking example to use composition https://github.com/processing/libprocessing/pull/254/files#top
Show all changes 1 commit https://github.com/processing/libprocessing/pull/254/files
67ca33b Flocking from generic ops. tychedelia Sep 29, 2026 https://github.com/processing/libprocessing/pull/254/commits/67ca33b82882bd097c0f4cf99b232b19afe5b129
Clear filters https://github.com/processing/libprocessing/pull/254/files
Please reload this pagehttps://github.com/processing/libprocessing/pull/254/files
Please reload this pagehttps://github.com/processing/libprocessing/pull/254/files
lib.rs https://github.com/processing/libprocessing/pull/254/files#diff-0c768253ad3c8c71da78e15fe59b798eeedad6c26c4912c9e32f64e60ae704b9
flocking_duck.py https://github.com/processing/libprocessing/pull/254/files#diff-e0c8caf50e1e03d9c9b6c12654b5f1899ec27f7c869b81abd95a2c2956d29c5c
flocking_gpu.py https://github.com/processing/libprocessing/pull/254/files#diff-7307acefdde0dc2c09fb696eb0fd63a5e0521707268bac7d0986eaa7da46389e
particles.rs https://github.com/processing/libprocessing/pull/254/files#diff-d40c224f5646debb0a72d422bb841e7f266b4ad0b447c04a72ff7678179926ec
lib.rs https://github.com/processing/libprocessing/pull/254/files#diff-3a676e70510cf46e1ceca32379dff6cb444fc4c05c436b673adc97312aa9e2f4
emit.rs https://github.com/processing/libprocessing/pull/254/files#diff-b6ef4ccaa7a0065f071fd82e5b9eb72782f6b8889ac97b07857d8ff5b44b5542
flock.wgsl https://github.com/processing/libprocessing/pull/254/files#diff-cc3460a527cb9a3992aa06fa3325874d1d9dd21941db7234351f12eded3656d8
mod.rs https://github.com/processing/libprocessing/pull/254/files#diff-ed32eeb98bee5d040da1dfa6e6358b943e3da65735edf78b4f4cb4f3df6d449d
mod.rs https://github.com/processing/libprocessing/pull/254/files#diff-2985319cb3a3a7a5ef0a5f8b3559632e248de5fb87cd9865c48273c2dfc7cf51
crates/processing_ffi/src/lib.rshttps://github.com/processing/libprocessing/pull/254/files#diff-0c768253ad3c8c71da78e15fe59b798eeedad6c26c4912c9e32f64e60ae704b9
View file https://github.com/processing/libprocessing/blob/67ca33b82882bd097c0f4cf99b232b19afe5b129/crates/processing_ffi/src/lib.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/processing/libprocessing/pull/254/{{ revealButtonHref }}
https://github.com/processing/libprocessing/pull/254/files#diff-0c768253ad3c8c71da78e15fe59b798eeedad6c26c4912c9e32f64e60ae704b9
https://github.com/processing/libprocessing/pull/254/files#diff-0c768253ad3c8c71da78e15fe59b798eeedad6c26c4912c9e32f64e60ae704b9
crates/processing_pyo3/examples/flocking_duck.pyhttps://github.com/processing/libprocessing/pull/254/files#diff-e0c8caf50e1e03d9c9b6c12654b5f1899ec27f7c869b81abd95a2c2956d29c5c
View file https://github.com/processing/libprocessing/blob/67ca33b82882bd097c0f4cf99b232b19afe5b129/crates/processing_pyo3/examples/flocking_duck.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/processing/libprocessing/pull/254/{{ revealButtonHref }}
https://github.com/processing/libprocessing/pull/254/files#diff-e0c8caf50e1e03d9c9b6c12654b5f1899ec27f7c869b81abd95a2c2956d29c5c
crates/processing_pyo3/examples/flocking_gpu.pyhttps://github.com/processing/libprocessing/pull/254/files#diff-7307acefdde0dc2c09fb696eb0fd63a5e0521707268bac7d0986eaa7da46389e
View file https://github.com/processing/libprocessing/blob/67ca33b82882bd097c0f4cf99b232b19afe5b129/crates/processing_pyo3/examples/flocking_gpu.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/processing/libprocessing/pull/254/{{ revealButtonHref }}
https://github.com/processing/libprocessing/pull/254/files#diff-7307acefdde0dc2c09fb696eb0fd63a5e0521707268bac7d0986eaa7da46389e
https://github.com/processing/libprocessing/pull/254/files#diff-7307acefdde0dc2c09fb696eb0fd63a5e0521707268bac7d0986eaa7da46389e
https://github.com/processing/libprocessing/pull/254/files#diff-7307acefdde0dc2c09fb696eb0fd63a5e0521707268bac7d0986eaa7da46389e
https://github.com/processing/libprocessing/pull/254/files#diff-7307acefdde0dc2c09fb696eb0fd63a5e0521707268bac7d0986eaa7da46389e
https://github.com/processing/libprocessing/pull/254/files#diff-7307acefdde0dc2c09fb696eb0fd63a5e0521707268bac7d0986eaa7da46389e
https://github.com/processing/libprocessing/pull/254/files#diff-7307acefdde0dc2c09fb696eb0fd63a5e0521707268bac7d0986eaa7da46389e
crates/processing_pyo3/src/particles.rshttps://github.com/processing/libprocessing/pull/254/files#diff-d40c224f5646debb0a72d422bb841e7f266b4ad0b447c04a72ff7678179926ec
View file https://github.com/processing/libprocessing/blob/67ca33b82882bd097c0f4cf99b232b19afe5b129/crates/processing_pyo3/src/particles.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/processing/libprocessing/pull/254/{{ revealButtonHref }}
https://github.com/processing/libprocessing/pull/254/files#diff-d40c224f5646debb0a72d422bb841e7f266b4ad0b447c04a72ff7678179926ec
https://github.com/processing/libprocessing/pull/254/files#diff-d40c224f5646debb0a72d422bb841e7f266b4ad0b447c04a72ff7678179926ec
https://github.com/processing/libprocessing/pull/254/files#diff-d40c224f5646debb0a72d422bb841e7f266b4ad0b447c04a72ff7678179926ec
https://github.com/processing/libprocessing/pull/254/files#diff-d40c224f5646debb0a72d422bb841e7f266b4ad0b447c04a72ff7678179926ec
crates/processing_render/src/lib.rshttps://github.com/processing/libprocessing/pull/254/files#diff-3a676e70510cf46e1ceca32379dff6cb444fc4c05c436b673adc97312aa9e2f4
View file https://github.com/processing/libprocessing/blob/67ca33b82882bd097c0f4cf99b232b19afe5b129/crates/processing_render/src/lib.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/processing/libprocessing/pull/254/{{ revealButtonHref }}
https://github.com/processing/libprocessing/pull/254/files#diff-3a676e70510cf46e1ceca32379dff6cb444fc4c05c436b673adc97312aa9e2f4
https://github.com/processing/libprocessing/pull/254/files#diff-3a676e70510cf46e1ceca32379dff6cb444fc4c05c436b673adc97312aa9e2f4
crates/processing_render/src/particles/emit.rshttps://github.com/processing/libprocessing/pull/254/files#diff-b6ef4ccaa7a0065f071fd82e5b9eb72782f6b8889ac97b07857d8ff5b44b5542
View file https://github.com/processing/libprocessing/blob/67ca33b82882bd097c0f4cf99b232b19afe5b129/crates/processing_render/src/particles/emit.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/processing/libprocessing/pull/254/{{ revealButtonHref }}
https://github.com/processing/libprocessing/pull/254/files#diff-b6ef4ccaa7a0065f071fd82e5b9eb72782f6b8889ac97b07857d8ff5b44b5542
https://github.com/processing/libprocessing/pull/254/files#diff-b6ef4ccaa7a0065f071fd82e5b9eb72782f6b8889ac97b07857d8ff5b44b5542
crates/processing_render/src/particles/kernels/flock.wgslhttps://github.com/processing/libprocessing/pull/254/files#diff-cc3460a527cb9a3992aa06fa3325874d1d9dd21941db7234351f12eded3656d8
View file https://github.com/processing/libprocessing/blob/11372af2bc56fb247bcceca433377d44ec5a1fee/crates/processing_render/src/particles/kernels/flock.wgsl
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/processing/libprocessing/pull/254/files
crates/processing_render/src/particles/kernels/mod.rshttps://github.com/processing/libprocessing/pull/254/files#diff-ed32eeb98bee5d040da1dfa6e6358b943e3da65735edf78b4f4cb4f3df6d449d
View file https://github.com/processing/libprocessing/blob/67ca33b82882bd097c0f4cf99b232b19afe5b129/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/254/{{ revealButtonHref }}
https://github.com/processing/libprocessing/pull/254/files#diff-ed32eeb98bee5d040da1dfa6e6358b943e3da65735edf78b4f4cb4f3df6d449d
https://github.com/processing/libprocessing/pull/254/files#diff-ed32eeb98bee5d040da1dfa6e6358b943e3da65735edf78b4f4cb4f3df6d449d
https://github.com/processing/libprocessing/pull/254/files#diff-ed32eeb98bee5d040da1dfa6e6358b943e3da65735edf78b4f4cb4f3df6d449d
https://github.com/processing/libprocessing/pull/254/files#diff-ed32eeb98bee5d040da1dfa6e6358b943e3da65735edf78b4f4cb4f3df6d449d
Please reload this pagehttps://github.com/processing/libprocessing/pull/254/files
Please reload this pagehttps://github.com/processing/libprocessing/pull/254/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.