Matches in DBpedia 2015-10 for { <http://dbpedia.org/resource/Double-chance_function> ?p ?o }
Showing triples 1 to 37 of
37
with 100 triples per page.
- Double-chance_function abstract "In software engineering, a double-chance function is a software design pattern with a strong application in cross-platform and scalable development.Consider a graphics API with functions to DrawPoint, DrawLine, and DrawSquare. It is easy to see that DrawLine can be implemented solely in terms of DrawPoint, and DrawSquare can in turn be implemented through four calls to DrawLine. If you were porting this API to a new architecture you would have a choice: implement three different functions natively (taking more time to implement, but likely resulting in faster code), or write DrawPoint natively, and implement the others as described above using common, cross-platform, code. An important example of this approach is the X11 graphics system, which can be ported to new graphics hardware by providing a very small number of device-dependent primitives, leaving higher level functions to a hardware-independent layer.The double-chance function is an optimal method of creating such an implementation, whereby the first draft of the port can use the "fast to market, slow to run" version with a common DrawPoint function, while later versions can be modified as "slow to market, fast to run". Where the double-chance pattern scores high is that the base API includes the self-supporting implementation given here as part of the null driver, and all other implementations are extensions of this. Consequently the first port is, in fact, the first usable implementation.One typical implementation in C++ could be:Note that the CBaseGfxAPI::DrawPoint function is never used, per se, as any graphics call goes through one of its derived classes. So a call to CNewGfxAPI::DrawSquare would have its first chance to render a square by the CNewGfxAPI class. If no native implementation exists, then the base class is called, at which point the virtualization takes over and means that CNewGfxAPI::DrawLine is called. This gives the CNewGfxAPI class a “second chance” to use native code, if any is available. With this method it is, theoretically, possible to build an entire 3D engine (applying software rasterizing) using only one native function in the form of DrawPoint, with other functions being implemented as and when time permits. In practise this would be hopelessly slow, but it does demonstrate the possibilities for double-chance functions.".
- Double-chance_function wikiPageID "1749773".
- Double-chance_function wikiPageLength "4084".
- Double-chance_function wikiPageOutDegree "11".
- Double-chance_function wikiPageRevisionID "602733009".
- Double-chance_function wikiPageWikiLink Application_programming_interface.
- Double-chance_function wikiPageWikiLink C++.
- Double-chance_function wikiPageWikiLink Category:Articles_with_example_C++_code.
- Double-chance_function wikiPageWikiLink Category:Software_design_patterns.
- Double-chance_function wikiPageWikiLink Cross-platform.
- Double-chance_function wikiPageWikiLink Machine_code.
- Double-chance_function wikiPageWikiLink Native_code.
- Double-chance_function wikiPageWikiLink Software.
- Double-chance_function wikiPageWikiLink Software_design_pattern.
- Double-chance_function wikiPageWikiLink Software_engineering.
- Double-chance_function wikiPageWikiLink Software_pattern.
- Double-chance_function wikiPageWikiLink Virtual_function.
- Double-chance_function wikiPageWikiLink X11.
- Double-chance_function wikiPageWikiLink X_Window_System.
- Double-chance_function wikiPageWikiLinkText "Double-chance function".
- Double-chance_function hasPhotoCollection Double-chance_function.
- Double-chance_function wikiPageUsesTemplate Template:Cite_book.
- Double-chance_function wikiPageUsesTemplate Template:Reflist.
- Double-chance_function subject Category:Articles_with_example_C++_code.
- Double-chance_function subject Category:Software_design_patterns.
- Double-chance_function hypernym Pattern.
- Double-chance_function type Article.
- Double-chance_function type Disease.
- Double-chance_function type Article.
- Double-chance_function type Pattern.
- Double-chance_function comment "In software engineering, a double-chance function is a software design pattern with a strong application in cross-platform and scalable development.Consider a graphics API with functions to DrawPoint, DrawLine, and DrawSquare. It is easy to see that DrawLine can be implemented solely in terms of DrawPoint, and DrawSquare can in turn be implemented through four calls to DrawLine.".
- Double-chance_function label "Double-chance function".
- Double-chance_function sameAs m.05sztr.
- Double-chance_function sameAs Q5299585.
- Double-chance_function sameAs Q5299585.
- Double-chance_function wasDerivedFrom Double-chance_function?oldid=602733009.
- Double-chance_function isPrimaryTopicOf Double-chance_function.