Developing "Spartan"

Discussion in 'Journals' started by nooby_mcnoob, Feb 3, 2019.

  1. Nope, Mono supports windows forms on Linux.
     
    #321     Dec 24, 2019
  2. Had my son do a trade execution today since it was playbook. Don't mind his response, he was actually very excited to do it. He started fucking around with my screen though lol.

    [​IMG]
     
    #322     Dec 27, 2019
  3. As he plays fortnite, yelling at his friends

    upload_2019-12-27_13-23-15.png
     
    #323     Dec 27, 2019
  4. Reduced the remote machine to the bare minimum, saved $100/month. Woohoo.
     
    #324     Dec 29, 2019
  5. That's a nice profit.
     
    #325     Dec 29, 2019
    nooby_mcnoob likes this.
  6. SteveH

    SteveH

    It's a long abandoned project of theirs. No serious developer would touch it for new work. They couldn't build a decent Forms Designer for it so put all of their efforts behind GTK# and MonoDevelop IDE. Now that MS owns Mono (Xamarin), it's up to them if they're going to have whatever .Net Core 3+ evolves into for cross platform GUI stuff.

    I spent the last few days programming with pythonnet on Windows 10 to see how responsive the GUI forms would be (ironpython is meh). Very cool. Easy to convert C# Forms Designer code over to python.

    Sometimes you should preface what you say by admitting you haven't actually worked with a piece of software vs reading about it. I've worked with System.Windows.Forms on Linux and it cannot be compared to the real deal.
     
    Last edited: Dec 30, 2019
    #326     Dec 30, 2019
  7. Well, not at all the expert on Mono or dotnet so I will defer to your historical review. Gtk# probably runs on Windows as well? Might be worth using that instead. Or maybe Qt for .NET if that is a thing.

    Nice to hear about pythonnet! I really want to use .NET but python itself is good enough. I wonder at what point it will not be enough.
     
    #327     Dec 30, 2019
  8. I've been having performance issues with my charting code when the market goes crazy. The problem is that plotly requires to redisplay each and every point on every update, at least when it is run in a Jupyter notebook (I have built my UI/monitoring in Jupyter widgets.)

    So I went down the path of trying out various different libraries and found some promising candidates. But before I went down the path of learning all their stupid little problems I sat and thought about whether I truly need every single tick to be reflected in the chart. The answer is no, I can wait for 1 second. So I update the chart to update once per second. Voila, no more problems.

    Keeping it simple! CPU usage down from 100% CPU to 40% CPU. Of course I'd like to solve this problem eventually but for now it's OK.

    Edit: the code, for completeness:

    upload_2020-1-8_23-25-27.png
     
    Last edited: Jan 8, 2020
    #328     Jan 8, 2020
  9. Just completed a huge refactoring owing to me wanting to trade stocks, futures as well as options on the same.

    Well, it wasn't really huge. It just felt huge. I knew it was coming because there was hard-coding of certain things which I think @HobbyTrading mentioned. Took a few hours, code is much, much better, everything still works.

    Lines of code still manageable:

    upload_2020-1-9_23-54-17.png
     
    #329     Jan 9, 2020
  10. I know that feeling: refactoring existing code seems a huge task with a high hurdle before you start. But after you’ve completed it you feel satisfied and wondered why it took so long before you started it.
    I don’t recall mentioning something that could benefit from refactoring though.
     
    #330     Jan 10, 2020