Libertarian Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
seaQueue@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago

50 million rendered polygons vs one spicy 4.2MB boi

lemmy.world

message-square
28
link
fedilink
13

50 million rendered polygons vs one spicy 4.2MB boi

lemmy.world

seaQueue@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago
message-square
28
link
fedilink
alert-triangle
You must log in or register to comment.
  • themoonisacheese@sh.itjust.works
    link
    fedilink
    arrow-up
    4
    ·
    2 years ago

    Maybe it’s time we invent JPUs (json processing units) to equalize the playing field.

    • seaQueue@lemmy.worldOP
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      The best I can do is an ML model running on an NPU that parses JSON in subtly wrong and impossible to debug ways

    • Trailblazing Braille Taser@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      Until then, we have simdjson https://github.com/simdjson/simdjson

  • Randelung@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    Well, do you have dedicated JSON hardware?

    • MareOfNights@discuss.tchncs.de
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      Please no, don’t subsidize anything Java-Script. It will only make it less efficient.

  • XPost3000@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    Everybody gangsta still we invent hardware accelerated JSON parsing

  • MacN'Cheezus@lemmy.today
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

    Someone just needs to make a GPU-accelerated JSON decoder

  • Ironfacebuster@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    Rockstar making GTA online be like: “Computer, here is a 512mb json file please download it from the server and then do nothing with it”

  • lustyargonian@lemm.ee
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    CPU vs GPU tasks I suppose.

    • Potatos_are_not_friends@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      GPU, render my 4.2 MB json file!

      • pipe01@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        I’m afraid I can’t do that, Dave

  • voxel@sopuli.xyz
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    2 years ago

    there are simd accelerated json decoders

    • manmachine@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      every day we stray further from god

      • xmunk@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        2 years ago

        Don’t worry, they still make extensive use of regexes.

        • dan@upvote.au
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          I didn’t think any JSON parsers used regex given how simple the grammar is… but I’ve seen some horrors, so I shouldn’t rule it out.

  • 2deck@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

    Render the json as polygons?

    • Dasnap@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      It’s time someone wrote a JSON shader.

  • model_tar_gz@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

    Would you rather have 100,000 kg of tasty supreme pizza, or 200 kg of steaming manure?

    Choose wisely.

    • Buttons@programming.dev
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 years ago

      Careful, the 100,000 kg of pizza will turn into manure.

      • model_tar_gz@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        I figure I can probably convert about 10 kg into manure before it autoconverts into compost. Which is maybe even a worse problem.

  • jballs@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 years ago

    I have the same problem with XML too. Notepad++ has a plugin that can format a 50MB XML file in a few seconds. But my current client won’t allow plugins installed. So I have to use VS Code, which chokes on anything bigger than what I could do myself manually if I was determined.

    • seaQueue@lemmy.worldOP
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      Time to train an LLM to format XML and hope for the best

      • PsychedSy@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        Do we need a “don’t parse xml with LLM” copypasta?

        • QuazarOmega@lemy.lol
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 years ago
          L arge  
          L regex  
          M odel
          
  • AusatKeyboardPremi@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

    Given it is a CPU is limiting the parsing of the file, I wonder how a GPU-based editor like Zed would handle it.

    Been wanting to test out the editor ever since it was partially open sourced but I am too lazy to get around doing it

    • icesentry@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      That’s not how this works, GPUs are fast because the kind of work they do is embarrassingly parallel and they have hundreds of cores. Loading a json file is not something that can be trivially parallelized. Also, zed use the gpu for rendering, not reading files.

    • agelord@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      As far as my understanding goes, Zed uses the GPU only for rendering things on screen. And from what I’ve heard, most editors do that. I don’t understand why Zed uses that as a key marketing point

      • porous_grey_matter@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        To appeal to people who don’t really understand how stuff works but think GPU is AI and fast

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 38 users / day
  • 936 users / week
  • 2.04K users / month
  • 7.07K users / 6 months
  • 3 local subscribers
  • 39.7K subscribers
  • 1.27K Posts
  • 11.8K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • UI: unknown version
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org