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.

frezik , in What’s in a name?

OOM

capital ,

Killer’s my middle name.

JATtho ,

Reaper of the VMAs.

tsonfeir , in What’s in a name?
@tsonfeir@lemm.ee avatar

PHP. It’s pronounced, PhhhhP

Swedneck ,
@Swedneck@discuss.tchncs.de avatar

php, pronounced philip

veniasilente , in What’s in a name?

CTRL+F ‘Robert

0 hits

Really?

dejected_warp_core , in Stop using floats

There are probably a lot of scientific applications (e.g. statistics, audio, 3D graphics) where exponential notation is the norm and there’s an understanding about precision and significant digits/bits. It’s a space where fixed-point would absolutely destroy performance, because you’d need as many bits as required to store your largest terms. Yes, NaN and negative zero are utter disasters in the corners of the IEEE spec, but so is trying to do math with 256bit integers.

For a practical explanation about how stark a difference this is, the PlayStation (one) uses an integer z-buffer (“fixed point”). This is responsible for the vertex popping/warping that the platform is known for. Floating-point z-buffers became the norm almost immediately after the console’s launch, and we’ve used them ever since.

anton ,

What’s the problem with -0?
It conceptually makes sense for to negativ values to close to 0 to be represented as -0.
In practice I have never seen a problem with -0.

On NaN: While its use cases can nowadays be replaced with language constructs like result types, it was created before exceptions or sum types. The way it propagates kind of mirrors Haskells monadic Maybe.
We should be demanding more and better wrapper types from our language/standard library designers.

CrayonRosary ,

While it’s true the PS1 couldn’t do floating point math, it did NOT have a z-buffer at all.

www.ncesc.com/gaming-faq/does-ps1-have-z-buffer/

0x0 , in What’s in a name?

Exception Segfault Binary

Blackmist , in Stop using floats

I know this is in jest, but if 0.1+0.2!=0.3 hasn’t caught you out at least once, then you haven’t even done any programming.

nexussapphire ,

Me making my first calculator in c.

CanadaPlus ,

That should really be written as the gamma function, because factorial is only defined for members of Z. /s

labsin ,

IMO they should just remove the equality operator on floats.

dylanTheDeveloper ,
@dylanTheDeveloper@lemmy.world avatar

what if i add more =

Dehydrated , in What’s in a name?

“Yo shut the fuck up Linked list, you’re annoying as hell”

milliams , in What’s in a name?

I like “Victoria”.

geogle , in What’s in a name?
@geogle@lemmy.world avatar

Meet my kids, Sed and Awk.

Alfi ,
@Alfi@sh.itjust.works avatar

And my dog, Cat.

Dehydrated ,

What about grep and ack?

geogle ,
@geogle@lemmy.world avatar

Those are our names. My parents were Less and More.

Dehydrated ,

I guess head and tail are your grandparents?

waz , in What’s in a name?

This reminds me of an article I read about a guy whose last name was Null.

This isn’t it but is the first one I found when looking.

www.wired.com/2015/11/null/

The story is pretty much what you would expect but still an amusing read.

Psythik , in Stop using floats

While we’re at it, what the hell is -0 and how does it differ from 0?

Reddfugee42 ,

It’s the negative version

ShepherdPie ,

So it’s just like 0 but with an evil goatee?

Knock_Knock_Lemmy_In ,

Look at the graph of y=tan(x)+ⲡ/2

-0 and +0 are completely different.

computerscientistI ,

For integers it really doesn’t exist. An algorithm for multiplying an integer with -1 is: Invert all bits and add 1 to the right-most bit. You can do that for 0 of course, it won’t hurt.

mstrk , in What’s in a name?

A friend of mine named his dog Byte. The dog is very playful, and has the habit of running in the direction of other people he meets.

When the dog does that my friend tries to call him back shouting: “BYTE!! BYTE!!”. People get really scared when this happens 😂

Okay, not so funny if you are the one being approached by the dog.

Ashen44 ,

That’s probably a little unethical but the mental image is absolutely hilarious.

alilbee , in Positive Affirmations for Site Reliability Engineers

Krazam completely on point, as usual. Gonna be mouthing “my pipeline is green” to myself even more than usual now.

Dasnap OP ,
@Dasnap@lemmy.world avatar

You were born to deploy Kubernetes clusters.

fruitycoder ,

Little green dots is what it’s all about baby!

Creat , in Bugs fixed

If “all bugs” was like 50 or so, that’s pretty good. Well done!

JATtho OP ,

Bugs that have existed for +3 years in a component and are nearly immediately visible to the end user. Oldest source line I touched was from before 2010.

reddig33 , in Bugs fixed

Oh well, just mark them as work on in the next release. Then shove them to the bottom of the pile when marketing wants you to work on ten new features instead.

JATtho OP ,

It’s a FOSS project, so wish me luck, as you can now get it in the mail eventually.

I had to run a makepkg today, which now includes my self-written pieces of code in master. So I’m eating my own dog food now, and it’s good. Also, the itch from before has somehow relieved.

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