René's URL Explorer Experiment


Title: [EXPERIMENTAL] Add "onchange" hook by eriknw · Pull Request #262 · python-graphblas/python-graphblas · GitHub

Open Graph Title: [EXPERIMENTAL] Add "onchange" hook by eriknw · Pull Request #262 · python-graphblas/python-graphblas

X Title: [EXPERIMENTAL] Add "onchange" hook by eriknw · Pull Request #262 · python-graphblas/python-graphblas

Description: This is a PoC to see how invasive it is to add "onchange" hooks. There may be two uses for this from graphblas-algorithms: Automatically invalidate the cache when the graph is modified. This allows us to more safely expose the adjacency matrix A to the user. Make cached values read-only. Overall, I'd say this isn't very invasive all things considered. The number of places hooks are in each file is: expr.py: 2 base.py: 4 scalar.py: 2 vector.py: 3 matrix.py: 3 _ss/matrix.py and _ss/vector.py: a bunch due to pack methods This hook system is pretty simple for now. It only has one hook, "onchange", and it only passes the object that would be changed to the function. Other hooks and arguments to pass to the callbacks are possible (hence our use of **kwargs in the callback for future compatibility). This also doesn't try to manage having multiple callbacks, which is fine for our current use cases where the objects with hooks will be managed by graphblas-algorithms. We may want to add a simple API to manage hooks such as _add_hook, _has_hook, _call_hook, etc. to make it easier to evolve. We can let this stew for a bit.

Open Graph Description: This is a PoC to see how invasive it is to add "onchange" hooks. There may be two uses for this from graphblas-algorithms: Automatically invalidate the cache when the graph is modified. ...

X Description: This is a PoC to see how invasive it is to add "onchange" hooks. There may be two uses for this from graphblas-algorithms: Automatically invalidate the cache when the graph is mo...

Opengraph URL: https://github.com/python-graphblas/python-graphblas/pull/262

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/checks(.:format)
route-controllerpull_requests
route-actionchecks
fetch-noncev2:684b7592-d03e-7659-d7b7-aeac4db4f875
current-catalog-service-hash87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a
request-idB718:AB6C5:742C11:9A0882:698EDA2F
html-safe-nonce39be554ac3947a8bb3e2dd47fbedf2fa66a1a7d9a3bd7c3ebeaafd895f5904a0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzE4OkFCNkM1Ojc0MkMxMTo5QTA4ODI6Njk4RURBMkYiLCJ2aXNpdG9yX2lkIjoiNTcxODg2OTAxNzkxMDc2MjAzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac83cc021a729f4e53738652b16d2330738f2b4a6586592f2984e3f8fe29be983b
hovercard-subject-tagpull_request:965033858
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/checks
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python-graphblas/python-graphblas/pull/262/checks
twitter:imagehttps://avatars.githubusercontent.com/u/2058401?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/2058401?s=400&v=4
og:image:altThis is a PoC to see how invasive it is to add "onchange" hooks. There may be two uses for this from graphblas-algorithms: Automatically invalidate the cache when the graph is modified. ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba
turbo-cache-controlno-preview
go-importgithub.com/python-graphblas/python-graphblas git https://github.com/python-graphblas/python-graphblas.git
octolytics-dimension-user_id103965858
octolytics-dimension-user_loginpython-graphblas
octolytics-dimension-repository_id221014819
octolytics-dimension-repository_nwopython-graphblas/python-graphblas
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id221014819
octolytics-dimension-repository_network_root_nwopython-graphblas/python-graphblas
turbo-body-classeslogged-out env-production page-responsive full-width full-width-p-0
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee6b91a7e6e46287d26887e3fb7a4161657bab8f7
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/pull/262/checks#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-graphblas%2Fpython-graphblas%2Fpull%2F262%2Fchecks
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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-graphblas%2Fpython-graphblas%2Fpull%2F262%2Fchecks
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fchecks&source=header-repo&source_repo=python-graphblas%2Fpython-graphblas
Reloadhttps://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/pull/262/checks
Reloadhttps://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/pull/262/checks
Reloadhttps://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/pull/262/checks
python-graphblas https://patch-diff.githubusercontent.com/python-graphblas
python-graphblashttps://patch-diff.githubusercontent.com/python-graphblas/python-graphblas
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-graphblas%2Fpython-graphblas
Fork 16 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-graphblas%2Fpython-graphblas
Star 152 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-graphblas%2Fpython-graphblas
Code https://patch-diff.githubusercontent.com/python-graphblas/python-graphblas
Issues 55 https://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/issues
Pull requests 14 https://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/pulls
Discussions https://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/discussions
Actions https://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/actions
Projects 0 https://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/projects
Wiki https://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/wiki
Security 0 https://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/security
Insights https://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/pulse
Code https://patch-diff.githubusercontent.com/python-graphblas/python-graphblas
Issues https://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/issues
Pull requests https://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/pulls
Discussions https://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/discussions
Actions https://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/actions
Projects https://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/projects
Wiki https://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/wiki
Security https://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/security
Insights https://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fpython-graphblas%2Fpython-graphblas%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fpython-graphblas%2Fpython-graphblas%2Fissues%2Fnew%2Fchoose
eriknwhttps://patch-diff.githubusercontent.com/eriknw
python-graphblas:mainhttps://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/tree/main
eriknw:hookshttps://patch-diff.githubusercontent.com/eriknw/grblas/tree/hooks
Conversation 1 https://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/pull/262
Commits 1 https://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/pull/262/commits
Checks 0 https://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/pull/262/checks
Files changed https://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/pull/262/files
Please reload this pagehttps://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/pull/262/checks
Please reload this pagehttps://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/pull/262/checks
[EXPERIMENTAL] Add "onchange" hook https://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/pull/262/checks#top
Please reload this pagehttps://patch-diff.githubusercontent.com/python-graphblas/python-graphblas/pull/262/checks
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.