• illectrility@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        arrow-down
        2
        ·
        edit-2
        1 year ago

        If done correctly. Electron is slow as crap in most cases. It can be optimized but it usually isn’t.

        I know that Electron≠JavaScript, of course but JavaScript continous being used for stuff it shouldn’t be used for

    • alexcoder04@programming.devOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      Do you mean Rhino? This is the first time I come across it and the fact that it’s written in Java completes a full circle of hell

  • Torty@beehaw.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I get these vibes when WASM introduced C# to the frontend via Blazor.

    Feels wrong. Feels like it shouldn’t be possible.

    But binaries on the frontend are so. cot. dayum. fast

    Blazor has been my favourite framework to do my side projects in for the past couple years now.

      • scrapeus@feddit.de
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        1 year ago

        Tbh I wouldn’t use languages but rather chainable configurations. Those could be yaml, JSON, toml etc.

        I really dislike running any dynamic code for those things. I mean you really only need rbac providers and/or auth providers.

        Maybe I underestimate Polkit by a far at the current state, but the 2 times I used it could have been a config file.

        • argv_minus_one@beehaw.org
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          That’s how polkit used to work. It was changed, presumably because the old system was excessively complex and inflexible. Arbitrary code is the correct solution when the set of potentially needed behaviors is unbounded, which in this case it is.

          Another example of this is CSS. The vast majority of its features today—shadow effects, filter effects, animations, layout modes, even text colors—could have been implemented with WebAssembly and shaders. Instead, all of this stuff is implemented by the browser, and as a result, there are only three browser engines, two of them are on life support, and there is zero hope of meaningful competition among browsers ever arising again.

          Let’s not overcomplicate polkit, please. It’s more than enough of an attack surface already.

  • SokathHisEyesOpen@lemmy.ml
    link
    fedilink
    arrow-up
    0
    arrow-down
    1
    ·
    1 year ago

    Everyone wants to removed about JavaScript. How about using languages like Python and Java to create websites? You have to use an entire bloated framework and compilation just to be able to use a language that was never intended to be used for websites. Java web frameworks are atrocious.

    • someone_secret@burggit.moe
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Maybe for Java but Python does have Flask, which is anything but bloated.

      Django, from what I heard, may be a bit bloated, but, from what I heard at least, it has some very useful tools