gregoirehenry / chart Goto Github PK
View Code? Open in Web Editor NEWtrading chart
trading chart
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.
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:
๐ Cons:
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:
dotenv!
macro makes it super easy to use๐ Cons:
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.
Currently we have 2 different solutions depending on the platform:
compile
scriptlibsdl2.0-dev
on it's machine in order to have the .so file available...Both situations have problems:
compile
script to download them via wget
from their source repository to the destination usr
directory.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
We need to add a rust compatible .gitignore
file ! This is just common sense.
We could reuse (meaning copy-paste it !) the one provided by rust itself. It's not perfect but it's largely enough for our project.
When moving the cursor quite fast, we can see the horizontal and vertical lines that follow the cursor getting doubled.
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
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.
At the moment error handling is basically based on "put a ?
after each possible error and don't bother to write an error message". Even in functions that do not return a Result<T, E>
type or a Option<T>
type...
?
, unwrap()
and expect()
anyhow
crate for simple and advanced error handlingsimplelog
crate also read std log crate that define the interfaceA declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.