Title: Design Meeting Notes, 5/24/2019 · Issue #31584 · microsoft/TypeScript · GitHub
Open Graph Title: Design Meeting Notes, 5/24/2019 · Issue #31584 · microsoft/TypeScript
X Title: Design Meeting Notes, 5/24/2019 · Issue #31584 · microsoft/TypeScript
Description: Correct Constraint Checking #31006 Could park behind a flag, maybe within --strict mode But silly not to give this to everyone? Breaks Ember's .d.ts files (Chris Krycho (@chriskrycho)) Does this help everyone, or is this something you no...
Open Graph Description: Correct Constraint Checking #31006 Could park behind a flag, maybe within --strict mode But silly not to give this to everyone? Breaks Ember's .d.ts files (Chris Krycho (@chriskrycho)) Does this he...
X Description: Correct Constraint Checking #31006 Could park behind a flag, maybe within --strict mode But silly not to give this to everyone? Breaks Ember's .d.ts files (Chris Krycho (@chriskrycho)) Does thi...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/31584
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Design Meeting Notes, 5/24/2019","articleBody":"# Correct Constraint Checking\r\n\r\n#31006\r\n\r\n* Could park behind a flag, maybe within `--strict` mode\r\n * But silly not to give this to everyone?\r\n* Breaks Ember's `.d.ts` files (@chriskrycho)\r\n* Does this help everyone, or is this something you notice as a power-user?\r\n* Conclusion: update PR, update user test suite, re-evaluate and update Ember if necessary\r\n\r\n# OOM Woes\r\n\r\n#30050\r\n\r\n* We've been receiving a lot of OOM woes.\r\n* All seem to have the same root cause.\r\n* Related to normalization of large intersection types.\r\n * `(A | B | C | D) & (E | F | G | D)`\r\n\r\n ```ts\r\n interface A { A: \"A\" }\r\n interface B { B: \"B\" }\r\n interface C { C: \"C\" }\r\n interface D { D: \"D\" }\r\n\r\n interface E { E: \"E\" }\r\n interface F { F: \"F\" }\r\n interface G { G: \"G\" }\r\n interface H { H: \"H\" }\r\n\r\n type BLAH = (A | B | C | D) & (E | F | G | H)\r\n\r\n // Equivalent to...\r\n type BLAH = (A & E) | (A & F) | (A & G) | (A & H) | (B & E) | (B & F) | (B & G) | (B & H) | (C & E) | (C & F) | (C & G) | (C & H) | (D & E) | (D & F) | (D & G) | (D & H)\r\n ```\r\n * This grows pretty fast.\r\n * Comes up a lot when you use something like `keyof React.ReactHTML`\r\n * We run out of memory at `2**19`, and some operations on React have calculated `2 ** 111`.\r\n * We now have a limiter during the normalization pass to compute the upper-bound of the number of unions we might generate, so that we gracefully fail instead of generating out-of-memory errors.\r\n* This will generate some trouble for React users.\r\n* Also looks like there are a lot of bogus intersections we choke up on.\r\n * `\"a\" & { __tag: \"adsad\" }`\r\n * Maybe there's a subset of intersections with object types.\r\n * We need some way of doing nominal tagging\r\n * Can we just determine what to do based on number of members?\r\n * Nope, expensive to determine this.\r\n* Resolution: Need to put this into the breaking changes list.","author":{"url":"https://github.com/DanielRosenwasser","@type":"Person","name":"DanielRosenwasser"},"datePublished":"2019-05-24T20:25:39Z","url":"https://github.com/microsoft/TypeScript/issues/31584"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b65f9923-7fcb-ce86-dffc-6527a01c25e2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8C00:14F601:21F6AE3:2B22CF6:6B015FEE |
| html-safe-nonce | 5ac206c1a7a99958569f809802915a2a9e81ae6f6eb3bd168519525cf92a2035 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzAwOjE0RjYwMToyMUY2QUUzOjJCMjJDRjY6NkIwMTVGRUUiLCJ2aXNpdG9yX2lkIjoiNDUxMzY2OTg1MDAwNjExODM4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ecd86b5cfa1936a563f5cf6ca4640a4f7c5584beb334b23eff96c3403e91fa75 |
| hovercard-subject-tag | issue:448340840 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/31584/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a0b4081898bd80094616b3786c3135a5b065c2a311a6b6d8679630b8850169cd/microsoft/TypeScript/issues/31584 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a0b4081898bd80094616b3786c3135a5b065c2a311a6b6d8679630b8850169cd/microsoft/TypeScript/issues/31584 |
| og:image:alt | Correct Constraint Checking #31006 Could park behind a flag, maybe within --strict mode But silly not to give this to everyone? Breaks Ember's .d.ts files (Chris Krycho (@chriskrycho)) Does this he... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DanielRosenwasser |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width