{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreiftulijykpoxqihqh75bxwam6jgnfpcnwgjk6ynmz462usin2n5gy",
"uri": "at://did:plc:pi6woz4d47bkuws673w2il2r/app.bsky.feed.post/3mk3u7akoc6r2"
},
"path": "/t/how-to-filter-out-vibe-coded-dependencies/13918?page=3#post_54",
"publishedAt": "2026-04-22T15:00:13.000Z",
"site": "https://discourse.haskell.org",
"tags": [
"github.com/ghc/ghc",
"Introduce TargetInt to represent target's Int (#15973)",
"hsyl20",
"+145\n-82",
"…",
"testsuite: avoid re.sub in favor of simple string replacements",
"TerrorJack",
"+54\n-38"
],
"textContent": "github.com/ghc/ghc\n\n#### Introduce TargetInt to represent target's Int (#15973)\n\ncommitted 06:19AM - 11 Apr 26 UTC\n\n\n\n hsyl20\n \n\n\n+145\n-82\n\n\nGHC was using host 'Int' in several places to represent values that live in the …target machine's 'Int' type. This is silently wrong when cross-compiling from a 32-bit host to a 64-bit target: the host Int is 32 bits while the target Int is 64 bits. See Note [TargetInt] in GHC.Platform. Also used the opportunity to make DynTag = Word8. Fixes #15973 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>\n\ngithub.com/ghc/ghc\n\n#### testsuite: avoid re.sub in favor of simple string replacements\n\ncommitted 09:09PM - 21 Jan 26 UTC\n\n\n\n TerrorJack\n \n\n\n+54\n-38\n\n\nThis patch refactors the testsuite driver and avoids the usage of re.sub in favo…r of simple string replacements when possible. The changes are not comprehensive, and there are still a lot of re.sub usages lingering around the tree, but this already addresses a major performance bottleneck in the testsuite driver that might has to do with quadratic or worse slowdown in cpython's regular expression engine when handling certain regex patterns with large strings. Especially on i386, and i386 jobs are the bottlenecks of all full-ci validate pipelines! Here are the elapsed times of testing x86_64/i386 with -j48 before this patch: x86_64: `Build completed in 6m06s` i386: `Build completed in 1h36m` And with this patch: x86_64: `Build completed in 4m55s` i386: `Build completed in 4m23s` Fixes #26786. Co-authored-by: Codex <codex@openai.com>\n\nPlease filter out GHC also",
"title": "How to filter out vibe-coded dependencies"
}