Why do IDEs have Power Save mode? (Was: Java and OpenJFX or JavaScript and WHATWG?)

Liste des GroupesRevenir à l prolog 
Sujet : Why do IDEs have Power Save mode? (Was: Java and OpenJFX or JavaScript and WHATWG?)
De : janburse (at) *nospam* fastmail.fm (Mild Shock)
Groupes : comp.lang.prolog
Date : 17. Jun 2025, 09:49:36
Autres entêtes
Message-ID : <102ra6v$u1kq$2@solani.org>
References : 1
User-Agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0 SeaMonkey/2.53.21
The restart maybe explains why IntelliJ has a
Power Safe mode, but I am not 100% sure about
the details. But if the end-user behaviour is
not compatible with the chosen delays, he might
tear down the tasks again and again. This could
use compute power. Some incremental tasks or tasks
that block (i.e. the "lag") could be a solution.
Incremental tasks that do only small work and
not big work, are less perceived as blocking
(i.e. the lag). But a ghost text that maybe
involves calling an Artificial Intelligence API
is probably in nature not a small work task,
in the sense that it would occupy a short work
time, the Artificial Intelligence API server
might be busy and cause a task slow down.
Disclaimer: I am doing some brain writing here...
Mild Shock schrieb:
Somebody wrote:
  > noticeable lag waiting for completion candidates
 A lag wouldn’t be a problem. I guess the problem
is that the GUI gets blocked, right? If your GUI
has tasks and timers, you could try the follow:
 - Debouncing Timer: To start ghost after lets
   say 1000 ms, the debouncing is to assure that
   the ghost appears after the last edit and not
   after the first edit.
 - Abortable Task: The ghost is then computed
   asynchronously via a task. But this task is
   again tied to the debouncing, means the task
   gets aborted if the end-user shows impatience.
 I checked a couple of GUI tools to do that. Had
rather bad experience with Java and OpenJFX, so I
am returning back to the JavaScript and WHATWG
with my ongoing research.
 SVG tags were not working out the box
https://wiki.openjdk.org/display/OpenJFX/Main
 No runLater(), any task can any time modify the DOM!
https://whatwg.org/
 But maybe there are other GUI frameworks which
can do it. If tasks are also used for highlighting
I belive they can be also run asynchronously without
explicitly juggling with some queues,
 just await the asynchrous routine that the task
would execute, in a instrumentation loop, and ignore
the aborts, since an abort is now good news and not
bad news, it only indicates that
 the end user did an edit and that the task
will be restartet.

Date Sujet#  Auteur
17 Jun 25 * Java and OpenJFX or JavaScript and WHATWG?9Mild Shock
17 Jun 25 `* Why do IDEs have Power Save mode? (Was: Java and OpenJFX or JavaScript and WHATWG?)8Mild Shock
17 Jun 25  `* Dog Shit: Call my name "jan.ai" (Was: Why do IDEs have Power Save mode?)7Mild Shock
19 Jun 25   `* There is no flesh and blood async Prolog! (Was: Dog Shit: Call my name "jan.ai")6Mild Shock
19 Jun 25    `* When did the Dogelog Player Quantum Leap happen? (Was: There is no flesh and blood async Prolog!)5Mild Shock
19 Jun 25     +* Main problem with simulated “threads” (Was: When did the Dogelog Player Quantum Leap happen?)3Mild Shock
19 Jun 25     i`* Time Sharing: Martin Richards, Ken Thompson and Linus Torvalds2Mild Shock
19 Jun 25     i `- <parallel> Ant Task doesn't need threads (Was: Time Sharing: Martin Richards, Ken Thompson and Linus Torvalds)1Mild Shock
19 Jun 25     `- Corr.: wrong date, should read 2021 (Was: When did the Dogelog Player Quantum Leap happen?)1Mild Shock

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal