this post was submitted on 11 Aug 2024
162 points (85.2% liked)

Programmer Humor

32415 readers
585 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 33 comments
sorted by: hot top controversial new old
[–] AllNewTypeFace@leminal.space 49 points 3 months ago (1 children)

“Hand-written assembly” is not more powerful than any other Turing-complete language (including Perl and Python), just more painfully slow and prone to human error to write. (Perhaps if you have a special case requiring speed (such as the processing being done in a tight loop in a financial trading app and the results needing to beat rival trading systems by milliseconds or something equally esoteric), it’d make sense, but in that case, a modern compiler (for, say, C/C++/Rust or similar) would yield comparable results, and if a lot is riding on those milliseconds, you’d eschew code and build a FPGA that pulls the data out of memory buffers in hardware or similar.)

So these days, the only use case for hand-writing assembly language (other than low-level OS/firmware programming or compiler development) is performative Feats Of Strength, where the challenge is the point. And in that case, you’d be trying to do something heroically challenging, like writing an Atari 2600 demake of Baldur’s Gate or something.

[–] stingpie@lemmy.world 22 points 3 months ago (1 children)

Hand written assembly is much more powerful than a turing-complete high level language because it lets you fuck up everything. Rust and python are way too wimpy to allow a user to destroy their computer.

[–] vext01@lemmy.sdf.org 2 points 3 months ago (1 children)

On the other hand you can't really have UB in code written in asm.

Just throwing that out there!

[–] rain_worl@lemmy.world 0 points 1 month ago

could have instruction undefined behavior (eg, integer overflow wrap/saturate/trap/explode), and is different on different computers

[–] kata1yst@sh.itjust.works 44 points 3 months ago (1 children)
[–] adarza@lemmy.ca 18 points 3 months ago (1 children)

that is the white portion of the diagram.

[–] xmunk@sh.itjust.works 14 points 3 months ago

The diagram was actually written in LaTeX.

[–] Vent@lemm.ee 34 points 3 months ago (2 children)

Grep is as high power as vim and emacs??? In what universe?

[–] verdigris@lemmy.ml 19 points 3 months ago

When combined with sed, sure, but the difficulty ratings should be swapped.

[–] lunarul@lemmy.world 12 points 3 months ago (1 children)

And vim/emacs are rated just as difficult as a programming language

[–] CanadaPlus@lemmy.sdf.org 2 points 2 months ago (1 children)

Should they be more or less difficult, though? Really basic coding seems easier to me than remembering an endless soup of hotkeys I'll rarely need.

[–] lunarul@lemmy.world 2 points 2 months ago (1 children)

Not sure why you'd remember the ones you rarely need. I just memorized the things I use. Remembering stuff you use is much easier than learning a programming language. I've been programming for over 30 years and I've been using vim as my only "IDE" for the last 14 years. It would take me significantly less time to teach someone vim than to teach them programming.

[–] CanadaPlus@lemmy.sdf.org 3 points 2 months ago (1 children)

See, the thing with Vim is that I don't actually know which of the endless features I need. I don't really feel like I'm missing much with the basic text editors.

Maybe you could shine some light on it for me? Right now I'm the sideways-glancing monkey meme every time IDEs come up.

[–] lunarul@lemmy.world 2 points 2 months ago

For me it's just convenience. It's not because vim is better, but because it works on any terminal. I don't depend on a particular IDE setup, I can jump on any computer and start working. And since I've been using it for so many years I'm very fast in it. The best tool is often the one you know best.

[–] visor841@lemmy.world 21 points 3 months ago

Programming languages is way too broad a category. There's a lot of variation in both power and difficulty.

[–] hperrin@lemmy.world 12 points 3 months ago

What about the one that should be in the top left, both high power and easy, interns.

[–] lord_ryvan@ttrpg.network 10 points 3 months ago

Pretty sure text editors allow a lot of power, in the upper half in any case

[–] Collatz_problem@hexbear.net 7 points 3 months ago

AI chatbots should be near I Ching divination.

[–] SnotFlickerman@lemmy.blahaj.zone 7 points 3 months ago

I Ching divination

That's why I use icsh, the I Ching Shell.

[–] onlooker@lemmy.ml 5 points 2 months ago (1 children)
[–] propter_hog@hexbear.net 4 points 2 months ago (1 children)
[–] BlueMagma@sh.itjust.works 2 points 2 months ago (1 children)

I don't understand why it was put in the middle, it should be in the lower right corner, lowest power, and highest difficulty.

[–] CanadaPlus@lemmy.sdf.org 2 points 2 months ago* (last edited 2 months ago)

I think it was supposed to be an insult to everything lower, but the easy-weak quadrant doesn't deserve that.

[–] oberstoffensichtlich@feddit.org 4 points 2 months ago

Spreadsheets are actually running the world.

[–] jecxjo@midwest.social 4 points 2 months ago* (last edited 2 months ago)

I, as one of the ten people on the planet who writes awk scripts, noticed the most powerful text processing tool is missing.

[–] neidu2@feddit.nl 4 points 3 months ago

I'm environmentally damaged enough to honestly think that perl should be further left. It's pretty easy, but I'm the first to admit that perl code looks like ass.

[–] 9point6@lemmy.world 3 points 3 months ago

I like that this clearly articulates that text editors are just whatever the hell vim & emacs are, with training wheels

My pandoc scripts are fairly easy to use, I think...

[–] netvor@lemmy.world 2 points 2 months ago (1 children)

WISYWIG managing nested bullet point or numbered lists should be in right-bottom corner.

[–] duck1e@lemmy.ml 2 points 2 months ago (2 children)

did you typo WYSIWYG acryomn or is this something new ?

[–] netvor@lemmy.world 2 points 2 months ago

oh, I toatlly typoed it

(LOL I made a perfect "What Iou See Ys What Iou Get")

[–] superkret@feddit.org 1 points 2 months ago

M365 would be WYSIWIG.
What you see is what I get.

[–] Brickardo@feddit.nl 1 points 3 months ago

WYSIWYG editors rock. Long live TeXmacs!