CROSS PLATFORM PITFALLS AND HOW TO AVOID THEM
CROSS-PLATFORM PITFALLS AND HOW TO AVOID THEM Erika Sweet (she/her) Microsoft C++ TeamWelcome to CppCon 2020! Visit our table at the Expo Hall https://aka.ms/cppcon/expo • Meet the Microsoft C++ Abdicating responsibility to CMake Reimplementing functionality that CMake has built-in to abstract platform and compiler specificsUse built-in CMake command line tools…. execute_process(COMMAND ${CMAKE_COMMAND} rget PUBLIC cxx_std_11) …instead of manually setting flags via CMAKE_CXX_FLAGSKeep your paths platform independent…. target_include_directories(myTarget PUBLIC $0 码力 | 67 页 | 360.44 KB | 5 月前3Cross-Platform Floating-Point Determinism Out of the Box
(Sort of) 2 3Why FP Determinism is Important?_ CppCon 2024 sixit:: 5 ✅ Same Executable Cross Platform Different Contexts ❌ ❌ 1 (Sort of) 2 3 General Sanity, Testability Distributed Simulations using the identically compiled files and run on systems that adhere to the IEEE standards. Cross platform synchronized network simulations or replays will not possible [sic].” - Most upvoted answer0 码力 | 31 页 | 3.88 MB | 5 月前3High-Performance Cross-Platform Architecture: C++20 Innovations
career in video games and embedded software • Started using C++ in 1995 • First cross-platform project in 1994Cross-Platform Architecture Goals • Take advantage of all platforms • Focus on the compiler classes, an illustrative example from a larger project • Project build issues • Inclusion of platform-specific header files • Concept hierarchies • Class and Function DesignOCP: The Open–Closed Principle Adding new revisions to a feature has no effect on previously-implemented revisions.What is a Platform? • A specific set of features • A feature is an abstract unit of functionality requiring implementations0 码力 | 75 页 | 581.83 KB | 5 月前3Conan 2.10 Documentation
tools examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211 7.4 Cross-building examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . powerful features of Conan is that it can create and manage pre-compiled binaries for any possible platform and configuration. By using pre-compiled binaries and avoiding repeated builds from source, it saves package “conanfile.py” recipe can generate any arbitrary number of binaries, one for each different platform and configuration: operating system, architecture, compiler, build type, etc. These binaries can0 码力 | 803 页 | 5.02 MB | 10 月前3Conan 2.9 Documentation
tools examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211 7.4 Cross-building examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . powerful features of Conan is that it can create and manage pre-compiled binaries for any possible platform and configuration. By using pre-compiled binaries and avoiding repeated builds from source, it saves package “conanfile.py” recipe can generate any arbitrary number of binaries, one for each different platform and configuration: operating system, architecture, compiler, build type, etc. These binaries can0 码力 | 795 页 | 4.99 MB | 10 月前3Conan 2.8 Documentation
tools examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205 7.4 Cross-building examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . powerful features of Conan is that it can create and manage pre-compiled binaries for any possible platform and configuration. By using pre-compiled binaries and avoiding repeated builds from source, it saves package “conanfile.py” recipe can generate any arbitrary number of binaries, one for each different platform and configuration: operating system, architecture, compiler, build type, etc. These binaries can0 码力 | 785 页 | 4.95 MB | 10 月前3Conan 2.7 Documentation
tools examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205 7.4 Cross-building examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . powerful features of Conan is that it can create and manage pre-compiled binaries for any possible platform and configuration. By using pre-compiled binaries and avoiding repeated builds from source, it saves package “conanfile.py” recipe can generate any arbitrary number of binaries, one for each different platform and configuration: operating system, architecture, compiler, build type, etc. These binaries can0 码力 | 779 页 | 4.93 MB | 10 月前3Conan 2.6 Documentation
tools examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205 7.4 Cross-building examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . powerful features of Conan is that it can create and manage pre-compiled binaries for any possible platform and configuration. By using pre-compiled binaries and avoiding repeated builds from source, it saves package “conanfile.py” recipe can generate any arbitrary number of binaries, one for each different platform and configuration: operating system, architecture, compiler, build type, etc. These binaries can0 码力 | 777 页 | 4.91 MB | 10 月前3Tornado 6.5 Documentation
Security Inserting untrusted content into a web page can lead to security vulnerabilities such as cross-site scripting (XSS). All data that is passed to a template should be escaped to prevent these vulnerabilities ompt': 'auto'}) See the tornado.auth module documentation for more details. Cross-site request forgery protection Cross-site request forgery, or XSRF, is a common problem for personalized web applications set_header after call- ing write()). Note that lists are not converted to JSON because of a potential cross-site security vulnerability. All JSON output should be wrapped in a dictionary. More details at http://haacked0 码力 | 272 页 | 1.12 MB | 2 月前3A New Decade of Visual Studio: C++20, Open STL and More
Code Julia Reid – count_if() venueVisual Studio Agenda 1. Conformance 2. Code Safety 3. Cross-platform development 4. Developer and Team ProductivityVisual Studio Available this week Visual Studio https://visualstudio.microsoft.com/vs/preview/Visual Studio Agenda 1. Conformance 2. Code Safety 3. Cross-platform development 4. Developer and Team ProductivityAnnouncing today With version 16.8, Visual Studio details ✅ ✅ ✅ ✅ 🐱🏍 Visual StudioVisual Studio Agenda 1. Conformance 2. Code Safety 3. Cross-platform development 4. Developer and Team ProductivityStatic Analysis Visual Studio integrates with0 码力 | 37 页 | 2.67 MB | 5 月前3
共 237 条
- 1
- 2
- 3
- 4
- 5
- 6
- 24