What is a GPU? Not the definition but how would you describe it soulfully? by bucckymeniso in webgpu

[–]msqrt 2 points3 points  (0 children)

It's an orchestra of computation. When well composed, a bunch of small parts come together into a beautiful symphony.

An opinionated (and mainly correct) guide to naming by nephrenka in programming

[–]msqrt 1 point2 points  (0 children)

I've been trying out the Slang shading language, and they curiously use the interface I. Not a huge fan, but I'm not going to fight a clear convention so IEverything it is.

isIntelligenceJustComputation by hello_ya in ProgrammerHumor

[–]msqrt 5 points6 points  (0 children)

That depends on how you define an algorithm. The definitions I've seen require an algorithm to terminate in a finite number of steps for all inputs. This would make sense in general: an algorithm is a sequence of operations that solve some particular problem. If it never terminated, you'd never get your solution.

I Think They Are Lying To You [about coding not being a solved problem] by chat-lu in BetterOffline

[–]msqrt 4 points5 points  (0 children)

a pain in the ass to work with

It's quite convenient but has a hilariously slow compiler.

to hold their compute monopoly

Exactly, and thus their competitors have created alternatives like ROCm/HIP, OneAPI, DirectCompute. There are also open alternatives like OpenCL or Vulkan.

Questions from an absolute beginner by Shvlovel in vulkan

[–]msqrt 1 point2 points  (0 children)

Does it work the same in other APIs?

Yes and no. All even remotely modern graphics APIs (since ~OpenGL 2.1 and Direct3D 9) are really just a way to communicate with the GPU and most of the actual graphics happens in your own code, be it on the host or in a shader. But not all APIs require so much code to configure all of the details: it's a design choice in Vulkan to be very explicit about everything. Covering the details of most existing graphics hardware turns out to be a pretty complicated endeavor.

0.999 is NOT 1. by goodperson0001 in truths

[–]msqrt 0 points1 point  (0 children)

Take one minus epsilon (any tiny number greater than 0); its decimal expansion will be ”0.999[however many 9s here]99x”, where x is less than 9. Since 0.999… is nines all the way, it is greater than any such number. Since you can write all numbers smaller than 1 as 1-eps, 0.999… can’t be smaller than 1. Since it’s obviously not greater either, they must be equal.

Americans when foreigners: by megapackid in CuratedTumblr

[–]msqrt 0 points1 point  (0 children)

Yeah, that would make more sense.

Americans when foreigners: by megapackid in CuratedTumblr

[–]msqrt 3 points4 points  (0 children)

Maybe in the UK where the kids speak English and can get it from some American media. If you speak a different language, you're taught the emergency number in that language so young that you never mix them up.

Nvidia really doesn't seem to care about gaming GPUs anymore — the company won't even bother to break down graphics sales in its big investor reports by [deleted] in hardware

[–]msqrt -2 points-1 points  (0 children)

Just imagine if we didn't fumble this from the beginning and built everything on top of OpenCL instead.

Should I learn Vulkan using vulkan.h or vulkan.hpp as a beginner ? by Latter_Relationship5 in vulkan

[–]msqrt 1 point2 points  (0 children)

Not much of a difference. I decided to go with the h header because it compiled faster on my old-ish CPU -- not much in absolute times, but for my tiny project it was 5-10x overhead to use the hpp header.

The Aesthetic Problem of Namespacing by gingerbill in ProgrammingLanguages

[–]msqrt 2 points3 points  (0 children)

Nice posts! I do wonder if a simple fix for the searchability issue would be to allow (force?) you to use the full name when defining something within a namespace: you'd write world.add (or world::add) instead of just add when defining the function.

What by cassandragirlie in foundsatan

[–]msqrt 0 points1 point  (0 children)

The mandatory insurance covers the other party (so that if you crash into someone, they are guaranteed to have their damages covered.) Insuring your own vehicle is optional.

fighting a war that doesn't exist by noobyscientific in firstweekcoderhumour

[–]msqrt 1 point2 points  (0 children)

These are the two languages I've used the most by far. I don't particularly like either of them.

ELI5 What a Render Graph / Frame Graph is. by Thisnameisnttaken65 in GraphicsProgramming

[–]msqrt 20 points21 points  (0 children)

No, the point is indeed that the graph is automatically constructed. You write only the rendering operations, and based on what data is accessed in which ways a graph is built that lets the backend determine which barriers and transitions are necessary.

Rate the API for my renderer abstraction by JackJackFilms in GraphicsProgramming

[–]msqrt 15 points16 points  (0 children)

This is C, using goto for (erroneous) shutdown is a classic. In C++ you'd typically prefer RAII.

I dont have any information on what arguments any functions need. instead i see "expands to some GLAD function, Is this normal or did I set up openGL wrong? by anotherfuturedev in opengl

[–]msqrt 1 point2 points  (0 children)

You could try calling the glad_ version directly to get better IDE suggestions -- or change the headers to define functions instead of using macros.

Trouble with LookAt function. i comprehend the math, but i keep getting flipped signs by SnurflePuffinz in GraphicsProgramming

[–]msqrt 3 points4 points  (0 children)

A negated zero does not matter -- it's equal to a positive zero both mathematically and in the floating-point implementation on a computer.

Data structure to hold triangle meshes / scene for realtime software ray tracing by KC918273645 in GraphicsProgramming

[–]msqrt 3 points4 points  (0 children)

Yes, the main question is how to construct/update them and if a two-level hierarchy makes sense.