Better HN
topnewbestaskshowjobs
Log inSign up

idispatch

3 karma · joined Jan 23, 2016 (10y ago) · 12 submissions

Submissions

comment 1y ago · link · parent

I counted the word “sound” in this reply 8 times. When I the word sound there is always the word Rust nearby. It is just a coincidence, of course.

comment 1y ago · link · parent

On that angle - I like the project structure, overall, CMake use and documentation. It was helpful to understand, high level, before diving into code.

I also recall the discussion here related to fast associative containers, like unordered map/set. This is the implementation - https://github.com/martinus/unordered_dense

Combined with HFT CppCon talk that emphasizes the impact of node-based STL containers you may benefit from using some optimized hash maps on top of vectors, if you aim at top-performance in runtime. Also, abseil has some flat sets/maps implementation. All of this could be a nice addition if you experiment with performance (I figured that from std::pmr use in your project).

comment 1y ago · link · parent

Related video for those who are interested: “When Nanoseconds Matter: Ultrafast Trading Systems in C++ - David Gross - CppCon 2024” https://youtu.be/sX2nF1fW7kI?si=komqKuZ0-eOH2v4V

This is basics for those who start creating anything HFT.

Your project is a nice start. It has a lot of things waiting to be added and improved. I’d also add it looks like a 1-2 week project (excluding benchmarks) in my company for people who just started doing trading systems, and it reminds me of the project that is given to people that have finished C++ training and need something to exercise on.

While it is a good start, I’d add you may find a lot of interesting ideas in QuantLib (https://www.quantlib.org/).

Please also be careful with double for price and quantity especially in HFT and especially with asset types like BTC. The precision issues may lead to some confusion and eventual losses here and there. I noticed that you use fuzzy floating point comparisons, even in tests. That may not be suitable for important use cases.

Please also add some examples for specific trading strategies. Let’s say if you have back testing and some simple historic data in JSON a good example could be a comparison of two trading strategies and the difference compared to most optimal trading strategy possible.

comment 1y ago · link · parent

Classic masterpiece, for those who experienced it in 1990s and wanted to know how it was done: https://github.com/mtuomi/SecondReality

comment 1y ago · link · parent

Sooner or later there will inevitably appear a new language, or an evolution of the current Rust, which will be significantly better than Rust and not just a minor tweak to the language we know today . Let’s say it is named Rust++ (any resemblance to existing languages is a pure coincidence). And the whole hype and rewrite starts over again… it is just a matter of time.

comment 1y ago · link · parent

It looks like you professionally sold 30 years of your life for money with no fun. You could have done something for fun all this time, and got payed for it, too. Much better that way.

comment 2y ago · link · parent

And VSCode will still be around.

comment 3y ago · link · parent

Looks like a unipost in a uniblog

comment 3y ago · link · parent

This is plainly not true

comment 3y ago · link · parent

To be more precise, to e.

comment 4y ago · link · parent

Mind you, before this goes to prod please add error handling and logging. What happens when bar fails? What about baz? Now, please rewrite this so your team mates can maintain and extend. Yawn, I’ll wait for the PR.

comment 5y ago · link · parent

OTOH, if it wasn't that good we would be using something else, good and better that win3.1 and the history would erase Windows.