Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Steve Canon
Steve Canon
@steve@discuss.systems  ·  activity timestamp 5 hours ago

@trochee @hipsterelectron @ids1024 … wait, in what language/system is -0.0 == +0.0 false?

  • Copy link
  • Flag this post
  • Block
Steve Canon
Steve Canon
@steve@discuss.systems replied  ·  activity timestamp 5 hours ago

@trochee @hipsterelectron @ids1024 … wait, in what language/system is -0.0 == +0.0 false?

  • Copy link
  • Flag this comment
  • Block
Jeremy Kahn
Jeremy Kahn
@trochee@dair-community.social replied  ·  activity timestamp 5 hours ago

@steve @hipsterelectron @ids1024

IEEE 754: https://en.wikipedia.org/wiki/Signed_zero

  • Copy link
  • Flag this comment
  • Block
Jason Bowen 🇺🇦
Jason Bowen 🇺🇦
@jbowen@mast.hpc.social replied  ·  activity timestamp 5 hours ago

@trochee @steve @hipsterelectron @ids1024
I hate that standard so much!

  • Copy link
  • Flag this comment
  • Block
Steve Canon
Steve Canon
@steve@discuss.systems replied  ·  activity timestamp 4 hours ago

@jbowen @trochee @hipsterelectron @ids1024 The worst computer arithmetic standard except for all the others!

  • Copy link
  • Flag this comment
  • Block
d@nny disc@ mc²
d@nny disc@ mc²
@hipsterelectron@circumstances.run replied  ·  activity timestamp 4 hours ago

@jbowen @trochee @steve @ids1024 delighted to hear this

  • Copy link
  • Flag this comment
  • Block
d@nny disc@ mc²
d@nny disc@ mc²
@hipsterelectron@circumstances.run replied  ·  activity timestamp 5 hours ago

@trochee @steve @ids1024

Representations that allow negative zero can be a source of errors in programs, if software developers do not take into account that while the two zero representations behave as equal under numeric comparisons, they yield different results in some operations.

although really just using the equality operator on a floating point is almost never correct in the first place

  • Copy link
  • Flag this comment
  • Block
Steve Canon
Steve Canon
@steve@discuss.systems replied  ·  activity timestamp 5 hours ago

@trochee @hipsterelectron @ids1024 in 754 arithmetic they compare equal

  • Copy link
  • Flag this comment
  • Block
Jeremy Kahn
Jeremy Kahn
@trochee@dair-community.social replied  ·  activity timestamp 5 hours ago

@steve

you are technically correct, the best kind of correct

but there is not much more chaotic evil in programming than provoking a bunch of bikeshedding

@hipsterelectron @ids1024

  • Copy link
  • Flag this comment
  • Block
d@nny disc@ mc²
d@nny disc@ mc²
@hipsterelectron@circumstances.run replied  ·  activity timestamp 5 hours ago

@trochee @ids1024 emoticons that return true or false based upon whether they're happy or sad

  • Copy link
  • Flag this comment
  • Block
Mark Reid
Mark Reid
@mdreid@mastodon.social replied  ·  activity timestamp 5 hours ago

@trochee @hipsterelectron @ids1024 No mention of “Norway” as false?

https://www.bram.us/2022/01/11/yaml-the-norway-problem/

Bram.us

YAML: The Norway Problem

Earlier this week, Haroen Viaene posted this tweet about YAML: worst part of yaml: https://yaml.org/type/bool.html — Haroen Viaene (@haroenv) January 10, 2022 The linked-to page contains the documentation on what defines a boolean in YAML, and details that it can be parsed using this regex: y|Y|yes|Yes|YES|n|N|no|No|NO |true|True|TRUE|false|False|FALSE |on|On|ON|off|Off|OFF The reason to why this is problematic … Continue reading "YAML: The Norway Problem"
  • Copy link
  • Flag this comment
  • Block
Jeremy Kahn
Jeremy Kahn
@trochee@dair-community.social replied  ·  activity timestamp 5 hours ago

@mdreid @hipsterelectron @ids1024

oh man, i wish i'd thought of that one; perhaps that's a better Chaotic Neutral

  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.2-alpha.23 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct