René's URL Explorer Experiment


Title: gh-130213: POC let blake2module.c see far less internals by chris-eibl · Pull Request #130483 · python/cpython · GitHub

Open Graph Title: gh-130213: POC let blake2module.c see far less internals by chris-eibl · Pull Request #130483 · python/cpython

X Title: gh-130213: POC let blake2module.c see far less internals by chris-eibl · Pull Request #130483 · python/cpython

Description: Just a POC, because this is touching generated code. Limit the view of the blake2module.c to the internals of the SIMD* implementations by using void *. For me this now works for clang-cl 18.1.8, which does not "allow to see" the needed intrinsics without compiling for the proper architecture. I just temporarily use #undef HACL_CAN_COMPILE_SIMD128, because I did the POC only for the SIMD256 case. And test_hashlib is still green :) And the fast SIMD256 path is used, if the host where the binary is running supports it, without the need of SIMD flags when compiling blake2module.c. I've checked in a debugging session during running test_hashlib, that the void * "public" functions are still invoked, and that they work like before after casting back to Hacl_Hash_Blake2b_Simd256_state_t *. Issue: gh-130213

Open Graph Description: Just a POC, because this is touching generated code. Limit the view of the blake2module.c to the internals of the SIMD* implementations by using void *. For me this now works for clang-cl 18.1.8, w...

X Description: Just a POC, because this is touching generated code. Limit the view of the blake2module.c to the internals of the SIMD* implementations by using void *. For me this now works for clang-cl 18.1.8, w...

