#diff

9 posts · Last used 8d

Replying to
oh! and since i dont' want to start another thread rn, meta's advertising skill just dropped! such fun! multisided market collapsing in the face of a different, much shittier multisided market: https://github.com/sneakers-the-rat/muse-skills/commit/8f8bccc3afc3e8974e7a6048940bdf4a16052690#diff-3d82b1080dcdc5db97ea500aaa83db5208deb0929d4f20342e0fbc4cfcf70359
5
0
0
0
Replying to
I fucking can't with this shit sometimes. So there is a skill for rendering local HTML "artifacts", little local websites. However the LLM frequently outputs invalid HTML/JS, and it wants to enforce some other rules like not loading external js. There is already a check for this when artifacts are built into a runnable state, but that guess and check is apparently expensive, so rather than "fixing that and just failing fast in a single codepath" this PR adds a duplicate, slightly diverged layer of checks that can be run without building. One small part is so wonderfully broken and cursed, emblematic of LLM code: the check for whether all script tag openings have a corresponding close. So there already IS a proper HTML/js AST parser, which is run, but fuck that too easy. First we call findScriptElements, which searches for the start of a script start tag with regex, and then uses a handrolled character-level parser to find where it's closed. Amazing! Why? Fuck off that's why! That finds the tag, and then we look for the corresponding tag with a similar but slightly different regex+custom parser combination. Whats that you say? Thats invalid? Not how HTML works? Fuck off! If no end tag is found the start tag is ignored and findScriptElements breaks. So at this point we already know if there are unbalanced script tags, even if we are incorrectly parsing HTML with regex, we just don't use that information. But wait! There so much more! You didn't ask for more? Fuck you! Since the scripts get transformed, and scripts can have strings that look like script tags, we then get a version of the document with all the BODIES of its script tags stripped out. To do that it also uses findScriptElements, but wait, wasn't that based on regex and would incorrectly match against the very thing we're trying to strip out? Fuck you! What were we doing? Finding unclosed script tags! So we have a list of closed script element locations, a string with all the bodies of its script elements stripped out, so now of course we need a new function countScriptTagStarts, which is of course just a plain regex search for the opening script tags! With everything we need in hand, which is... Whatever... We then compare if the number of script start tags in the script element stripped html matches the count of the script elements we extracted at the beginning. If that doesn't match we say that... Something... Is wrong! Still not done! Still not released from this torment! You know how validators "scan the whole thing and collect all the errors" and report them, because then you can fix them all at once? Not here! Emit only one error and then bash the LLM at it in a loop! Notice how it says "errors cascade and presenting multiple is just noise" - thats strictly a feature of how shitty their validator is! Usually parse errors are just a different kind of error that shortcircuits further validation that assumes syntactically valid input, so then validation errors don't always propagate! So to compensate for the shitty random walk code churn, we ensure all code that get written in the future has even more preposterously expensive shitty random walk code churn! Coding!!!! Is !!!! Solved!!!!!!!!! https://github.com/sneakers-the-rat/muse-skills/commit/48856cfd38dbae6607c3db3925eda8250175ffc8#diff-d30f3a73309eb8ece5a07551cc5a94009c2b704f177df79afe6410580e806bbaR12
22
0
13
1
L’Amour est L’Amour n’a ni conditions ni limites, Il accueille et console les égarés, les justes. Stériles sont les idoles comparées à lui. L’Amour n’attend ni retour ni merci C’est un trésor à partager qui grandit. Seuls les malveillants le brident, le dénient. Ils jugent et lancent leurs anathèmes Quand l’Amour nous dit « Viens, je t’aime. » Vital, il nourrit les fous, les fragiles, les fanfarons Qu’importent nos différences, nos façons. No 1215 Mercredi 23/09/2026 cCK #poésie #amour #différences
5
1
2
0
The #Apple Platform Security Guide was updated yesterday (2026-08-03). Mostly a bunch of editing (oddly, changing "must" to "needs to" everywhere). But there are four new sections: ⁃ Terminal and script protections ⁃ Search on iCloud[.]com security ⁃ SharePlay security ⁃ Nearby sharing security The terminal and script protections is especially interesting: ⁃ Terminal paste protection ⁃ Pasteboard command blocking ⁃ Applescript scanning(!) Here's a diff: https://codeberg.org/zcutlip/apple-platform-security-guide/compare/2026-03.002..2026-08.000#diff-6e157a7cf35da3efec74dafd2a50c7a023bb5676
1
1
2
0
Ok so this “what uses rust” website lists “Valve Proton” as one of the projects using rust. Curious. It links to a reddit post mentioning that proton 5.13-1 used Rust for media_converter. The only problem: In Proton 9, media_converter was rewritten in C, integrated into winegstreamer, and the rust version was removed. https://github.com/ValveSoftware/Proton/commit/da36c977f919e4744769b55384cec23000c83419#diff-ed8d88df6b3495f923c623fd4c4c6705b4550a7dc6e5556fd383942c741aee06
17
7
3
0
You've seen all posts