Git Product home page Git Product logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
I wasn't sure if HTML would work, and it clearly didn't.  Anyway, the URL is
http://www.codeproject.com/KB/cpp/FastDelegate.aspx

Original comment by kennethdmiller3 on 31 Aug 2009 at 2:52

from box2d.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
FastDelegate requires non-standard C++ as well as compiler specific 
implementations.
 Too much work for little gain.  boost::function style delegates would work, but
don't provide any performance advantages (only trade offs).

Original comment by [email protected] on 31 Aug 2009 at 8:35

from box2d.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
While FastDelegate is indeed nonstandard, it's widely supported by modern 
compilers.
 There's another one
(http://www.codeproject.com/KB/cpp/ImpossiblyFastCppDelegate.aspx) that's
standards-compliant but less-widely supported (ironically).  There's always a
possibility that the iPhone or Nintendo DS platforms might have issues, but 
their
compilers seem decent enough.  (Ultimately, a delegate is a simple thing: a 
"this"
pointer and a function address.  There's only so many ways to construct a 
virtual
function or a pointer to member...)

Original comment by kennethdmiller3 on 31 Aug 2009 at 9:26

from box2d.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
I've made use of FastDelegate on the DS in both ARM and THUMB modes (haven't 
tested
it using the home-brew environment though)

Original comment by [email protected] on 2 Sep 2009 at 10:31

from box2d.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
You can essentially implement your own delegates already.

Original comment by [email protected] on 19 Sep 2009 at 8:15

  • Changed state: WontFix

from box2d.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
True, though it isn't as efficient because it requires a third layer of 
indirection
(virtual function table, virtual function, and target method).  :)

Original comment by kennethdmiller3 on 19 Sep 2009 at 2:15

from box2d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.