René's URL Explorer Experiment


Title: Compile Library away to imperative code · Issue #34 · JavaScriptRegenerated/yieldmachine · GitHub

Open Graph Title: Compile Library away to imperative code · Issue #34 · JavaScriptRegenerated/yieldmachine

X Title: Compile Library away to imperative code · Issue #34 · JavaScriptRegenerated/yieldmachine

Description: Before: import { start } from "yieldmachine"; function TrafficLights() { function* Red() { yield on("timer", Green); } function* Green() { yield on("timer", Yellow); } function* Yellow() { yield on("timer", Red); } return Red; } const m ...

Open Graph Description: Before: import { start } from "yieldmachine"; function TrafficLights() { function* Red() { yield on("timer", Green); } function* Green() { yield on("timer", Yellow); } function* Yellow() { yield on...

X Description: Before: import { start } from "yieldmachine"; function TrafficLights() { function* Red() { yield on("timer", Green); } function* Green() { yield on("timer", Yellow); }...

Opengraph URL: https://github.com/JavaScriptRegenerated/yieldmachine/issues/34

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Compile Library away to imperative code","articleBody":"Before:\r\n```js\r\nimport { start } from \"yieldmachine\";\r\n\r\nfunction TrafficLights() {\r\n  function* Red() {\r\n    yield on(\"timer\", Green);\r\n  }\r\n  function* Green() {\r\n    yield on(\"timer\", Yellow);\r\n  }\r\n  function* Yellow() {\r\n    yield on(\"timer\", Red);\r\n  }\r\n\r\n  return Red;\r\n}\r\n\r\nconst m = start(TrafficLights);\r\nm.current; // { state: \"Red\", count: 0 }\r\nm.next(\"timer\");\r\nm.current; // { state: \"Green\", count: 1 }\r\nm.next(\"timer\");\r\nm.current; // { state: \"Yellow\", count: 2 }\r\n```\r\n\r\nAfter compiles to:\r\n\r\n```js\r\n\r\nfunction* startTrafficLights() {\r\n  let count = 0;\r\n  let state = \"Red\";\r\n\r\n  return {\r\n    get current() {\r\n      return Object.freeze({ count, state });\r\n    }\r\n    next(event) {\r\n      if (event === \"timer\") {\r\n        count++;\r\n        if (state === \"Red\") {\r\n          state = \"Green\";\r\n        } else if (state === \"Green\") {\r\n          state = \"Yellow\";\r\n        } else if (state === \"Yellow\") {\r\n          state = \"Red\";\r\n        }\r\n      }\r\n      return { value: this.current, done: false };\r\n    },\r\n  };\r\n}\r\n\r\nconst m = startTrafficLights();\r\nm.current; // { state: \"Red\", count: 0 }\r\nm.next(\"timer\");\r\nm.current; // { state: \"Green\", count: 1 }\r\nm.next(\"timer\");\r\nm.current; // { state: \"Yellow\", count: 2 }\r\n```","author":{"url":"https://github.com/RoyalIcing","@type":"Person","name":"RoyalIcing"},"datePublished":"2022-02-22T02:49:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/34/yieldmachine/issues/34"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:550b6841-b1dc-1f18-8eff-a0790afa0f7a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8140:14F335:178FABA:1EC94EF:6974414D
html-safe-nonceff4e7ae0366dc1843a7e50b6c2b53acfbf3722894be43df177a0d28719203654
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTQwOjE0RjMzNToxNzhGQUJBOjFFQzk0RUY6Njk3NDQxNEQiLCJ2aXNpdG9yX2lkIjoiNjc4MzUzMzcyMDU4NjY5OTA4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacbb726d8d832b46484fc631285144c2d022fd6b3bf311feba1dc6931f0e83e302
hovercard-subject-tagissue:1146393877
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptRegenerated/yieldmachine/34/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1068df2cf6bc5f2040ec18fd2e13bac50b75a81e72ccacf2649c1d56da67b662/JavaScriptRegenerated/yieldmachine/issues/34
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1068df2cf6bc5f2040ec18fd2e13bac50b75a81e72ccacf2649c1d56da67b662/JavaScriptRegenerated/yieldmachine/issues/34
og:image:altBefore: import { start } from "yieldmachine"; function TrafficLights() { function* Red() { yield on("timer", Green); } function* Green() { yield on("timer", Yellow); } function* Yellow() { yield on...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameRoyalIcing
hostnamegithub.com
expected-hostnamegithub.com
Nonee0b95d743b7672c9ac0e1032d5f117950182dc164a83434a7db86510e8f0b37c
turbo-cache-controlno-preview
go-importgithub.com/JavaScriptRegenerated/yieldmachine git https://github.com/JavaScriptRegenerated/yieldmachine.git
octolytics-dimension-user_id91813245
octolytics-dimension-user_loginJavaScriptRegenerated
octolytics-dimension-repository_id327153192
octolytics-dimension-repository_nwoJavaScriptRegenerated/yieldmachine
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id327153192
octolytics-dimension-repository_network_root_nwoJavaScriptRegenerated/yieldmachine
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release56fe7e2e8de6e57740bca50402351ea656f7a4bf
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/JavaScriptRegenerated/yieldmachine/issues/34#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptRegenerated%2Fyieldmachine%2Fissues%2F34
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%2FJavaScriptRegenerated%2Fyieldmachine%2Fissues%2F34
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%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=JavaScriptRegenerated%2Fyieldmachine
Reloadhttps://patch-diff.githubusercontent.com/JavaScriptRegenerated/yieldmachine/issues/34
Reloadhttps://patch-diff.githubusercontent.com/JavaScriptRegenerated/yieldmachine/issues/34
Reloadhttps://patch-diff.githubusercontent.com/JavaScriptRegenerated/yieldmachine/issues/34
JavaScriptRegenerated https://patch-diff.githubusercontent.com/JavaScriptRegenerated
yieldmachinehttps://patch-diff.githubusercontent.com/JavaScriptRegenerated/yieldmachine
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FJavaScriptRegenerated%2Fyieldmachine
Fork 0 https://patch-diff.githubusercontent.com/login?return_to=%2FJavaScriptRegenerated%2Fyieldmachine
Star 34 https://patch-diff.githubusercontent.com/login?return_to=%2FJavaScriptRegenerated%2Fyieldmachine
Code https://patch-diff.githubusercontent.com/JavaScriptRegenerated/yieldmachine
Issues 33 https://patch-diff.githubusercontent.com/JavaScriptRegenerated/yieldmachine/issues
Pull requests 1 https://patch-diff.githubusercontent.com/JavaScriptRegenerated/yieldmachine/pulls
Actions https://patch-diff.githubusercontent.com/JavaScriptRegenerated/yieldmachine/actions
Projects 0 https://patch-diff.githubusercontent.com/JavaScriptRegenerated/yieldmachine/projects
Security 0 https://patch-diff.githubusercontent.com/JavaScriptRegenerated/yieldmachine/security
Insights https://patch-diff.githubusercontent.com/JavaScriptRegenerated/yieldmachine/pulse
Code https://patch-diff.githubusercontent.com/JavaScriptRegenerated/yieldmachine
Issues https://patch-diff.githubusercontent.com/JavaScriptRegenerated/yieldmachine/issues
Pull requests https://patch-diff.githubusercontent.com/JavaScriptRegenerated/yieldmachine/pulls
Actions https://patch-diff.githubusercontent.com/JavaScriptRegenerated/yieldmachine/actions
Projects https://patch-diff.githubusercontent.com/JavaScriptRegenerated/yieldmachine/projects
Security https://patch-diff.githubusercontent.com/JavaScriptRegenerated/yieldmachine/security
Insights https://patch-diff.githubusercontent.com/JavaScriptRegenerated/yieldmachine/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/JavaScriptRegenerated/yieldmachine/issues/34
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/JavaScriptRegenerated/yieldmachine/issues/34
Compile Library away to imperative codehttps://patch-diff.githubusercontent.com/JavaScriptRegenerated/yieldmachine/issues/34#top
https://github.com/RoyalIcing
https://github.com/RoyalIcing
RoyalIcinghttps://github.com/RoyalIcing
on Feb 22, 2022https://github.com/JavaScriptRegenerated/yieldmachine/issues/34#issue-1146393877
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.