News for hackers. Stuff that matters.
Re:Simplicity of IRC by ryandrake on Sunday January 09, 2022 @12:13PM (#29865204)
Reminds me of this visualization[1]. The amount of code it takes to simply draw a triangle in OpenGL 1.x, OpenGL 3+, and Vulcan

The learning curve has been sacrificed. It's now a learning cliff for everything. We've used to have computers that make it simple to do simple things and hard to do complex things. Now, just so it can be slightly less hard to do complex things, we've made it hard to learn and do simple things.

1: https://twitter.com/sol_hsa/status/1174233868536356866

Re:Simplicity of IRC by surajrmal on Sunday January 09, 2022 @12:31PM (#29865388)
In the case of graphics, the only thing that's changed is the abstraction layer which is stable. Most folks won't use Vulkan directly, but rather through a layer which they have control to optimize or fix bugs in if they need to. Learning graphics programming will never start directly with Vulkan programming. I suppose there are benefits to make the standard, stable API easy to work with as a beginner, but there are plenty of great open source projects that fill that niche.
Re:Simplicity of IRC by mdoms on Sunday January 09, 2022 @01:23PM (#29865911)
I have never written for Vulkan and have only done bits and pieces of OpenGL but this can't possibly be an honest representation can it?
Re:Simplicity of IRC by 323 on Sunday January 09, 2022 @02:56PM (#29866763)
Even conceptually using Vulkan is much more complicated.

In old GL it's basically glClear, glBegin, glVertex, glVertex, glVertex, glEnd and a bit of window setup.

In Vulkan you need to know what these things are: queues, command buffers, image/geometry buffers, memory locations (constant, uniform, varying), resources, bindings, shader programs, fences, swap chains, and how they all coordinate together.

And until they are all properly coordinated together, you'll just be staring at a black image or just get errors.

Re:Simplicity of IRC by seoaeu on Sunday January 09, 2022 @01:42PM (#29866094)
No, not entirely. Each version does progressively more error checking / debug output. Also the first two output a static single color triangle, while the Vulkan sample outputs a rotating triangle with different colors for each vertex.
Re:Simplicity of IRC by anthk on Sunday January 09, 2022 @12:45PM (#29865557)
TBH GLIDE was the Vulkan of its era.