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
    ari :prideified: (ar@is-a.cat)'s status on Saturday, 14-Sep-2024 19:44:41 JST ari :prideified: ari :prideified:

    Just python being sus:

    >>> chr(sum(range(ord(min(str(not()))))))
    'ඞ'
    In conversation about 9 months ago from is-a.cat permalink
    • Embed this notice
      Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Saturday, 14-Sep-2024 19:45:49 JST Haelwenn /элвэн/ :triskell: Haelwenn /элвэн/ :triskell:
      in reply to
      @ar Really reminds me of the obfuscation Perl allows to do.
      In conversation about 9 months ago permalink
    • Embed this notice
      Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Saturday, 14-Sep-2024 20:10:16 JST Haelwenn /элвэн/ :triskell: Haelwenn /элвэн/ :triskell:
      in reply to
      • Oliver Vanderb

      @Ollivdb @ar I think that's thanks to all numbers in JS being floats, that said both Perl and Python refuse 1.0/0.0 so that's… interesting, I might be wrong there, been ages since I've looked into IEEE floats.

      In conversation about 9 months ago permalink
    • Embed this notice
      Oliver Vanderb (ollivdb@nrw.social)'s status on Saturday, 14-Sep-2024 20:10:17 JST Oliver Vanderb Oliver Vanderb
      in reply to
      • Haelwenn /элвэн/ :triskell:

      @lanodan @ar

      JS, where you can devide by zero....

      In conversation about 9 months ago permalink
    • Embed this notice
      Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Saturday, 14-Sep-2024 20:14:01 JST Haelwenn /элвэн/ :triskell: Haelwenn /элвэн/ :triskell:
      in reply to
      • Oliver Vanderb
      @Ollivdb @ar Yeah, at least I'm pretty glad I don't have to deal with JS too much.
      In conversation about 9 months ago permalink
    • Embed this notice
      Oliver Vanderb (ollivdb@nrw.social)'s status on Saturday, 14-Sep-2024 20:14:02 JST Oliver Vanderb Oliver Vanderb
      in reply to
      • Haelwenn /элвэн/ :triskell:

      @lanodan @ar
      Something like that. But JS is sometimes simply a huge fu* up 🤷♂️

      https://infosec.exchange/@i0null/113052545279585538

      In conversation about 9 months ago permalink
    • Embed this notice
      ari :prideified: (ar@is-a.cat)'s status on Saturday, 14-Sep-2024 20:17:42 JST ari :prideified: ari :prideified:
      in reply to
      • Haelwenn /элвэн/ :triskell:
      • Oliver Vanderb

      @lanodan @Ollivdb meanwhile ruby:

      [1] pry(main)> 1.0/0.0
      => Infinity

      but here's the kicker: it's allowed by ieee-754

      or, to be more specific: you can trap on operations which produce problematic results, but you don't have to.

      In conversation about 9 months ago permalink
      Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      Oliver Vanderb (ollivdb@nrw.social)'s status on Saturday, 14-Sep-2024 20:19:19 JST Oliver Vanderb Oliver Vanderb
      in reply to
      • Haelwenn /элвэн/ :triskell:

      @ar @lanodan

      In conversation about 9 months ago permalink

      Attachments


      1. https://nrw.social/system/media_attachments/files/113/135/631/928/649/484/original/02353ef55132e46e.png
      Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Saturday, 14-Sep-2024 20:20:22 JST Haelwenn /элвэн/ :triskell: Haelwenn /элвэн/ :triskell:
      in reply to
      • Oliver Vanderb
      @Ollivdb @ar > -10/0
      -InfinityFinally something which makes sense.
      In conversation about 9 months ago permalink
    • Embed this notice
      Oliver Vanderb (ollivdb@nrw.social)'s status on Saturday, 14-Sep-2024 20:20:40 JST Oliver Vanderb Oliver Vanderb
      in reply to
      • Haelwenn /элвэн/ :triskell:

      @ar @lanodan

      Every math teacher will execute you for that with a wooden square root of a pine tree 🙂

      In conversation about 9 months ago permalink
      Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      Oliver Vanderb (ollivdb@nrw.social)'s status on Saturday, 14-Sep-2024 20:27:25 JST Oliver Vanderb Oliver Vanderb
      in reply to
      • Haelwenn /элвэн/ :triskell:

      @lanodan @ar
      WTF 😭

      In conversation about 9 months ago permalink

      Attachments


      1. https://nrw.social/system/media_attachments/files/113/135/662/603/911/677/original/5a3dad07427d8c53.png
      Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      Oliver Vanderb (ollivdb@nrw.social)'s status on Saturday, 14-Sep-2024 20:27:26 JST Oliver Vanderb Oliver Vanderb
      in reply to
      • Haelwenn /элвэн/ :triskell:

      @lanodan @ar

      Well...but no.

      An exception would make sense, in ALL languages. Maybe you can have some "experimental" math library for the math pros, where they can check for new theories. But not for the common programmer dude.

      In conversation about 9 months ago permalink
    • Embed this notice
      Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Saturday, 14-Sep-2024 20:31:02 JST Haelwenn /элвэн/ :triskell: Haelwenn /элвэн/ :triskell:
      in reply to
      • Oliver Vanderb

      @Ollivdb @ar Well control over the floating point exceptions is a thing C allows (fesetexceptflag(3)) but I think should be kept well defined and static in languages like JS. (Specially JS in fact, due to it's sort of complete opposite to typing)

      In conversation about 9 months ago permalink
    • Embed this notice
      :umu: :umu: (a1ba@suya.place)'s status on Saturday, 14-Sep-2024 20:34:46 JST :umu: :umu: :umu: :umu:
      in reply to
      • Haelwenn /элвэн/ :triskell:
      @lanodan @ar perl -e '$??s:;s:s;;$?::s;;=]=>%-{<-|}<&|`{;;y; -/:-@[-`{-};`-{/" -;;s;;$_;see'


      No, don't run it. Especially if your rm implementation don't have preserve root
      In conversation about 9 months ago permalink
      Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Saturday, 14-Sep-2024 20:39:24 JST Haelwenn /элвэн/ :triskell: Haelwenn /элвэн/ :triskell:
      in reply to
      • :umu: :umu:
      @a1ba @ar *launches a throwaway VM*

      Oh wow, beautiful.
      In conversation about 9 months ago permalink
    • Embed this notice
      Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Saturday, 14-Sep-2024 20:46:08 JST Haelwenn /элвэн/ :triskell: Haelwenn /элвэн/ :triskell:
      in reply to
      • Haelwenn /элвэн/ :triskell:
      • :umu: :umu:
      @a1ba @ar Also while I know how to use Perl, this is some beautiful unreadable mess, quite shows why Perl can be (serial) line noise.
      In conversation about 9 months ago permalink
    • Embed this notice
      :umu: :umu: (a1ba@suya.place)'s status on Saturday, 14-Sep-2024 20:48:19 JST :umu: :umu: :umu: :umu:
      in reply to
      • Haelwenn /элвэн/ :triskell:
      @lanodan @ar this was posted on Russian forum many years ago by some troll
      In conversation about 9 months ago permalink
      Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Saturday, 14-Sep-2024 20:56:54 JST Haelwenn /элвэн/ :triskell: Haelwenn /элвэн/ :triskell:
      in reply to
      • :umu: :umu:

      @a1ba @ar format c: (don't run this on MS-DOS/NT) but under layers of obfuscation.

      In conversation about 9 months ago permalink
    • Embed this notice
      Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Saturday, 14-Sep-2024 21:45:41 JST Haelwenn /элвэн/ :triskell: Haelwenn /элвэн/ :triskell:
      in reply to
      • Oliver Vanderb
      • soc

      @Ollivdb @soc @ar Yeah, only way to somewhat get integers in JS is to cast with |0, like 0.5|0 instead of 0.5.

      Something we got since asm.js. And not to be confused with wasm which is actual bytecode while asm.js is backwards-compatible JS but leaning on modern JIT compilers recognising those explicit casts to get performance gains (integer operations being *much* faster).

      In conversation about 9 months ago permalink
    • Embed this notice
      Oliver Vanderb (ollivdb@nrw.social)'s status on Saturday, 14-Sep-2024 21:45:42 JST Oliver Vanderb Oliver Vanderb
      in reply to
      • Haelwenn /элвэн/ :triskell:
      • soc

      @soc @lanodan @ar I don't see a float there. But maybe JS handles all numbers as floats internally. Don't know

      In conversation about 9 months ago permalink
    • Embed this notice
      soc (soc@chaos.social)'s status on Saturday, 14-Sep-2024 21:45:43 JST soc soc
      in reply to
      • Haelwenn /элвэн/ :triskell:
      • Oliver Vanderb

      @Ollivdb @lanodan @ar That seems to be exactly what the standard specifies:
      https://en.wikipedia.org/wiki/IEEE_754#Special_values

      In conversation about 9 months ago permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: upload.wikimedia.org
        IEEE 754
        The IEEE Standard for Floating-Point Arithmetic (IEEE 754) is a technical standard for floating-point arithmetic originally established in 1985 by the Institute of Electrical and Electronics Engineers (IEEE). The standard addressed many problems found in the diverse floating-point implementations that made them difficult to use reliably and portably. Many hardware floating-point units use the IEEE 754 standard. The standard defines: arithmetic formats: sets of binary and decimal floating-point data, which consist of finite numbers (including signed zeros and subnormal numbers), infinities, and special "not a number" values (NaNs) interchange formats: encodings (bit strings) that may be used to exchange floating-point data in an efficient and compact form rounding rules: properties to be satisfied when rounding numbers during arithmetic and conversions operations: arithmetic and other operations (such as trigonometric functions) on arithmetic formats exception handling: indications of exceptional conditions (such as division by zero, overflow, etc...
    • Embed this notice
      Oliver Vanderb (ollivdb@nrw.social)'s status on Saturday, 14-Sep-2024 21:45:45 JST Oliver Vanderb Oliver Vanderb
      in reply to
      • Haelwenn /элвэн/ :triskell:

      @lanodan @ar

      It gets even weirder 😂

      In conversation about 9 months ago permalink

      Attachments


      1. https://nrw.social/system/media_attachments/files/113/135/667/661/350/091/original/6aef595eb6f555a2.png

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.