Giter Club home page Giter Club logo

ircbot's People

Contributors

mperoutek avatar spiral6 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ircbot's Issues

Change CurrencyThread to an actual Thread, that updates SWT

An issue with SWT is that other threads/stuff (such as CurrencyThread) running outside of the main Thread (in this case, InitGUI/InitJSON --> ConnectIRC) cannot modify SWT stuff, afaik.

Doing so will result in an invalid thread exception. Not really sure how to fix this issue... according to online, attempting to run CurrencyThread asynchronously with the Display will result in nothing being done, due to the main thread hanging on something unknown, or it being stupid. (probably the latter) Running it synchronously makes it freeze, or just flat out doesn't work. Results vary.

However, if this issue isn't fixed, the entire program adds on CurrencyThread to the main thread, allowing CurrencyThread to pause execution of other stuff in the main thread, such as IRC connections and GUI closing and stuff. This isn't good... by then the entire main thread depends on one class that should be separate anyways.

According to the documentation, SWT is single-threaded and therefore, programs should be laid out like this:

  • UIThread
  • Everything else that updates it. (like CurrencyThread)
  • Move/Command threads.

This means that CurrencyThread shouldn't handle/create any UI stuff, and instead, just update the UI with stuff like outputs/SQL updates/etc.

Change repository name

I believe that the name of the repository should be changed to better reflect what the project does.

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.