GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Ryan Castellucci (they/them) :nonbinary_flag: (ryanc@infosec.exchange)'s status on Monday, 21-Oct-2024 03:36:54 JST Ryan Castellucci (they/them) :nonbinary_flag: Ryan Castellucci (they/them) :nonbinary_flag:

    I'm somewhat annoyed that JavaScript thinks 0 === -0 is true.

    In conversation Monday, 21-Oct-2024 03:36:54 JST from infosec.exchange permalink
    • Embed this notice
      Ryan Castellucci (they/them) :nonbinary_flag: (ryanc@infosec.exchange)'s status on Monday, 21-Oct-2024 15:50:23 JST Ryan Castellucci (they/them) :nonbinary_flag: Ryan Castellucci (they/them) :nonbinary_flag:
      in reply to
      • samir, lost and found
      • John Ripley

      @jripley @samir

      isItTho = (a, b) => {
      const t = new Float64Array([a, b]);
      for (let i = 0; i < 8; ++i) {
      if (t[i] != t[i+8]) return false;
      }
      return true;
      }

      also handles comparing NaNs which may or may not be the same.

      In conversation Monday, 21-Oct-2024 15:50:23 JST permalink
    • Embed this notice
      John Ripley (jripley@mastodon.social)'s status on Monday, 21-Oct-2024 15:50:24 JST John Ripley John Ripley
      in reply to
      • samir, lost and found

      @samir @ryanc
      return 0 is it tho -0;

      In conversation Monday, 21-Oct-2024 15:50:24 JST permalink
    • Embed this notice
      samir, lost and found (samir@mastodon.functional.computer)'s status on Monday, 21-Oct-2024 15:50:25 JST samir, lost and found samir, lost and found
      in reply to

      @ryanc I guess we need a `====` operator.

      In conversation Monday, 21-Oct-2024 15:50:25 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.