this post was submitted on 07 Feb 2025
180 points (99.5% liked)

Programmer Humor

20383 readers
2702 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
all 26 comments
sorted by: hot top controversial new old
[–] SkybreakerEngineer@lemmy.world 81 points 3 hours ago (2 children)

You can't parse [X]HTML with LLM. Because HTML can't be parsed by LLM. LLM is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of LLM will not allow you to consume HTML. LLM are a tool that is insufficiently sophisticated to understand the constructs employed by HTML. HTML is not a regular language and hence cannot be parsed by LLM. LLM queries are not equipped to break down HTML into its meaningful parts. so many times but it is not getting to me. Even enhanced irregular LLM as used by Perl are not up to the task of parsing HTML. You will never make me crack. HTML is a language of sufficient complexity that it cannot be parsed by LLM. Even Jon Skeet cannot parse HTML using LLM. Every time you attempt to parse HTML with LLM, the unholy child weeps the blood of virgins, and Russian hackers pwn your webapp. Parsing HTML with LLM summons tainted souls into the realm of the living. HTML and LLM go together like love, marriage, and ritual infanticide. The cannot hold it is too late. The force of LLM and HTML together in the same conceptual space will destroy your mind like so much watery putty. If you parse HTML with LLM you are giving in to Them and their blasphemous ways which doom us all to inhuman toil for the One whose Name cannot be expressed in the Basic Multilingual Plane, he comes. HTML-plus-LLM will liquify the n​erves of the sentient whilst you observe, your psyche withering in the onslaught of horror. LLM-based HTML parsers are the cancer that is killing StackOverflow it is too late it is too late we cannot be saved the transgression of a chi͡ld ensures LLM will consume all living tissue (except for HTML which it cannot, as previously prophesied) dear lord help us how can anyone survive this scourge using LLM to parse HTML has doomed humanity to an eternity of dread torture and security holes using LLM as a tool to process HTML establishes a breach between this world and the dread realm of c͒ͪo͛ͫrrupt entities (like SGML entities, but more corrupt) a mere glimpse of the world of LLM parsers for HTML will ins​tantly transport a programmer's consciousness into a world of ceaseless screaming, he comes, the pestilent slithy LLM-infection wil​l devour your HT​ML parser, application and existence for all time like Visual Basic only worse he comes he comes do not fi​ght he com̡e̶s, ̕h̵i​s un̨ho͞ly radiańcé destro҉ying all enli̍̈́̂̈́ghtenment, HTML tags lea͠ki̧n͘g fr̶ǫm ̡yo​͟ur eye͢s̸ ̛l̕ik͏e liq​uid pain, the song of re̸gular exp​ression parsing will exti​nguish the voices of mor​tal man from the sp​here I can see it can you see ̲͚̖͔̙î̩́t̲͎̩̱͔́̋̀ it is beautiful t​he final snuffing of the lie​s of Man ALL IS LOŚ͖̩͇̗̪̏̈́T ALL I​S LOST the pon̷y he comes he c̶̮omes he comes the ich​or permeates all MY FACE MY FACE ᵒh god no NO NOO̼O​O NΘ stop the an​*̶͑̾̾​̅ͫ͏̙̤g͇̫͛͆̾ͫ̑͆l͖͉̗̩̳̟̍ͫͥͨe̠̅s ͎a̧͈͖r̽̾̈́͒͑e n​ot rè̑ͧ̌aͨl̘̝̙̃ͤ͂̾̆ ZA̡͊͠͝LGΌ ISͮ̂҉̯͈͕̹̘̱ TO͇̹̺ͅƝ̴ȳ̳ TH̘Ë͖́̉ ͠P̯͍̭O̚​N̐Y̡ H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ

[–] LeFrog@discuss.tchncs.de 21 points 3 hours ago

Oh, the timeless classic. Chef's kiss

[–] cm0002@lemmy.world 7 points 3 hours ago (3 children)

Alright new copypasta drop!

[–] tsiad_mordecai_miktros@lemmy.world 39 points 4 hours ago* (last edited 4 hours ago) (1 children)

send me your data and i will parse it for you

it may take me a week to get back to you

[–] steventhedev@lemmy.world 12 points 3 hours ago (2 children)

How many tokens fit in your context window?

[–] veroxii@aussie.zone 13 points 3 hours ago

About tree fiddy

if java then like 9

[–] wise_pancake@lemmy.ca 13 points 4 hours ago (2 children)

Yes, there are LLMs for that, you literally just have to Google "llm parse PDF".

You could also use tesseract or any number of other solutions which probably work as well...

But an inexperienced kid is gonna act like an inexperienced kid

[–] lolrightythen@lemmy.world 1 points 2 hours ago

Dangerously.

[–] sabreW4K3@lazysoci.al 2 points 4 hours ago* (last edited 3 hours ago) (1 children)

I mean he's not wrong.

Edit: it seems the joke that LLMs just take other people's data and regurgitates it in another format went over everyone's head 🥺

[–] lemmyng@lemmy.ca 58 points 4 hours ago (5 children)

Using LLM for format conversion is like taking a picture of an electronic document, taking the card out of the camera and plugging it into a computer, printing the screenshots, taking those prints to a scanner with OCR, turning the result into an audio recording, and then dictating it too an army of 3 million monkeys with typewriters.

[–] qaz@lemmy.world 1 points 8 minutes ago

Sounds very appropriate for a government operation

[–] MajorHavoc@programming.dev 1 points 55 minutes ago

So...my process (which you just accurately described) could be replaced by an LLM, after all? Hooray! Monkey feed isn't too expensive, but a million mouths is still a million mouths.

[–] gsfraley@lemmy.world 13 points 4 hours ago

Haha considering just how much irrelevant third-party training data you'd be looping into a format conversion, this metaphor really is spot-on.

[–] htrayl@lemmy.world 2 points 3 hours ago

Im not so sure. I think this is more of a question about taking arbitrary, undefined, or highly variable unstructured data and transforming it into a close approximation for structured data.

Yes, the pipeline will include additional steps beyond "LLM do the thing", but there are plenty of tools that seek to do this with LLM assistance.