René's URL Explorer Experiment


Title: Use on_load module attribute by NelsonVides · Pull Request #14 · processone/stringprep · GitHub

Open Graph Title: Use on_load module attribute by NelsonVides · Pull Request #14 · processone/stringprep

X Title: Use on_load module attribute by NelsonVides · Pull Request #14 · processone/stringprep

Description: Before OTP 19.0, if the on_load directive fails, any previously loaded code would become old, essentially leaving the system without any working and reachable instance of the module. This is not true anymore since OTP 19.0, so loading the nifs within the on_load directive is today the cleanest and best code pattern. It seems indeed very convoluted to have an entire application and supervision tree with a worker gen_server just to load the nifs. Also, one of the handle_info heads of the gen_server is even a remnant of the times when fast_tls was implemented as a port driver instead of as nifs, which is a high sign this needed some modernisation. I contributed a similar work for fast_tls a long time ago here: processone/fast_tls#43

Open Graph Description: Before OTP 19.0, if the on_load directive fails, any previously loaded code would become old, essentially leaving the system without any working and reachable instance of the module. This is not tr...

X Description: Before OTP 19.0, if the on_load directive fails, any previously loaded code would become old, essentially leaving the system without any working and reachable instance of the module. This is not tr...

Opengraph URL: https://github.com/processone/stringprep/pull/14

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:dcd855e5-e11f-14b3-d0e8-6bc848438db5
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC5BA:34202A:32BEBF:401B67:697DCE7B
html-safe-nonce3f2f76ca93ca8d51439532c8a3c692761228e65fb80f85f7478b28e178e2a1d0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUJBOjM0MjAyQTozMkJFQkY6NDAxQjY3OjY5N0RDRTdCIiwidmlzaXRvcl9pZCI6IjU2NzQ5NDQwOTk2MTA2NDQwOTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf6980d74c46c07acca53ea830db4b9651da1474afd36692bc9b99986f49063dd
hovercard-subject-tagpull_request:2330679639
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/processone/stringprep/pull/14/files
twitter:imagehttps://avatars.githubusercontent.com/u/27267603?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/27267603?s=400&v=4
og:image:altBefore OTP 19.0, if the on_load directive fails, any previously loaded code would become old, essentially leaving the system without any working and reachable instance of the module. This is not tr...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/processone/stringprep git https://github.com/processone/stringprep.git
octolytics-dimension-user_id86724
octolytics-dimension-user_loginprocessone
octolytics-dimension-repository_id9217565
octolytics-dimension-repository_nwoprocessone/stringprep
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id9217565
octolytics-dimension-repository_network_root_nwoprocessone/stringprep
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
release7c85641c598ad130c74f7bcc27f58575cac69551
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessone%2Fstringprep%2Fpull%2F14%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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessone%2Fstringprep%2Fpull%2F14%2Ffiles
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%2Ffiles&source=header-repo&source_repo=processone%2Fstringprep
Reloadhttps://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files
Reloadhttps://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files
Reloadhttps://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files
processone https://patch-diff.githubusercontent.com/processone
stringprephttps://patch-diff.githubusercontent.com/processone/stringprep
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fprocessone%2Fstringprep
Fork 24 https://patch-diff.githubusercontent.com/login?return_to=%2Fprocessone%2Fstringprep
Star 17 https://patch-diff.githubusercontent.com/login?return_to=%2Fprocessone%2Fstringprep
Code https://patch-diff.githubusercontent.com/processone/stringprep
Issues 0 https://patch-diff.githubusercontent.com/processone/stringprep/issues
Pull requests 0 https://patch-diff.githubusercontent.com/processone/stringprep/pulls
Actions https://patch-diff.githubusercontent.com/processone/stringprep/actions
Projects 0 https://patch-diff.githubusercontent.com/processone/stringprep/projects
Wiki https://patch-diff.githubusercontent.com/processone/stringprep/wiki
Security 0 https://patch-diff.githubusercontent.com/processone/stringprep/security
Insights https://patch-diff.githubusercontent.com/processone/stringprep/pulse
Code https://patch-diff.githubusercontent.com/processone/stringprep
Issues https://patch-diff.githubusercontent.com/processone/stringprep/issues
Pull requests https://patch-diff.githubusercontent.com/processone/stringprep/pulls
Actions https://patch-diff.githubusercontent.com/processone/stringprep/actions
Projects https://patch-diff.githubusercontent.com/processone/stringprep/projects
Wiki https://patch-diff.githubusercontent.com/processone/stringprep/wiki
Security https://patch-diff.githubusercontent.com/processone/stringprep/security
Insights https://patch-diff.githubusercontent.com/processone/stringprep/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fprocessone%2Fstringprep%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=%2Fprocessone%2Fstringprep%2Fissues%2Fnew%2Fchoose
badlophttps://patch-diff.githubusercontent.com/badlop
processone:masterhttps://patch-diff.githubusercontent.com/processone/stringprep/tree/master
NelsonVides:use_on_load_directivehttps://patch-diff.githubusercontent.com/NelsonVides/stringprep/tree/use_on_load_directive
Conversation 11 https://patch-diff.githubusercontent.com/processone/stringprep/pull/14
Commits 2 https://patch-diff.githubusercontent.com/processone/stringprep/pull/14/commits
Checks 18 https://patch-diff.githubusercontent.com/processone/stringprep/pull/14/checks
Files changed https://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files
Please reload this pagehttps://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files
Use on_load module attribute https://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files#top
Show all changes 2 commits https://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files
82476c3 Use on_load module attribute NelsonVides Feb 12, 2025 https://patch-diff.githubusercontent.com/processone/stringprep/pull/14/commits/82476c323862c9dd3c59b936755c9a488a80490b
955861b Update CI NelsonVides Feb 12, 2025 https://patch-diff.githubusercontent.com/processone/stringprep/pull/14/commits/955861b035abe7ef61f1748202f9aa593201da09
Clear filters https://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files
Please reload this pagehttps://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files
Please reload this pagehttps://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files
ci.yml https://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
stringprep.app.src https://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files#diff-bee9f1f469ef6a8044ef9745ea4d85c4f9d263ea37d6eeb72fb5771b1738c4ca
stringprep.erl https://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files#diff-c5f5d6b22044740f29b1be0d945fa13bf30876bfce7f0d74dd9956ee8afa47c5
stringprep_app.erl https://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files#diff-d79a1580d7d65fc30d4355af3e9c2438015b228e14018314f0de421da6dea819
stringprep_sup.erl https://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files#diff-36192fabaf8c7258ae9024aa9d7361bcfb66cf4475ecbb65fa6b8d2299f73463
.github/workflows/ci.ymlhttps://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
View file https://patch-diff.githubusercontent.com/NelsonVides/stringprep/blob/955861b035abe7ef61f1748202f9aa593201da09/.github/workflows/ci.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/processone/stringprep/pull/14/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
https://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
https://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
src/stringprep.app.srchttps://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files#diff-bee9f1f469ef6a8044ef9745ea4d85c4f9d263ea37d6eeb72fb5771b1738c4ca
View file https://patch-diff.githubusercontent.com/NelsonVides/stringprep/blob/955861b035abe7ef61f1748202f9aa593201da09/src/stringprep.app.src
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/processone/stringprep/pull/14/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files#diff-bee9f1f469ef6a8044ef9745ea4d85c4f9d263ea37d6eeb72fb5771b1738c4ca
https://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files#diff-bee9f1f469ef6a8044ef9745ea4d85c4f9d263ea37d6eeb72fb5771b1738c4ca
src/stringprep.erlhttps://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files#diff-c5f5d6b22044740f29b1be0d945fa13bf30876bfce7f0d74dd9956ee8afa47c5
View file https://patch-diff.githubusercontent.com/NelsonVides/stringprep/blob/955861b035abe7ef61f1748202f9aa593201da09/src/stringprep.erl
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/processone/stringprep/pull/14/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files#diff-c5f5d6b22044740f29b1be0d945fa13bf30876bfce7f0d74dd9956ee8afa47c5
https://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files#diff-c5f5d6b22044740f29b1be0d945fa13bf30876bfce7f0d74dd9956ee8afa47c5
src/stringprep_app.erlhttps://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files#diff-d79a1580d7d65fc30d4355af3e9c2438015b228e14018314f0de421da6dea819
View file https://patch-diff.githubusercontent.com/processone/stringprep/blob/7688cf9ce3e875ae667010af5aa6b038a48c1625/src/stringprep_app.erl
Open in desktop https://desktop.github.com
Please reload this pagehttps://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files
src/stringprep_sup.erlhttps://patch-diff.githubusercontent.com/processone/stringprep/pull/14/files#diff-36192fabaf8c7258ae9024aa9d7361bcfb66cf4475ecbb65fa6b8d2299f73463
View file https://patch-diff.githubusercontent.com/processone/stringprep/blob/7688cf9ce3e875ae667010af5aa6b038a48c1625/src/stringprep_sup.erl
Open in desktop https://desktop.github.com
Please reload this pagehttps://patch-diff.githubusercontent.com/processone/stringprep/pull/14/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.