There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

deegeese , in Everybody loves 3d programming till they have to sort the world traingles based the MVP matrix.

You can use an O(n) radix sort on the Z-values because IEEE-754 floats share the integer property that leftmost bits always have higher values than rightward ones.

257m OP ,

Thanks man, I’ll look into it when I have the time. This should work on all IEEE compliant systems right?

jarfil ,

Yes, but… “leftmost” in this case means MSB-sidemost, so little-endian systems will start sorting from the MSB only after loading the full value in a register; if you try sorting directly from memory in binary chunks smaller than the float size, first locate where the MSB is stored.

technohacker ,
@technohacker@programming.dev avatar

Oh that just made it click in my head why they would do it as sign, exponent, mantissa and not sign, mantissa, exponent. I mean yes I’ve been taught it’s for sorting purposes, but this really helped it fit better. Thanks!

GlitchSir ,

His do I save a comment?

themusicman ,

Holy shit

frobeniusnorm , in Everybody loves 3d programming till they have to sort the world traingles based the MVP matrix.

All my homies use dual depth peeling

vzq , in Everybody loves 3d programming till they have to sort the world traingles based the MVP matrix.

I made a pact with myself in 2005 or so that I would never sort triangles by hand ever again. Since then I have been using higher level APIs and I have not regretted it.

envis10n , in I know, I know, but this revision compiles

Now do one with a GI Joe PSA

downpunxx , in I know, I know, but this revision compiles
@downpunxx@kbin.social avatar

there's a level of knowledge which only comes from fixing a break

marcos ,

Yeah, the knowledge that 6 hours of debugging can save you from 10 long and extenuating minutes of reading the documentation. That one you can only get by fixing the problem.

acwern ,

Docs can only really help you if your problem is “I have used X from the library Y, yet I do not understand the baseline definition of X sufficiently and this is causing issues”. A lot of problems in practice are much more fundamental than that

dylanTheDeveloper ,
@dylanTheDeveloper@lemmy.world avatar

You sound like the guy who writes documentation in the form of:

// functionA = is function that does A

/s

NovaPrime , in I know, I know, but this revision compiles
@NovaPrime@lemmy.ml avatar

Docs? Is that like a new ChatGPT feature or something?

newIdentity ,

It actually kinda is. GPT-4 has an enormous token size so you can upload the whole documentation of a framework or program and ask it specific questions to it

philm ,

Has it though?

AFAIK it has like 4k tokens which roughly translate to 3k words or something like that.

The API has 8k or even 32k (this model should be interesting for something like that, unfortunately still don’t have access to it…)

So the docs have to be rather short, that it gets all the relevant stuff, or am I missing something?

sheogorath ,

GitHub Copilot just got an update increasing the token to 8k so I think it can be queried to help you with something similar. I haven’t had the chance to test it further after the new update.

Pickle_Jr , in I know, I know, but this revision compiles

I have ADHD and I’ll often find myself spending hours trying to find a fix, finally read the docs, get distracted, go back to finding a fix without the docs, remember that I was in the middle of reading a docs, and repeat

sheogorath ,

I usually get distracted reading one of the different APIs in the documentation and went down on a rabbit hole reading the whole history of some totally unrelated thing that just popped into my head and then realized what I had to do when I was going to bed and I ended up working thru the night.

The other times I got stuck for a couple of hours looking for new themes for my code editor because I didn’t like how my current theme looked.

Oh well ¯_(ツ)_/¯

Immersive_Matthew , in I know, I know, but this revision compiles

If only this was true.

n3m37h , in I know, I know, but this revision compiles

We don’t call them idiots guides for no reason!

lorty , in I know, I know, but this revision compiles
@lorty@lemmygrad.ml avatar

I’m glad you guys have great docs to reference instead of deprecated 1.X versions of dependencies you have to figure out by yourself.

cmysmiaczxotoy , in I know, I know, but this revision compiles

I feel personally attacked

FederatedSaint , in I know, I know, but this revision compiles

WAIT WAIT who made this??? It’s unreadable!!!

He speaks while on Battle Cat, then departs on a Battle Ram? It’s unconscionable. So pedestrian.

rony4102 ,
@rony4102@programming.dev avatar

404! Documentation doesn’t exist!

DragonTypeWyvern ,

I will never unsee this. Thanks.

dan1101 , in I know, I know, but this revision compiles

Yo Joe!!

Anonymousllama , in I know, I know, but this revision compiles

Yeah but have you seen some people’s documentation? I get it’s not a glamorous task but I’ve seen some stinkers before (a heap of properties and methods just thrown on a page with barely any description and no reasonable samples)

Drewelite ,

For real. More like 6 hours of debugging to figure out what they meant by the documentation you read in the first 5 minutes.

lobut ,

I copied and pasted some code from their own docs and it was missing required fields and those fields weren’t clear or documented well. Going into their code helped more but still.

Also, the docs weren’t written with me in mind. It’s like if you were already familiar with it or a previous version because I swear I read it four times.

KoboldCoterie , in For?
@KoboldCoterie@pawb.social avatar

Syntax error: Method ‘lenght’ not a valid property of ‘data’. Relationship over.

ImpossibleRubiksCube ,

She’s willing to make an… exception.

Xylight ,
@Xylight@lemmy.xylight.dev avatar

He caught a good woman.

d_k_bo ,

In which language would that be a syntax error?

KoboldCoterie ,
@KoboldCoterie@pawb.social avatar

I mean, if we’re going to nitpick, ‘lenght’ wouldn’t be a method. :P

S0UPernova ,

Pretty sure length is a property, not a method, and since there are not parentheses after it, it wouldn’t be treated as one.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines