GithubHelp home page GithubHelp logo

chart's Introduction

๐ŸŒŒ๐Ÿ›ฐ๏ธ

chart's People

Stargazers

 avatar

Watchers

 avatar

Forkers

pymaldebaran

chart's Issues

Provide a simple way to configure the app without re-compiling it

The problem

If we want to easyling change configuration or other stuff (example plot values?) without modifying the code and recopiling we need a very simple way to do it.

For example if we could write some values in a config file that would be read by the program it would be great.

Possible solutions

config-rs

We could use the very generic config-rs crate that allow us to have a config file in many formats: JSON, TOML, YAML, HJSON, INI...

๐Ÿ‘ Pros:

  • support everything ๐Ÿ‘‰ we can do anything we want

๐Ÿ‘Ž Cons:

  • support everything ๐Ÿ‘‰ seems overkill for our use... we don't need to support 5 different syntax and layered config system
  • depends on so many other crates...
  • loosely typed !

.env library

We could use the dotenv standard initially created for node.js and now available for almost any programming language.

For rust the crate is here and is widely used (don't pay attention to the alpha/beta warning it is here for a long time...).

๐Ÿ‘ Pro:

  • dead simple to use !
  • this provide default values but we can override it via environement variable on-the-fly just for one execution
  • using the dotenv! macro makes it super easy to use

๐Ÿ‘Ž Cons:

  • the beta warning...

Activate static linking to SDL2 .so/.dll

The problem

The linking to SDL2 libraries is curently dynamic thus forcing us to have the SDL2 library present on the client computer. And this leads to many distribution problems.

Current solutions

Currently we have 2 different solutions depending on the platform:

  • windows : we have the dll files in the repository and copy them next to the produced .exe with the compile script
  • linux : we need for the client to install libsdl2.0-dev on it's machine in order to have the .so file available...

Both situations have problems:

  • windows : we have an external library hosted on the repository in pure binary form, we WILL forget to update it if it has any (security) update
  • linux : we do not even check during compilation il the lib is present ! And we shouldn't rely on non explicit dependancy

Roadmap to solutions

  • windows remove the .dlls from the repository and modify the compile script to download them via wget from their source repository to the destination usr directory.
  • linux in compile script check for the presence of the lib before comiling and provide a clean error message providing relevent informations on how to install libsdl2.0-dev
  • both switch to real static linking and integrate the libsdl inside the executable

Cursor flickering while moving fast

The problem

When moving the cursor quite fast, we can see the horizontal and vertical lines that follow the cursor getting doubled.

The suspects

This may be a double buffering not activated problem or a software rendering instead of hardware rendering.

Other possible suspect : clean โžก๏ธ fill with background (missing ?) โžก๏ธ draw โžก๏ธ blit

TODO list

  • invertigate the SDL2 initialisation
  • do some tests with different config
  • find the right config and apply it cleanly

Improve project name detection

The compile script use the name of its parent dir to retrieve the project name. Saddly the name of this dir can be (and is often) changed when cloning the rep... resulting in an error at the end of the compilation.

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.