GithubHelp home page GithubHelp logo

Kindly add /list command about circe HOT 3 CLOSED

rahilarious avatar rahilarious commented on August 10, 2024
Kindly add /list command

from circe.

Comments (3)

wasamasa avatar wasamasa commented on August 10, 2024 1

Just use /quote list if you want to actually use the command. Note that it's a bad idea to do this because the output of the command can be massive and Circe will be so busy processing it all that it may not reply to the keepalive ping commands and ends up disconnecting from the network as a result.

For this reason, networks affected by this issue recommend either:

  • Using /list with modifiers to limit the output. Try /quote help list for further info on network-specific modifiers, such as /quote list *pattern*
  • Using a network-specific service such as alis on Libera.chat. Try /msg alis help list and /msg alis list pattern.

I don't expect to fix the throughput issue any time soon due to the design of Circe. It uses one network process with a sentinel processing incoming input. If it's busy with /list output, it is bound to reply late to any incoming PING.

What I could do is introduce a dummy command pointing out the above gotchas or even change the output for unknown commands to suggest trying the /quote command. What do you think?

from circe.

Thaodan avatar Thaodan commented on August 10, 2024

I don't expect to fix the throughput issue any time soon due to the design of Circe. It uses one network process with a sentinel processing incoming input. If it's busy with /list output, it is bound to reply late to any incoming PING.

Can this be changed? The issue also affects other situations e.g. when other modes are doing something and block the ui.

from circe.

wasamasa avatar wasamasa commented on August 10, 2024

There are very specific workarounds, such as using several processes and waiting for either of them to be ready for processing. That's a crutch for Emacs being ultimately single-threaded and packages expecting this kind of design.

So no, there is no generic solution, short of a complete Emacs/Circe redesign. Such a redesign would need to test what exactly is slow here (is it slow to merely run the process filter several times? is it slow to display the output repeatedly? could the output be collected and paged through in that case? how would that even work with asynchronous code? would that require the use of promises?) and target these pain points specifically.

from circe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.