• lebensterben ( lebensterben@alien.top ) B
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 years ago

    at least emacs needs two threads, one for rendering interface and one for the lisp interpreter. this isn’t the multi threading some people hope for but this is much easier to implement and at face level it hides freezes.

    • janoc ( janoc@alien.top ) B
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 years ago

      And wouldn’t work, given that except for the actual pushing pixels to the screen everything else is done by the Lisp code. So you would need to tightly synchronize the two threads to the point of it being useless.

      Having a separate “rendering” thread works for applications where you can queue up rendering tasks and then execute them in the background. Such as a game engine.

      Not an interactive text editor that has not been designed with such architecture in mind because threads didn’t even exist back in the day.

  • FLMKane ( FLMKane@alien.top ) B
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 years ago

    I’m gonna vote yes. I’ve been using Emacs since 2008, but if I had to start again today I would probably not pick it up, lack of multithreading is partially why.

  • It’s a dealbreaker for certain applications (e.g., window management). It’s not a dealbreaker for Emacs as a whole.

    Actually, to be clear: most of the pain is with blocking I/O. But Emacs does have support for asynchronous I/O. The problem is that there is too much code that uses blocking I/O rather than asynchronous I/O.

  • rileyrgham ( rileyrgham@alien.top ) B
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 years ago

    The only “performance” issue for me is lsp - but that tends to be at first run on a large framework. And since my “old” laptop (x1c6) is about 1000x faster than the one I started using emacs on in the early 2000s it really isnt an issue.

    Less haste, more speed…

    • thetemp_ ( thetemp_@alien.top ) B
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 years ago

      I live in that world by outsourcing article fetching to external services and storing all messages/articles locally. The basic setup is this:

      Emails:

      • Offlineimap syncs 2 Gmail accounts and connects directly to…
      • Dovecot as an IMAP server. Dovecot, stores the emails in Maildir format and Gnus’s nnimap backend gets them from the local Dovecot server.

      RSS/Atom feeds:

      • A program called Feed2exec saves RSS and Atom feeds in Maildir format. Dovecot monitors those folders and serves them to nnimap along with the emails. There is at least one other program that fetches newsfeeds to Maildir, but Feed2exec is in debian.

      All 3 of these services do their job regardless of whether Emacs is running, and nnimap is super fast when the server is local.

      I don’t read actual newsgroups anymore. If I did, I’d install Leafnode for them. But I wonder if the nntp backend would benefit to the same extent that nnimap does.

      • Thaodan ( Thaodan@alien.top ) 
        cake
        B
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 years ago

        I’m also using Gnus with IMAP directly too but connecting to a remote Dovecot on my root server. Fetching takes maybe 1 or 2 seconds at max.

        I filter all my mails on my server before hand.

      • Thaodan ( Thaodan@alien.top ) 
        cake
        B
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 years ago

        If the author could only communicate better and bring his changes upstream…

        I tried to see what do make of his first patch against Emacs 28 that bring threading to Gnus however it was quite hard to rebase/split them up as the original patch was just one big blob.

        E.g. he doesn’t just add threading to Gnus but also remove or rename variables, e.g. secondary select methods. He doesn’t explain changes, he adds unnecessary or rude comments to the commits or code.