One Unified Global Perspective
Communications with a Global Perspective
Home
Intro
Contact Us
Voice over IP
PBX Solutions
Services
Support
Glossary
Open Source
Blog
Forum

WebMail





2007 Jun 10 - Sun

Trading Site of the Day -- C++ Fast Delegates, plus Boost

No, C++ Fast Delegates aren't really trading algorithms, but they do help make trading algorithms fast.

In the C# world, the C# language has the built-in capacity to store multiple object/method pointers and call them in response to some sort of activity. This is generally referred to the Observer Pattern of event based programming. In C#, the structure is called a Delegate.

C++ does not provide a native Delegate structure. Don Clugston wrote an article called Member Function Pointers and the Fastest Possible C++ Delegates. I've used this method successfully with Microsoft Visual Studio 2005.

Don's implementation is unable to do multicast delegates. Sergey Ryazanov wrote an article called The Impossibly Fast C++ Delegates that supposedly is more C++ compliant and has a multicast capability.

JaeWook Choi took the work one step farther and implemented a multicast delegate that is a drop in replacement for the Boost C++ Libraries. Boost is a collection of free peer-reviewd portable C++ source libraries. JaeWook's library is faster than Boost, but slower than Don's library. But JaeWook's library is mulitcast and does offer up additional functionality. Timings and feature sets can be reviewed in his article called Fast C++ Delegate: Boost.Function 'drop-in' replacement and multicast.

[/Trading/SiteOfTheDay/D200706] permanent link



Blog Content ©2008
Ray Burkholder
All Rights Reserved
ray@oneunified.net
(441) 505 7293
Available for Contract Work
Resume

RSS: Click to see the XML version of this web page.

View Ray 
Burkholder's profile on LinkedIn
technorati
Add to Technorati Favorites



June
Su Mo Tu We Th Fr Sa
         
10


Main Links:
Monitoring Server
SSH Tools
QuantDeveloper Code

Special Links:
Frink

Blog Links:
Sergey Solyanik
Marc Andreessen
HotGigs
Micro Persuasion
... Reasonable ...
Chris Donnan
BeyondVC
lifehacker
Trader Mike
Ticker Sense
HeadRush
TraderFeed
Stock Bandit
The Daily WTF
Guy Kawaski
J. Brant Arseneau
Steve Pavlina
Matt Cutts
Kevin Scaldeferri
Joel On Software
Quant Recruiter
Blosxom User Group
Wesner Moise
Julian Dunn
Steve Yegge

2007
Months
Jun




Mason HQ

Disclaimer: This site may include market analysis. All ideas, opinions, and/or forecasts, expressed or implied herein, are for informational purposes only and should not be construed as a recommendation to invest, trade, and/or speculate in the markets. Any investments, trades, and/or speculations made in light of the ideas, opinions, and/or forecasts, expressed or implied herein, are committed at your own risk, financial or otherwise.