Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
We Distribute
  1. Home
  2. General Discussion
  3. ActivityPub would have been better if it used XML instead of JSON.

ActivityPub would have been better if it used XML instead of JSON.

Scheduled Pinned Locked Moved General Discussion
langenactivitypubthoughtsxml
12 Posts 6 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • tennoseremel@gts.skobk.inT This user is from outside of this forum
    tennoseremel@gts.skobk.inT This user is from outside of this forum
    tennoseremel@gts.skobk.in
    wrote last edited by
    #1

    ActivityPub would have been better if it used XML instead of JSON.

    /duck

    #lang_en #ActivityPub #thoughts #XML

    kopper@not-brain.d.on-t.workK gugurumbe@mastouille.frG julian@activitypub.spaceJ fentiger@mastodon.socialF 4 Replies Last reply
    0
    • tennoseremel@gts.skobk.inT tennoseremel@gts.skobk.in

      ActivityPub would have been better if it used XML instead of JSON.

      /duck

      #lang_en #ActivityPub #thoughts #XML

      kopper@not-brain.d.on-t.workK This user is from outside of this forum
      kopper@not-brain.d.on-t.workK This user is from outside of this forum
      kopper@not-brain.d.on-t.work
      wrote last edited by
      #2
      @tennoseremel it very well could have activitystrea.ms/specs/atom/1.0/
      1 Reply Last reply
      0
      • tennoseremel@gts.skobk.inT tennoseremel@gts.skobk.in

        ActivityPub would have been better if it used XML instead of JSON.

        /duck

        #lang_en #ActivityPub #thoughts #XML

        gugurumbe@mastouille.frG This user is from outside of this forum
        gugurumbe@mastouille.frG This user is from outside of this forum
        gugurumbe@mastouille.fr
        wrote last edited by
        #3

        @tennoseremel activities need an extensible markup language for mentions, tags, quotes, media, and a lot more.

        gugurumbe@mastouille.frG 1 Reply Last reply
        0
        • gugurumbe@mastouille.frG gugurumbe@mastouille.fr

          @tennoseremel activities need an extensible markup language for mentions, tags, quotes, media, and a lot more.

          gugurumbe@mastouille.frG This user is from outside of this forum
          gugurumbe@mastouille.frG This user is from outside of this forum
          gugurumbe@mastouille.fr
          wrote last edited by
          #4

          @tennoseremel we often end up with html-in-jsonld, but worry not: as json is inherently human-readable, and html (by the sole virtue of not being xml) is too, everything is great and the web developers feel all modern and trendy.

          1 Reply Last reply
          0
          • tennoseremel@gts.skobk.inT tennoseremel@gts.skobk.in

            ActivityPub would have been better if it used XML instead of JSON.

            /duck

            #lang_en #ActivityPub #thoughts #XML

            julian@activitypub.spaceJ This user is from outside of this forum
            julian@activitypub.spaceJ This user is from outside of this forum
            julian@activitypub.space
            wrote last edited by
            #5

            @tennoseremel@gts.skobk.in fwiw if ActivityPub were XML instead of JSON I would not have integrated it.

            1 Reply Last reply
            0
            • tennoseremel@gts.skobk.inT tennoseremel@gts.skobk.in

              ActivityPub would have been better if it used XML instead of JSON.

              /duck

              #lang_en #ActivityPub #thoughts #XML

              fentiger@mastodon.socialF This user is from outside of this forum
              fentiger@mastodon.socialF This user is from outside of this forum
              fentiger@mastodon.social
              wrote last edited by
              #6

              @tennoseremel And if it had used JSON instead of JSON-LD? 😉

              julian@activitypub.spaceJ 1 Reply Last reply
              1
              • fentiger@mastodon.socialF fentiger@mastodon.social

                @tennoseremel And if it had used JSON instead of JSON-LD? 😉

                julian@activitypub.spaceJ This user is from outside of this forum
                julian@activitypub.spaceJ This user is from outside of this forum
                julian@activitypub.space
                wrote last edited by
                #7

                @fentiger@mastodon.social then there would be property conflicts!

                But far fewer than expected and everyone would just adjust and defer to prior art... and most importantly nobody would use JSON-LD compliance as a cudgel.

                Sounds nice actually.

                1 Reply Last reply
                0
                • fentiger@mastodon.socialF This user is from outside of this forum
                  fentiger@mastodon.socialF This user is from outside of this forum
                  fentiger@mastodon.social
                  wrote last edited by
                  #8

                  @julian The ability to make up brand new, guaranteed-unique identifiers on the fly is probably the thing I like most about JSON-LD.

                  As you imply, though, it's not really a problem in practice, because devs are used to JSON, and know what happens when you add extensions to standards.

                  julian@activitypub.spaceJ silverpill@mitra.socialS 2 Replies Last reply
                  0
                  • fentiger@mastodon.socialF fentiger@mastodon.social

                    @julian The ability to make up brand new, guaranteed-unique identifiers on the fly is probably the thing I like most about JSON-LD.

                    As you imply, though, it's not really a problem in practice, because devs are used to JSON, and know what happens when you add extensions to standards.

                    julian@activitypub.spaceJ This user is from outside of this forum
                    julian@activitypub.spaceJ This user is from outside of this forum
                    julian@activitypub.space
                    wrote last edited by
                    #9

                    @fentiger@mastodon.social the purportedly world-ending effects of property collisions are overblown, imho.

                    1 Reply Last reply
                    0
                    • fentiger@mastodon.socialF fentiger@mastodon.social

                      @julian The ability to make up brand new, guaranteed-unique identifiers on the fly is probably the thing I like most about JSON-LD.

                      As you imply, though, it's not really a problem in practice, because devs are used to JSON, and know what happens when you add extensions to standards.

                      silverpill@mitra.socialS This user is from outside of this forum
                      silverpill@mitra.socialS This user is from outside of this forum
                      silverpill@mitra.social
                      wrote last edited by
                      #10

                      @FenTiger @julian

                      >The ability to make up brand new, guaranteed-unique identifiers on the fly is probably the thing I like most about JSON-LD.

                      But it is not a JSON-LD thing, right?

                      A JSON document can have property names that are URIs, or reverse-DNS strings, or UUIDs, or longNamesThatIncludeSoftwareNameAndVersion. All of those can be globally unique.

                      fentiger@mastodon.socialF 1 Reply Last reply
                      0
                      • silverpill@mitra.socialS This user is from outside of this forum
                        silverpill@mitra.socialS This user is from outside of this forum
                        silverpill@mitra.social
                        wrote last edited by
                        #11

                        Here's the first recorded collision in the history of Fediverse: https://github.com/bookwyrm-social/bookwyrm/issues/3731

                        1 Reply Last reply
                        0
                        • silverpill@mitra.socialS silverpill@mitra.social

                          @FenTiger @julian

                          >The ability to make up brand new, guaranteed-unique identifiers on the fly is probably the thing I like most about JSON-LD.

                          But it is not a JSON-LD thing, right?

                          A JSON document can have property names that are URIs, or reverse-DNS strings, or UUIDs, or longNamesThatIncludeSoftwareNameAndVersion. All of those can be globally unique.

                          fentiger@mastodon.socialF This user is from outside of this forum
                          fentiger@mastodon.socialF This user is from outside of this forum
                          fentiger@mastodon.social
                          wrote last edited by
                          #12

                          @silverpill @julian Fair point.

                          I suppose I was thinking of the ability to assign it to a shortened name in the @'context - but this is probably relatively unimportant once it's been gzipped.

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          Powered by NodeBB Contributors
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups