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.

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.

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.

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.

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?

milliams , in What’s in a name?

I like “Victoria”.

Dehydrated , in What’s in a name?

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

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 =

0x0 , in What’s in a name?

Exception Segfault Binary

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/

veniasilente , in What’s in a name?

CTRL+F ‘Robert

0 hits

Really?

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

frezik , in What’s in a name?

OOM

capital ,

Killer’s my middle name.

JATtho ,

Reaper of the VMAs.

Mango , in I see.... finally vim has other purpose than being text editor

Vagina instant massaging

33550336 , in Stop using floats
@33550336@lemmy.world avatar

From time to time I see this pattern in memes, but what is the original meme / situation?

dejected_warp_core ,

deleted_by_author

  • Loading...
  • ripcord ,
    @ripcord@lemmy.world avatar

    That doesn’t really answer the question, which is about the origins of the meme templete

    dejected_warp_core ,

    Yikes. placed this in the wrong spot. Thank you.

    Sadbutdru ,

    It’s my favourite format. I think the original was ‘stop doing math’ https://sopuli.xyz/pictrs/image/05be123f-6888-40c5-b759-4296afbfebef.webp

    33550336 ,
    @33550336@lemmy.world avatar

    Thank you 😁

    Eyck_of_denesle ,

    Out of topic but how does one get a profile pic on lemmy? Also love you ken.

    gandalf_der_12te ,

    you can configure it in the web interface. just go to your profile

    33550336 ,
    @33550336@lemmy.world avatar

    Thank you!

    Go to “Settings” (cog wheel) and then “Avatar”:

    https://lemmy.world/pictrs/image/86dde646-0fac-4f0a-aedc-b08fba34a53f.png

    TotalSonic , in Stop using floats
    @TotalSonic@lemmy.world avatar

    Obviously floating point is of huge benefit for many audio dsp calculations, from my observations (non-programmer, just long time DAW user, from back in the day when fixed point with relatively low accumulators was often what we had to work with, versus now when 64bit floating point for processing happens more as the rule) - e.g. fixed point equalizers can potentially lead to dc offset in the results. I don’t think peeps would be getting as close to modeling non-linear behavior of analog processors with just fixed point math either.

    ExFed ,

    Audio, like a lot of physical systems, involve logarithmic scales, which is where floating-point shines. Problem is, all the other physical systems, which are not logarithmic, only get to eat the scraps left over by IEEE 754. Floating point is a scam!

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