Jump to content

Botre

Members
  • Posts

    5883
  • Joined

  • Last visited

  • Days Won

    18
  • Feedback

    100%

Posts posted by Botre

  1. Well most of which that doesn't support JavaFX are server environments like Solaris, JavaFX is for Clients. I don't believe a lack of support for a couple Linux systems is a reason for him to disregard JavaFX altogether.

     

    Many people on this site use what you call server-oriented operating systems on their VPS.

     

    Another case:

    CentOS uses OpenJDK  which supports JFX but doesn't bundle it by default, this means he would have to ask those users to to install another JDK (if their VPS provider allows this at all)  or somehow install the runtimes manually.

     

    If he wants to release his script publicly he should seriously reconsider the idea of JFX, if not then ofcourse none of what I said is really relevant :p

  2. Like which? I've never heard this before.

     

     

    It's simply not supported by every JVM implementation, if a context (up to the OS scope) forces you to use a JVM that doesn't provide / isn't compatible with JFX runtimes, you're fucked. 

     

    Arch, Bodhi, Gentoo, Slackware are some I remember causing troubles (maybe some of them support it now), I'm sure there are plenty of others. 

     

    On top of this, part of the JavaFX architecture relies on OpenGL, not all operating systems have available drivers for this (I've heard horror stories about companies having to write their own... ew).

     

    jfxar_dt_001_arch-diag.png

     

    Honestly, writing desktop clients in Java is very much a thing of the past. 

    • Like 1
  3. You do realize what would happen without an electoral college right? Candidates would just advertise to major population hubs (which are overwhelmingly liberal) and call it a day. Vast swaths of the American public would be ignored because of the way the population is spread out. Is that democracy? lol

     

     

    Because tyranny of the minority is better than tyranny of the majority?

     

    If the political contrast is really that big between major and minor population hubs, then why share a political leader at all (seems like, no matter the outcome, one side is going to end up unsatisfied every single time)?

  4. If you want your script logic to be driven by an observer-like pattern, your main challenge will not be the implementation of threading but rather the prioritization of  the event-handling. Also, using such patterns only make sense if the event you're listening for needs to be processed by multiple handlers, imo this is rarely the case in RS scripting.

     

    If your code is hogging too much CPU there are other solutions:

     

    - Write more efficient code.

    - Call your bottleneck code less frequently.

     

    The latter can be achieved by using multi threading, but there are much simpler and elegant ways to go about it.

     

    If you want specific tips/examples on how to improve your performance, I will gladly help out but  I'm going to need some code / context first ^^

     

    Cheers.

     

    • Like 1
×
×
  • Create New...