Upvote!
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
seaQueue@lemmy.world to Programmer Humor@lemmy.ml · 1 year ago

50 million rendered polygons vs one spicy 4.2MB boi

lemmy.world

message-square
139
fedilink
1.37K

50 million rendered polygons vs one spicy 4.2MB boi

lemmy.world

seaQueue@lemmy.world to Programmer Humor@lemmy.ml · 1 year ago
message-square
139
fedilink
  • fmstrat@lemmy.nowsci.com
    link
    fedilink
    arrow-up
    24
    ·
    1 year ago

    Works fine in vim

    • bjornsno@lemm.ee
      link
      fedilink
      arrow-up
      12
      ·
      1 year ago

      Except if it’s a single line file, only god can help you then. (Or running prettier -w on it before opening it or whatever.)

      • xavier666@lemm.ee
        link
        fedilink
        English
        arrow-up
        9
        ·
        1 year ago

        cat file.json | jq also works

        • expr@programming.dev
          link
          fedilink
          arrow-up
          4
          ·
          edit-2
          1 year ago

          https://porkmail.org/era/unix/award#cat

          jq < file.json

          cat is for concatenating multiple files, not redirecting single files.

        • jimbolauski@lemm.ee
          link
          fedilink
          arrow-up
          4
          arrow-down
          2
          ·
          1 year ago

          Render Media works the best

          rm file.json

          • xavier666@lemm.ee
            link
            fedilink
            English
            arrow-up
            3
            ·
            1 year ago

            Yes, Render Media is the best. It’s hard to believe that not many people know about this tool. It’s also natively installed in all Linux distros.

      • fl42v@lemmy.ml
        link
        fedilink
        arrow-up
        7
        ·
        1 year ago

        4.2 megs on one line? Vim probably can handle it fine, although syntax won’t be highlighted past a certain point

        • bjornsno@lemm.ee
          link
          fedilink
          arrow-up
          5
          ·
          1 year ago

          I’ve accidentally opened enormous single line json files more than once. Could be lsp config or treesitter or any number of things but trying to do any operations after opening such a file is not a good time.

          • fl42v@lemmy.ml
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            Yeah, very well may be. LSPs always slow down opening big files, so I usually inspect those with an empty/different config

        • BaldProphet@kbin.social
          link
          fedilink
          arrow-up
          4
          arrow-down
          1
          ·
          1 year ago

          Technically every JSON file is a single line, with line break characters here and there

      • expr@programming.dev
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        :syntax off and it works just fine.

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.

  • 580 users / day
  • 706 users / week
  • 2.04K users / month
  • 10.5K users / 6 months
  • 1 local subscriber
  • 35.6K subscribers
  • 1.71K Posts
  • 37.5K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.6
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org