←back to thread

1901 points l2silver | 1 comments | | HN request time: 0.221s | source

Maybe you've created your own AR program for wearables that shows the definition of a word when you highlight it IRL, or you've built a personal calendar app for your family to display on a monitor in the kitchen. Whatever it is, I'd love to hear it.
Show context
purpleblue ◴[] No.35730403[source]
I wrote a program in C++ to download massive amounts of stock data from a data provider. The binary itself is 2 MB, memory use rises to over 16 GB and it frees everything at the end, so there are no memory leaks (I'm particularly proud of that). Over the years I've found better and better ways of making it run faster because a daily run will take over 6 hours of downloading and writing to my database.

I also wrote a multi-threaded backtester in C++ because the program I was using was only single-threaded. I stopped using that several years ago but the act of writing it was a lot of fun.

replies(2): >>35730589 #>>35735095 #
l2silver ◴[] No.35730589[source]
I should really give c++ a go...
replies(1): >>35737983 #
1. bschwindHN ◴[] No.35737983[source]
If you're going for multi-threaded and "frees all memory at the end", it's probably going to be way easier to write it in Rust, and you should end up with essentially the same result.