this post was submitted on 07 Feb 2025
566 points (97.8% liked)

Programmer Humor

22410 readers
2345 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
 
top 50 comments
sorted by: hot top controversial new old
[–] SkybreakerEngineer@lemmy.world 226 points 2 months ago (5 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 54 points 2 months ago

Oh, the timeless classic. Chef's kiss

[–] cm0002@lemmy.world 24 points 2 months ago (3 children)

Alright new copypasta drop!

[–] tyler@programming.dev 57 points 2 months ago (3 children)
[–] cm0002@lemmy.world 59 points 2 months ago (1 children)

Well ok new to me then (maybe now I'm thinking I might have read it before lol

Also, LMAO

[–] Pyro@programming.dev 32 points 2 months ago* (last edited 2 months ago) (1 children)
[–] 0x0@lemmy.dbzer0.com 14 points 2 months ago

Thank you for honoring the ancient memes. I pray that Katy, t3h PeNgU1N oF d00m, accepts this offering.

[–] peoplebeproblems@midwest.social 9 points 2 months ago

But it is amazing

load more comments (1 replies)
load more comments (1 replies)
[–] Bakkoda@sh.itjust.works 13 points 2 months ago

Breathtaking. I wish i had more than one upvote.

load more comments (2 replies)
[–] tsiad_mordecai_miktros@lemmy.world 77 points 2 months ago* (last edited 2 months 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 26 points 2 months ago (2 children)

How many tokens fit in your context window?

[–] veroxii@aussie.zone 29 points 2 months ago

About tree fiddy

[–] tsiad_mordecai_miktros@lemmy.world 11 points 2 months ago

if java then like 9

[–] jonne@infosec.pub 69 points 2 months ago (6 children)

So I guess it's just only us Millennials that know how to convert a PDF properly, and we're just sandwiched in between boomers and gen Z finding the most ridiculous ways to try to accomplish that task.

[–] dan@upvote.au 38 points 2 months ago (3 children)

Somehow, millennials ended up being the only generation that at least kind of knows how to use computers.

[–] Saleh@feddit.org 14 points 2 months ago (2 children)

Naah. There is plenty of Gen X, Y, Z who know and plenty of Millenials who dont.

Its just if you wanted to "do stuff with computers" you had to develop some understanding back then.

Today you can "do stuff" like gaming much easier out of the box. So not everyone who "does stuff" knows his way around.

In the office most colleagues of all generations just know how to do their specific things, mostly in MS Office products.

[–] Tuxman@sh.itjust.works 8 points 2 months ago* (last edited 2 months ago) (1 children)

Of god…. The number of colleagues that their WHOLE job depends on MS Word and they never heard of "Insert page break"………

Then they complain when inserting an image breaks their whole document…….

load more comments (1 replies)
load more comments (1 replies)
[–] Sabata11792@ani.social 13 points 2 months ago (1 children)

I will use my powers for evil, just to be smug.

[–] DragonTypeWyvern@midwest.social 7 points 2 months ago

Might as well get something out of being the last adult generation before the collapse.

load more comments (1 replies)
[–] dubyakay@lemmy.ca 17 points 2 months ago (3 children)

As always, GenX just forgotten.

[–] jonne@infosec.pub 8 points 2 months ago

Yeah, I didn't want to shit on you guys. Most of you are all right.

load more comments (1 replies)
[–] AppleTea@lemmy.zip 14 points 2 months ago (2 children)

Ctrl a

Ctrl c

alt tab

Ctl v

Ctl s

conversion complete

[–] lime@feddit.nu 13 points 2 months ago* (last edited 2 months ago) (5 children)

$ pandoc doc.pdf -o doc.txt

Edit: welp, pandoc can't do that. pdftotext it is.

load more comments (5 replies)
load more comments (3 replies)
[–] wise_pancake@lemmy.ca 34 points 2 months ago (13 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

[–] mrkite@programming.dev 22 points 2 months ago

But an inexperienced kid is gonna act like an inexperienced kid

Let's give him access to government payroll!

[–] Sabata11792@ani.social 15 points 2 months ago

It's using a shotgun instead of a drill.

load more comments (11 replies)
[–] pewgar_seemsimandroid@lemmy.blahaj.zone 27 points 2 months ago (1 children)
load more comments (1 replies)
[–] Gsus4@mander.xyz 18 points 2 months ago* (last edited 2 months ago) (11 children)

Same for music like suno. I don't need to remix and hallucitate new fusion music, I just need a really good way to effectively search/discover all music that already exists in one place.

load more comments (11 replies)
[–] JackbyDev@programming.dev 17 points 2 months ago (4 children)

I'm still mad there's no straightforward way to convert a PDF into semantic HTML. There's plenty of tools to convert it into HTML that looks the same with pages and such, but I just want the content.

load more comments (4 replies)
[–] GroundedGator@lemmy.world 15 points 2 months ago (1 children)

We absolutely should have more specialized LLMs. That being said we have dozens of tools that convert documents and data. Also any engineer worth a nickel should be able to whip something up in an hour or so for most cases.

[–] ByteOnBikes@slrpnk.net 15 points 2 months ago (1 children)

But I want AI to convert my mp3s to Oggs and vice versa 😭😭😭

Not some stupid "conversion library" or whatever that is

load more comments (1 replies)
[–] JaddedFauceet@lemmy.world 14 points 2 months ago (4 children)

I used LLM to format my markdown table (ಥ ͜ʖಥ)

[–] locuester@lemmy.zip 7 points 2 months ago (2 children)

This is a primary use for me. A couple times per day.

That’s part of what makes LLMs so popular with software engineers, they solve lots of trivial daily computer tasks.

load more comments (2 replies)
load more comments (3 replies)
[–] Pixel 13 points 2 months ago (4 children)

If it works and it's stupid, then it's not stupid.

[–] Kratzkopf@discuss.tchncs.de 25 points 2 months ago

It is still stupid, if it is incredibly inefficient and super wasteful of limited resources.

[–] FlyingSquid@lemmy.world 22 points 2 months ago

Starving yourself to lose weight works. It's also stupid.

[–] Comment105@lemm.ee 21 points 2 months ago* (last edited 2 months ago) (1 children)

"Hi, yes, one PDF converter please. Just the txt, actually. Yes, extra errors. Thank you."

load more comments (1 replies)
load more comments (1 replies)
load more comments
view more: next ›