Opengraph URL: https://github.com/python/cpython/pull/130483

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:19f429a9-c2cc-5d67-f3b0-5053d28b9eb3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB372:64491:86DEF4:BB892A:696A7583
html-safe-nonce0a3b4df75cb5f035a6b76550234a72c1002c0d0f0ec1cbeb6d645fe2533a770a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzcyOjY0NDkxOjg2REVGNDpCQjg5MkE6Njk2QTc1ODMiLCJ2aXNpdG9yX2lkIjoiNTU4MjU1OTI1MzAyNTU2MDM1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac3a5fbe7d1a5a10da3fca3f496de5a6492ccc808599197dc835614ed7c6d1c15b
hovercard-subject-tagpull_request:2352076873
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/python/cpython/pull/130483/files
twitter:imagehttps://avatars.githubusercontent.com/u/138194463?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/138194463?s=400&v=4
og:image:altJust a POC, because this is touching generated code. Limit the view of the blake2module.c to the internals of the SIMD* implementations by using void *. For me this now works for clang-cl 18.1.8, w...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecfa223d62d272274e0b68350b4bd7741f3ca7498b8c4b8b1bc1e6deabbdbc09d
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
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
release6a0b6893c221f98f607598e939299fdf5763435d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/130483/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F130483%2Ffiles
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%2Fpython%2Fcpython%2Fpull%2F130483%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/130483/files
Reloadhttps://github.com/python/cpython/pull/130483/files
Reloadhttps://github.com/python/cpython/pull/130483/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/130483/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/130483/files
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
chris-eiblhttps://github.com/chris-eibl
python:mainhttps://github.com/python/cpython/tree/main
chris-eibl:hacl_proof_of_concepthttps://github.com/chris-eibl/cpython/tree/hacl_proof_of_concept
Conversation 10 https://github.com/python/cpython/pull/130483
Commits 4 https://github.com/python/cpython/pull/130483/commits
Checks 37 https://github.com/python/cpython/pull/130483/checks
Files changed https://github.com/python/cpython/pull/130483/files
Please reload this pagehttps://github.com/python/cpython/pull/130483/files
gh-130213: POC let blake2module.c see far less internals https://github.com/python/cpython/pull/130483/files#top
Show all changes 4 commits https://github.com/python/cpython/pull/130483/files
507f048 only keep publics in Hacl_Hash_Blake2b_Simd256.h chris-eibl Feb 23, 2025 https://github.com/python/cpython/pull/130483/commits/507f048b4c7933044c6a27874d32ac99ac45a193
c903cc1 Merge remote-tracking branch 'origin/main' into hacl_proof_of_concept chris-eibl Feb 23, 2025 https://github.com/python/cpython/pull/130483/commits/c903cc14b64925dc11d1a22d6bf110eac8d7879e
854130d temporarily #undef HACL_CAN_COMPILE_SIMD128 chris-eibl Feb 23, 2025 https://github.com/python/cpython/pull/130483/commits/854130d16da82b7894cbc2fc199e0fe0b2143bcd
2861fde remove $(PySourcePath)Modules\_hacl\internal chris-eibl Feb 23, 2025 https://github.com/python/cpython/pull/130483/commits/2861fdee3f226ef99c0c2f22bd86f74d4c347ec9
Clear filters https://github.com/python/cpython/pull/130483/files
Please reload this pagehttps://github.com/python/cpython/pull/130483/files
Please reload this pagehttps://github.com/python/cpython/pull/130483/files
Hacl_Hash_Blake2b_Simd256.c https://github.com/python/cpython/pull/130483/files#diff-1840278893d0898b549b26afe88c47f3a8b3126afa00accb0c79d447fb50ece7
Hacl_Hash_Blake2b_Simd256.h https://github.com/python/cpython/pull/130483/files#diff-ca3dfdf2a7fc5eaee13919f229277f49d25bf9ddbeb566e2f052eb2b95941739
Hacl_Hash_Blake2b_Simd256.h https://github.com/python/cpython/pull/130483/files#diff-03c53bb8d9a75def3f6450d523665b7702aed853474d33b7fe17af2790a493d7
blake2module.c https://github.com/python/cpython/pull/130483/files#diff-c7440bf2e8c27b17a856c469b7839a7c0bfd93008e3c4f553616df6f1c33d854
pythoncore.vcxproj https://github.com/python/cpython/pull/130483/files#diff-4295039788386c2986b811f2a6b59cf088be59822b24b4f1243c9e9b184f65fb
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L388
Modules/_hacl/Hacl_Hash_Blake2b_Simd256.chttps://github.com/python/cpython/pull/130483/files#diff-1840278893d0898b549b26afe88c47f3a8b3126afa00accb0c79d447fb50ece7
View file https://github.com/chris-eibl/cpython/blob/2861fdee3f226ef99c0c2f22bd86f74d4c347ec9/Modules/_hacl/Hacl_Hash_Blake2b_Simd256.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/130483/{{ revealButtonHref }}
https://github.com/python/cpython/pull/130483/files#diff-1840278893d0898b549b26afe88c47f3a8b3126afa00accb0c79d447fb50ece7
https://github.com/python/cpython/pull/130483/files#diff-1840278893d0898b549b26afe88c47f3a8b3126afa00accb0c79d447fb50ece7
https://github.com/python/cpython/pull/130483/files#diff-1840278893d0898b549b26afe88c47f3a8b3126afa00accb0c79d447fb50ece7
https://github.com/python/cpython/pull/130483/files#diff-1840278893d0898b549b26afe88c47f3a8b3126afa00accb0c79d447fb50ece7
https://github.com/python/cpython/pull/130483/files#diff-1840278893d0898b549b26afe88c47f3a8b3126afa00accb0c79d447fb50ece7
https://github.com/python/cpython/pull/130483/files#diff-1840278893d0898b549b26afe88c47f3a8b3126afa00accb0c79d447fb50ece7
https://github.com/python/cpython/pull/130483/files#diff-1840278893d0898b549b26afe88c47f3a8b3126afa00accb0c79d447fb50ece7
https://github.com/python/cpython/pull/130483/files#diff-1840278893d0898b549b26afe88c47f3a8b3126afa00accb0c79d447fb50ece7
https://github.com/python/cpython/pull/130483/files#diff-1840278893d0898b549b26afe88c47f3a8b3126afa00accb0c79d447fb50ece7
https://github.com/python/cpython/pull/130483/files#diff-1840278893d0898b549b26afe88c47f3a8b3126afa00accb0c79d447fb50ece7
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L388
Modules/_hacl/Hacl_Hash_Blake2b_Simd256.hhttps://github.com/python/cpython/pull/130483/files#diff-ca3dfdf2a7fc5eaee13919f229277f49d25bf9ddbeb566e2f052eb2b95941739
View file https://github.com/chris-eibl/cpython/blob/2861fdee3f226ef99c0c2f22bd86f74d4c347ec9/Modules/_hacl/Hacl_Hash_Blake2b_Simd256.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/130483/{{ revealButtonHref }}
https://github.com/python/cpython/pull/130483/files#diff-ca3dfdf2a7fc5eaee13919f229277f49d25bf9ddbeb566e2f052eb2b95941739
https://github.com/python/cpython/pull/130483/files#diff-ca3dfdf2a7fc5eaee13919f229277f49d25bf9ddbeb566e2f052eb2b95941739
https://github.com/python/cpython/pull/130483/files#diff-ca3dfdf2a7fc5eaee13919f229277f49d25bf9ddbeb566e2f052eb2b95941739
https://github.com/python/cpython/pull/130483/files#diff-ca3dfdf2a7fc5eaee13919f229277f49d25bf9ddbeb566e2f052eb2b95941739
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L388
Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.hhttps://github.com/python/cpython/pull/130483/files#diff-03c53bb8d9a75def3f6450d523665b7702aed853474d33b7fe17af2790a493d7
View file https://github.com/chris-eibl/cpython/blob/2861fdee3f226ef99c0c2f22bd86f74d4c347ec9/Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/130483/{{ revealButtonHref }}
https://github.com/python/cpython/pull/130483/files#diff-03c53bb8d9a75def3f6450d523665b7702aed853474d33b7fe17af2790a493d7
https://github.com/python/cpython/pull/130483/files#diff-03c53bb8d9a75def3f6450d523665b7702aed853474d33b7fe17af2790a493d7
Please reload this pagehttps://github.com/python/cpython/pull/130483/files
Please reload this pagehttps://github.com/python/cpython/pull/130483/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

Viewport: width=device-width


URLs of crawlers that visited me.