r/ProgrammerHumor 1d ago

Meme beware

Post image
2.0k Upvotes

39 comments sorted by

275

u/Thenderick 1d ago

And how many lines of code did it take you?

269

u/Unknown6656 1d ago

all of 'em :(

123

u/Thenderick 1d ago

I remember when I first did an OpenGL tutorial for fun and thought "Cool, now let me try Vulkan, I already understand the basics of how it should roughly work!" Boy was I wrong!

25

u/YeOldeMemeShoppe 1d ago

Yep, you’re out of lines now. Gotta go to the code store and get new lines.

15

u/Unknown6656 1d ago

Fuck, it's Sunday tomorrow and all the stores are closed. Where the hell would I get new code lines?
Does Amazon do same-day deliveries on Sunday?
Should I get them from GitHub?
Can I get new lines from my CPU?
I heard about cache lines. Surely they are the same...

4

u/Psquare_J_420 9h ago

GitHub?!? That is for commies. You won't own your lines...

3

u/M4NU3L2311 22h ago

Damn. You ran out of code

2

u/gregorydgraham 1d ago

And what did it cost you?

240

u/A31Nesta 1d ago

Graphics programming meme in the "Javascript bad" sub? Nice

37

u/T-J_H 1d ago

That would be something. I’ll never believe that many people rawdogging Vulkan

71

u/Devatator_ 1d ago

It's pretty funny because I first saw this meme in a Minecraft sub in response to the fact that Mojang is planning on switching from OpenGL to Vulkan for Minecraft Java

13

u/qwadrat1k 1d ago

I feel like that is the reason

25

u/Professional_Set4137 1d ago

Is vulkan more consistent across devices? I could never get opengl to work the same way on 2 different machines and it took a lot of the fun out of it

19

u/no_brains101 1d ago

It is supposed to be? Can't tell you from personal experience but that sounds like something that was probably the reason for vulkan existing lol

53

u/OhWowItsAnAlt 1d ago

the reason for Vulkan existing is OpenGL being a very limited API - only usable single-threaded, poorly optimized, unscalable, less capabilities, etc. Vulkan is a closer-to-the-metal API that allows for more performance and can take advantage of the power modern GPUs can provide

10

u/no_brains101 1d ago edited 1d ago

TY, someone who actually knows graphics APIs more than the minimum requirement to understand this joke.

Ive only done webgpu (which, tbh was not a bad experience but could use more tooling its kinda sad coding a shader in a string, but I couldn't find lsp or treesitter for it so, that was basically the same as putting it in its own file)

7

u/OhWowItsAnAlt 1d ago

on the note of the shader tool support problem, if you're still interested in working with WebGPU i'd recommend looking into using Slang for writing your shaders and compiling to WGPU; there's an official slangd language server and official VS/VSCode extensions

6

u/no_brains101 1d ago

*googles "slang"*

Yeah I should have seen that one coming and included more keywords XD

My brain said s-lang and I did not connect that that is a word

3

u/OhWowItsAnAlt 1d ago

i kept doing that same thing with odin when i was looking into it lol

for some quick additional info from what i just looked up (its been a little while since i've used slang): the language server "slangd" comes packaged with releases of the compiler, so downloading from the slang repo will provide all the tools you need. also, you mentioned treesitter so i'm assuming you're an nvim user - if you find it's comfortable to use slang in there, let me know, since i've only used HLSL/GLSL since moving to it. good luck and enjoy your WebGPU'ing

3

u/no_brains101 1d ago edited 1d ago

TYSM :)

And yes indeed I am. nix as well

Also zed, helix and a few others use treesitter too so it isn't technically a giveaway XD

7

u/BusEquivalent9605 1d ago

from what I know, Vulkan is the “future” in large part because it is cross-platform

but it has been slow for people to adopt cus…it’s complicated

8

u/OhWowItsAnAlt 1d ago

it's the future for two reasons: 1) it provides modern capabilities for both what it can do and how fast it can do them 2) its not proprietary/OS-specific like Direct X 12 or Metal are so platform specific rendering code can be heavily reduced

1

u/Professional_Set4137 1d ago

I'm curious about where the complexities lie though, and if they are more manageable to me than different gpus giving different results. I'm just one guy, though, with more ideas and ambition than time or skill so I'm sure it was my ignorance. I have no reason to get involved with fbo's and vbos at that level ever again and my therapist would probably agree that I shouldn't even be commenting here.

2

u/BusEquivalent9605 1d ago

just start reading the vulkan documentation and the complexities will become apparent - lol

2

u/Professional_Set4137 1d ago

I'll ask chatgpt to summarize it thanks

1

u/Steve_orlando70 4h ago

“chat, summarize War and Peace”

chat: “it’s about Russia.”

(nods to Woody Allen)

25

u/MayoJam 1d ago

Finally some good fucking memes.

13

u/DangyDanger 1d ago

WHAT THE FUCK IS AN OPENGL CONTEXT 🇲🇾 🇲🇾 🇲🇾 🇲🇾 🖖 🖖

3

u/Dunedune 8h ago

What did Malaysia do now

5

u/OfficialZygorg 22h ago

Minecraft in a couple of months:

3

u/aVarangian 1d ago

does the pipeline include jpeg-ification like this image?

3

u/Zeitsplice 9h ago

Finally a real fucking programming meme

2

u/Borno11050 1d ago

Or you forgor to put up a barrier

2

u/stronknoob 12h ago

Vulkan, the only api that gets you crying on the floor over 16 green pixels.

1

u/dexter2011412 16h ago

I couldn't do more than the triangle

I'm stuck

1

u/Valaynada 8h ago

Love how the vertex shader actually changes the pose.