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
    Jeremy Kun (j2kun@mathstodon.xyz)'s status on Sunday, 01-Dec-2024 14:56:11 JST Jeremy Kun Jeremy Kun

    TIL that modern CPUs have an $F_2$-polynomial multiplication intrinsic operation: https://en.wikipedia.org/wiki/CLMUL_instruction_set

    In conversation about 7 months ago from mathstodon.xyz permalink

    Attachments

    1. No result found on File_thumbnail lookup.
      CLMUL instruction set
      Carry-less Multiplication (CLMUL) is an extension to the x86 instruction set used by microprocessors from Intel and AMD which was proposed by Intel in March 2008 and made available in the Intel Westmere processors announced in early 2010. Mathematically, the instruction implements multiplication of polynomials over the finite field GF(2) where the bitstring a 0 a 1 … a 63 {\displaystyle a_{0}a_{1}\ldots a_{63}} represents the...
    • alcinnz repeated this.
    • Embed this notice
      Per Vognsen (pervognsen@mastodon.social)'s status on Sunday, 01-Dec-2024 15:14:47 JST Per Vognsen Per Vognsen
      in reply to

      @j2kun And here's a fun application to parsing quoted strings: https://github.com/simdjson/simdjson/blob/cab383e1de7385c6460b66e5fad25a116d750402/src/generic/stage1/json_string_scanner.h#L67

      In conversation about 7 months ago permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: repository-images.githubusercontent.com
        simdjson/src/generic/stage1/json_string_scanner.h at cab383e1de7385c6460b66e5fad25a116d750402 · simdjson/simdjson
        Parsing gigabytes of JSON per second : used by Facebook/Meta Velox, the Node.js runtime, ClickHouse, WatermelonDB, Apache Doris, Milvus, StarRocks - simdjson/simdjson
    • Embed this notice
      Per Vognsen (pervognsen@mastodon.social)'s status on Sunday, 01-Dec-2024 15:14:48 JST Per Vognsen Per Vognsen
      in reply to

      @j2kun Yeah, it's surprisingly useful. Aside from the classic "algebraic" use cases, there are some often useful bit tricks like computing the running bit parity by carryless multiplying by all ones/-1.

      In conversation about 7 months ago permalink
      alcinnz repeated this.
    • Embed this notice
      Per Vognsen (pervognsen@mastodon.social)'s status on Sunday, 01-Dec-2024 15:14:48 JST Per Vognsen Per Vognsen
      in reply to

      @j2kun For example, if you mark the start and end of a range with a 1 bit then the running parity is a mask vector to select the bits in those ranges. You can even use this for computing rasterization coverage masks for potentially overlapping polygons where overlaps are resolved with the "mod 2" rule.

      In conversation about 7 months ago permalink
      alcinnz repeated this.

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.