Looks like we forgot to do this for the last weeks.

  • nutomicOPMA
    link
    fedilink
    arrow-up
    13
    ·
    4 years ago

    I continued to do some refactoring with the goal of speeding up builds. A new actix version allowed us to get rid of a dependency which took up to 30 seconds to build (PR 1, PR 2). I also removed rustls from our dependencies because it was entirely unused.

    In the last days I added more tests for federation, so that we should be finished with another NLnet milestone now (PR 1, PR 2).

  • DessalinesA
    link
    fedilink
    arrow-up
    13
    ·
    edit-2
    4 years ago

    For the past two weeks, I’ve been mostly prepping an isomorphic UI that fixes this issue. It was further complicated by the fact that while inferno (our lightweight front end) does have full isomorphic app support, its build system was using a broken fuse-box build, and I had to make a webpack working one from scratch. I’m really terrible at build systems so this took a few days.

    This was also a ton of work for not too much benefit; the site will mostly appear the same as it has before. But enough people wanted it that I added it, and we’ll deploy it soon. It will:

    • Vastly speed up initial page load times. Navigating to new routes will seem as they did before.
    • Make it readable by non-javascript enabled clients (actions wouldn’t work tho, as they still require websocket)
    • Make lemmy archivable.
    • I’ve added opengraph and twitter html tags.
    • I’ve split out lemmy-ui from the main codebase, as well as the translations into their own repo.

    You can test it out at https://test.lemmy.ml

    One thing I don’t like about this, is that with this separation of back-end and front-end, I’ll need to transfer every front-end related issue and feature request to the new repo, but its probably for the best.

    • LΛMBDANAUT
      link
      fedilink
      arrow-up
      3
      ·
      4 years ago

      Awesome! I wandered into an old mention of this last night and was pleasantly surprised to see it just completed. Great job!

    • SirLotsaLocks
      link
      fedilink
      arrow-up
      1
      ·
      4 years ago

      ayy archival, is it done on a community by community basis or an instance by instance basis?

      • DessalinesA
        link
        fedilink
        arrow-up
        3
        ·
        4 years ago

        I’m not sure what this means but its been deployed to lemmy.ml , all pages should be archivable now.

    • PureTryOut
      link
      fedilink
      arrow-up
      1
      ·
      4 years ago

      Oh, so this would even allow using a completely different front-end, or even running an instance without one just to be used with native applications?

      • DessalinesA
        link
        fedilink
        arrow-up
        1
        ·
        4 years ago

        Its really just splitting it out into a different repo. If you wanted your instance to run a different front end, you’d have to make one.

    • SirLotsaLocks
      link
      fedilink
      arrow-up
      1
      ·
      4 years ago

      also is splitting the front end and back end related to how chapo.chat is using a different front end than normal lemmy?

      • DessalinesA
        link
        fedilink
        arrow-up
        2
        ·
        4 years ago

        We haven’t even done a release yet for this new split, so they’re probably working off the version with everything in one codebase.